Skip to content

investigate: opt-in gate that holds root cause before fix, through Bash too (GST-1461) - #4045

Merged
capy-ai[bot] merged 4 commits into
mainfrom
capy/gst-1461-investigate-gate
Nov 5, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
capy/gst-1461-investigate-gate

Conversation

@garrytan

@garrytan garrytan commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 4045,
  "head": "e64c3a0f49a1d401ecc8cde520bf5956bff0ac57",
  "version": "1.96.0.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 93,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "2d319a168b480ead2e3dfbca471cfb058d0c78a3",
  "product_patch_id": "a07e2c28458b772b2dddba179f847deb2352c5cb",
  "gstack_version": "1.96.0.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 1035,
    "rules": "70895942bb8a8ee2",
    "base": "4c400661d93503d0dfe5e6bdbde6a6f8455a6cc3",
    "registry": "4c400661d93503d0dfe5e6bdbde6a6f8455a6cc3",
    "gate_scan": {
      "tagged": 0,
      "head": "e64c3a0f49a1d401ecc8cde520bf5956bff0ac57"
    },
    "reasons": [
      "risk:money",
      "risk:security",
      "runtime=1035"
    ],
    "risk": [
      "money",
      "security"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @2d319a168b48 (7 checks, current for e64c3a0f49a1)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/42090406224/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/42090406224/attempts/1",
    "windows-setup-e2e.yml/windows-setup: https://github.com/garrytan/gstack/actions/runs/42088105621/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/42088105591/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=2d319a168b48 tests=35675 skipped=111 runs=42090406224/1 profiles=ci-reuse/free-tests heads=e64c3a0f49a1 verified=2026-11-05T19:11:59.980Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/ and README.md (docs/skill-gates.md, docs/skill-routing-and-contracts.md, changelog.d fragment)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 10,
    "deferred": 0,
    "noted": 19,
    "fixed": 4,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 3,
    "ledgers_read": 6,
    "dispatches": {
      "specialist": 8,
      "red-team": 2
    }
  },
  "review_loop_exception": {
    "accepted_by": "GStack Minder (relayed by GSTA-317)",
    "date": "2026-11-05",
    "via": "Captain ruling B, recorded as approval a-7e3ca9cbb6f2",
    "reason": "ship e64c3a0 as is; fc/fix-check#1 (a fix committed on a branch behind the baseline is blocked but kept) is a known gap fixed in the stacked PR 2",
    "fix_check": {
      "head": "e64c3a0f49a1d401ecc8cde520bf5956bff0ac57",
      "findings": 2
    }
  },
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "30e6bce187be0d59",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "a07e2c28458b772b2dddba179f847deb2352c5cb",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

What changed

An opt-in gate for /investigate that holds "no fix before a root cause" mid-run, including fixes made through the shell. Off by default; the /investigate skill text is unchanged byte for byte.

  • Install path (shared with the CEO-review gate in the follow-up PR): a new investigate_gate switch in SWITCH_DEFAULT (off), ./setup --investigate-gate / --no-investigate-gate, GSTACK_INVESTIGATE_GATE, gstack-config set investigate_gate. _skill_hook_gate now registers several events per source; each event gets its own shim and KNOWN_HOOKS row; gstack-settings-hook accepts PostToolUseFailure. gstack-skill-gates settings --investigate prints a --settings JSON for headless claude -p runs.
  • The gate (hosts/claude/hooks/investigate-gate.ts, lib/investigate-gate.ts): after /investigate loads, Edit/Write/MultiEdit/NotebookEdit on tracked source are denied, and Bash writes are caught by comparing the tree with one per-session baseline at every PreToolUse, PostToolUse, PostToolUseFailure and Stop, then put back and reported. A revert to HEAD, a checkout of an existing commit and a stash pop pass; a new commit that carries a fix is reset. Tests, docs, lockfiles, generated files and new untracked files are never blocked. It releases on a Root cause: <value> line in the assistant's reply after some evidence (not a placeholder or hedge).
  • Markers (lib/skill-gates.ts): GSTACK_GATE <hook> <event> session=<id> ... for fired, blocked, released, observed, skipped and error, counted in $GSTACK_STATE_ROOT/skill-gates/<session>/record.json, traced in hooks/investigate-gate.log, and recorded in the transcript (blocks in the reason the model sees; the rest as hook_system_message). Any hook error fails open with error code=…. gstack-skill-gates report --expect armed exits 2/3 for a session that never armed or errored.
  • Docs: docs/skill-gates.md.

