mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-30 20:04:15 +01:00
Tests that copy their own bun no longer trip the review fetch check (GST-4112) (#4876)
A test that copies the host's own `bun` binary into a temp folder no longer stops `/gstack-ship` with a fetch violation, and Codex prompt files from `/plan-ceo-review` and `/plan-eng-review` can no longer be committed by accident. It keeps shipping runs from stopping for no reason and keeps scratch files out of commits; the `/autoplan` guard now also treats Claude Code 2.1.326, the version CI runs, as checked. Nothing to do after merge. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p2/outside-voice#2 reader=outside-voice Review-Finding: p2/adversarial-native#3 reader=adversarial-native Review-Finding: p2/outside-voice#3 reader=outside-voice
This commit is contained in:
1 parent
44df37961b
commit
dfbdccf4c1
15 files changed
+283
-23
No files matched your search
@@ -853,6 +853,11 @@ The checkout's own build output is not a fetch either: a new big native executab
|
||||
`FETCH_IGNORED: … reason=build-output`. A big file under an ignored directory or a
|
||||
glob, a non-executable at that path, or a path only an uncommitted `.gitignore`
|
||||
edit names still counts as a download.
|
||||
A copy of the runtime the sweep itself runs on (`process.execPath`, such as a test
|
||||
that copies its own `bun` into the temp dir) is not a fetch either: a new big file
|
||||
with exactly that binary's size and SHA-256 prints
|
||||
`FETCH_IGNORED: … reason=host-runtime`. A file named `bun` with any byte changed,
|
||||
added or removed, or a copy of any other binary, still counts as a download.
|
||||
A `Bun.spawn` child given no `env` keeps the temp dir its test process started
|
||||
with, so its fixtures land outside the marked root and still count.
|
||||
|
||||
|
||||
+5
-1
@@ -10,7 +10,7 @@ Detailed guides for every gstack skill — philosophy, workflow, and examples.
|
||||
| [`/plan-eng-review`](#plan-eng-review) | **Eng Manager** | Lock in architecture, data flow, diagrams, edge cases, and tests. Forces hidden assumptions into the open. |
|
||||
| [`/plan-design-review`](#plan-design-review) | **Senior Designer** | Interactive plan-mode design review. Rates each dimension 0-10, explains what a 10 looks like, fixes the plan. Works in plan mode. |
|
||||
| [`/design-consultation`](#design-consultation) | **Design Partner** | Build a complete design system from scratch. Knows the landscape, proposes creative risks, generates realistic product mockups. Design at the heart of all other phases. |
|
||||
| [`/review`](#review) | **Staff Engineer** | Looks for the bugs that pass CI but blow up in production. Auto-fixes the obvious ones. Flags completeness gaps. Advisory simplification lens flags over-built code — never blocks, never auto-applies. |
|
||||
| [`/review`](#review) | **Staff Engineer** | Looks for the bugs that pass CI but blow up in production. Auto-fixes the obvious ones. Flags completeness gaps. Advisory simplification lens flags over-built code — never blocks, never auto-applies. Always runs the Codex second-model review when Codex is ready (or its check is inconclusive), and the Red Team on every diff over 200 lines. |
|
||||
| [`/build-check`](#build-check) | **Build Loop** | Run the repo's checks and the tests `/gstack-ship`'s pre-gate would pick for your change, fix, repeat until green, then hand off to `/gstack-ship`. Never green on an unmapped change. |
|
||||
| [`/design-review`](#design-review) | **Designer Who Codes** | Live-site visual audit + fix loop. 80-item audit, then fixes what it finds. Atomic commits, before/after screenshots. |
|
||||
| [`/design-shotgun`](#design-shotgun) | **Design Explorer** | Generate multiple AI design variants, open a comparison board in your browser, and iterate until you approve a direction. Taste memory biases toward your preferences. |
|
||||
@@ -626,6 +626,10 @@ This is a structural audit, not a style nitpick pass. I want the model to look f
|
||||
|
||||
Findings get action, not just listed. Obvious mechanical fixes (dead code, stale comments, N+1 queries) are applied automatically — you see `[AUTO-FIXED] file:line Problem → what was done` for each one. Genuinely ambiguous issues (security, race conditions, design decisions) get surfaced for your call.
|
||||
|
||||
### Second-model review and Red Team
|
||||
|
||||
Standalone `/review` always runs a Codex second-model review when Codex is ready or its check is inconclusive, through `gstack-outside-voice`, and always runs the Red Team pass when the diff is over 200 lines (a smaller diff can still get one when a specialist finds something critical). The end-of-skill check refuses to finish without both. If Codex isn't installed or reviews are turned off, that is recorded as a skip and the review still finishes; a skip the model just claims in its own words does not count.
|
||||
|
||||
### Completeness gaps
|
||||
|
||||
`/review` now flags shortcut implementations where the complete version costs less than 30 minutes of CC time. If you chose the 80% solution and the 100% solution is a lake, not an ocean, the review will call it out.
|
||||
|
||||
@@ -4253,8 +4253,9 @@ leave `merged.jsonl`, and it never reaches the Red Team, the judge, the
|
||||
returned output or PR text. `verify` prints `FETCH_VIOLATION:` and refuses
|
||||
until the stage has rerun and swept clean. A test run's fixtures (a root
|
||||
carrying `.gstack-test-fixture`, or a repository whose remote resolves to a local
|
||||
path through `url.<base>.insteadOf`) and the checkout's own native build output at a
|
||||
path its committed root `.gitignore` names exactly print
|
||||
path through `url.<base>.insteadOf`), the checkout's own native build output at a
|
||||
path its committed root `.gitignore` names exactly, and a byte-identical copy
|
||||
(size and SHA-256) of the runtime the sweep runs on print
|
||||
`FETCH_IGNORED:` and never count.
|
||||
Capy's `~/.capy/drive` is never walked, and the drive sync database under
|
||||
`~/.capy/drive-engine` (`state.db` and its `-wal`, `-shm` and `-journal` files)
|
||||
|
||||
Reference in new issue
Block a user