mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
feat(gateway): A1 plan-required-at-claim gate
i_will_plan now requires approach (min_length=20) at the schema and non-empty sub_tasks at the gateway when the caller is a PM role. Restores pre-gateway parity for _validate_claimed_start — agents could not transition claimed -> in_progress without filling the rich plan. Smoke run 3 (2026-05-11) showed PMs calling i_will_plan with just plan='paragraph' and the gateway accepting it; Plan tab stayed empty because no agent filled approach/sub_tasks/risks/open_questions. Spec ref: docs/superpowers/specs/2026-05-12-post-smoke-3-fixes-design.md section A1.
This commit is contained in:
@@ -240,6 +240,14 @@ async def test_i_will_plan_calls_heartbeat() -> None:
|
||||
deps = _make_deps(task=task_svc)
|
||||
c = Choreographer(deps)
|
||||
|
||||
await c.i_will_plan(pm_id, tid, plan="plan-text")
|
||||
await c.i_will_plan(
|
||||
pm_id,
|
||||
tid,
|
||||
plan="plan-text",
|
||||
rich_plan={
|
||||
"approach": "Single-cell decomposition: backend handles all scope.",
|
||||
"sub_tasks": [{"title": "Slice A", "description": "backend API work"}],
|
||||
},
|
||||
)
|
||||
|
||||
task_svc.heartbeat.assert_awaited_with(tid)
|
||||
|
||||
Reference in New Issue
Block a user