@@ -500,17 +500,17 @@ Add a startup poll: on `@app.on_event("startup")`
500500
501501** Acceptance criteria:**
502502
503- - [ ] ` POST /task ` returns 202 Accepted immediately (not 200 + body)
504- - [ ] Background task calls ` client.next_task() ` and ` client.complete_task() `
505- - [ ] Startup poll calls ` client.next_task() ` once on boot
506- - [ ] Agent no longer defines its own ` TaskMessage ` / ` DecisionMessage ` models
507- - [ ] ` foreman-client ` appears in ` agents/issue-triage/pyproject.toml ` dependencies
508- - [ ] ` GET /health ` is unchanged
503+ - [x ] ` POST /task ` returns 202 Accepted immediately (not 200 + body)
504+ - [x ] Background task calls ` client.next_task() ` and ` client.complete_task() `
505+ - [x ] Startup poll calls ` client.next_task() ` once on boot
506+ - [x ] Agent no longer defines its own ` TaskMessage ` / ` DecisionMessage ` models
507+ - [x ] ` foreman-client ` appears in ` agents/issue-triage/pyproject.toml ` dependencies
508+ - [x ] ` GET /health ` is unchanged
509509
510510** Verification:**
511511
512- - [ ] ` uv run pytest --agent-digest=term tests/test_agent_server.py `
513- - [ ] ` pre-commit run --all-files `
512+ - [x ] ` uv run pytest --agent-digest=term tests/test_agent_server.py `
513+ - [x ] ` pre-commit run --all-files `
514514
515515** Dependencies:** Tasks 8, 9
516516
@@ -529,15 +529,15 @@ Test startup poll behaviour.
529529
530530** Acceptance criteria:**
531531
532- - [ ] ` POST /task ` returns 202 (not 200)
533- - [ ] Background task is triggered; ` client.next_task() ` and ` client.complete_task() ` called
534- - [ ] ` client.next_task() ` returning ` None ` does not crash the background task
535- - [ ] Startup poll fires ` client.next_task() ` once on lifespan start
532+ - [x ] ` POST /task ` returns 202 (not 200)
533+ - [x ] Background task is triggered; ` client.next_task() ` and ` client.complete_task() ` called
534+ - [x ] ` client.next_task() ` returning ` None ` does not crash the background task
535+ - [x ] Startup poll fires ` client.next_task() ` once on lifespan start
536536
537537** Verification:**
538538
539- - [ ] ` uv run pytest --agent-digest=term tests/test_agent_server.py `
540- - [ ] ` pre-commit run --all-files `
539+ - [x ] ` uv run pytest --agent-digest=term tests/test_agent_server.py `
540+ - [x ] ` pre-commit run --all-files `
541541
542542** Dependencies:** Task 14
543543
@@ -549,8 +549,8 @@ Test startup poll behaviour.
549549
550550### Checkpoint: Phase 5
551551
552- - [ ] ` uv run pytest --agent-digest=term ` — full suite passes
553- - [ ] Reference agent uses ` ForemanClient ` ; no inline protocol models remain
552+ - [x ] ` uv run pytest --agent-digest=term ` — full suite passes (261 tests)
553+ - [x ] Reference agent uses ` ForemanClient ` ; no inline protocol models remain
554554- [ ] Human review before proceeding
555555
556556### Phase 6: Documentation and Integration
0 commit comments