Repository navigation
agent status: inventory refusal follows the canonical next action (#6986) - #8399
Conversation
…6986) The inventory's choose-vs-continue refusal for several awaiting attempts or open seams now follows the canonical decision (choose_attempt/choose_item), with the candidate count as the shared fallback. Rendered text unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Em12HpuY7UcKeXeTmsjfBS
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Local proof on head (in-session, before marking ready):
Not run locally: full-workspace tests (left to hosted CI). Generated by Claude Code |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 23 minutes. View limit details
Comment |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Generated by Claude Code |
Pull request was converted to draft
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- No test exercises
currentness/platform/detail_route/restart_routepropagation through the inventory projection; structural coverage of the NextActionInput fields is shallow in the new tests. - crates/ripr/src/app/agent_status.rs:868 —
inventory_requires_choicere-derives the selector's classification by comparingaction.action_class()to a caller-passedNextActionClass. Branch on the decision's intrinsic variant instead; otherwise the surface silently drifts ifChooseAttempt/ChooseItemare renamed. - Replaced (Some,Some) tuple match with (Some,second) + seams.extend(...): visually subtle change; reviewers should re-derive that single-iter BTreeMap yields sorted seam_ids and dedup invariant is preserved by the HashSet that constructed
open.
Verification questions
- Confirm decision-per-state render test asserts both branches but stops at the ChooseItem assertion and drops root cleanup afterward in the ChooseItem branch; the multi-seam warning 'multiple_open_repair_seams' render is not asserted in that test.
- Confirm fallback test exercises the unbound-root path for resumable only; the Err-fallback branch for the open-seam multi case is exercised but a single open seam in fallback path is not tested, leaving the (false, [attempt]) single-seam continue route uncovered under Err.
- Confirm canonical_next_action_for_inventory is called with empty open_seams during the resumable pass; attempts-only projection is OK because item_id falls through to empty string when count != 1.
- Confirm inventory_requires_choice treats Err(_) as candidate_count > 1; an Err from projection with candidate_count == 1 would flip a single-attempt path into refusal — only reachable when canonical input is unbuildable.
- Confirm helper
inventory_requires_choiceduplicates the selector's classification decision. The canonical path already knows its class; reading it back here is a second source of truth on the surface's intent. - Confirm inventory_decision_human_and_json_agree_from_one_dto only covers the resumable choose_attempt branch; open-seam ChooseItem human/JSON parity is not pinned by the new tests.
Refuted
- Refusing to bind a single open seam when the canonical decision returns ChooseItem would suppress a real continue.; refuted because:
inventory_requires_choicereturns true only when the selector's class isChooseItem, so a single open seam whose projection binds (e.g. by a different rule) still flows into the binding arm viaif !choose_seam. The matching decision's projection is what gates the arm, not the raw count.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
No fix goes into this branch. Once #8418 merges I'll merge main in here so CI re-runs, and auto-merge stays armed. Generated by Claude Code |
Pull request was converted to draft
Requested by Steven · project thread
Before:
ripr agent statusdecided locally, by counting attempts/seams, whether the inventory must refuse to choose; the canonical next-action selector was not consulted for the inventory (only for the single-attempt path).After: the inventory builds a canonical decision and the refusal follows it (
choose_attemptfor several awaiting attempts,choose_itemfor several open seams). When the projection cannot be built (e.g. unbound root) the shared count fallback applies. Rendered text and commands are byte-for-byte unchanged. Inventory slice of #6986; precedent #8319 (doctor).How:
canonical_next_action_for_inventoryprojects the inventory intoNextActionInput;inventory_requires_choicereads the decision with the count fallback;select_next_commandbranches on it. Tests: decision-per-state render test, fallback test (negative control for an unbuildable projection), and a human/JSON agreement test for the one inventory DTO (Control 9). Changelog fragment added.Generated by Claude Code