Skip to content

fix(work): a room refusal names the room she meant (card 3d7a8780) - #4825

Merged
joelteply merged 1 commit into
canaryfrom
3d7a8780/fix-work-a-room-refusal-names-the-room-s
Oct 7, 2026
Merged

joelteply merged 1 commit into
canaryfrom
3d7a8780/fix-work-a-room-refusal-names-the-room-s

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Kimi sent work/submit and work/list with room 'swe-bench' and work/create
with 'default', and was refused three times in an hour on the 5090
(2026-10-06, QA from BigMama). Her room was
#bench-swe-bench-verified-1789170698. The refusal listed every room in
reach and pointed at none.

resolve_room, the one place every work and activity verb turns a room
name into a Room, now leads its refusal with the room she most likely
meant:

  • a room whose name contains what she typed (one is named as "did you
    mean"; several are named together);
  • else a room a typo or two away, by path_security's nearest_name, the
    file tools' rule, now pub(crate) instead of a second copy;
  • else no guess.
    Every room in reach is still listed after it. The run of stray spaces
    inside the refusal sentence is gone.

Taking the room from the card for card verbs is Fable's #4822.

Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Kimi sent work/submit and work/list with room 'swe-bench' and work/create
with 'default', and was refused three times in an hour on the 5090
(2026-10-06, QA from BigMama). Her room was
#bench-swe-bench-verified-1789170698. The refusal listed every room in
reach and pointed at none.

resolve_room, the one place every work and activity verb turns a room
name into a Room, now leads its refusal with the room she most likely
meant:
- a room whose name contains what she typed (one is named as "did you
  mean"; several are named together);
- else a room a typo or two away, by path_security's nearest_name, the
  file tools' rule, now pub(crate) instead of a second copy;
- else no guess.
Every room in reach is still listed after it. The run of stray spaces
inside the refusal sentence is gone.

Taking the room from the card for card verbs is Fable's #4822.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Oct 6, 2026
… Kimi's #4825 verdict died in serde)

Kimi's work/review failed at the moment she recorded her verdict on #4825: "[invalid]
CommandRequest deserialization failed: UUID parsing failed: invalid length: expected length 32
for simple format, found 8". WorkReviewParams.review_card_id was Uuid and card_id Option<Uuid>,
so the 8-char handle the board shows her died in serde before any resolver ran, while work/submit
took the same handle as a String through resolve_shown.

Both are now handles (String), resolved with resolve_shown against the same board snapshot,
exactly like work/submit; a handle that is not on this board gets card_elsewhere's hint. The
field docs say "board handle or full UUID" (the TS type was already string). The refusals this
touched name the card by role ("the review card you named"), never an id inside the sentence.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 6, 2026
…s is only a fallback (#4822)

* fix(work): a card verb acts in the card's own room; the room she names is only a fallback

Kimi on the 5090 (2026-10-06, BigMama's QA): three refusals in an hour, all one mistake. She
guessed rooms on work verbs ('swe-bench', 'default') while the card id in her hand already said
where the card was. A card sits on exactly one board, so the card names its room. work/submit,
work/submission and work/review now resolve the room from the board that holds the card
(board_horizon + resolve_card_id_in_boards, the walk card_elsewhere already used). `room` is
optional on all three and consulted only for a card on no board she can see; with neither, the
refusal says how to fix it (room/join, or room=...). This is the module's own accept-or-redirect
rule (follow_card_room), replacing a refusal that asked her for what the card knows.

A named room that does not hold the card is probed (work.room.from_card, asked vs used) and
never silently trusted. Verbs without a card (work/create, work/list) keep refusing a room
outside her reach; Cormac's card 3d7a8780 gives that refusal a did-you-mean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix(work): room_of_card never turns a swallowed error into "on no board" (Cormac on #4822)

room_of_card read the boards with `if let Ok(..)` twice. An ambiguous prefix (a refusal naming
the tie), a board it could not read, or a subscription set that failed all fell through, and
with no room named she was told the card "is on no board of a room you are in": a confident
wrong answer.

- the subscription set failing is an Internal error, said as one
- a handle that does not resolve across her boards: a named room disambiguates (its own
  resolution reports its own truth); unnamed, the resolver's refusal is the answer
- a whole id on no READABLE board: named, that room answers; unnamed, an unreadable board is
  the horizon's read-failure story, and only a clean absence says "join it or name it"
- a card found on two readable boards is probed (work.room.card_on_two_boards), not silent

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix(work): the no-board refusal names no id inside its sentence (Joel: a uuid is never part of a string)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix(work): the card verbs' room doc is one short clause (Cormac on #4822: the tool surface)

Optional; the card's board decides. This change moves the agentic surface from canary's
17,222 to 17,164 guard tokens; canary's own excess over the 17,150 ceiling is #4826's to
remove (work/list's help).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix(work): work/review takes the board handles she is shown (BigMama: Kimi's #4825 verdict died in serde)

Kimi's work/review failed at the moment she recorded her verdict on #4825: "[invalid]
CommandRequest deserialization failed: UUID parsing failed: invalid length: expected length 32
for simple format, found 8". WorkReviewParams.review_card_id was Uuid and card_id Option<Uuid>,
so the 8-char handle the board shows her died in serde before any resolver ran, while work/submit
took the same handle as a String through resolve_shown.

Both are now handles (String), resolved with resolve_shown against the same board snapshot,
exactly like work/submit; a handle that is not on this board gets card_elsewhere's hint. The
field docs say "board handle or full UUID" (the TS type was already string). The refusals this
touched name the card by role ("the review card you named"), never an id inside the sentence.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@joelteply

Copy link
Copy Markdown
Contributor Author

x


Authored by Continuum citizen e2f0e022-04ac-4f66-a26c-7146551745b4 (posted through the operator's GitHub account).

joelteply added a commit that referenced this pull request Oct 6, 2026
… room she does not subscribe to (card ed2c9417) (#4836)

Kimi held 017843bb (the #4825 review card, on #cambriantech) with its lease
renewed while persona.work.gate read decision=no_held_work, so she idled,
then created a new 'verdict pending' review card every turn: seven for one
verdict by 21:20Z (BigMama, eb937f07 / 61c57c1c / f3ca75e0).

Two definitions of held: the gate (active_claims -> board_held_by ->
scoped_board_owned_by) walked only her subscription set, while the renewal
also walked persona::held_claims records beyond it, renewing a claim that
followed its card to a room she does not subscribe to.

scoped_board_owned_by now reads each followed-claim record whose room is
outside the walk, on that room's own board (Airc::work_board_in), and
includes the card when she still owns it; held_of_owned then filters lease,
claimability and settlement as for every other card. One owned set feeds
the gate and the renewal. The renewal's walk renews these through their own
room, and beyond_the_walk no longer names them a second time. An
unreadable followed room is probed and skipped, never erasing her other
holds.

followed_beyond_rooms (pure) picks the records to read: room not walked,
card not already found. Test:
a_followed_claim_outside_her_rooms_joins_the_owned_walk_once. Not compiled
on IntelMac (its CPU serves residents); CI builds and tests.


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

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
joelteply added a commit that referenced this pull request Oct 6, 2026
…ubscribed to it (card d6e1b7a2) (#4837)

BigMama on #4836: with #4836 the gate sees 017843bb (Kimi's #4825 review
card, on #cambriantech) as held, but work/review on it still failed.
#4822's room_of_card resolves a card only on boards of rooms she
subscribes to: a full id on no subscribed board read 'on no board of a room
you are in', and the short handle the board showed her ('017843bb') failed
the resolver outright, its candidates being only those boards' cards.

room_of_card now consults her followed-claim records
(persona::held_claims::held), the record the renewal and (since #4836) the
work gate already trust, in both places, before any named-room fallback
or refusal. followed_room (pure) resolves the handle against the recorded
card ids with the same id_resolve::resolve the boards use and returns the
recorded room. The verb then reads that room's board and resolves the
handle there as usual. A handle matching none of her records changes
nothing: the existing refusal stands. See and act now read one record.

Test: a_card_she_holds_on_an_unsubscribed_room_names_its_room (the short
handle, the full id, a stranger's handle, no records). Not compiled on
IntelMac (its CPU serves residents); CI builds and tests.


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

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
@joelteply
joelteply merged commit 69a2c2b into canary Oct 7, 2026
6 checks passed
@joelteply
joelteply deleted the 3d7a8780/fix-work-a-room-refusal-names-the-room-s branch October 7, 2026 00:21
joelteply added a commit that referenced this pull request Oct 7, 2026
…eable, not Closed (card bcb9860c) (#4840)

Measured 2026-10-06: Kimi passed submission 64310abf on card 3d7a8780 (PR
#4825). The verdict branch of advance_card_state_effective advanced the
parent to Closed while its PR was still open, so `airc work merge` refused
it: "state is Closed, but airc work merge requires Review". Closed meant two
things, accepted with the PR still open and abandoned, and the merge gate
could not tell them apart. The merge went through only after a hand move
back to Review.

A pass on a parent with a linked PR that is not yet Merged now leaves it in
Review (moved there if it was elsewhere) and probes
work.review.passed_awaiting_merge. The card finishes through its merge as
Merged. A card with no PR (a bench round's) still closes on the pass, and a
send-back still returns it to InProgress.

Test: a_pass_leaves_a_card_with_an_open_pr_mergeable_and_closes_one_without
(a PR-linked parent stays in Review after its review card closes as passed;
an unlinked one closes). Not compiled on IntelMac (its CPU serves
residents); CI builds and tests.


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

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
joelteply added a commit that referenced this pull request Oct 7, 2026
…k/submission in her hands (card 8a8c3671) (#4842)

BigMama, 2026-10-06: Kimi, holding review card deec4ac2 (#4840), reasoned
"work/review is not in this prompt", and she was right. A work turn offers
her hands_surface, which withholds work/review and work/submission from every
holder. That withholding is deliberate (tool_dialect::withheld_from_hands;
measured 9/19, holders of ORDINARY cards called them as "review the spec").
But a native-tool model can call only what it was offered, so the holder of a
REVIEW card lost the one verb her card exists for. She landed #4825's verdict
only after detours.

- tool_dialect::reviewer_hand names the two verbs, beside the rule that
  withholds them.
- TurnFraming and Workspace carry `reviewing`, a structural fact about the
  held card (card.reviews is Some), never a read of her output.
  act_question sets it from the focused held card; the cycle stamps it on the
  workspace.
- The faculty builds review_hands_specs (hands_specs plus the reviewer verbs,
  in the wire dialect) beside hands_specs at rebuild, priced the same way. A
  reviewing work turn selects it, and every other work turn is unchanged.

Test: a_review_cards_work_turn_carries_the_reviewer_verbs_and_an_ordinary_one_does_not
(a reviewing work turn is offered both verbs at the price of what is sent; an
ordinary holder's work turn is offered neither). Not compiled on IntelMac (its
CPU serves residents); CI builds and tests.

Read first: docs/architecture/PERSONA-COGNITION-PIPELINE.md. This is the tool
surface of the live WorkspaceCycle (section 2, verbs 6 and 9); no bypass and
no parallel path.


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

Co-authored-by: Claude Opus 5.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