try_cartridge: rehearse a policy without betting your reasoning on it - #29
Merged
Conversation
item 9 shipped with a flaw: the corpus could only be fed by a SWAP, so the only way to learn whether a program ran was to make it the policy the agent reasons with. exploring the language meant betting the explorer on every experiment — and a corpus that can only be fed by committing to every candidate will never reach the volume item 10 needs. Cognition::try_policy shares swap_policy's entire front half through a private `prepare` — parse, rehearse against a copy of the live memory, build the corpus sample — and stops before the install. Command::TryCartridge, a try_cartridge tool, and a "rehearse only" button expose it. the system prompt now says to rehearse first, and says why: a refusal from try_cartridge costs nothing and the attempt lands in the corpus either way. the eval that matters is the one making that advice honest: a candidate that rehearses clean in a trial produces the SAME Sample as swapping it. sharing the front half is what guarantees the two doors cannot disagree. the other two pin that a trial installs nothing — the running policy still answers afterwards — and that a trial of a trapping module leaks nothing into the live store. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
on the preview of c54c758: rehearsing v2 and then a trapping module both filled the corpus ("2 program(s), 1 verified, 1 refused") and both said "nothing was installed". the reload is the proof — it comes back as "reasoning policy 'reasoner' up (reference v1)", so two programs were learned about with nothing installed and nothing persisted as a swap. a trial that quietly installed would have come back as v2. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Owner
Author
live on the preview of
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#28 shipped with a flaw, and this fixes it rather than adding a new number for its own sake.
the flaw
The corpus could only be fed by a swap. So the only way to learn whether a program ran was to make it the policy the agent reasons with. Exploring the language meant betting the explorer on every experiment — and a corpus that can only be fed by committing to every candidate will never reach the volume item 10 needs.
the fix
Cognition::try_policysharesswap_policy's entire front half through a privateprepare— parse, rehearse against a copy of the live memory, build the corpus sample — and stops before the install.Command::TryCartridge, atry_cartridgetool, and a rehearse only button expose it.The system prompt now says to rehearse first, and says why: a refusal from
try_cartridgecosts nothing, and the attempt lands in the corpus either way.the eval that matters
A candidate that rehearses clean in a trial produces the same
Sampleas swapping it. If the two doors could disagree, "rehearse first" would be advice that does not pay — and sharing the front half is what guarantees they cannot. That property is pinned, not assumed.The other two: a trial installs nothing (the running policy still answers afterwards — a trial that quietly installed would be a swap with a friendlier name), and a trial of a trapping module leaks nothing into the live store.
3 new evals, 34 in
tests/cognitive_wiring.rs.on where this came from
It was not on the board. It came from asking what item 10 actually needs and finding the answer blocked by a design decision made one item earlier. That is the useful kind of board item — the one the previous item created.
bash ci/run_tests.sh→ unit tests + 20 suites + clippy;cargo check --lib --bins --target wasm32-unknown-unknownclean. Thetry_cartridgedefinition is covered by the prompt-drift guard added in #25.smoke-previewwill be red for the usual Vercel Deployment Protection reason.🤖 Generated with Claude Code