Skip to content

fix(bench): N-chances retry carries the investigation trail — fresh attempts no longer start amnesiac - #2177

Merged
joelteply merged 1 commit into
canaryfrom
fix/retry-carries-investigation-trail
Aug 8, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/retry-carries-investigation-trail

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The live failure

benchy-sympy-22840-n4 attempt 2: the #2174 zero-diff verdict reached her window (positive-control verified — all three contract phrases present) and told her to "go straight to the file you already identified." She couldn't: a retry is a fresh turn with fresh working memory, her recall carried only a generic reflection, and she burned 10 of 12 acts re-deriving cse_main.py — which attempt 1 had already found. The verdict referenced state the substrate held but never handed over.

The fix

drive_to_settle collects touched_paths (file_path/path args on executed calls, first-touch order) onto SettleOutcome; AgentSolveResult surfaces it as files_examined; both retry-verdict arms name the trail (and the edits-exist arm additionally names files_changed). Mechanical extraction from her own calls — state handed back, never a steer.

Verification

cargo check green; act_observe 28/28; experience 48/48; ts-rs bindings regenerated.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… attempt no longer starts amnesiac

Glass-boxed live (benchy-sympy-22840-n4 attempt 2, 2026-08-08): the zero-diff
verdict said "go straight to the file you already identified" — and she could
not, because a retry is a FRESH turn with fresh working memory. Her recall
carried only a generic "I worked a real coding task" reflection; nothing named
cse_main.py. Positive control: the verdict text WAS in her window (all three
new-contract phrases present), and she still spent 10 of 12 acts re-deriving
the file attempt 1 had already found. The instruction referenced state the
substrate held but never handed over.

Fix — three thin layers on the same channel the verdict already rides:
- drive_to_settle collects `touched_paths` (any file_path/path arg on an
  executed call, first-touch order, deduped) onto SettleOutcome — the
  turn's investigation trail as STATE, distinct from files_changed (git):
  a failed edit or a read appears here and nowhere else.
- AgentSolveResult gains `files_examined` (ts-rs regenerated).
- The retry verdict names it: zero-diff arm appends "Files your previous
  attempt examined (in order): …"; the edits-exist arm also names
  files_changed ("Your edits are in: …").

Mechanical extraction from her own calls — never inferred, never a steer;
the retry objective remains hers. cargo check green; act_observe 28/28,
experience 48/48.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 9c3e563 into canary Aug 8, 2026
@joelteply
joelteply deleted the fix/retry-carries-investigation-trail branch August 8, 2026 11:41
joelteply added a commit that referenced this pull request Aug 8, 2026
…growth #2162 declared but never pinned (#2179)

Canary's Continuum Rust Tests has been red since fb93436 (PR #2162,
2026-08-08 00:48Z — verified against the run history; the streak predates
today's #2174-#2177 merges, which inherited it). The tripwire fired exactly
as designed: the agentic surface needs 9756 tokens against a 9600 ceiling.

What grew, stated plainly as the ratchet demands: #2162 grew the native
payload 20 → 23 schemas (+212 tokens, 9544 → 9756) and said so in its own
commit message — the #339 lifecycle write-back verbs (REACHABLE-VERIFIED:
declared everywhere but native, so a native-call citizen could claim work
she could never update or close) plus room/members (pinned after #358
proved a correct roster read). Each verb closes a measured live defect;
shrinking here would undo verified fixes. What #2162 did not do was re-pin
this ceiling — which is the ratchet working: the growth gets named here
instead of accruing silently.

Companion: PR #2178 (BigMama) clears the other red guard (ts-rs drift).


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant