Files
gstack/test/carve-section-loading.test.ts
T
garrytanandcapy-ai[bot] 6b530ccc0b feat(skills): absorb pstack's blast radius, transcript recall, vet-the-number and design-twice as lazy sections
/investigate gains sections/blast-radius.md (the one safety fact, the five-rung
evidence ladder, look where grep stops, confirmed and cleared risks apart) with a
Phase 4 pointer, and the shared-premise red flag before the 3-strike rule.
/context-restore is carved for the first time: on NO_CHECKPOINTS, sections/transcripts.md
mines this workspace's own transcripts (host stores declared in hosts/*.ts and rendered
by TRANSCRIPT_SOURCES / TRANSCRIPT_DISCOVERY), a fixed 7-day window, never another
project's folder, subagents return only findings, redaction before anything leaves,
git and gh verify every artifact, a status-tagged brief. /benchmark is carved for the
first time: sections/vet-the-number.md asks the seven questions before Phase 5 reports
a comparison. /plan-eng-review gains sections/design-twice.md (a second structurally
distinct shape compared on interface depth, the eight design red flags), bound by the
autoplan methodology snapshot alongside review-sections.md.

Ideas from pstack (Lauren Tan, MIT), rewritten in gstack's words; NOTICE.md. Garry,
2026-10-26: "Do it, send". Guards: carve-guards entries and measured lines, eleven
plan-eng-review pins re-measured, periodic carve-section-loading cases for the two new
carves, free tests with a fixture transcript.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
2026-10-26 21:38:10 +00:00

34 lines
2.5 KiB
TypeScript

/**
* Carved-skill section loading (PERIODIC, paid): one real run per generic
* carved skill proves the agent Reads that carve's required sections
* (test/helpers/carve-section-case.ts). Each case is its own shard
* (scripts/lib/paid-cases.ts CASE_SHARDED_FILES), with its own case id,
* pass-rate history and touchfiles; test/carve-section-sharding.test.ts pins
* that every generic CARVE_GUARDS entry has exactly one case here.
*/
import { test } from 'bun:test';
import { describeE2ETier } from './helpers/e2e-gate';
import { CAPTURE_LONG_MS } from './helpers/eval-budgets';
import { runCarveSectionCase } from './helpers/carve-section-case';
describeE2ETier('periodic')('carve section-loading', () => {
test('carve-section-loading-benchmark', () => runCarveSectionCase('benchmark'), CAPTURE_LONG_MS);
test('carve-section-loading-browse', () => runCarveSectionCase('browse'), CAPTURE_LONG_MS);
test('carve-section-loading-codex', () => runCarveSectionCase('codex'), CAPTURE_LONG_MS);
test('carve-section-loading-context-restore', () => runCarveSectionCase('context-restore'), CAPTURE_LONG_MS);
test('carve-section-loading-design-consultation', () => runCarveSectionCase('design-consultation'), CAPTURE_LONG_MS);
test('carve-section-loading-design-html', () => runCarveSectionCase('design-html'), CAPTURE_LONG_MS);
test('carve-section-loading-design-shotgun', () => runCarveSectionCase('design-shotgun'), CAPTURE_LONG_MS);
test('carve-section-loading-document-release', () => runCarveSectionCase('document-release'), CAPTURE_LONG_MS);
test('carve-section-loading-investigate', () => runCarveSectionCase('investigate'), CAPTURE_LONG_MS);
test('carve-section-loading-land-and-deploy', () => runCarveSectionCase('land-and-deploy'), CAPTURE_LONG_MS);
test('carve-section-loading-plan-design-review', () => runCarveSectionCase('plan-design-review'), CAPTURE_LONG_MS);
test('carve-section-loading-plan-devex-review', () => runCarveSectionCase('plan-devex-review'), CAPTURE_LONG_MS);
test('carve-section-loading-plan-eng-review', () => runCarveSectionCase('plan-eng-review'), CAPTURE_LONG_MS);
test('carve-section-loading-qa', () => runCarveSectionCase('qa'), CAPTURE_LONG_MS);
test('carve-section-loading-retro', () => runCarveSectionCase('retro'), CAPTURE_LONG_MS);
test('carve-section-loading-review', () => runCarveSectionCase('review'), CAPTURE_LONG_MS);
test('carve-section-loading-setup-gbrain', () => runCarveSectionCase('setup-gbrain'), CAPTURE_LONG_MS);
test('carve-section-loading-spec', () => runCarveSectionCase('spec'), CAPTURE_LONG_MS);
});