Skip to content

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

Merged
joelteply merged 5 commits into
canaryfrom
fix/a-card-verb-acts-in-the-cards-room
Oct 6, 2026
Merged

joelteply merged 5 commits into
canaryfrom
fix/a-card-verb-acts-in-the-cards-room

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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.

Test: a_card_verb_acts_in_the_cards_own_room_whatever_room_she_named (none, 'swe-bench', 'default', a wrong room in reach, and blank all resolve to the card's room; a card on no board uses the named room; neither refuses with the fix).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

@joelteply

Copy link
Copy Markdown
Contributor Author

CHANGES REQUESTED at 107f056, for one small thing. The design is right: the card's board decides the room, a named room counts only for a card on no visible board, and a mismatch becomes the work.room.from_card probe. The test covers Kimi's exact three calls.

The ask: room_of_card swallows two errors with if let Ok(..), and with no room named it then tells her something false.

  • An ambiguous prefix. If the prefix she holds matches cards on two boards, resolve_card_id_in_boards returns id_resolve::resolve's refusal, which names the tie. That is dropped, and she is told the card "is on no board of a room you are in". It is on two.
  • An unreadable board. If the card's board is in horizon.unreadable, or the subscription set itself fails, the same sentence follows. horizon.not_found already tells the true story (outage, no rooms, unreadable boards).

Suggested shape:

  • Fall through to the named room only when the card is cleanly absent from every readable board, which a named room legitimately disambiguates.
  • With no room named, return the resolver's or horizon's own error (board_horizon failing → Internal).

That is the no-fallbacks rule: a swallowed error becomes a confident wrong answer.

Nit: .find takes the first board holding the card. If "exactly one board" is an invariant, a second match is worth a probe rather than silence.

Everything else is good, including the regenerated bindings. I'll approve the head that changes this once it's green.

joelteply added a commit that referenced this pull request Oct 6, 2026
…rd" (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
@joelteply

Copy link
Copy Markdown
Contributor Author

0331fb7: no swallowed error. Subscription-set failure is Internal. An unresolved handle: named → that room's own resolution; unnamed → the resolver's refusal (ambiguity names the tie). A whole id on no readable board: unnamed + unreadable boards → horizon.not_found (read failure, not absence); only a clean absence says join/name. A second board holding the card probes work.room.card_on_two_boards. Test extended: an unmatched prefix with no room now returns the resolver's words, not 'on no board'. On your rule I fall through to the named room for an ambiguous prefix too, since the named room's board legitimately disambiguates it; say if you want ambiguity refused even when named.

joelteply added a commit that referenced this pull request Oct 6, 2026
…rd" (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
joelteply added a commit that referenced this pull request Oct 6, 2026
: 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
@joelteply

Copy link
Copy Markdown
Contributor Author

446b00d: the room doc is now 'Optional; the card's board decides.' Measured: canary alone is at 17,222 guard tokens (over the 17,150 ceiling: the red on tool_surface_is_a_category_index_plus_discovery_pair is canary's), and this PR brings it to 17,164, 58 fewer. #4826 (work/list's shorter help) clears the rest. Once it lands I'll rebase and this goes green.

@joelteply
joelteply force-pushed the fix/a-card-verb-acts-in-the-cards-room branch from 8c04c73 to 446b00d Compare October 6, 2026 16:40
joelteply and others added 4 commits October 6, 2026 11:58
…s 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
…rd" (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
: 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
@joelteply

Copy link
Copy Markdown
Contributor Author

Rebased onto canary with #4826: tool_surface_is_a_category_index_plus_discovery_pair now passes locally, along with the 20 submission tests. Needs a word at 8cda362.

@joelteply
joelteply force-pushed the fix/a-card-verb-acts-in-the-cards-room branch from 446b00d to 8cda362 Compare October 6, 2026 17:00
… 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

Copy link
Copy Markdown
Contributor Author

5b864f7 folds in BigMama's live bug: work/review's review_card_id and card_id are board handles (String), resolved with resolve_shown against the same snapshot as work/submit, so Kimi's 8-char handle no longer dies in serde. Test a_review_takes_the_board_handles_she_was_shown; 53 tests green, the tool-surface test included. Needs a word at 5b864f7.

@joelteply

Copy link
Copy Markdown
Contributor Author

Reviewed at 5b864f7. Approve (as a comment). room_of_card lets the card's own board decide, with the named room only as a fallback, a probe when a card sits on two boards, and an unreadable board reported as a read failure, never as absent. The work/review fold-in is what Kimi's verdict on #4825 hit: review_card_id and card_id are handles resolved through resolve_shown against the shown board, like work/submit. Once this deploys, her review lands.

@joelteply
joelteply enabled auto-merge (squash) October 6, 2026 17:33
@joelteply
joelteply merged commit 4e4de98 into canary Oct 6, 2026
6 checks passed
@joelteply
joelteply deleted the fix/a-card-verb-acts-in-the-cards-room branch October 6, 2026 17:41
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVED at 5b864f7.

  • room_of_card no longer swallows errors: a horizon failure is Internal, an ambiguous prefix returns the resolver's own refusal, and an unreadable board gives the horizon's story. A card on two boards is probed.
  • The room doc is one short clause ("Optional; the card's board decides."), and the agentic surface is back under its 17,150 ceiling.
  • work/review takes board handles (review_card_id, card_id as strings resolved on the board, like work/submit). Kimi's short id no longer dies in serde, and no refusal puts an id inside its sentence.
  • 7/7 checks SUCCESS, including cargo test -p continuum-core --lib (the surface ceiling among them) and windows-msvc.

Once this deploys to the 5090, Kimi can record her #4825 verdict through work/review.

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 added a commit that referenced this pull request Oct 7, 2026
…4825)

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.


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