Skip to content

v1.91.101.0 Close the field wave's residual gaps (v1.91.101.0) - #3173

Merged
capy-ai[bot] merged 5 commits into
mainfrom
capy/v1911010-fix-field-wave-residuals
Oct 14, 2026
Merged

capy-ai[bot] merged 5 commits into
mainfrom
capy/v1911010-fix-field-wave-residuals

Conversation

@garrytan

Copy link
Copy Markdown
Owner

Stamp-at-merge PATCH under GSTA-25 (STAMP_VERSION=1.91.101.0, base main 15ebd85). Closes the gaps that running v1.91.96.0–v1.91.100.0 (the field wave, docs/designs/GSTACK_FIELD_WAVE_2026_10_12.md) on a Capy machine left open. Every item lands with a test that failed first on 1.91.100.0.

Gate answers

  • gstack-autoplan answer <rev> all resolves only the items the reviewers recommend keeping. An item recommended b stays pending with GATE_PENDING: <ids> unanswered … and the render line all does not answer <id> (recommended b changes the plan); reply <id>a or <id>b yourself; all except <id>b still works (lib/gate-list.ts heldFromAll/resolveAll/pendingHint, lib/autoplan-gate.ts).
  • answer takes --by <human|agent:<id>>. An unattended run refuses an answer without it (ANSWER_BY_REQUIRED, exit 3, troubleshooting anchor); decisions.jsonl rows carry answered_by, and the owner brief's answer command includes --by human.
  • openPhase passes every closed predecessor's consensus to every later phase (DX and Design now see CEO's, not only Eng), so a reopened CEO decision reaches the phases that depend on it (lib/autoplan-run.ts).

Shared installation under concurrent sessions

  • New bin/gstack-lease (touch|live|list): an install-scoped lease at <git dir>/gstack-leases/<harness pid> (GSTACK_LEASE_DIR overrides), pruned after 120 minutes. bin/gstack-skill-start touches it on every start and the /autoplan driver renews it on every mutating command (touchInstallLease, fail-open). bin/gstack-harness-pid.sh is the one harness-pid derivation both writers source; the if [ -z "$PARENT_PID" ] form test/docsync-lifecycle-interface.test.ts pins is kept.
  • bin/gstack-upgrade refuses with UPGRADE_BUSY (exit 3) while a lease whose pid is alive and outside its own process chain exists; GSTACK_UPGRADE_FORCE=1 overrides. New --ff-only-no-reinstall mode for a caller about to run the installer itself.

Always current on Capy

  • GSTACK_MIN_REVISION is the floor (trailer fails, frozen bootstrapper fast-forwards below it). Above it, bin/gstack-capy-session fast-forwards any clean, unpinned checkout behind origin at install-mode session start via gstack-upgrade --ff-only-no-reinstall, prints SELF_UPGRADE: done <old> -> <new> and re-execs the new checkout's wrapper so the install runs from the new revision; a refusal prints SELF_UPGRADE: skipped (<reason>) and the session continues. --check never moves the checkout and prints gstack-capy-session: behind origin/<branch>: … fix: …. GSTACK_CAPY_SELF_UPGRADE=off disables only this; GSTACK_CAPY_AUTO_UPGRADE=0 disables every fast-forward. The frozen bootstrapper is untouched.
  • capy/skill/gstack/SKILL.md, capy/support.env, docs/capy-install.md describe the floor-vs-tip split; the vendored SKILL.md stays under its context-budget ceiling.

Bun honesty

  • lib/autoplan-prompts.ts, lib/restamp.ts (two sites) and bin/gstack-gbrain-sync.ts spawn process.execPath instead of the PATH bun. lib/autoplan-admission.ts keeps probing the PATH Bun on purpose and is the one exemption in the new rule test.

