HUE-017 — Implement durable task, run, plan and step state machines
Canonical source:
docs/roadmap/issues.json·HUE-017Specification status:
TBI· Readiness:agent:blocked
Represent assigned outcomes and execution attempts truthfully across restarts.
- Persist task/run/plan revisions/steps
- Validate transitions and dependencies
- Model waiting, interrupted, unknown, unverified and verified
Acceptance criteria
Section titled “Acceptance criteria”- Illegal transitions are rejected
- Task and run statuses remain distinct
- Plan revisions preserve rationale
- State-machine tests cover every edge
Dependencies
Section titled “Dependencies”HUE-008HUE-013HUE-004
Non-goals
Section titled “Non-goals”- None beyond the documented scope.
Product contract
Section titled “Product contract”- Follow the milestone and repository product contract.
Implementation handoff requirements
Section titled “Implementation handoff requirements”- Preserve the documented security, project, memory and event boundaries.
- Add or update automated tests for every observable acceptance criterion.
- Provide real verification output; do not rely on a worker/agent self-report.
- Update only the exact documentation sections whose status changed.
- Include screenshots or a recording for user-interface changes.
- Include migration, rollback and recovery notes for data/state changes.
- Link the pull request to this issue with
Closes #<issue-number>.