Skip to content

The release gate's live /autoplan guard test runs on Haiku 5.5 (GST-3441) - #4846

Merged
capy-ai[bot] merged 5 commits into
mainfrom
autoplan-guard-runs-on-haiku-5-5
Nov 26, 2026
Merged

capy-ai[bot] merged 5 commits into
mainfrom
autoplan-guard-runs-on-haiku-5-5

Conversation

@garrytan

@garrytan garrytan commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

The live /autoplan guard test in the release gate now runs its scripted actor on Claude Haiku 5.5 instead of Haiku 4.5.
On Haiku 5.5 the actor used to act before the background reviewer finished, so the test failed 8 of 8 release gate attempts; the test now waits on the reviewer's hand-back itself, whatever the model's speed.
Nothing to do; it passed one paid run on Claude Code 2.1.326.

What changed

The live guard test now sees the actor's next steps after the reviewer hands back, and passes on Haiku 5.5

The live guard test now sees the actor's next steps after the reviewer hands back, and passes on Haiku 5.5.

Before/after as text: The live guard test now sees the actor's next steps after the reviewer hands back, and passes on Haiku 5.5
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+$ live autoplan guard test, Claude Haiku 5.5, Claude Code 2.1.326 (paid run 5, at 129e1c4)
-$ live autoplan guard test, Claude Haiku 5.5, Claude Code 2.1.326 (paid run 4, before the evidence fix)
 guard decisions: allow, allow, allow, allow   permission cards: 0
 reviewer hand-back waits: 2
