Skip to content

plan-ceo-review gate: hold the final stop until ranked Findings are written (GST-1461) - #4047

Merged
capy-ai[bot] merged 11 commits into
mainfrom
capy/gst-1461-ceo-review-gate
Nov 5, 2026
Merged

capy-ai[bot] merged 11 commits into
mainfrom
capy/gst-1461-ceo-review-gate

Conversation

@garrytan

@garrytan garrytan commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 4047,
  "head": "0a6e66c9e851a60250010dd0caa8fc00cd8ab928",
  "version": "1.96.0.0",
  "base": "main",
  "gate": {
    "gates": {
      "pass": 176,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "9340ccf599e3c6dbb550ca2cef5b24a5a36aefa3",
  "product_patch_id": "91c132cada9e443c3fcbb347ef83a3f7d5c96bd6",
  "gstack_version": "1.96.0.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 694,
    "rules": "70895942bb8a8ee2",
    "base": "9e809ab5b12901c6078082502f55f58065e2591f",
    "registry": "9e809ab5b12901c6078082502f55f58065e2591f",
    "gate_scan": {
      "tagged": 0,
      "head": "0a6e66c9e851a60250010dd0caa8fc00cd8ab928"
    },
    "reasons": [
      "risk:money",
      "risk:security",
      "runtime=694"
    ],
    "risk": [
      "money",
      "security"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @9340ccf599e3 (7 checks, current for 0a6e66c9e851)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/42111123397/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/42111123397/attempts/1",
    "windows-setup-e2e.yml/windows-setup: https://github.com/garrytan/gstack/actions/runs/42110889790/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/42110889765/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=9340ccf599e3 tests=35808 skipped=111 runs=42111123397/1 profiles=ci-reuse/free-tests heads=0a6e66c9e851 verified=2026-11-05T21:24:15.443Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md and changelog.d against e64c3a0..dab8574"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 8,
    "deferred": 0,
    "noted": 6,
    "fixed": 9,
    "scope": "diff-plus-blocking",
    "fix_checks": 1,
    "rounds": 3,
    "ledgers_read": 5,
    "unbound": 4,
    "dispatches": {
      "specialist": 2,
      "red-team": 2
    }
  },
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "30e6bce187be0d59",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "91c132cada9e443c3fcbb347ef83a3f7d5c96bd6",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  },
  "carry": {
    "from": "723671b3f050a2d212b849118101cb2549f3dd42",
    "reason": "no content change",
    "product_patch_id": "91c132cada9e443c3fcbb347ef83a3f7d5c96bd6",
    "changed_paths": [],
    "merge_commits": 0,
    "range_diff": "1:  c3d563596 =  1:  c3d563596 investigate gate: undo gated commits on branches behind the baseline (GST-1461 fc#1)\n 2:  ba51e1cb4 =  2:  ba51e1cb4 plan-ceo-review gate: hold Stop/SubagentStop until ranked Findings are written (GST-1461)\n 3:  368656001 =  3:  368656001 test: unit-test rankedRisksGap so lib/ceo-review-gate.ts has a pregate lane (GST-1461)\n 4:  03c3b898b =  4:  03c3b898b fix: plan-ceo-review gate never names or accepts a file inside a skills/ tree (GST-1461)\n 5:  9352416bc =  5:  9352416bc fix: gstack-skill-gates settings quotes hook paths for the shell (GST-1461 ov#5)\n 6:  ebf880cdd =  6:  ebf880cdd fix: investigate gate restores raw bytes, index and mode; attributes come from the baseline (GST-1461 ov#1-4)\n 7:  39b70bbe9 =  7:  39b70bbe9 fix: investigate gate baseline includes staged-only changes so a rollback keeps them (GST-1461)\n 8:  36c6f05ed =  8:  36c6f05ed fix: plan-ceo-review gate judges skills/ paths from the repo root and filters the repo scan too (GST-1461)\n 9:  ab4c5b6f7 =  9:  ab4c5b6f7 docs: skill-gates restore modes and skills/ exclusion match the code (GST-1461)\n10:  723671b3f = 10:  723671b3f docs: changelog entry covers the investigate gate rollback fixes (GST-1461)\n -:  --------- > 11:  0a6e66c9e ci: retrigger pull_request checks after stale dirty state",
    "covers": [
      "pre-landing review",
      "adversarial review",
      "gate integrity",
      "documentation audit"
    ],
    "reruns": [
      "CI at head (gstack-ship-queue ready requires it); test and helper code changed since the reviewed head runs there unreviewed"
    ],
    "ancestry": "linear"
  }
}
{"head":"dab85740f824c0f51d146368b913d8d29b213a5c","version":"1.96.0.0","gstack_version":"1.96.0.0","review_loop":{"passes":2,"blocking_found":8,"deferred":0,"noted":6,"fixed":9,"scope":"diff-plus-blocking","fix_checks":1,"rounds":3,"ledgers_read":5,"unbound":4,"dispatches":{"specialist":2,"red-team":2}},"depth":"full"}
{"head":"723671b3f050a2d212b849118101cb2549f3dd42","version":"1.96.0.0","gstack_version":"1.96.0.0","review_loop":{"passes":2,"blocking_found":8,"deferred":0,"noted":6,"fixed":9,"scope":"diff-plus-blocking","fix_checks":1,"rounds":3,"ledgers_read":5,"unbound":4,"dispatches":{"specialist":2,"red-team":2}},"depth":"full"}