Before: on main the gate's tests fail because there is no gate. After: the real Claude Code CLI is blocked on Edit and on sed -i, then released by a Root cause line

Before: on main the gate's tests fail because there is no gate. After: the real Claude Code CLI is blocked on Edit and on sed -i, then released by a Root cause line.

Before/after as text: Before: on main the gate's tests fail because there is no gate. After: the real Claude Code CLI is blocked on Edit and on sed -i, then released by a Root cause line
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+$ bun scripts/skill-gates-smoke.ts --claude <claude 2.1.318>   # at e64c3a0
+PASS claude -p exited 0
+PASS record: one run, fired
+PASS record: blocked twice (Edit, then Bash sed -i)
+PASS record: released after the Root cause line
+PASS record: no hook errors
+PASS log: fired, blocked via=edit, blocked via=bash, released
+PASS transcript: deny reason carries the blocked via=edit marker (tool_result)
+PASS transcript: PostToolUse block carries the blocked via=bash marker (hook_blocking_error)
+PASS transcript: fired and released ride hook_system_message
+PASS requests: fired/released systemMessage markers never reach the model
+PASS requests: the model saw both block reasons
+PASS repo: the sed -i write was put back, then the released Edit applied
+SMOKE_RESULT: pass checks=12 failed=0
-$ bun test test/investigate-gate.test.ts test/skill-gates*.test.ts test/setup-skill-hooks-gate.test.ts   # on main 37d5532, no gate
-34 fail
-17 pass
-(skill-gates.test.ts can't load: lib/skill-gates.ts does not exist on main)
 

Why

GEVA-2's only clean frontier win so far is the /review contract hook (+22.6 pts blocking recall on Opus 5.5), and Garry picked building hook-enforced /investigate and CEO review next (E1, GST-1461). GST-938's Edit/Write-only gate held in only 13 of 28 Opus 5.5 sessions because Opus edits through Bash, so this gate checks the tree rather than the command name.

Blast radius

The gate is off by default, so nothing changes for anyone who doesn't turn it on. Setup registers the four investigate-gate hooks only with --investigate-gate, and the shared pieces it touches (SWITCH_DEFAULT, _skill_hook_gate, gstack-settings-hook, gstack-config) keep their existing defaults, which test/setup-skill-hooks-gate.test.ts and test/gstack-config-defaults.test.ts check (script ran). With the gate on, it rewrites files in your worktree. Every restore saves the replaced bytes in the session directory first, and every hook error fails open (walked failure path, test/investigate-gate.test.ts).

Approvals

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

Summary

"Garry picked building hook-enforced /investigate next." Opus 5.5 edits through the shell, so an Edit/Write-only gate held in 13 of 28 sessions. This gate compares the tree instead, puts fix writes back and says so. The /ship review added four fixes on top: restores keep a copy of what they replace, a fix commit is undone to its own branch's tip instead of the baseline HEAD, an amend of the baseline commit is undone to that commit, and the reachability check is one git call so repos with hundreds of refs stay inside the 5 s hook deadline.

Tests

  • Failing first: test/investigate-gate.test.ts (30 cases with native hook payloads in a temp repo: every Bash write form above, write-then-fail, write-then-commit, background writes, dirty files, symlink swaps, restore failure, release rules, fail-open errors), test/skill-gates.test.ts, test/skill-gates-advisory-bytes.test.ts and the setup gate cases. On main (37d5532) 34 of them fail and skill-gates.test.ts can't load.
  • $0 headless smoke, real Claude Code CLI 2.1.318 against a local fake Messages API (bun scripts/skill-gates-smoke.ts): 12/12 checks pass, markers fired → blocked via=edit → blocked via=bash → released.

Test Coverage

Coverage: deterministic (each of 15 changed runtime files has a changed test naming it; no audit reader).
Tests ran: focused 93 (test/investigate-gate, skill-gates, skill-gates-advisory-bytes, setup-skill-hooks-gate, setup-hook-syntax-gate, review-packets-removed, test-of-test-ratchet at e64c3a0).
Regression proof for the review fixes: the five new cases fail on the head before each fix (~/.capy/work/gst1461/ship/failing-first-p1.txt at 7c6cd32, failing-first-p2.txt at ff26c5c) and pass at e64c3a0.

Pre-Landing Review

Pre-Landing Review: 13 issues found across 2 rounds and 1 fix-check. 4 blocking fixed, 1 blocking left open as a known gap under a Captain ruling, the rest noted.
REVIEW_LOOP: passes=2 blocking_found=10 deferred=0 noted=19 fixed=4 scope=frozen ledgers_read=6 fix_checks=1 dispatches=10
Gate edits: none detected (GATE_SCAN tagged=0 at e64c3a0)
Outside review: completed (openai/gpt-6.1-sol, host subagent). Its verdict was "request changes"; its five findings are listed under Review notes with the lead's reading against the blocking floor.
Review-loop exception: accepted by GStack Minder (relayed by GSTA-317) 2026-11-05 via Captain ruling B, recorded as approval a-7e3ca9cbb6f2: ship e64c3a0 as is; fc/fix-check#1 (a fix committed on a branch behind the baseline is blocked but kept) is a known gap fixed in the stacked PR 2 (fix-check at e64c3a0, 2 findings)

Fixed:

  • p1/specialist-batched#1 (data loss): a restore overwrote concurrent edits with no copy. It now saves the replaced bytes in the session directory and the block names the copy.
  • p1/red-team#1: a fix commit made after a merge, or on another branch, was reset to the baseline HEAD. That moved the other branch or left a mixed tree. It is now undone to the newest ancestor that existed before the baseline or that a remote-tracking ref holds, and a pull or merge of fetched upstream commits is left alone.
  • p2/specialist-batched#1 (promoted to blocking: a regression from the round-1 fix): git commit --amend of the baseline commit dropped that commit. On the same branch it is now undone to the baseline HEAD.
  • p2/red-team#1: with hundreds of refs, the per-ref reachability check ran past the 5 s deadline, failed open, and kept failing open on every later call. It is now one rev-list --stdin call.

Known gap (fc/fix-check#1, fixed in the stacked PR 2)

If the session starts on one branch and the model commits a fix on a branch that sits behind it (for example, the baseline is on feature, then git checkout main && sed -i … && git commit -am fix), the commit is blocked but kept: the block is reported, but main keeps the fix commit and the file is not put back. docs/skill-gates.md's sentence "a fix committed on another branch moves that branch back to its own tip" holds only for a branch that has diverged from the baseline. The stacked PR 2 fixes this by resetting a different branch to its own tip.

Review notes

Informational, below the blocking floor (would fail a test, break production, or lose data or secrets). Not fixed in this PR:

  1. A restore puts back the worktree file but not its index entry, so a fix staged with git add stays staged (p2/red-team#2, outside-voice#2).
  2. The committer-date fallback in existedBefore accepts a backdated commit (GIT_COMMITTER_DATE=…) as one that existed before the baseline (p1/red-team#2, p2/red-team#3, adversarial#1).
  3. checkTree resets and restores before its last snapshot. If that snapshot times out, the hook fails open without telling the model what it undid (p2/red-team#4).
  4. Stop blocks on every violation with no per-run cap and ignores stop_hook_active, so a background writer that keeps rewriting a tracked file can keep a turn from ending (p2/red-team#5).
  5. The hook reads and parses the transcript before it checks for an /investigate load. With the switch on, a transcript over 32 MiB gives GATE_TRANSCRIPT on every call, even in sessions that never loaded /investigate (p2/red-team#6, adversarial#4).

Also noted from the voices: a real 3-way git pull merge whose result matches neither parent is undone (adversarial#2). git checkout HEAD~1 -- f counts as a fix write, though the docs say content from an earlier commit is not one (adversarial#3). The saved copies are pruned with the session directory after 7 days (adversarial#5). From the outside voice: the raw backups of dirty-at-baseline files are keyed by the filtered blob id, so two dirty files that differ only in line endings can share one backup (outside-voice#1). Clean files come back as 0644 or 0755, not their old mode (outside-voice#3). An untracked .gitattributes marking *.ts linguist-generated exempts source edits (outside-voice#4). gstack-skill-gates settings doesn't shell-quote the hook path, so headless hooks don't launch from a gstack root that contains a space (outside-voice#5). Per-ref performance was noted in round 1 (p1/specialist-batched#2) and fixed in round 2.

The stacked #4047 fixes review note 1 and outside-voice #1 to #5, each with a test that fails first. The hooks are opt-in, so nobody runs this gate before #4047 lands.

Exploratory QA

Smoke probe: the $0 headless smoke (bun scripts/skill-gates-smoke.ts --claude <claude 2.1.318>) at e64c3a0 ran with SMOKE_RESULT: pass checks=12 failed=0, the same as at ff26c5c. No other exploratory charters ran.

Eval Results

No prompt-related files changed, so evals were skipped (the /investigate and /plan-ceo-review skill text is byte-identical, checked by test/skill-gates-advisory-bytes.test.ts).

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). The plan is the autoplan run approved in the Approvals record.

Issues

Refs p2/specialist-batched#1, p2/red-team#1, p1/specialist-batched#1, p1/red-team#1 (review findings, not GitHub issues).

TODOS

No TODO items completed in this PR.

Security read

The hook runs git and writes under the gstack state root (0600/0700). It makes no network calls and reads no secrets. Its one write outside the state root is putting a gated file back inside the repository it pinned, through a rename that never follows a symlink. The smoke script fetches the pinned Claude Code CLI with npm at run time (not vendored) and points it at a localhost server with a dummy key.

Documentation

Status: one known overstatement. docs/skill-gates.md says a gated commit on another branch is always undone, but a commit on a branch behind the baseline is kept (fc/fix-check#1). The stacked #4047 fixes the code and corrects that paragraph.

Scope: 23 committed files from 37d5532 to e64c3a0 (nothing staged, unstaged or untracked). The authored docs are docs/skill-gates.md (new), docs/skill-routing-and-contracts.md (a cross-link) and changelog.d/capy-gst-1461-investigate-gate.md. I checked their claims against lib/skill-gates.ts, lib/investigate-gate.ts, lib/skill-route.ts, bin/gstack-skill-gates, bin/gstack-config, setup and scripts/skill-gates-smoke.ts.

Documentation health:

  • docs/skill-gates.md: Current. The switch order, setup flags, deadline and lock timings, 7-day cleanup, payload and transcript caps, exit codes and pinned CLI version match the source.
  • docs/skill-routing-and-contracts.md: Current. The added link resolves.
  • changelog.d/capy-gst-1461-investigate-gate.md: Current. It matches docs/skill-gates.md.
  • README.md: Not updated. It doesn't link the skill-hook docs, and that gap predates this branch.

Coverage debt: investigate_gate, gstack-skill-gates settings|report and the GSTACK_GATE markers have reference and how-to coverage in docs/skill-gates.md, but no tutorial. The page is reachable only through docs/skill-routing-and-contracts.md, which nothing in README links (a common gap).

Diagram drift: none; the changed docs have no diagrams.

Test plan

  • focused (bun test of the seven files above): 93 pass, 0 fail at e64c3a0
  • $0 headless smoke against the real Claude Code CLI 2.1.318: SMOKE_RESULT: pass checks=12 failed=0 at e64c3a0
  • CI carry: Free Tests run 42090406224 green at tree 2d319a168b48; macOS and Windows lanes cleared from runs 42090406224, 42088105591, 42088105621

Open in Capy

…sh too (GST-1461)

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

trunk-io Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits November 5, 2026 18:14
- hook: the edit branch computes the repo-relative path once in posix form, so
  the marker and deny text read src/total.ts on Windows too
- lib/review-depth.ts is back to main's pinned bytes; lib/investigate-gate.ts
  keeps its own copy of TEST_PATH
- gstack-skill-gates report: destructure session_id (the pregate secrets scan
  read the old line as a secret-named assignment)
- tests: pin core.autocrlf=false in the git fixtures, skip the symlink swap on
  Windows, give setup-hook-syntax-gate's fixture the shared TypeScript entry a
  shim runs, unit-test excludedReason, and check the smoke's pinned Claude Code
  version against docs/skill-gates.md

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
- checkTree saves the bytes a restore replaces in the session directory and
  the block names the copy, so a concurrent editor save is never lost
- a new commit is undone to its newest ancestor that existed before the
  baseline or that a remote-tracking ref holds, not to the baseline HEAD: a
  fix committed on another branch moves that branch back to its own tip,
  and pull/merge of fetched upstream commits is not undone; the block lists
  the commit's other changes left staged
- runGateHook takes the switch reading from its caller, so the
  investigate_gate config key has a literal reader (gstack-config-defaults)
- the slow checkout case gets an explicit 30 s test timeout

Review-Finding: p1/specialist-batched#1 reader=security
Review-Finding: p1/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
- an amend or rebase of commits from before the baseline on the same branch
  is undone to the baseline HEAD, not to its parent; on a different branch
  the gate blocks but leaves the commit in place
- existedBefore answers reachability with one rev-list call instead of one
  merge-base per ref, so a fix commit in a repo with hundreds of refs is
  still undone inside the 5 s hook deadline

Review-Finding: p2/specialist-batched#1 reader=testing
Review-Finding: p2/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@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 5m40s · cost $36.40 known + 4 of 115 trial(s) cost unknown
  FLAKY 1 (failed once, passed on its one rule-16 rerun) · 1 rerun execution(s), cost $0.87

101 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 ✅ $1.06
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.39
e2e/skill-e2e-shared-libs-paths--shared-libs-review-prior-coverage 1/1 0 1 0 ✅ $0.99
e2e-review-army/skill-e2e-review-army--review-army-quality-score 1/1 0 1 0 ✅ $0.1
e2e-qa-workflow/skill-e2e-qa-workflow--qa-quick 1/1 0 1 0 ✅ $0.47
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $0.88
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 0/1 0 1 0 ❌ $0.8
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.2
e2e-review-army/skill-e2e-review-army--review-army-migration-safety 1/1 0 1 0 ✅ $0.34
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.41
e2e/skill-e2e-shared-libs--shared-libs-read-only 1/1 0 1 0 ✅ $0.22
e2e/skill-e2e-shared-libs--shared-libs-unsupported-git 1/1 0 1 0 ✅ $0.21
e2e/skill-e2e-shared-libs--shared-libs-review-lifecycle 1/1 0 1 0 ✅ $0.99
e2e-review-army/skill-e2e-review-army--review-army-perf-n-plus-one 1/1 0 1 0 ✅ $0.23
e2e-deploy/skill-e2e-deploy--land-and-deploy-review-gate 1/1 0 1 0 ✅ $0.19
e2e/skill-e2e-shared-libs-paths--shared-libs-review-index-flags 1/1 0 1 0 ✅ $1.01
e2e-deploy/skill-e2e-deploy--benchmark-workflow 1/1 0 1 0 ✅ $0.29
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $0.41
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $0.9
e2e-safety-codex-consult/skill-e2e-safety-codex-consult 1/1 0 1 0 ✅ $0.26
e2e/skill-e2e-workflow 4/4 0 4 0 ✅ $0.89
e2e/skill-e2e-shared-libs-paths--shared-libs-review-path-eligibility 1/1 0 1 0 ✅ $1.44
e2e-deploy/skill-e2e-deploy--land-and-deploy-first-run 1/1 0 1 0 ✅ $0.28
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.26
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $0.28
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $0.5
e2e-review-army/skill-e2e-review-army--review-army-json-findings 1/1 0 1 0 ✅ $0.07
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.14
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.27
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.19
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.62
e2e/skill-e2e-shared-libs--shared-libs-review-revalidation 1/1 0 1 0 ✅ $1.93
e2e-review/skill-e2e-review 2/2 0 2 0 ✅ $0.35
e2e-cso/skill-e2e-cso 1/1 0 1 0 ✅ $0.42
e2e-qa-functional/skill-e2e-qa-functional 2/2 0 2 0 ✅ $0.84
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $0.79
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $1.02
e2e-failure-routing/skill-e2e-failure-routing 4/4 0 4 0 ✅ $0.43
e2e-qa-workflow/skill-e2e-qa-workflow--qa-only-no-fix 1/1 0 1 0 ✅ $0.52
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $0.95
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $0.75
e2e-retro/skill-e2e-retro 1/1 0 1 0 ✅ $0.4
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $0.49
e2e-skillify/skill-e2e-skillify 3/3 0 3 0 ✅ $0.83
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $1.1
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.09
e2e-triage/skill-e2e-triage 1/1 0 1 0 ✅ $0.11
e2e-review-attribution/skill-e2e-review-attribution 3/3 0 3 0 ✅ $0.28
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.19
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $0.43
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.1
e2e-safety-ship-evidence/skill-e2e-safety-ship-evidence 1/1 0 1 0 ✅ $0.17
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.47
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.19
Fail-closed reconciliation
 test/skill-e2e-ship-hook-refresh.test.ts
  slice 16  passed             18s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 16  passed             30s  test/skill-e2e-review-army.test.ts#review-army-delivery-audit
  slice 16  passed             22s  test/skill-e2e-investigate-owned-completion.test.ts
  slice 16  passed             26s  test/skill-e2e-safety-pair-agent.test.ts
  slice 16  passed             27s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 16  passed             15s  test/skill-e2e-learnings.test.ts
  slice 16  passed             13s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 101 executed, 0 reused; 100 passed, 1 failed, 0 manual accepted (unscored; no score-cache credit) (101 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 5m40s · cost $36.40 known + 4 of 115 trial(s) cost unknown
  FLAKY 1 (failed once, passed on its one rule-16 rerun) · 1 rerun execution(s), cost $0.87
[test:paid] flaky (rule 16: failed once, passed on its one rerun; green with this annotation):
  ⚑ ship-exploratory-unavailable  rule  FLAKY: failed in attempt 1 (paid-slice-11-a1), passed on its one rerun in attempt 1 rerun (slice 1 attempt 1); rerun cost $0.87; first failure: assertion: expect(received).toEqual(expected)
[test:paid] exercised-path map (shadow, non-blocking): 12 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 plan-review-report design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP review-army-migration-safety bin/gstack-approval-classes: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP review-gate-integrity 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-docsync-current 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 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)
[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)

⚑ ship-exploratory-unavailable  rule  FLAKY: failed in attempt 1 (paid-slice-11-a1), passed on its one rerun in attempt 1 rerun (slice 1 attempt 1); rerun cost $0.87; first failure: assertion: expect(received).toEqual(expected)

Each failed and passed on its rerun in run 42093259982 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 b82351129502a584d404bcf6aaaff5bca90b0e83.

@capy-ai
capy-ai Bot merged commit 9e809ab into main Nov 5, 2026
98 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