[SYMPP-45CD] Make draft WorkRequests architect-claimable - #629
Conversation
Summary: - Treat draft as an eligible architect handoff status. - Return the supported local architect claim recovery action. - Cover draft creation, claim, promotion, and session continuity. Rationale: - Draft is a valid persisted WorkRequest status, but the shared handoff eligibility list excluded it and created an authority catch-22. - Reusing the shared eligibility predicate fixes every affected path while preserving existing scope, lease, capability, and terminal checks. Tests: - mix test focused WorkRequest architect handoff and MCP suites (53 passed) - mix test claim_session_transport_03_test.exs:394 (1 passed) - make -C elixir all Co-authored-by: Codex <codex@openai.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 3 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughDraft WorkRequests can pass architect handoff eligibility checks. MCP flows now claim draft architect assignments, promote WorkRequests, preserve scope access, and return local recovery actions for invalid path constraints. ChangesDraft Architect Handoff
Estimated code review effort: 2 (Simple) | ~15 minutes Merge Risk: ⚪ Minimal · up to This PR enables draft WorkRequests to follow the existing architect claim flow and updates the associated claim action, with focused validation reported as passing; no actionable merge-blocking risk remains beyond normal checks and review. Sequence Diagram(s)sequenceDiagram
participant MCPWorkRequestTools
participant ArchitectHandoff
participant WorkRequest
MCPWorkRequestTools->>ArchitectHandoff: claim draft architect handoff
ArchitectHandoff-->>MCPWorkRequestTools: return architect grant and work package
MCPWorkRequestTools->>WorkRequest: promote draft to ready_for_slicing
WorkRequest-->>MCPWorkRequestTools: return updated status
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Context
Draft is a valid WorkRequest state, but architect handoff excluded it. This blocked fresh claims and invalidated live sessions.
TL;DR
Allow draft WorkRequests to use the existing architect claim path.
Summary
draftto the shared architect handoff eligibility list.claim_local_architect_assignment.Alternatives
Test Plan
make -C elixir allmake -C elixir ci-fullwhen release/full validation is requiredSummary by CodeRabbit
New Features
draftstatus.ready_for_slicingafter an architect assignment is claimed.Bug Fixes