Repository navigation
v1.91.299.0 fix(owner-brief): Captain brief resolves rec like gstack-gate render when a gate carries decisions (#3546) - #3549
Conversation
…so carried decisions match gstack-gate render (#3546) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… this gate, as answer --reply rec does Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…lier answers Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
E2E Evals: ✅ PASS125 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $33.03 rule/judge cost | reconcile exit: 0 Profile: pr / mode Derived dependents (scripts/pr-dependencies.ts):
Rule and judge shards
Fail-closed reconciliationSliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry. Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit |
…rief-carried Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
What changed
At a cap gate with carried decisions, the Captain brief now resolves rec to the carried d1b–d4b, matching gstack-gate render, instead of telling the owner d1a–d4a.
Before/after as text: At a cap gate with carried decisions, the Captain brief now resolves rec to the carried d1b–d4b, matching gstack-gate render, instead of telling the owner d1a–d4a
Why
"A Captain relaying the brief would tell Garry the opposite of what his one-word reply does" (GSTA-3, autoplan run autoplan-20261028004737 on 1.91.284.0; reproduced on main 1.91.295.0 in #3546). At a gate after the owner already answered some items, such as a round-cap gate,
gstack-owner-brief render --captainlisted each item's recommendation whilegstack-gate renderandgstack-autoplan answer --reply reckeep the carried answer. The brief now says whatrecwill record.Blast radius
Only
lib/captain-brief.tschanges, and only for gates wherereckeeps an earlier answer (a carried item, or an item already answered at this gate): the per-choice words, the header, the change-something example, the do-it line and the relaying agent'srec resolves totokens. It callsparseReply(the resolvergstack-gate renderuses) withpriorChoices(the filtergateCostandanswerGateuse), so a gate with no earlier answers renders byte-for-byte as before; the existingtest/captain-brief.test.tscases pass unchanged (rung: focused tests plus a real fixture run throughgstack-autoplan).Approvals
No approvals recorded for branch capy/gsta-141-owner-brief-carried.
Summary
recthroughparseReply('rec', gate, _, priorChoices(...))instead of each item'srecommended; kept items are marked(your answer at gate_rev N, carried forward)or(your answer at this gate).test/captain-brief.test.tsdrives a fixture autoplan run (--max-rounds 1, three challenges answeredb,revisehits the cap) to a gate_rev 2 cap gate and asserts both CLIs give the samerecresolution and choice labels; a second case checks the brief against whatanswer --reply recrecords after a partial answer; the negative control strips the carried decisions. Both new positive cases fail on main.Note:
gstack-gate renderstill ignores answers recorded at the same gate (it reads gate.json alone), so after a partial reply the two renders differ and the brief is the correct one; filed as #3548.Deferred findings
Blocking findings in code this PR did not change (review scope: frozen); filed as issues and not closed by this PR.
lib/gate-list.ts:119gstack-gate render resolves rec without prior answers recorded at the same gate, so after a partial reply its 'rec resolves to' line differs from what gstack-autoplan answer --reply rec records (pre-existing; gate.json alone has no decisions)Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/captain-brief.ts:72pending only checks p1's row; a recorded p1c (interrogate) leaves the gate pending but the brief says Nothing pending (pre-existing)Fixes #3546
Refs #3548