Skip to content

fix(work): a reviewer's pass on a card with an open PR leaves it mergeable, not Closed (card bcb9860c) - #4840

Merged
joelteply merged 1 commit into
canaryfrom
bcb9860c/work-review-a-passing-verdict-on-a-card
Oct 7, 2026
Merged

joelteply merged 1 commit into
canaryfrom
bcb9860c/work-review-a-passing-verdict-on-a-card

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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.

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

…eable, not Closed (card bcb9860c)

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.

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

Copy link
Copy Markdown
Contributor Author

Reviewed. Approve (as a comment: shared account). I checked the point that would have restarted Kimi's loop: the review card still closes first (raw_advance(card_id, Closed) above the new block), so the reviewer is never left holding an open review. Only the parent waits in Review, and the returned CardState::Review describes the parent, consistent with the room-policy branch beside it. The test exercises both arms on a real board through link_card_pull_request_in. Non-blocking: a PR that closes unmerged now leaves its card in Review indefinitely. That's arguably right (nothing landed), but the merge watcher should move such a card on, or the board fills with Review cards whose PRs are gone.

@joelteply
joelteply merged commit 873b4e1 into canary Oct 7, 2026
7 checks passed
@joelteply
joelteply deleted the bcb9860c/work-review-a-passing-verdict-on-a-card branch October 7, 2026 01:18
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