Repository navigation
v1.92.15.0 feat: plan reviews check facts and keep one task list; /office-hours hands its wireframe to design review (#340, #513, #973, #1048, #1791) - #3775
Merged
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nforced probe (#973) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…or/supersede) (#1791) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The emit block shrinks to three calls: prior (now defaulting --dir and --branch, and printing how to reconcile), start (creates the empty branch-named list) and add (one validated row per task). close records a done or dropped prior task. The plan-review result codes move to lib/result-codes-plan.ts so lib/result-codes.ts stays under the module-size ratchet; generated plan-review sections shrink, so their size pins go down. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-review reads it
Step 5 copies sketch.png/html to <PROJECT_DIR>/{user}-{branch}-sketch-{datetime}.*
and writes a Wireframe: line (state-root relative) or Wireframe: none (<reason>).
The design review section finds the design doc before Pass 1 and opens the
wireframe, text-only when the file is missing. G4's signals line rides along
in the same generated office-hours files; tests in planning-wave-prose.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
One bullet in each of plan-eng-review and plan-ceo-review: fields queried, constrained or updated on their own get explicit columns or tables; JSON suits a document read and written whole. Written fresh; the reporter's patch is not ported. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
planted facts (G1, behavior), data model (G3, behavior), task-list rerun (G2, rule) and closing signals (G4, behavior). GSTACK_WAVE_ARM picks the arm; only the branch arm asserts the preregistered bar, every arm writes a score row. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The planted-facts eval's one branch miss: the reviewer asked to probe "git log", the probe refused it, and git's top-level help cannot show a log flag, so the fabricated --since-commit stayed "unverified". probe --help <command> [<subcommand> [<subcommand>]] now runs <cli> <sub> --help for git, gh, docker, cargo, go, npm and uv (never node, bun, python3, make, yarn, pnpm or a gstack bin, where the word could name a script), in an empty temporary directory with pagers set to cat, falling back to -h when --help has no usage line (a minimized system's missing man page). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The free suite's generated-bash lint (INV-3) refused the add command's <title>/<finding> placeholders: free text reaches a command only as a file the agent writes with its file-write tool. start now also creates an empty rows file in the repository's git-excluded .gstack/tmp and records the run; the agent writes task and disposition rows there; add validates every row, stamps phase, run, branch and commit, appends tasks to the list and dispositions to task-dispositions-<phase>-<branch>.jsonl, then supersedes the branch's earlier lists. close is gone (dispositions are rows). The new planning-wave cases get measured periodic walls in scripts/paid-test-durations.json so the periodic census still packs into 40 slices, the schema case declares the preamble sources its eng-template owners need, and the paid file count is 114. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The rows file lives at .gstack/tmp/tasks-<phase>-rows.jsonl; add writes this run's list (empty when there are no rows), appends dispositions, deletes the rows file and supersedes the branch's earlier lists. Lowers 27 size pins. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
CI shard 13 home containment caught gstack-slug writing ~/.gstack/slug-cache entries from the tasks-prior fixtures. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The probe now accepts only each CLI's listed built-in subcommands (no uv run, docker run, go test, npm exec or gh extensions), refuses gstack bins that do not handle --help and never retries them with -h, and runs with a throwaway HOME and an environment without keys. gstack-tasks resolves the slug through runScriptSync (Windows) and prior deletes a rows file an unfinished run left. Adds tests for the dropped disposition and the stale rows file. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Ship review (state matrix): a rerun that skipped RECONCILE silently retired open tasks. add now names each undecided <run_id>/<id> and writes nothing. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Probe: find the repository root without running git, drop relative and in-repository PATH entries for lookup and for the child, keep HOME and toolchain locations (rustup, mise, asdf) but no keys, drop cargo fmt/clippy (external cargo-* programs), restore planted env in the test. gstack-tasks: resolve the exclude path against the cwd (subdirectories), resolve --dir, stamp an empty branch on a detached HEAD like the aggregator, name the file from --branch, and refuse a same-second second list instead of appending. Receipts: line 0, reversed ranges, dangling links and paths through files are unresolved instead of crashing. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…wered where the wave shrinks) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 1, 2026
Closed
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Plan reviews no longer accept a
file:linecitation they never opened: a missing file or a line past the end now fails the phase withREALITY_RECEIPT_UNRESOLVED(#973).Before/after as text: gstack-plan-reality check on a plan citing a missing file and a line past the end: main passes it, this branch opens each receipt and holds the phase open
The per-review task section drops 30 lines of hand-built
jqand becomes onegstack-tasks addcall that reads a rows file, so a rerun carries open tasks forward and closes finished ones instead of leaving two lists for /autoplan to merge (#1791).Before/after as text: the JSONL artifact section of plan-eng-review/sections/review-sections.md at 5b7b095 and on this branch
Why
#973 put it plainly: "Spec-review subagents see only document text. They can't grep source, compute math, or shell out
<tool> --help." The other four are the same kind of gap: on a rerun "the second run has no awareness of the first" (#1791), "wireframes never make it to plan-design-review" (#340), a "minimal diff" preference "biases reviewers against schema normalization" (#1048), and the YC tier's reasoning "is hidden from the user" (#513). Now a citation to a missing file or line fails the review, a rerun leaves one live task list, design review rates the plan against the approved wireframe, storage advice follows the data's queries, and the closing names the signals it counted.Blast radius
The change touches the four plan-review skills, /office-hours, and three bins (
gstack-plan-reality,gstack-office-hours-review, the newgstack-tasks); /autoplan's aggregator in autoplan/ is not edited. That is safe becausegstack-tasks supersedeonly renames the reconciled earlier list tosuperseded-…, outside the aggregator's existingtasks-<phase>-*.jsonlglob, andpriorstill reads the oldertasks-<phase>-<ts>.jsonlnames, which I read inlib/tasks-prior.tsand proved intest/tasks-prior.test.tsand the paid rerun case (script ran).Approvals
Source: gstack-approvals record for garrytan/gsta228-planning-wave (display only; not an approval citation).
Summary
Planning reviews used to trust the plan's own words, so a design doc with a made-up path or flag could pass at 8/10. They now check facts the way a reviewer would:
gstack-plan-reality checkopens everyfile:linereceipt and fails the phase on a missing file, a line past the end, line 0 or a reversed range. The /office-hours spec reviewer reads the repository, checks a flag withgstack-office-hours-review probe --help <command>and writes out the arithmetic behind any number it questions. F2 (the plan-review side of the same check) lives in the shared review section./plan-eng-reviewRuns Produce Multiple Unreconciled Task Sets #1791): a plan-review rerun reads the last list withgstack-tasks prior, writes carry, done and dropped rows to a file, andgstack-tasks addwrites one list and supersedes the old one. An empty list means "ran, no findings", andaddrefuses (TASKS_SUPERSEDE_REFUSED) while an earlier task is neither carried nor closed.Wireframe:line, and /plan-design-review finds the design doc and rates the plan against that image.Security read
The probe is the one piece that runs commands, so it is fenced in code (
lib/office-hours-probe.ts), not prose: it runs only--help(retrying-hwhen a non-gstack CLI prints no usage) for gstack bins that handle--helpand a fixed list of common CLIs (git, gh, bun, node, npm, pnpm, yarn, jq, rg, python3, uv, go, cargo, make, docker, claude, codex, gemini). Subcommands are limited to each CLI's built-in ones: one word for git, cargo and npm, up to two for gh, docker, go and uv, none for the rest. It never runs a repository-local path or a relativePATHentry, runs with an environment that keeps only HOME, user, locale and toolchain locations (API keys and tokens are dropped), and refuses everything else withOFFICE_HOURS_PROBE_REFUSED. It makes no network calls of its own, adds no dependency and does not touch.github/workflows, setup, install or upgrade scripts. No outside contributor code was used; the #1048 reporter's patch was read as text only and not carried over.Test Coverage
New tests:
test/tasks-prior.test.ts(15),test/office-hours-probe.test.ts(11),test/plan-reality-receipts.test.ts(8),test/planning-wave-prose.test.ts(5, two fromtest.each), and the paidtest/skill-e2e-planning-wave.test.ts(4 cases). Existing tests extended:test/plan-reality.test.tsand the module and selection lists the new files belong in.Regression proof for G2 (failing first): the paid
planning-wave-tasks-reruncase fails at main (one_live_list, prior_superseded, carried_open_task and done_task_disposed all false) and passes on this branch with all six scores true. Regression proof for G1: the shot above, main passes a missing-file and past-the-end receipt with exit 0, this branch exits 1.Tests ran: free 24683 (remote pregate on tree e8536b2dc123, 0 failed, $0.09, VM destroyed)
Pre-Landing Review
Pass 1 (specialist batch plus red-team) and two fix-checks, then the adversarial pass and a cross-family outside voice (gpt-6.1-sol), since this PR adds a command runner and publishes eval numbers. Fixed: the probe ran
uv run/docker runtargets and gstack bins that ignore argv with the full environment (now per-CLI subcommand lists,--help-handling gstack bins only, and an environment without keys);addcould drop an undecided earlier task (now refused); detached HEAD stamped rowsunknown; same-second lists could overwrite each other; line 0, reversed ranges, dangling links and paths through files crashed or passed the receipt check; relativePATHentries were probed.REVIEW_LOOP: passes=1 blocking_found=3 deferred=0 noted=2 fixed=9 scope=frozen fix_checks=2 dispatches=4
Gate edits (listed by hand at this head):
test/fixtures/skill-md-size-allowlist.jsonlowers 27 size pins and raises none;test/fixtures/module-size-ratchet.jsonadds thelib/result-codes-plan.tssplit fromlib/result-codes.ts;test/eng-finding-retry-budget.test.tscounts the new e2e file;test/gstack-doctor.test.ts,test/plan-tune-cathedral.test.tsandtest/timeline-stop-hook-slug.test.tsadd the new result-codes file to their module lists. No threshold, trial count or skip changed.Outside review: ran (gpt-6.1-sol); its range finding (
src/a.ts:999-1and line 0 passing) is fixed in 37006b4.Review notes
Noted, not fixed (none meets the blocking floor):
.gstack/tmp/tasks-<phase>-rows.jsonl.addoutside a git repo reads rows from the state directory.priorwrites its pending marker in modes where the storage policy forbids writes, and the marker write is not atomic.--help.manline in one probe test.Eval Results
Preregistered in the plan (same model for every arm; B = this branch, M = main at the merge base, N = no gstack, a plain prompt with the same input).
Honest read: G2 is the only case where the branch beats both arms. On planted facts, schema and closing signals today's model already does as well without the new prose, so the gain there is the bin-enforced receipt check (deterministic, shown above), not a measured eval lift.
No-loss replay of the cases the diff selects, on the branch: plan-eng-review, plan-ceo-review, plan-design-review-plan-mode, plan-design-with-ui-scope, plan-review-report and office-hours-design-draft PASS.
plan-eng-review-artifactFAILs on this branch, on its one allowed rerun, and on main at the merge base with the same assertion, so it is a pre-existing red, not a regression from this PR.Plan Completion
All approved items shipped (uc1b, d1b, d2a, d3b, d4b, d5b, p1b). Deviations from the plan, each recorded in the decision trail:
lib/result-codes-plan.tsto keeplib/result-codes.tsunder the module-size ratchet.gstack-tasksuses a rows file the agent writes and has no separatestartcommand;adddoes the validation and the supersede.Deferred from the issues, by the approved plan: #340 point 3 (headless "present and iterate") and #973's three-model severity merge and npm registry lookups.
Issues
Fixes #340
Fixes #513
Fixes #973
Fixes #1048
Fixes #1791
Verification Results
CI green at 981cc53 (Free Tests run 41263307721, Windows Free Tests run 41263307894). Remote pregate on tree e8536b2dc123: PASS with 0 failed; macOS and Windows obligations cleared with those CI runs. Typecheck and the test-code type ratchet green (no new diagnostics).
TODOS
No TODO items completed in this PR.
Documentation
Status: updated. One factual correction to
docs/troubleshooting.md; no blockers.Scope: base 5b7b095, head 2b60e98 on
garrytan/gsta228-planning-wave. The candidate had no staged, unstaged or untracked content. The audit covered the 43 committed files, mainly the plan-reality receipt check,gstack-office-hours-review probe,gstack-tasksand the new result codes. I read the new troubleshooting entries and part ofdocs/capy-install.mdin full. The other candidate docs were checked by grep for the new bins and codes only.Documentation health
lib/office-hours-probe.ts)Coverage debt:
gstack-tasks(prior,add,supersede) has reference coverage only indocs/troubleshooting.md, plus its--helptext, with no how-to or tutorial. The probe--helpcommand and the Wireframe: line handoff between /office-hours and /plan-design-review have no docs outside skill prose and the changelog fragment. Consider running /document-generate for these.Diagram drift: none found; the candidate adds no architecture diagrams and I found none affected.
Regeneration: none required by this edit;
docs/troubleshooting.mdis authored, not generated.Test plan
UBI_OWNER=gsta228 gstack-pregate --stage tests --remote --spend-cap 2 --timeout 2700 --allow-repo-commands: 24683 tests, 0 failed on tree e8536b2dc123bun run typecheckandbun run typecheck:test: zero product errors, no new test diagnostics🤖 Generated with Claude Code