Skip to content

fix(bench): zero-diff retry contract + deliverable inference — graded loop stops re-authorizing discovery - #2174

Merged
joelteply merged 1 commit into
canaryfrom
fix/solve-zero-diff-retry-contract
Aug 8, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/solve-zero-diff-retry-contract

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Two state fixes at the agent/solve N-chances seam, glass-boxed live 2026-08-08 on the first hands-free graded SWE runs (Atlas PASS sympy-24152 attempt 1 / Benchy 0-for-3 sympy-22840):

1. Retry contract forks on patch_bytes. The single verdict wording told a zero-diff attempt "Your previous edits are still in this workspace. Investigate why these tests fail — run them —" — factually wrong when no edits exist, and its verbs re-authorized exactly the discovery loop being retried. Receipts: 3 graded attempts, 224 acts, zero code/write/code/edit calls, each retry re-entering the same read/search spiral. A retry's objective is state (gate/retry/lease/verb class — facts don't move behavior); the zero-diff arm now states the real contract: only an edit can score, apply the best-guess fix to the file already identified, a wrong edit earns failing-test feedback, no edit earns nothing.

2. deliverable inference (#365). A scored run inside a staged SWE checkout that left deliverable unset slipped past the autograde gate and burned its chances as ONE ungraded attempt, silently (both first sympy launches). Unset now infers Workspace with a warn; an EXPLICIT Answer is respected but warns that grading is disarmed on a run that asked to be scored.

cargo check -p continuum-core --features metal,accelerate green. Live A/B next: relaunch Benchy on sympy-22840 under the new contract.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…aded loop stops re-authorizing discovery (#365, #366 follow-up)

Two state fixes at the N-chances seam, both glass-boxed live 2026-08-08 on the
first hands-free graded runs (Atlas PASS sympy-24152 / Benchy 0-for-3 sympy-22840):

1. Retry contract forks on patch_bytes. The single verdict wording told a
   zero-diff attempt "Your previous edits are still in this workspace.
   Investigate why these tests fail — run them —" — factually wrong (no edits
   exist) and its verbs re-authorized exactly the discovery loop being retried:
   Benchy burned 3 graded attempts / 224 acts with zero code/write|code/edit
   calls, each retry re-entering the same read/search spiral. A retry's
   objective is STATE (the doctrine's gate/retry/lease/verb class — facts don't
   move behavior). The zero-diff arm now states the real contract: only an edit
   can score; apply the best-guess fix to the file already identified; a wrong
   edit earns failing-test feedback, no edit earns nothing.

2. deliverable inference (#365). A scored run inside a staged SWE checkout that
   left `deliverable` unset slipped past the autograde gate and burned its
   chances as ONE ungraded attempt, silently (both first sympy launches). Now:
   unset infers Workspace with a warn; an EXPLICIT Answer is respected but
   warns that grading is disarmed on a run that asked to be scored.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit b1f2ba3 into canary Aug 8, 2026
3 of 5 checks passed
@joelteply
joelteply deleted the fix/solve-zero-diff-retry-contract branch August 8, 2026 10:19
joelteply added a commit that referenced this pull request Aug 8, 2026
…een red since #2174

`GenomeTeachParams` gained `fromExperience` and six `benchmark/*` binding files
were never committed at all, so the ts-rs Binding Drift Guard fails on canary
itself (e8d9767, e08d178, 9c3e563) and therefore on every PR branched from
it. Purely generated output -- produced by `cargo test -p continuum-core --lib
-- export_bindings`, no hand edits, no Rust change.

The six untracked files are the more interesting half: the guard's diff only
NAMED the modified file, so the missing ones were invisible in the CI output
and would have stayed missing after a fix that only addressed what the error
message mentioned. Sibling generated dirs are tracked and these are not
ignored, so their absence was an omission, not a policy.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
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]>
joelteply added a commit that referenced this pull request Aug 8, 2026
…een red since #2174 (#2178)

`GenomeTeachParams` gained `fromExperience` and six `benchmark/*` binding files
were never committed at all, so the ts-rs Binding Drift Guard fails on canary
itself (e8d9767, e08d178, 9c3e563) and therefore on every PR branched from
it. Purely generated output -- produced by `cargo test -p continuum-core --lib
-- export_bindings`, no hand edits, no Rust change.

The six untracked files are the more interesting half: the guard's diff only
NAMED the modified file, so the missing ones were invisible in the CI output
and would have stayed missing after a fix that only addressed what the error
message mentioned. Sibling generated dirs are tracked and these are not
ignored, so their absence was an omission, not a policy.


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

Co-authored-by: Claude Opus 5 (1M context) <[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