+steps seen after the reviewer's hand-back:
+  Read .../autoplan-ceo-*/close-packet.md
+  Bash true autoplan-published ceo
+  Read .../autoplan/sections/design-phase.md
+  Agent Design review
+(pass) autoplan publication guard live PTY > autoplan-guard-pty [489379ms]
+ 1 pass
+ 0 fail
-steps seen after the reviewer's hand-back: (none)
-error: expect(received).toBe(expected)  Expected: true  Received: false
-(fail) autoplan publication guard live PTY > autoplan-guard-pty [489160ms]
- 0 pass
- 1 fail
 
  • Relay wait (test/helpers/autoplan-guard-pty.ts): after the actor's background CEO reviewer dispatch, the test's local API relay answers the actor with an end-of-turn message until that reviewer's report comes back, and it also counts a report that arrives in the same request as the launch result. It recognises both forms of the notice: <task-notification> naming the call, and the <agent-message from="<agentId>"> hand-back that Claude Code 2.1.326 actually sends in the request.
  • Evidence: the test's journal reader takes the earlier of the task-notification record and the hand-back as the start of the notice turn, reads hand-backs whether the request stores them as plain strings or as text blocks, and the test prints the journal whenever that evidence is missing.
  • Launch: the test sets CLAUDE_CODE_AUTO_MODE_SERVER=0. Behind a local relay, Claude Code's auto-mode billing notice otherwise holds the reviewer's first checked action waiting for Enter (https://code.claude.com/docs/en/auto-mode-classifier-billing).
  • Model: claude-haiku-5-5, with an assertion that the relay wait ran or the report came back with the launch result.
  • Free regression tests from the captured request shapes; they fail on the previous relay and journal reader.
Why

The release gate's live guard test failed 8 of 8 attempts once its actor moved to Haiku 5.5, because the faster model read the close packet before the background reviewer had handed back. The relay now holds the actor until the hand-back arrives, so the test checks the guard instead of the model's timing.

Blast radius

Only the live guard test and its helper change; no product code, skill or prompt is touched. The helper's new exports are used by that test and its free fixture test alone (read in test/skill-e2e-autoplan-guard-pty.test.ts and test/autoplan-guard-pty-fixture.test.ts), and the full free suite passed in CI at this head.

Pre-Landing Review

Two review rounds. In round one the second-model review found two blockers: a reviewer report that arrived in the same request as the launch result left the wait counter at zero, and hand-backs stored as text blocks were missed by the journal reader. Both are fixed, each with a free test that fails without the fix. Round two found nothing.

Documentation

Status: current. This audit found no documentation corrections and made no edits.

Scope: 4 committed files from base e6dd567 to head f012176 on autoplan-guard-runs-on-haiku-5-5, with no staged, unstaged or new files. The change is test-only: the live /autoplan guard test now runs its actor on Claude Haiku 5.5, its relay holds the actor until the reviewer hands back, and the test sets CLAUDE_CODE_AUTO_MODE_SERVER=0. The branch also adds one changelog.d note.

Documentation health:

  • changelog.d/autoplan-guard-runs-on-haiku-5-5.md: current, accurate to the diff
  • README.md: current, no reference to this test
  • capy/skill/gstack/SKILL.md: current, unaffected
  • docs/designs/GCOMPACTION.md, docs/designs/SLATE_HOST.md: current, their Haiku 4.5 mentions are unrelated
  • CHANGELOG.md: historical entries only, not edited

Coverage debt: none. This is internal test infrastructure with no public surface.

Diagram drift: none.

Tests
  • bun run test (CI free-tests run 45853980601, at f012176): 1721 files passed, 0 failed, 4 skipped as not owed here
  • Live guard test, paid run gsta796-guard-5 at 129e1c4: 1 pass, 0 fail
Agent notes

Paid runs (one trial each, Haiku 5.5): gsta796-guard-1 (CC 2.1.292) fail, billing notice; -2 (2.1.292) fail, hand-back not recognised; -3 (2.1.326, diagnostic trace) fail, captured the hand-back shape; -4 (2.1.326) guard part green, evidence check failed; -5 (2.1.326) at 129e1c4 PASS 1/1 (4 verified allows, no permission cards, close packet, Phase 2 section and Design dispatch after the notice).
The final head adds two fixes from the second-model review after -5 (the same-request hand-back count and text-block reading); no paid run was made at the final head, so -5 at 129e1c4 is reused evidence. Free fixture tests at the final head: 13 pass.
The case still runs to its 480 s deadline because its early exit counts only task-notification records; unchanged from main.

Tests ran: test 1721 (files)

REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=0 fixed=4 scope=frozen ledgers_read=4 dispatches=2
Gate edits: none detected (10 listed, 8 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

Approvals

No approvals recorded for branch autoplan-guard-runs-on-haiku-5-5.
Plan: exempt: bug fix to a test; bug fixes need no plan review
Plan check: exempt bug fix

Refs GST-3441

{
  "schema_version": 1,
  "pr": 4846,
  "head": "f012176ed8205b740d02a38a85cc98f011a48e12",
  "version": "1.104.0.0",
  "base": "main",
  "gate": {
    "test": {
      "pass": 1721,
      "fail": 0,
      "skip": 4
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 45853980601,
      "attempt": 1,
      "tree": "f6fa13f8d8a42edb9e0d3d011ba5c125292fe37a"
    }
  ],
  "calls": 33,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/gstack/ship-4846-3cca2e9",
  "head_tree": "f6fa13f8d8a42edb9e0d3d011ba5c125292fe37a",
  "product_patch_id": "none",
  "gstack_version": "1.104.0.0",
  "review_depth": {
    "depth": "light",
    "class": "tests",
    "runtime_lines": 0,
    "rules": "33831f8248a814fd",
    "base": "89825888c57ec5ed472f8fea4a715882b401a9e5",
    "registry": "89825888c57ec5ed472f8fea4a715882b401a9e5",
    "gate_scan": {
      "tagged": 0,
      "head": "f012176ed8205b740d02a38a85cc98f011a48e12"
    },
    "reasons": [
      "runtime=0"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @f6fa13f8d8a4 (8 checks, current for f012176ed820)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/45853980601/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=f6fa13f8d8a4 tests=38493 skipped=66 runs=45853980601/1 profiles=ci-reuse/free-tests heads=f012176ed820 base_moved=f5b42d682c10 verified=2026-11-26T16:03:18.313Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md and CONTRIBUTING.md against the 4 changed files (tests and one changelog.d note)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 0,
    "fixed": 4,
    "scope": "frozen",
    "rounds": 2,
    "ledgers_read": 4,
    "dispatches": {
      "specialist": 2
    }
  },
  "gate_dispositions": []
}
{"head":"f012176ed8205b740d02a38a85cc98f011a48e12","version":"1.104.0.0","gstack_version":"1.104.0.0","run":"/home/user/.capy/work/gstack/ship-4846-3cca2e9","review_loop":{"passes":2,"blocking_found":2,"deferred":0,"noted":0,"fixed":4,"scope":"frozen","rounds":2,"ledgers_read":4,"dispatches":{"specialist":2}},"depth":"light"}

garrytan and others added 2 commits November 26, 2026 14:52
…iewer hands back, and reads that hand-back as the notice (GST-3441)

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 Nov 26, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits November 26, 2026 15:42
Review-Finding: test/helpers/autoplan-guard-pty.ts:161:Completeness Gaps reader=core
Review-Finding: test/autoplan-guard-pty-fixture.test.ts:202:Completeness Gaps reader=core
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…esult, and reads hand-backs stored as text blocks

Review-Finding: p1v/outside-voice#1 reader=outside-voice
Review-Finding: p1v/outside-voice#2 reader=outside-voice
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 aa503e2 into main Nov 26, 2026
50 checks passed
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