Repository navigation
Work tools say what she means: latest is a typed submission handle; work/review only on a review card - #5821
Merged
Conversation
joelteply
added a commit
that referenced
this pull request
Nov 7, 2026
…d it: continuum's airc pin moves past #1660 (card c3504a71) (#5824) * A resident's submission records her commit, so the merge gate can land it: continuum's airc pin moves past #1660 (card c3504a71) Fable's #5821 refusal table: every resident submission carried no head, and airc #1660's merge gate (a passed independent review at a recorded head) refuses a headless submission, so no resident's work could ever merge, blocking goal 2 (a resident's first merged PR). continuum pinned airc at b158a7e93, which predates #1660, so work/submit could not record one. - Cargo.toml: every airc crate b158a7e93 -> 22c9c0ee0 (airc canary: #1660 recorded heads, #1661 latest_submission, #1663 the stacked-PR gate). - work/submit records her checkout's committed HEAD (committed_head) as the submission's head, and the patch is that commit's diff against the base. While she holds changes the commit does not carry (tracked or untracked, outside the substrate paths the patch excludes) it is refused by name, naming code/git/commit: a submission is a commit, never her working tree, and the substrate never commits for her. A typed artifact names its head too (`head` param). - One owner of "newest": continuum's card_holder::latest_submission (a copy of submissions.first()) is deleted; its six callers read airc's WorkCard::latest_submission(). - Touched files leave with no self-sized sites: handoff.rs's five hand-cut ids render through airc_core::shown_id::shown_form; the build shas compare by prefix either way and render whole; the dirty paths, the diff sha256 and the obligations she resumes from render whole; work_similar's card text gives the embedder the whole body. latest_submission.rs runs git through one git_in helper (three spawn sites become one). - Test literals of WorkSubmission/SubmitWork carry a head (Unrecorded where heads are not the subject). Tests: continuum-mind work:: 86 pass, continuum-rooms handoff 8 pass, rooms lib 30 pass; mind/rooms/core --tests check clean; ratchets vs origin/canary 87/87. a_worktree_with_no_base_is_refused_by_name now proves an uncommitted change is refused naming code/git/commit and the derived head is the commit. Mutation: without the dirty-tree refusal, it fails. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * A submission's patch is exactly its commit, base..head; a commit carrying an unpublished path is refused (Fable on #5824) Fable: the gate merges the HEAD commit, but the artifact was candidate_diff (her checkout's diff minus SOLUTION_PATH_EXCLUDES), so anything in her commit that the diff dropped would merge unreviewed; airc's CLI submit enforces patch == git diff --binary base head for this reason. commit_patch now returns exactly `git diff --binary base..head` (the same flags the patch was always rendered with), and a commit that touches a path a submission never publishes (substrate or build byproducts) is refused by name. Tests: continuum-mind work:: 84 pass; ratchets vs origin/canary 87/87. a_worktree_with_no_base_is_refused_by_name now also commits .continuum/state.json and expects the refusal naming it. Mutation: without the refusal it fails. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * protocol: WorkSubmitParams carries head (the regenerated ts-rs binding for #5824) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * work/submit passes the validated base to commit_patch (an unused variable was a new continuum-mind warning; CI's warning ratchet 13 -> 14) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * work/submit fixtures type their head; head's doc cut to one clause A typed submission is complete only with the commit it ends at (the gate refuses one without), so the training_credit fixtures that typed base and artifact but no head fell through to deriving from a checkout and cloned acme/ordinary-project in CI. They now type head. head's tool doc is cut to 'Omit: your checkout's committed HEAD.' (+42 surface tokens at bce9206 with the longer text; the exact figure is pinned from this commit's CI). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * The agentic surface ceiling is re-pinned at 17956: work/submit's head param (measured in CI at 6b5069c) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
joelteply
force-pushed
the
3d7931b7/one-refusal-shape
branch
from
November 7, 2026 16:04
2707e7d to
960431e
Compare
joelteply
force-pushed
the
fable/work-tools-say-what-she-means
branch
2 times, most recently
from
November 7, 2026 16:37
0e48936 to
5f81156
Compare
… and work/review is offered only on a review card The M5's four residents, six hours of captures (2026-11-07): 164 refused calls, and the two work-verb loops lead it. 19 `work/submission submission_id=latest` refused as "not a usable submission handle", 27 handles refused on cards with no submission, 9 reviewers refused for naming the parent's submission on the review card they held, and 22 `work/review` calls on the caller's own implementation card. - SubmissionHandle (work/submission, work/review): `Latest | Id(Shown<SubmissionId>)`, `latest` the default and a value in the schema she sees. One resolver, `SubmissionHandle::read`: a code card's newest through airc's `WorkCard::latest_submission`, a review card's through `WorkBoardProjection::candidate_for_review` on its parent. - A card with no submission yet is a typed refusal (`SubmissionRefusal::NoneYet`) built on the kernel `Refusal` / `NextCall` (card 3d7931b7): `work/submit` when the card is hers to submit (the `work_preconditions::check` it executes under), else `work/get`. The next call is chosen by cause and is never the read just refused: an id that named nothing (or that the review binding refused) names `work/submission` at its default; a parent absent from this board, or the newest refused by the binding, names `work/get` on the parent (Cormac, review 1851ee8b). - work/review and work/submission declare `OnDemand`: in hand only when a held card puts them there (`work_preconditions::in_hand`), never as core hands on every card. - Deleted the prose these replace: `submissions_on_card`, the "submission is absent" NotFound, and the `withheld_from_hands` guidance for both verbs. - Standing grounding never leaves the turn (`GroundingOffer::of`): with two schemas fewer in her hands, the greedy `Leveled::reduce` let an equal-salience roster take one more unit and dropped the activity wall (caught by `standing_activity_grounding_survives_history_on_the_wire`). Validator: `replayed_refusals.json` holds the 86 refused calls copied from the captures; `the_m5s_refused_submission_reads_replay_into_answers` replays the 64 reads on a real projection (20 found, 16 typed none-yet, 21 guessed ids refused with a next call, 2 `auto` undecodable, 5 off-board), and `the_review_verb_is_never_offered_on_her_own_card` covers the 22 review calls. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
force-pushed
the
fable/work-tools-say-what-she-means
branch
from
November 7, 2026 16:55
5f81156 to
7b0b74c
Compare
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.
How this serves the minds: residents spend their acts reading submissions they can't name and calling a verdict verb on their own cards, so almost nothing gets written. This removes the two biggest refusal loops by type, which serves path step 2 (Useful: residents code at pace and merge) and goal 2.
Builds on #5830 (Cormac's one refusal shape, now merged): the "no submission yet" answer is a kernel
Refusalwith aNextCall, not a new shape. Base: canary.What changed
SubmissionHandle(core/continuum-mind/src/work/submission/submission_handle.rs) is thesubmission_idtype of bothwork/submissionandwork/review. Its values areLatest | Id(Shown<SubmissionId>).latestis the default, and the schema she sees lists it as a value (anyOf: [{enum:["latest"]}, {type:string}],default: "latest", no longer required).SubmissionHandle::read(board, card):WorkCard::latest_submission(the one owner of newest; the base already migrated to it).WorkBoardProjection::candidate_for_review, so the reviewer's call on her review card answers.work/reviewresolves through the same function.SubmissionRefusal::NoneYetas a kernelRefusal:work/submit {card_id}when the card is hers to submit (the samework_preconditions::check(Submit)thatwork/submitexecutes under).work/get {card_id}.Handle,NotOnCard, or the review binding refusing that id) getswork/submission {card_id}at its default (latest).work/geton the parent.work/getreads a card from any room she belongs to; asking forlatestagain would repeat the refused read.a_submission_refusal_never_suggests_the_read_it_refusedwalks every cause with each handle that can reach it.WorkSubmitParamsandWorkSubmissionParamsnow serialize. A shown id goes back on the wire only in full; a prefix refuses to serialize.work/reviewandwork/submissiondeclareOnDemand. They are no longer core hands on every card.work_preconditions::in_handputs them in hand when she holds a review card (or her own card once it carries a submission), sowork/reviewis never offered on her own implementation card. This reverses the 11-04 choice to make them core hands, pinned insurface.rs. That fix predates the held-card moves (HeldWork::move_commands→select_granted, contribute.rs:280), which now cover Benchy's 11-04 review card.GroundingOffer::of, grounding.rs). With two schemas fewer in her core hands, the greedyLeveled::reducelet an equal-salience roster take one more unit, and the activity wall dropped out.standing_activity_grounding_survives_history_on_the_wirecaught it: it passed on the base and failed with only the disclosure change, which I confirmed by flipping it back. A standing piece's last level is now its minimum, the same minimum that fixture already counts as fixed.work/submitandwork/get(the remedies in the "none yet" refusal) are Core, so they are offered every act.work/submission, the remedy for a guessed id, is on-demand, but that refusal only comes back from awork/submissioncall she just made. So the verb is already in her hands: a held card put it there, or her learned head or help-loaded tail carries it. A reviewer holding a review card has it throughWorkVerb::Review's grants.submissions_on_card(the "this card has no submissions yet: …" hint)[not_found] submission is absent from this cardsentencewithheld_from_handsguidance appended to everywork/reviewandwork/submissionrefusalMeasured
Before. Source: the M5 prompt captures
~/.continuum/fixtures/prompt-captures/<persona>.jsonland.prev.jsonl, for the 6 h ending at captured_at_ms 1794051773032 (2026-11-07 ~05:42Z). Tool calls are deduplicated bytool_useid, and a call counts as refused when its result starts withrefused. The four residents made 727 calls (Aiko 251, Aris 200, Atlas 151, Benchy 125), and 164 of them were refused:submission_id=latestautoThe six work/submission and work/review rows total 85 of the 164 refusals. Each remaining refusal class has 4 or fewer occurrences.
Replay.
the_m5s_refused_submission_reads_replay_into_answersruns the 64 refusedwork/submissioncalls, copied verbatim intoreplayed_refusals.json, against a real projection of those cards:work/submissionat its default as the next call.auto, which never decodes.latestread misses.the_review_verb_is_never_offered_on_her_own_cardcovers the 22work/reviewcalls.After deploy. Owner: Sneasel (Fable). Run within 1 h of the deploy that carries this, then compare against a restart-only control hour. Measure from the same captures:
work/submissionandwork/review. The expectedlatestand "reviews nothing" counts are 0.work/submitpluscode/edit/code/writecalls per hour, per resident.The card stays open until those numbers are posted.
Not fixed here (four classes; each needs a card):
work/createwithout a repo in a room that declares none: 8 (Aiko)work/submiton a card she doesn't hold: 5 (Aiko)tool/output"exactly one of outputId or act", which should be a one-of type: 5 (Aris 3, Atlas 2)Tests
All runs on macOS with
--features …,metal, in their own target dir:cargo test -p continuum-mind --features test-fixtures,metal --lib: 1114 passed (the replay tests and the never-the-refused-read test included).cargo test -p continuum-cognition --features test-fixtures,metal --lib: 967 passed.cargo test -p continuum-engine --features metal --lib tool_dialect: 6 passed.cargo test -p continuum-core --features metal --lib -- registry:: positron_kanban_source loose_id training_credit work deliberation: 100 passed (the earlierpinned_act_resultfailure is gone on the new base).AGENTIC_SURFACE_CEILINGwas re-pinned from 17956 to 17986, measured locally on the new base. That is the whole-registry total (the two handle schemas); the per-act surface shrinks because both verbs left her core hands.source-hygiene --bin ratchetsagainst canary 9528422): no count changed.oversized-edits.sh: passes.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo