docs: mark Phase 7 complete in TODO

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Snider 2026-02-20 11:48:48 +00:00
parent ba8c19d32f
commit e7b7459353

16
TODO.md
View file

@ -98,22 +98,22 @@ The `AgentRegistry` interface only has `MemoryRegistry` — a restart drops all
- [x] **`DefaultBaseURL`** changed from `api.core-agentic.dev` (nonexistent) to `http://localhost:8080` for local dev. Set `AGENTIC_BASE_URL` env var for production.
## Phase 7: Priority-Ordered Dispatch + Retry
## Phase 7: Priority-Ordered Dispatch + Retry`ba8c19d`
`DispatchLoop` dispatches tasks in arbitrary order with no retry backoff.
### 7.1 Priority Sorting
- [ ] **Sort pending tasks** in `DispatchLoop` by `Priority` (Critical > High > Normal > Low) before dispatching
- [ ] **Tie-break** by `CreatedAt` (oldest first within same priority)
- [ ] **Tests** — 5 tasks with mixed priorities dispatched in correct order
- [x] **Sort pending tasks** in `DispatchLoop` by `Priority` (Critical > High > Normal > Low) before dispatching
- [x] **Tie-break** by `CreatedAt` (oldest first within same priority)
- [x] **Tests** — 5 tasks with mixed priorities dispatched in correct order
### 7.2 Retry Backoff
- [ ] **Add `MaxRetries` and `RetryCount` fields** to `Task` type
- [ ] **Exponential backoff** in `DispatchLoop` — skip tasks where `RetryCount > 0` and `LastAttempt + backoff(RetryCount) > now`
- [ ] **Dead-letter** — tasks exceeding `MaxRetries` (default 3) get status `TaskFailed` with reason "max retries exceeded"
- [ ] **Tests** — retry delay respected, dead-letter after max retries, backoff calculation
- [x] **Add `MaxRetries` and `RetryCount` fields** to `Task` type
- [x] **Exponential backoff** in `DispatchLoop` — skip tasks where `RetryCount > 0` and `LastAttempt + backoff(RetryCount) > now`
- [x] **Dead-letter** — tasks exceeding `MaxRetries` (default 3) get status `TaskFailed` with reason "max retries exceeded"
- [x] **Tests** — retry delay respected, dead-letter after max retries, backoff calculation
## Phase 8: Event Hooks