@@ -7,8 +7,6 @@ The spec and code are the sources of truth; this file is just the verified backl
77
88 ## Open issues:
99
10-## Spec-alignment backlog
11-
1210 ## Verified UX / behavior debt
1311
1412 - [ ] Prevent `/session` from switching sessions mid-run (`src/ui/commands.ts`, `src/ui/agent.ts`)
@@ -17,10 +15,11 @@ The spec and code are the sources of truth; this file is just the verified backl
1715 ## Product backlog
1816
1917 - [ ] Add first-class delegation/subagent support instead of relying on shell-level `mc -p` delegation (`src/agent.ts`, `src/tools.ts`, `src/prompt.ts`, `src/headless.ts`)
20-- [ ] Add loop safeguards that fit the no-step-limit spec: retry policy, tool-failure/request budgets, and doom-loop detection/reminders without introducing a hard step cap (`src/agent.ts`, `src/submit.ts`, `src/prompt.ts`)
2118
2219 ## Plugin debt (verified, deferred)
2320
21+> We should have built the code plugin first, now we are a little bit in a corner. The only clear seam is core/UI.
22+
2423 - [ ] Make plugin lifecycle match the spec: initialize once at startup and destroy on shutdown, not on prompt-context reload boundaries (`src/index.ts`, `src/plugins.ts`)
2524 - [ ] Match the plugin tool execution API to the spec/docs instead of the temporary `tools` + `toolHandlers` split (`src/plugins.ts`, `src/index.ts`, `spec.md`)
2625 - [ ] Keep `Plugin AgentContext.messages` current or narrow the contract so it is not stale (`src/index.ts`, `src/plugins.ts`, `spec.md`)