mirror of https://github.com/garrytan/gstack.git
test/skill-e2e-office-hours-brain-writeback.test.ts (~210 LOC,
periodic-tier, ~$0.50-1/run):
Drives /office-hours via runSkillTest against a deterministic fixture
brief (pixel.fund founder pitch). The workdir has:
- A regenerated office-hours/SKILL.md with the compressed brain blocks
(generated via gen-skill-docs --respect-detection against a temp
GSTACK_HOME, then restored to canonical post-snapshot)
- A fake gbrain shell script on PATH that uses printf %q quoting to
preserve --content "$(cat <<'EOF' ... EOF)" heredoc payloads
intact (naive `echo "$@"` would lose argv boundaries)
- The docs/gbrain-write-surfaces.md the resolver points to
Asserts:
- gbrain-calls.log contains `gbrain put office-hours/pixel-fund`
- Payload file at gbrain-payloads/office-hours/pixel-fund.md exists
with valid YAML frontmatter (title: + tags: + design-doc tag)
- At least one gbrain put entities/<name> call (entity stub
enrichment is best-effort, soft warning if absent)
Covers agent obedience to the SAVE_RESULTS instruction. Out of scope:
gbrain CLI persistence contract (T11 covers that with real PGLite).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| golden | ||
| ios-qa/FixtureApp | ||
| mode-posture | ||
| office-hours-brain-writeback | ||
| plans | ||
| coverage-audit-fixture.ts | ||
| eval-baselines.json | ||
| forcing-finding-seeds.ts | ||
| golden-ship-claude.md | ||
| overlay-nudges.ts | ||
| parity-baseline-v1.44.1.json | ||
| parity-baseline-v1.46.0.0.json | ||
| parity-baseline-v1.47.0.0.json | ||
| qa-eval-checkout-ground-truth.json | ||
| qa-eval-ground-truth.json | ||
| qa-eval-spa-ground-truth.json | ||
| review-army-migration.sql | ||
| review-army-n-plus-one.rb | ||
| review-eval-design-slop.css | ||
| review-eval-design-slop.html | ||
| review-eval-enum-diff.rb | ||
| review-eval-enum.rb | ||
| review-eval-vuln.rb | ||