refactor(frontend): migrate execution trace to CqrsStatus#1154
Conversation
StepExecutionState.status now uses the shared CqrsStatus type instead of a local 5-state union. Renames: 'active' → 'running', 'waiting' → 'paused' to match CQRS lifecycle semantics. Updated consumers: graph.ts, GraphCanvas.tsx, StudioWorkbenchSections.tsx. Refs: frontend-audit-003
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## refactor/2026-05-28_frontend-shared-cqrs-state #1154 +/- ##
===============================================================================
Coverage 83.12% 83.13%
===============================================================================
Files 1013 1013
Lines 67357 67357
Branches 8725 8725
===============================================================================
+ Hits 55991 55994 +3
+ Misses 7515 7512 -3
Partials 3851 3851
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
🤖 Phase 10 review —
|
🤖 Phase 10 review —
|
🤖 Phase 10 review —
|
📊 Phase 10 advisory review 完成 — #1154(❌ 不需要 controller 介入)
判定:2 approve + 1 reject,未达成 3/3 unanimous,不 auto-merge。quality reviewer evidence 见上方评论。 下一步:PR author(@potter-sun)阅读 quality reviewer 评论后决定是否修复;controller 不派 fix codex 改外部 PR。head SHA 重新 push 后下次 wakeup re-review。 🤖 controller status banner ⟦AI:AUTO-LOOP⟧ |
Issue
frontend-audit-003 (HIGH) — Incomplete CQRS state model in execution trace.
StepExecutionState.statuswas typed as'idle' | 'active' | 'waiting' | 'completed' | 'failed', missing Accepted, Streaming, Paused, Observed, StillProcessing states required by the design baseline.Source
Frontend architecture audit (
docs/audit-scorecard/2026-05-28-frontend-audit.md).Fix Summary
Migrated
execution.tsto use the sharedCqrsStatustype from PR #1152. Renamed:'active'→'running'(observation phase)'waiting'→'paused'(waiting for human input/approval/signal)Updated 3 consumer files:
graph.ts—StudioGraphNodeData.executionStatustypeGraphCanvas.tsx— status color and badge renderingStudioWorkbenchSections.tsx— interaction detection checkReview Record
Stacked on: PR #1152 (shared CqrsStatus type)
🤖 Generated with Frontend Refactoring Team