Tests

  • New test/autoplan-residuals.test.ts (the all rule, carried consensus, the process.execPath rule over lib/ and bin/*.ts, --by), test/gstack-lease.test.ts; UPGRADE_BUSY and SELF_UPGRADE: cases in test/gstack-upgrade-bin.test.ts and test/capy-skill-wrapper.test.ts; --by human added to existing answer calls.
  • The test preload (test-setup.ts), test/helpers/hermetic-env.ts, test/helpers/capy-host.ts and the remaining scrubbed-env fixtures hand every spawned bin a per-run GSTACK_LEASE_DIR, so no test leases the developer's checkout (verified: .git/gstack-leases empty after the quick suite). Both new test files are auto-excluded from the Windows subset by detectWindowsFragility.

Verification

bun run typecheck clean; typecheck:test ratchet 865 known, none new; gstack-regen check --allow-repo-commands fresh; format:cso:check clean; context-budget ratchet green; secret scan 0 high. bun run test:quick on the integrated tree fails only in test/cso-witness.test.ts, test/gstack-retro-metrics.test.ts and test/gstack-docs-candidate.test.ts, each of which fails identically on clean main 15ebd85 on this machine (baseline run), so CI is the arbiter for those.

Open in Capy

garrytan and others added 2 commits October 13, 2026 22:28
- `all` leaves items recommended b pending; answer --by names the author
  (ANSWER_BY_REQUIRED unattended), decisions.jsonl records answered_by
- every later autoplan phase carries every closed predecessor's consensus
- install-scoped workflow lease (bin/gstack-lease, bin/gstack-harness-pid.sh);
  gstack-upgrade refuses UPGRADE_BUSY while a foreign live lease exists
- bin/gstack-capy-session fast-forwards a checkout behind origin above the
  GSTACK_MIN_REVISION floor (SELF_UPGRADE: lines); --check reports it
- lib/ and bin/*.ts spawn process.execPath, never the PATH bun
- tests hand every spawned bin a per-run GSTACK_LEASE_DIR

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>
@trunk-io

trunk-io Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@github-actions github-actions Bot changed the title Close the field wave's residual gaps (v1.91.101.0) v1.91.101.0 Close the field wave's residual gaps (v1.91.101.0) Oct 13, 2026
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS

[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 108/108 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 9m13s · cost $90.62 known + 54 of 132 trial(s) cost unknown

107 executed, 14 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $90.62 rule/judge cost | reconcile exit: 0

Profile: pr / mode full-fallback; selected behaviors: 108, judges: 24. Deferred to scheduled/release coverage: 137 behaviors and 0 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Full gate restored by:

  • capy/support.env (real unknown dependency): register capy/support.env under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers
  • test-setup.ts (real unknown dependency): register test-setup.ts under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers

Derived dependents (scripts/pr-dependencies.ts):

  • bin/gstack-autoplan: 81 case(s), 3 judge(s)
  • bin/gstack-doctor-components.sh: 244 case(s), 24 judge(s)
  • bin/gstack-lease: 244 case(s), 24 judge(s)
  • bin/gstack-upgrade: 244 case(s), 24 judge(s)
  • lib/autoplan-admission.ts: 81 case(s), 3 judge(s)
  • lib/autoplan-export.ts: 81 case(s), 3 judge(s)
  • lib/autoplan-gate.ts: 81 case(s), 3 judge(s)
  • lib/autoplan-prompts.ts: 81 case(s), 3 judge(s)
  • lib/autoplan-run.ts: 81 case(s), 3 judge(s)
  • lib/gate-list.ts: 244 case(s), 24 judge(s)
  • lib/headless-artifacts.ts: 244 case(s), 24 judge(s)
  • lib/owner-brief.ts: 81 case(s), 3 judge(s)
  • lib/restamp.ts: 244 case(s), 24 judge(s)
  • lib/result-codes.ts: 244 case(s), 24 judge(s)
Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
e2e/skill-e2e-workflow 4/4 0 4 0 ✅ $3.15
e2e-deploy/skill-e2e-deploy--land-and-deploy-workflow 1/1 0 1 0 ✅ $1.65
e2e-safety-codex-consult/skill-e2e-safety-codex-consult 1/1 0 1 0 ✅ $0.99
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-before 1/1 0 1 0 ✅ $1.04
e2e-review-attribution/skill-e2e-review-attribution 3/3 0 3 0 ✅ $0.93
e2e/skill-e2e-shared-libs--shared-libs-review-lifecycle 1/1 0 1 0 ✅ $2.3
e2e-qa-workflow/skill-e2e-qa-workflow--qa-quick 1/1 0 1 0 ✅ $1.38
e2e/skill-e2e-shared-libs-paths--shared-libs-review-prior-coverage 1/1 0 1 0 ✅ $2.56
e2e/skill-e2e-ship-skip 1/1 0 1 0 ✅ $0.63
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $2.1
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $2.67
e2e-qa-workflow/skill-e2e-qa-workflow--qa-only-no-fix 1/1 0 1 0 ✅ $1.61
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $1.86
e2e/skill-e2e-shared-libs--shared-libs-review-revalidation 1/1 0 1 0 ✅ $4.62
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-recovery 1/1 0 1 0 ✅ $0.99
e2e-review/skill-e2e-review 2/2 0 2 0 ✅ $1.12
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $1.66
e2e-skillify/skill-e2e-skillify 3/3 0 3 0 ✅ $2.48
e2e/skill-e2e-shared-libs-paths--shared-libs-review-path-eligibility 1/1 0 1 0 ✅ $4.1
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-current 1/1 0 1 0 ✅ $3.43
llm-judge/skill-llm-eval 24/24 0 10 14 ✅ $0.6
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $0.81
e2e-deploy/skill-e2e-deploy--setup-deploy-workflow 1/1 0 1 0 ✅ $0.52
e2e-review-army/skill-e2e-review-army--review-army-perf-n-plus-one 1/1 0 1 0 ✅ $1.04
e2e/skill-e2e-shared-libs-paths--shared-libs-review-index-flags 1/1 0 1 0 ✅ $2.46
e2e/skill-e2e-investigate-owned-completion 1/1 0 1 0 ✅ $0.21
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-late-result 1/1 0 1 0 ✅ $0.97
e2e-review-army/skill-e2e-review-army--review-army-json-findings 1/1 0 1 0 ✅ $0.22
e2e-deploy/skill-e2e-deploy--benchmark-workflow 1/1 0 1 0 ✅ $0.59
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $1.86
e2e-learnings/skill-e2e-learnings 1/1 0 1 0 ✅ $0.26
e2e-deploy/skill-e2e-deploy--land-and-deploy-review-gate 1/1 0 1 0 ✅ $1.47
e2e-review-army/skill-e2e-review-army--review-army-migration-safety 1/1 0 1 0 ✅ $1.16
e2e/skill-e2e-shared-libs--shared-libs-read-only 1/1 0 1 0 ✅ $0.63
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $1.24
e2e-deploy/skill-e2e-deploy--land-and-deploy-first-run 1/1 0 1 0 ✅ $0.97
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $1.44
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $2.83
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $1
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 1/1 0 1 0 ✅ $1.86
e2e-retro/skill-e2e-retro 1/1 0 1 0 ✅ $1.12
e2e-qa-functional/skill-e2e-qa-functional 2/2 0 2 0 ✅ $2.52
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $2.13
e2e-cso/skill-e2e-cso 1/1 0 1 0 ✅ $1.92
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-store 1/1 0 1 0 ✅ $3.55
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-completion 1/1 0 1 0 ✅ $3.29
e2e-design/skill-e2e-design--design-review-detector-shim-dom 1/1 0 1 0 ✅ $0.63
e2e/skill-e2e-shared-libs--shared-libs-unsupported-git 1/1 0 1 0 ✅ $0.59
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $1.19
e2e-review-army/skill-e2e-review-army--review-army-quality-score 1/1 0 1 0 ✅ $0.34
e2e-safety-ship-evidence/skill-e2e-safety-ship-evidence 1/1 0 1 0 ✅ $0.49
e2e-hermetic/skill-e2e-hermetic-canary 2/2 0 2 0 ✅ $0.02
e2e-design/skill-e2e-design--design-review-plugin-handoff 1/1 0 1 0 ✅ $0.49
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.47
e2e-browse/skill-e2e-bws 6/6 0 6 0 ✅ $0.87
e2e-third-party-actions/skill-e2e-third-party-actions 5/5 0 5 0 ✅ $1.18
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.53
e2e-session-intelligence/skill-e2e-session-intelligence 4/4 0 4 0 ✅ $0.99
e2e-safety-pair-agent/skill-e2e-safety-pair-agent 1/1 0 1 0 ✅ $0.29
e2e-design/skill-e2e-design--design-review-detector-shim 1/1 0 1 0 ✅ $0.37
e2e-qa-workflow/skill-e2e-qa-workflow--qa-bootstrap 1/1 0 1 0 ✅ $0.27
e2e-triage/skill-e2e-triage 1/1 0 1 0 ✅ $0.35
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.68
e2e-review-army/skill-e2e-review-army--review-army-delivery-audit 1/1 0 1 0 ✅ $0.37
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.55
e2e/skill-e2e-ship-hook-refresh 1/1 0 1 0 ✅ $0.26
e2e/skill-e2e-investigate-owned-termination 2/2 0 2 0 ✅ $0.54
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-launch-failure 1/1 0 1 0 ✅ $0.47
e2e-deploy/skill-e2e-deploy--canary-workflow 1/1 0 1 0 ✅ $0.37
e2e-design/skill-e2e-design--plan-design-review-no-ui-scope 1/1 0 1 0 ✅ $0.37
Fail-closed reconciliation
s  test/skill-e2e-qa-callers.test.ts#ship-exploratory-small-cli
  slice 12  passed            157s  test/skill-e2e-shared-libs-paths.test.ts#shared-libs-review-index-flags
  slice 12  passed            120s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-late-result
  slice 12  passed             73s  test/skill-e2e-deploy.test.ts#benchmark-workflow
  slice 12  passed            147s  test/skill-e2e-review-army.test.ts#review-army-perf-n-plus-one
  slice 12  passed            142s  test/skill-e2e-plan-ceo-plan-mode.test.ts
  slice 12  passed             45s  test/skill-e2e-investigate-owned-completion.test.ts
  slice 12  passed             23s  test/skill-e2e-review-army.test.ts#review-army-json-findings
  slice 13  passed            115s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-asset
  slice 13  passed            100s  test/skill-e2e-plan-devex-plan-mode.test.ts
  slice 13  passed             67s  test/skill-e2e-safety-ship-evidence.test.ts
  slice 13  passed            123s  test/skill-e2e-design.test.ts#design-review-detector-shim-dom
  slice 13  passed             93s  test/skill-e2e-shared-libs.test.ts#shared-libs-unsupported-git
  slice 13  passed             78s  test/skill-e2e-office-hours-auto-mode.test.ts
  slice 13  passed             73s  test/skill-e2e-design.test.ts#design-review-plugin-handoff
  slice 13  passed             64s  test/skill-e2e-bws.test.ts
  slice 13  passed             57s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-marker
  slice 13  passed             48s  test/skill-e2e-review-army.test.ts#review-army-quality-score
  slice 13  passed              6s  test/skill-e2e-hermetic-canary.test.ts
  slice 14  passed             60s  test/skill-e2e-third-party-actions.test.ts
  slice 14  passed             74s  test/skill-e2e-plan-tune.test.ts
  slice 14  passed             67s  test/skill-e2e-triage.test.ts
  slice 14  passed             84s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-timeout-unsettled
  slice 14  passed             56s  test/skill-e2e-ask-user-question-format-compliance.test.ts
  slice 14  passed             84s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-launch-failure
  slice 14  passed             96s  test/skill-e2e-session-intelligence.test.ts
  slice 14  passed             56s  test/skill-e2e-ship-hook-consent.test.ts
  slice 14  passed             39s  test/skill-e2e-investigate-owned-termination.test.ts
  slice 14  passed             48s  test/skill-e2e-design.test.ts#design-review-detector-shim
  slice 14  passed             47s  test/skill-e2e-deploy.test.ts#canary-workflow
  slice 14  passed             45s  test/skill-e2e-ship-hook-refresh.test.ts
  slice 14  passed             39s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 14  passed             36s  test/skill-e2e-review-army.test.ts#review-army-delivery-audit
  slice 14  passed             42s  test/skill-e2e-safety-pair-agent.test.ts
  slice 14  passed             62s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 15  passed             47s  test/skill-e2e-learnings.test.ts
  slice 15  passed             46s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 107 executed, 14 reused; 121 passed, 0 failed, 0 manual accepted (unscored; no score-cache credit) (121 attempt records from 70 collectors; every record counts)
[test:paid] deselected testcases, zero credit (307):
[test:paid]    293  sibling case of a case shard (its own shard runs it)
[test:paid]      8  periodic-tier case (this lane runs gate)
[test:paid]      6  Bun hook placeholder of a skipped describe block (not a test)
[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 108/108 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 9m13s · cost $90.62 known + 54 of 132 trial(s) cost unknown
[test:paid] report: every planned shard accounted and passed

Sliced 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.

garrytan and others added 2 commits October 14, 2026 17:09
ship-exploratory-plan-checks failed in the PR gate: the caller read
qa/sections/exploratory.md and started the smoke guard, tests and
captures without reading scope.md or system-functional.md. The
preflight is now an ordered list (entrypoint, scope, each listed
method, each in its own response) and names the guard start, captures
and plan checks as probes that wait for them. Review stays lazy (no
method file is named in the caller); parity size caps hold.

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>
@capy-ai
capy-ai Bot merged commit 47d639a into main Oct 14, 2026
67 checks passed
@capy-ai
capy-ai Bot deleted the capy/v1911010-fix-field-wave-residuals branch October 14, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant