Repository navigation
v1.91.73.0 feat(ship): repo ship policy, gstack-restamp stamp-at-merge, tree receipt, evidence bundle, ship receipt (multi-agent wave C-stamp) - #3118
Merged
Conversation
…nd, findings-derived review log, gate list Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tended-artifact Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # lib/review-evidence.ts # test/fixtures/module-size-ratchet.json # test/helpers/carve-guards.ts
…e, tree receipt, evidence bundle, ship receipt Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…es, C-stamp tests leave the Windows subset - scripts/pr-dependencies.ts: lib/result-codes.ts joins SELECTION_DATA_MODULES; its fix: prose names commands a person reruns, not files the module consumes (test/pr-dependencies.test.ts traced review cases through it to bin/gstack-next-version) - ship/sections/pr-body.md.tmpl: gstack-ship-receipt write reads --gate/--ci from agent-written .gstack/tmp/ship-*.json files and --spend-usd from the allowlisted <spend-usd> placeholder (generated-bash lint: no free text in commands) - scripts/lib/windows-curation.ts: the five C-stamp test files spawn bin/ shebang scripts through test/helpers/restamp-fixture.ts, which the source scan misses Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tamp Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md # VERSION # agents-digest/gstack-AGENTS.md # bin/gstack-doctor-components.sh # docs/troubleshooting.md # lib/result-codes.ts # package.json # test/fixtures/module-size-ratchet.json
The workflow judge (eval-slices 3, median 3/4) found pr-body's gstack-ship-receipt command demanding a tree receipt, CI counts and a spend figure no earlier step produces, with RECEIPT_INVALID halting publication. The command now takes only Step 16 stage 4's lane counts (file-written JSON); --receipt is added only when Step 16 wrote .gstack/tmp/tree-receipt.json; RECEIPT_INVALID says to fix the named input file and rerun. The unused <spend-usd> allowlist entry is removed. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Contributor
E2E Evals: ✅ PASS106 executed, 15 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $91.76 rule/judge cost | reconcile exit: 0 Profile: pr / mode Full gate restored by:
Derived dependents (scripts/pr-dependencies.ts):
Rule and judge shards
Fail-closed reconciliationSliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry. |
levi85
pushed a commit
to levi85/gstack
that referenced
this pull request
Oct 14, 2026
…rge, tree receipt, evidence bundle, ship receipt (multi-agent wave C-stamp) (garrytan#3118) * v1.91.70.0 feat(unattended): artifact contract, unattended session kind, findings-derived review log, gate list Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * v1.91.73.0 feat(ship): repo ship policy, gstack-restamp stamp-at-merge, tree receipt, evidence bundle, ship receipt Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(ci): result-codes is selection data, receipt counts come from files, C-stamp tests leave the Windows subset - scripts/pr-dependencies.ts: lib/result-codes.ts joins SELECTION_DATA_MODULES; its fix: prose names commands a person reruns, not files the module consumes (test/pr-dependencies.test.ts traced review cases through it to bin/gstack-next-version) - ship/sections/pr-body.md.tmpl: gstack-ship-receipt write reads --gate/--ci from agent-written .gstack/tmp/ship-*.json files and --spend-usd from the allowlisted <spend-usd> placeholder (generated-bash lint: no free text in commands) - scripts/lib/windows-curation.ts: the five C-stamp test files spawn bin/ shebang scripts through test/helpers/restamp-fixture.ts, which the source scan misses Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(ship): the receipt step names where each input comes from The workflow judge (eval-slices 3, median 3/4) found pr-body's gstack-ship-receipt command demanding a tree receipt, CI counts and a spend figure no earlier step produces, with RECEIPT_INVALID halting publication. The command now takes only Step 16 stage 4's lane counts (file-written JSON); --receipt is added only when Step 16 wrote .gstack/tmp/tree-receipt.json; RECEIPT_INVALID says to fix the named input file and rerun. The unused <spend-usd> allowlist entry is removed. 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>
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.
Multi-agent wave C-stamp (plan:
docs/designs/MULTI_AGENT_WAVE_2026_10_10.md, items C1, C2, C3, C5, C7). Built on main after B-core (#3115) and PR A (#3116); independent of B-runner (#3117) apart from appended blocks inlib/result-codes.ts,docs/troubleshooting.mdand the ratchet fixture, which merge cleanly either way. C-pregate (C4, C6, C8) stacks on this.What a coordinator gets
.gstack/ship-policy.json(lib/ship-policy.ts, schema v1: bump, queue_mode, release_tool + release_outputs, stamp_paths, changelog, mirror, history, preregistration_shas, stamp_sensitive_gates, pr_count, maintainers) read fromorigin/<base>, never the working tree silently (POLICY_SOURCE_UNAVAILABLEon shallow checkouts);bin/gstack-ship-policy init|validate|show-effective|check-history; branch-only policy labeledhead (unreviewed); repo commands only under--allow-repo-commandsor/ship; refusals before any write saynothing written; containment checks on every repo-controlled input.show-effectiveprintsship:consequence lines so the skill prose points at them instead of carrying them. gstack's own policy committed (bump ask,claim-at-open,release_tool: bun scripts/gen-agents-digest.ts).docs/ship-policy.md,.gstack/ship-policy.example.json.bin/gstack-restamp(lib/restamp.ts,lib/changelog-check.ts):--version | --next | --after <pr>; understamp-at-merge--nextis the base's configured version source (lib/version-source.ts) + policy bump withclaims: ignored;--expect-base/--expect-order→ structuredQUEUE_STALE+ recompute command;--aftergate-ahead in a throwaway worktree with.gstack/tmp/gate-ahead.jsoncarrying predecessor head and evidence branch key, PR history untouched; release-tool contract (staging worktree, enumerated allowed outputs →RESTAMP_OUTPUT_OUTSIDE_ALLOWED, pre/postimages,RESTAMP_CONFLICTon a later user edit); journal at.gstack/tmp/restamp-journal.jsonwith resume/rollback and injected failures after every stage;--dry-run,--json,--queue-modedefaulted from policy;MERGE_CONDITION: sha=and anext:line for/ship. Stamp rewriting is line-provenance based so a dependency pin equal to the old version is never touched.bin/gstack-tree-receipt(lib/tree-receipt.ts): committed heads only; hunk-level classification with per-file-type rules (version file, manifest version, lockfile rootversionkeys only, CHANGELOG heading move, exact(was X)/since: X/vX); stamp-sensitive lanes alwaysrerun;TREE:andgate-reuse:verdicts with fix clauses;PREDECESSOR MOVED … (RESTAMP_PREDECESSOR_MOVED).gstack-evidence bundle(lib/evidence-bundle.ts): comparison material, required-lane manifest, executed selections, run URLs, outcomes, hashes, execution identity (runtime, normalized lockfile hashes, CI workflow tree, runtime pins, runner image), verified vs imported lanes, refuses reuse on unknown identity, readable from a fresh clone with an empty state root.gstack-evidence ancestorfor preregistration SHAs.bin/gstack-ship-receipt write|read --pr|census(lib/ship-receipt.ts): fenced schema-versioned receipt first in the PR body, validated bygstack-artifact validate --as ship-receipt;censusdedups by run/thread against a cohort file →adoption=n/m.check-history --plan merge|squash|rebaserefuses rewrite plans underhistory: merge-only; the receipt records preregistration and history./shipStep 3 (policy + history lines), Step 12 (stamp-at-merge replaces the manual items;bump patchnever asks), Step 16 stage 4 (receipt decides reuse per lane;--force-gate <reason>is the coordinator's),pr-bodyopens with the receipt. Ship union bytes +462 (1,937 headroom), skeleton +1 (4 under cap); four ship goldens regenerated.Validation
typecheck,typecheck:test(no new),gen:skill-docs --host allidempotent, parity, module-size/state-root/spawnsync/troubleshooting-anchors/headless-artifacts/egress-wiring/free-fixtures/prune-stale ratchets, ship-*, host-config goldens, skill-e2e-ship-section-loading, evidence and doctor suites: green (1,166 + 836 in the two final batches). New:gstack-ship-policy12,gstack-restamp-queue19 (three PRs reordered twice with zero manual edits, injected failure after every stage, concurrent-edit conflict, squash-history gate-ahead,QUEUE_STALE, release tool outside its allowed set, metadata-only lockfile, version-source shapes),restamp-command-boundary9,tree-receipt-stamp-sensitive10 (dependency-pin negative fixture),evidence-bundle-portability7,gstack-ship-receipt5.test:quickleftovers (Chromium, PTY, CSO core, one Bun 1.3.14 probe) reproduce on the unmodified merge base.Deferred / plan corrections
mirroris parsed and validated but its stage printsskipped (no mirror in policy)(tier 2). Plan C3'sgstack-wtreefingerprints are redundant with committed-heads-only comparison (receipt reports tree ids). Plan C1'sgstack-version-bump classify → bumpPolicywould grow a frozen bin; the bump reaches Step 12 via theship: bump …line. Thestamp_pathsexact-pattern rule needed line provenance to survive reorders (documented indocs/ship-policy.md).Version 1.91.73.0 (PATCH; bumped past #3117's 1.91.72.0).