1.7 KiB
1.7 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec |
|---|---|---|---|---|---|---|
| 01-cycle-analyzer | Workflow replay cycle analyzer | done | 1 | plan.md | ../../specs/tasks/requirements/workflow-cycle-guardrails.md |
Task 01: Workflow replay cycle analyzer
Acceptance
- A pure deterministic analyzer returns the diagnostic contract from the spec
for cycles over
on_turn_startandon_turn_completemove actions. - Fully automatic versus user-mediated classification accounts for source-step
auto-start and approval, including automatic
on_turn_starttransitions, and ignores cycles without auto-start re-entry throughon_turn_complete. Anon_turn_startedge into an auto-start step is covered as a safe non-replay regression. - Trace choice, bounded identity inventory with conservative truncation, affected steps, dangling targets, reorder behavior, and all three prompt-source categories have focused unit coverage.
Verification
(cd apps && pnpm --filter @kandev/web test -- lib/workflows/replay-cycle-analysis.test.ts)
(cd apps/web && pnpm run typecheck)
Files Likely Touched
apps/web/lib/workflows/replay-cycle-analysis.tsapps/web/lib/workflows/replay-cycle-analysis.test.ts
Dependencies
None.
Inputs
- Spec sections
What,Analysis Contract, andScenarios. apps/web/lib/types/workflow-actions.tsfor action shapes.apps/backend/internal/workflow/engine/types.gofor transition resolution and trigger semantics.apps/backend/internal/orchestrator/event_handlers_workflow.gofor the auto-start/user-turn distinction.
Output Contract
When finished, change this task's status to done, check it in plan.md, and
report the analyzer API, files changed, tests run, blockers, and residual risks.