Repository navigation
refactor: delete process engine (Option B) (#430) - #482
Merged
Merged
Conversation
…archive/process-engine The process engine's `agent_task.py` handler bypassed `TaskExecutionService`, violating all orchestration invariants (slot accounting, activity tracking, backlog). Chose Option B (delete) per issue #430 decision. Preserved: full git history on branch `archive/process-engine`. Removed: - `src/backend/services/process_engine/` (~8 k LOC, 30 files) - 7 dormant routers: processes, process_templates, executions (PE), audit (PE), alerts, approvals, triggers — none were mounted in main.py - 2 dead imports in main.py: set_websocket_publisher_broadcast, run_execution_recovery - Frontend: 4 views (ProcessDashboard, ProcessEditor, ProcessList, ProcessWizard, ProcessExecutionDetail, ExecutionList, Approvals, ProcessDocs), 3 components (ProcessFlowPreview, ProcessChatAssistant, ProcessSubNav, ExecutionTimeline, CostAlertsPanel), 4 stores (processes, analytics, executions, alerts) - 80+ tests (tests/process_engine/**, tests/unit/test_webhook_signature.py) - docs/memory/feature-flows/process-engine/ (11 docs) - docs/diagrams/07-process-engine.md, docs/user-docs/advanced/process-engine.md Updated: NavBar.vue, OperatingRoom.vue (removed cost-alerts tab), docs/memory/architecture.md, docs/memory/feature-flows.md, docs/planning/ORCHESTRATION_RELIABILITY_2026-04.md (#430 marked shipped, #291 unblocked), db/audit.py, models.py, platform_audit_service.py. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- operating-room.md: remove Cost Alerts tab (3-tab not 4-tab), drop CostAlertsPanel.vue + alerts.js store references, update NavBar badge formula, UX behaviors, file inventory, and revision history - feature-flows.md: update Operating Room description; mark Alerts Page as removed in #430 - Archive process-dashboard.md (process engine feature, now deleted) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Section 18 replaced with a deletion notice pointing to the archive branch (archive/process-engine) and explaining the rationale (Option B from issue #430 — agent_task bypassed TaskExecutionService). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The cost-alerts tab was deleted but the router redirect was left behind. Navigating to /alerts would silently fall through to the default tab (needs-response) rather than an obvious 404. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
7 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
services/process_engine/, ~8k LOC) — Option B from issue decision: fold process engine agent_task through TaskExecutionService, or delete the engine #430agent_task.pyhandler bypassedTaskExecutionService, violating all orchestration invariants (slot accounting, activity tracking, backlog); no fix path was clean enough to justify keeping itarchive/process-engineChanges
Removed (backend):
src/backend/services/process_engine/— 30 files, domain/engine/events/repositories/schemas/servicesprocesses,process_templates,executions(PE),audit(PE),alerts,approvals,triggers— none were mounted inmain.pymain.py:set_websocket_publisher_broadcast,run_execution_recoveryRemoved (frontend):
Removed (tests): 80+ PE-specific tests +
test_webhook_signature.py(tested deleted webhook_publisher)Removed (docs):
docs/memory/feature-flows/process-engine/(11 docs),docs/diagrams/07-process-engine.md,docs/user-docs/advanced/process-engine.mdUpdated: NavBar.vue (removed alerts store refs), OperatingRoom.vue (removed cost-alerts tab), architecture.md, feature-flows.md, ORCHESTRATION_RELIABILITY_2026-04.md (#430 shipped, #291 unblocked)
Test Plan
test_telegram_webhook_backfill.py(4 tests) is unrelated to this PR — verified by running same tests onmainbefore this branchpytest tests/ --ignore=tests/process_engine -x -qCloses #430
🤖 Generated with Claude Code