What changed

The 8 new gate tests fail at the PR's first head (fbedef8) and pass now

The 8 new gate tests fail at the PR's first head (fbedef8) and pass now: skills/ files never count as the CEO review output, rollbacks restore exact bytes, index and mode, attributes come from the baseline, and hook paths with spaces run.

Before/after as text: The 8 new gate tests fail at the PR's first head (fbedef8) and pass now: skills/ files never count as the CEO review output, rollbacks restore exact bytes, index and mode, attributes come from the baseline, and hook paths with spaces run
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+ 0 fail
+ 83 pass
+Ran 83 tests across 3 files. [22.66s]
- 75 pass
- 8 fail
-(fail) Stop is blocked until the output file ranks the top risks > a repo skills/ file holding a sample Findings list does not release the gate
-(fail) Stop is blocked until the output file ranks the top risks > a skill file read after the plan is never named as the place to write, and a write into a skills tree does not release
-(fail) a rollback restores bytes, index and mode exactly, and reads attributes from the baseline > a file clean at the baseline keeps its own permissions (ov#3)
-(fail) a rollback restores bytes, index and mode exactly, and reads attributes from the baseline > a file staged at the baseline gets its staged entry back, not HEAD (ov#2)
-(fail) a rollback restores bytes, index and mode exactly, and reads attributes from the baseline > a new worktree .gitattributes cannot mark source generated (ov#4)
-(fail) a rollback restores bytes, index and mode exactly, and reads attributes from the baseline > a rejected edit that was staged leaves the index at the baseline too (ov#2)
-(fail) a rollback restores bytes, index and mode exactly, and reads attributes from the baseline > two dirty files that differ only in line endings keep their own bytes (ov#1)
-(fail) settings > a root containing a space: each command still runs its shim through sh -c
-Ran 83 tests across 3 files. [21.30s]
 

Why

GST-1461 asked for opt-in hooks that hold the one step each skill exists for, because the skill text alone doesn't: a /plan-ceo-review run can end without the ranked top risks that are its whole output. This PR adds that gate. It also fixes the five rollback and install defects the outside voice reproduced on #4045, which GStack Minder ruled ship here rather than hold #4045.

Blast radius

The change touches Claude Code hook registration (setup, gstack-settings-hook, gstack-skill-gates settings), the turn-end logic in lib/skill-contract.ts that /review's contract Stop hook also uses, and the /investigate gate's rollback. Both gates are off by default and every hook error fails open, so a user who never turns a switch on runs none of this code. The contract hook's own tests pass unchanged, and the whole free suite passed at dab8574 (script ran: Free Tests run 42100860275, 35,721 tests; local gate lane 176 tests).

Approvals

Approved: yes (record r-0eca9dabd1bd). The full approval record stays private: this repository is public or its visibility is unknown.

Summary

Was stacked on #4045, which landed on main as 9e809ab; this branch was rebased onto it, so the diff below is against main. This adds the second opt-in enforcement gate from GST-1461 (Garry's E1 pick), closes the git-route gap #4045 lists as known (fc#1), and fixes #4045's five open outside-voice findings (ov#1 to ov#5) under GStack Minder's ruling.

plan-ceo-review gate

When ceo_review_gate is on, a session that ran /plan-ceo-review can't end its final turn (Stop, or SubagentStop for a subagent) until ranked Findings are in its output file. If they're missing, the hook blocks and tells the model where to write them. It picks the first that applies: GSTACK_CEO_REVIEW_OUTPUT, the last .md the run wrote, the last .md plan it read, or a generic "the plan file you reviewed". A file in a skills/ directory, judged from the repository root, never counts and is never named, so the review's own methodology sections can't become its output. Once the Findings are written, the next stop is released. The hook uses #4045's install path, marker format and record:

  • Install: ./setup --ceo-review-gate / --no-ceo-review-gate, env GSTACK_CEO_REVIEW_GATE, gstack-config set ceo_review_gate on, or gstack-skill-gates settings --ceo-review for headless claude -p --settings.
  • Markers: GSTACK_GATE ceo-review-gate fired|blocked|released|exhausted|skipped|error.
  • Default: off.

/review's contract hook already decided when a turn counts as final. That logic now lives in lib/skill-contract.ts (turnEnd, isFinalTurn), and both hooks share it; the contract hook's tests are unchanged and pass. SubagentStop always counts as final. If agent_transcript_path is missing or empty (CLI 2.1.318 sometimes sends it empty), the hook stays silent. If gstack-slug fails, the hook fails open with GATE_SLUG.

gstack-skill-gates report now counts exhausted runs alongside fired, blocked, released, observed and errors.

investigate gate: commits on branches behind the baseline (fc#1 from #4045's review)

Before this change, if the session started on feature and the model ran git checkout main, edited a source file and committed, the gate blocked the commit but kept it. Now the baseline records every local branch's tip. A gated commit on another branch is reset with --soft to that branch's recorded tip, and same-branch amends still go back to the baseline HEAD. A branch with no recorded tip (created after the baseline, or a detached HEAD) goes back to its newest commit from before the baseline. Two tests cover it, a plain commit on main and an amend of main's tip; both fail at e64c3a0 and pass now.

investigate gate: #4045's outside-voice findings (ov#1 to ov#5)

Each fix has a test that failed first (the image above):

  • ov#1 (b433c04): raw-byte backups are keyed by the sha256 of the bytes, not the filtered blob id, so two dirty files that differ only in line endings under *.sh text no longer share one backup.
  • ov#2 (b433c04, 503b963): a restored path's index entry goes back to the baseline's, so edit; git add doesn't leave the rejected code staged. The baseline now also records paths that were only staged, so their staged entry survives a rollback.
  • ov#3 (b433c04): a file clean at the baseline keeps its current permissions; the tree's mode applies only when the file is gone.
  • ov#4 (b433c04): linguist-generated exemptions come from the baseline commit's attributes (a scratch index, since check-attr --source needs git 2.40 and gstack supports 2.39), so a new worktree .gitattributes can't exempt source.
  • ov#5 (264656b): gstack-skill-gates settings quotes each hook path the way setup's gsQuoteCmd does, so a checkout whose path has a space still runs its headless hooks.

Test Coverage

Step 7 audit (audit only, no generation): 17 of 18 changed paths have a test at two stars or better; the weak one is sessionKind()'s fallback when gstack-session-kind fails (returns '' and the turn is treated as not final), proposed and not written.

Tests: 1719 test files before and after (cases added inside existing files).
Tests ran: gates 176

Pre-Landing Review

Full panel at the depth gstack-review-plan printed (REVIEW_DEPTH full: security and money classes, 599 runtime lines). Round 1: batched specialist (testing, security, api-contract, state-machines), red team. Round 2 on the fix range: the same two, then the Step 11 voices on the whole PR diff (native adversarial, outside voice openai/gpt-6.1-sol, targeted money reader). One scoped fix-check on the round-2 fixes under grant a-8df22cddc533.

Blocking findings and what was done:

REVIEW_LOOP: passes=2 blocking_found=8 deferred=0 noted=6 fixed=9 scope=diff-plus-blocking unbound=4 ledgers_read=5 fix_checks=1 dispatches=4

Scope note: the base policy is frozen, which would defer ov#1 and ov#3 (code this PR did not change); the classifier ran with --policy diff-plus-blocking under the Captain's ruling (approval a-b38e0074e735). The 4 unbound trailers are adversarial-native ids the summary does not bind; each duplicates a bound finding.

Rebase onto main (723671b): git range-diff e64c3a0f49a1..dab85740f824 origin/main..723671b3f050 shows all 10 commits identical, and the PR diff is the same 26 files, +1165/−171, so no review round reran. The receipt was rewritten at 723671b under a Captain grant, reusing the dab8574 review records. gstack required a fresh targeted money reader at 723671b because its earlier record was bound to a pre-rebase commit; it returned no findings.

Gate edits: none detected (gstack-review-plan GATE_SCAN: tagged=0 at 3dbc20b)

Outside review: openai/gpt-6.1-sol (host subagent, reasoning high) completed with "request changes" on its two findings; both were fixed and fix-checked.

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL hosts/claude/hooks/ceo-review-gate.ts:60 A CEO review run ends only at the next /plan-ceo-review load, so an abandoned review, a later skill in the same session, or /autoplan's CEO phase (which Reads plan-ceo-review/SKILL.md) can be held at a final stop, up to the 3-block cap.
  • INFORMATIONAL lib/investigate-gate.ts:66 linguist-generated now comes from the baseline commit's .gitattributes, but check-attr still reads $GIT_DIR/info/attributes and core.attributesFile, so a session that writes either can still mark source generated.
  • INFORMATIONAL lib/investigate-gate.ts:73 generatedPaths reads the whole baseline tree into a scratch index on each call (36 ms for 4,883 files); a very large repo could approach the hook deadline, which fails open.
  • INFORMATIONAL bin/gstack-skill-gates:23 Hook-path quoting matches setup's gsQuoteCmd, so like setup it leaves ' & ; | < > ( * ? unquoted when the path has no space; such a path breaks the sh -c parse.
  • INFORMATIONAL lib/investigate-gate.ts:288 If index.lock is held when a rollback resets the index entry, the path is reported as GATE_RESTORE_FAILED (unknown state) even though its content was put back.
  • INFORMATIONAL lib/investigate-gate.ts:97 saveBytes writes the backup in place, so a hook killed mid-write could leave a truncated file under its sha256 key that a later restore trusts.
  • INFORMATIONAL lib/ceo-review-gate.ts:108 inSkillTree compares a non-realpath file with the realpath repo root, so a project under a skills/ folder reached through a symlinked cwd can still have its written review dropped (fails closed; the repo scan still finds non-ignored files).
  • INFORMATIONAL lib/investigate-gate.ts:275 Committing work that was only staged at the baseline is still undone as a fix commit and the index goes to the target tree, so that staged blob survives only in the reflog (unchanged from b433c04 and investigate: opt-in gate that holds root cause before fix, through Bash too (GST-1461) #4045); docs/skill-gates.md's 'staged work is not dropped' covers rollback of an edit, not this commit case.

Exploratory QA

The $0 headless smoke ran at dab8574 with Claude Code CLI 2.1.318 against a local stand-in for the Messages API: SMOKE_RESULT: pass scenarios=2 checks=23 failed=0, covering the /investigate block-and-restore path and the /plan-ceo-review block-then-release path. Step 9.2.1's QA charter reads were not run; the smoke and the failing-first tests are the only end-to-end probes.

Design Review

No frontend files changed, so design review was skipped.

Eval Results

No skill prose changed. Because setup is a shared runtime input, the selector falls back to every gate case. The narrow paid screen gstack-ship-queue ready --screen (113 e2e cases, evals.yml run 42103721891) was dispatched under the crew's standing screen approval; its price is pending because these cases have no cost data yet. The lane-scoped eval:bg:pr run (84 shards, profile pr) was not dispatched: its cost is unpriced, it would repeat the screen's gate cases, and the train's full gate runs them again before merge.

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). The approved plan is autoplan run autoplan-20261105173158 (approval a-e18fa72c70b7).

TODOS

No TODO items completed in this PR.

Documentation

Scope: committed diff e64c3a0f..dab85740 on capy/gst-1461-ceo-review-gate: 26 files, with 3 docs files among them. The worktree had no staged, unstaged or untracked changes. A search of every tracked *.md and *.tmpl file found no other doc that mentions the investigate or CEO review gates.

Result: current. docs/skill-gates.md documents the /plan-ceo-review gate (switches, which files count, the block, the cap, subagents, markers, GATE_SLUG, the headless smoke) and the tighter /investigate rollback. docs/skill-routing-and-contracts.md links both gates. The changelog fragment matches.

Debt: none found.

Test plan

  • bun --no-env-file test --timeout=30000 test/ceo-review-gate.test.ts test/investigate-gate.test.ts test/skill-gates.test.ts test/skill-gates-advisory-bytes.test.ts test/setup-skill-hooks-gate.test.ts test/setup-hook-syntax-gate.test.ts test/skill-contract-stop-hook.test.ts test/skill-contract.test.ts: 176 tests, 0 fail at dab8574
  • bun run typecheck: 0 errors
  • Free Tests (workflow_dispatch, since the base isn't main): run 42100860275 green at dab8574; Windows Smoke run 42100864680 green
  • At 723671b (rebased onto main): Free Tests run 42107057516, Windows Smoke run 42107062624 and Windows Setup E2E run 42107067294 green (dispatched on the branch)
  • scripts/skill-gates-smoke.ts --claude <2.1.318>: SMOKE_RESULT: pass scenarios=2 checks=23 failed=0 at dab8574
  • Advisory skill text in investigate/ and plan-ceo-review/ is byte-identical (test/skill-gates-advisory-bytes.test.ts)

Open in Capy

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS (flaky: 1 case(s) passed on their one rerun)

[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 112/112 · behavior 1/1 · judge 0/0 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 5m38s · cost $36.44 known + 5 of 115 trial(s) cost unknown
  FLAKY 1 (failed once, passed on its one rule-16 rerun) · 1 rerun execution(s), cost $0.17

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

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

Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-current 1/1 0 1 0 ✅ $0.96
e2e-deploy/skill-e2e-deploy--setup-deploy-workflow 1/1 0 1 0 ✅ $0.11
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-recovery 1/1 0 1 0 ✅ $0.4
e2e/skill-e2e-shared-libs-paths--shared-libs-review-prior-coverage 1/1 0 1 0 ✅ $0.96
e2e-review-army/skill-e2e-review-army--review-army-quality-score 1/1 0 1 0 ✅ $0.12
e2e-qa-workflow/skill-e2e-qa-workflow--qa-quick 1/1 0 1 0 ✅ $0.49
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $1.06
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 1/1 0 1 0 ✅ $0.89
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.21
e2e-review-army/skill-e2e-review-army--review-army-migration-safety 1/1 0 1 0 ✅ $0.27
e2e/skill-e2e-ship-skip 1/1 0 1 0 ✅ $0.26
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-before 1/1 0 1 0 ✅ $0.48
e2e/skill-e2e-shared-libs--shared-libs-read-only 1/1 0 1 0 ✅ $0.25
e2e/skill-e2e-shared-libs--shared-libs-unsupported-git 1/1 0 1 0 ✅ $0.17
e2e/skill-e2e-shared-libs--shared-libs-review-lifecycle 1/1 0 1 0 ✅ $0.97
e2e-review-army/skill-e2e-review-army--review-army-perf-n-plus-one 1/1 0 1 0 ✅ $0.22
e2e-deploy/skill-e2e-deploy--land-and-deploy-review-gate 1/1 0 1 0 ✅ $0.26
e2e/skill-e2e-shared-libs-paths--shared-libs-review-index-flags 1/1 0 1 0 ✅ $0.96
e2e-deploy/skill-e2e-deploy--benchmark-workflow 1/1 0 1 0 ✅ $0.24
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $0.47
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $0.97
e2e-safety-codex-consult/skill-e2e-safety-codex-consult 1/1 0 1 0 ✅ $0.25
e2e/skill-e2e-workflow 4/4 0 4 0 ✅ $0.97
e2e/skill-e2e-shared-libs-paths--shared-libs-review-path-eligibility 1/1 0 1 0 ✅ $1.47
e2e-deploy/skill-e2e-deploy--land-and-deploy-first-run 1/1 0 1 0 ✅ $0.31
e2e-design/skill-e2e-design--design-review-plugin-handoff 1/1 0 1 0 ✅ $0.13
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-late-result 1/1 0 1 0 ✅ $0.35
e2e-design/skill-e2e-design--design-review-detector-shim-dom 1/1 0 1 0 ✅ $0.22
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $0.3
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $0.47
e2e-review-army/skill-e2e-review-army--review-army-json-findings 1/1 0 1 0 ✅ $0.06
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-store 1/1 0 1 0 ✅ $0.95
e2e-review-army/skill-e2e-review-army--review-army-delivery-audit 1/1 0 1 0 ✅ $0.15
e2e-design/skill-e2e-design--design-review-detector-shim 1/1 0 1 0 ✅ $0.12
e2e-session-intelligence/skill-e2e-session-intelligence 4/4 0 4 0 ✅ $0.28
e2e-safety-pair-agent/skill-e2e-safety-pair-agent 1/1 0 1 0 ✅ $0.1
e2e-qa-workflow/skill-e2e-qa-workflow--qa-bootstrap 1/1 0 1 0 ✅ $0.08
e2e-deploy/skill-e2e-deploy--canary-workflow 1/1 0 1 0 ✅ $0.11
e2e/skill-e2e-ship-hook-refresh 1/1 0 1 0 ✅ $0.12
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-launch-failure 1/1 0 1 0 ✅ $0.17
e2e/skill-e2e-investigate-owned-completion 1/1 0 1 0 ✅ $0.09
e2e-learnings/skill-e2e-learnings 1/1 0 1 0 ✅ $0.07
e2e-design/skill-e2e-design--plan-design-review-no-ui-scope 1/1 0 1 0 ✅ $0.09
e2e-deploy/skill-e2e-deploy--land-and-deploy-workflow 1/1 0 1 0 ✅ $0.54
e2e/skill-e2e-shared-libs--shared-libs-review-revalidation 1/1 0 1 0 ✅ $1.96
e2e-review/skill-e2e-review 2/2 0 2 0 ✅ $0.33
e2e-cso/skill-e2e-cso 1/1 0 1 0 ✅ $0.47
e2e-qa-functional/skill-e2e-qa-functional 2/2 0 2 0 ✅ $0.73
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $0.78
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $0.99
e2e-failure-routing/skill-e2e-failure-routing 3/3 0 3 0 ✅ $0.3
e2e-qa-workflow/skill-e2e-qa-workflow--qa-only-no-fix 1/1 0 1 0 ✅ $0.55
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $0.9
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $0.67
e2e-retro/skill-e2e-retro 1/1 0 1 0 ✅ $0.36
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $0.56
e2e-skillify/skill-e2e-skillify 3/3 0 3 0 ✅ $0.82
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $1.11
e2e-hermetic/skill-e2e-hermetic-canary 2/2 0 2 0 ✅ $0.06
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-completion 1/1 0 1 0 ✅ $1.16
e2e-triage/skill-e2e-triage 1/1 0 1 0 ✅ $0.13
e2e-review-attribution/skill-e2e-review-attribution 3/3 0 3 0 ✅ $0.27
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.18
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $0.45
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.13
e2e-safety-ship-evidence/skill-e2e-safety-ship-evidence 1/1 0 1 0 ✅ $0.16
e2e-browse/skill-e2e-bws 6/6 0 6 0 ✅ $0.29
e2e/skill-e2e-investigate-owned-termination 2/2 0 2 0 ✅ $0.13
e2e-third-party-actions/skill-e2e-third-party-actions 5/5 0 5 0 ✅ $0.41
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.18
Fail-closed reconciliation
ill-e2e-ask-user-question-format-compliance.test.ts
  slice 15  passed             24s  test/skill-e2e-investigate-owned-termination.test.ts
  slice 16  passed             26s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-launch-failure
  slice 16  passed             27s  test/skill-e2e-session-intelligence.test.ts
  slice 16  passed             22s  test/skill-e2e-design.test.ts#design-review-detector-shim
  slice 16  passed             25s  test/skill-e2e-deploy.test.ts#canary-workflow
  slice 16  passed             30s  test/skill-e2e-ship-hook-refresh.test.ts
  slice 16  passed             15s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 16  passed             28s  test/skill-e2e-review-army.test.ts#review-army-delivery-audit
  slice 16  passed             24s  test/skill-e2e-investigate-owned-completion.test.ts
  slice 16  passed             23s  test/skill-e2e-safety-pair-agent.test.ts
  slice 16  passed             20s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 16  passed             12s  test/skill-e2e-learnings.test.ts
  slice 16  passed             15s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 100 executed, 0 reused; 100 passed, 0 failed, 0 manual accepted (unscored; no score-cache credit) (100 attempt records from 70 collectors; every record counts)
[test:paid] deselected testcases, zero credit (316):
[test:paid]    302  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 112/112 · behavior 1/1 · judge 0/0 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 5m38s · cost $36.44 known + 5 of 115 trial(s) cost unknown
  FLAKY 1 (failed once, passed on its one rule-16 rerun) · 1 rerun execution(s), cost $0.17
[test:paid] flaky (rule 16: failed once, passed on its one rerun; green with this annotation):
  ⚑ router-failure-triage-unclear  rule  FLAKY: failed in attempt 1 (paid-slice-1-a1), passed on its one rerun in attempt 1 rerun (slice 1 attempt 1); rerun cost $0.17; first failure: timeout: test timed out
[test:paid] exercised-path map (shadow, non-blocking): 9 MAP_GAP line(s) over 106 executed case(s) with recorded commands
  MAP_GAP document-release bin/gstack-banned-terms: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report bin/gstack-plan-reality: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report browse/dist/browse: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP ship-exploratory-late-input bin/gstack-review-plan: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP ship-exploratory-plan-checks bin/gstack-review-plan: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP ship-exploratory-small-cli bin/gstack-review-plan: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP ship-exploratory-unavailable bin/gstack-review-plan: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP test-audit-report-only design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP timeline-event-flow bin/gstack-skill-end: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
[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.

Flaky: failed once, passed on its one rerun (rule 16)

⚑ router-failure-triage-unclear  rule  FLAKY: failed in attempt 1 (paid-slice-1-a1), passed on its one rerun in attempt 1 rerun (slice 1 attempt 1); rerun cost $0.17; first failure: timeout: test timed out

Each failed and passed on its rerun in run 42103721891 at the attempts named above. Logged for the daily flaky-fix pass in this run's flake-records-a1 artifact (docs/TESTING_INTERNALS.md#flaky-reruns).

Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit fdc1254f8a4f437d012ef83378836affa5d63613.

garrytan and others added 10 commits November 5, 2026 20:46
…(GST-1461 fc#1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e written (GST-1461)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e lane (GST-1461)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ls/ tree (GST-1461)

Review-Finding: p1/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-1461 ov#5)

Review-Finding: bin/gstack-skill-gates:60:outside-voice reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…come from the baseline (GST-1461 ov#1-4)

Review-Finding: lib/investigate-gate.ts:126:outside-voice reader=outside-voice
Review-Finding: lib/investigate-gate.ts:254:outside-voice reader=outside-voice
Review-Finding: lib/investigate-gate.ts:256:outside-voice reader=outside-voice
Review-Finding: lib/investigate-gate.ts:64:outside-voice reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…back keeps them (GST-1461)

Review-Finding: p2/outside-voice#1 reader=outside-voice
Review-Finding: p2/adversarial-native#6 reader=adversarial-native
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… filters the repo scan too (GST-1461)

Review-Finding: p2/outside-voice#2 reader=outside-voice
Review-Finding: p2/adversarial-native#2 reader=adversarial-native
Review-Finding: p2/adversarial-native#3 reader=adversarial-native
Review-Finding: p2/red-team#2 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…(GST-1461)

Review-Finding: p2/adversarial-native#7 reader=adversarial-native
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-1461)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@garrytan
garrytan force-pushed the capy/gst-1461-ceo-review-gate branch from dab8574 to 723671b Compare November 5, 2026 20:47
@capy-ai
capy-ai Bot changed the base branch from capy/gst-1461-investigate-gate to main November 5, 2026 20:47
@trunk-io

trunk-io Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 4743132 into main Nov 5, 2026
59 checks passed
garrytan added a commit that referenced this pull request Nov 6, 2026
…se once setup runs gstack-skill-gates (GST-1615)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot added a commit that referenced this pull request Nov 6, 2026
…nger fails open (#4072)

* skill gates: the hook timeout outlives the clamped gate deadline (GST-1615)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test: #4045/#4047 narrow screens select the bin/gstack-config gate case once setup runs gstack-skill-gates (GST-1615)

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