mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-16 13:21:30 +01:00
fix(review-army): write the state-machines output to a fresh private file from gstack-state-matrix outfile
/review delta on51f1e02(Claude F2):dc739bewrote the specialist output to a fixed .gstack/tmp/state-machines.md with no exclude. On a second review Claude Code's Write refuses an existing unread file, so check could validate the previous run's output, and git add -A could commit it. gstack-state-matrix outfile creates .gstack/tmp (0700) at the repo top, adds /.gstack/tmp/ to info/exclude once, and prints a new empty 0600 file per call; the selection prose has the agent Read that file, write the full output there and check that path. The prose moved the check command inline, so gstack-review shrinks and its pins are lowered (cursor 141010->140637, factory 144792->144416, kiro 140816->140449, opencode 143258->142872, slate 140913->140543). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
d44d805b8d
commit
47f4543465
7 files changed
+70
-20
No files matched your search
@@ -70,10 +70,7 @@ Based on the scope signals above, select which specialists to dispatch.
|
||||
6. **API Contract** — if SCOPE_API=true. Read \`${ctx.paths.skillRoot}/review/specialists/api-contract.md\`
|
||||
7. **Design** — if SCOPE_FRONTEND=true. Use the existing design review checklist at \`${ctx.paths.skillRoot}/review/design-checklist.md\` and run the mechanical pass at the top of that checklist (the user-installed design detector, when present) before the LLM items
|
||||
8. **Simplification** — if DIFF_LINES > 100. Read \`${ctx.paths.skillRoot}/review/specialists/simplification.md\`. Advisory-only lens: hunts unrequested structure (hand-rolled stdlib, one-implementation abstractions, dependencies duplicating platform features), never coverage.
|
||||
9. **State Machines** — if SCOPE_STATE_MACHINE is true or unknown: read \`${ctx.paths.skillRoot}/review/specialists/state-machines.md\`, then write its full output to \`.gstack/tmp/state-machines.md\` and check it:
|
||||
\`\`\`bash
|
||||
${ctx.paths.binDir}/gstack-state-matrix check .gstack/tmp/state-machines.md
|
||||
\`\`\`
|
||||
9. **State Machines** — if SCOPE_STATE_MACHINE is true or unknown: read \`${ctx.paths.skillRoot}/review/specialists/state-machines.md\`, run \`${ctx.paths.binDir}/gstack-state-matrix outfile\`, Read the file it prints, write the full output there, then run \`${ctx.paths.binDir}/gstack-state-matrix check <file>\` on it.
|
||||
|
||||
### Adaptive gating
|
||||
|
||||
|
||||
Reference in new issue
Block a user