Skip to content

refactor: delete process engine (Option B) (#430) - #482

Merged
vybe merged 4 commits into
mainfrom
feature/430-delete-process-engine
Apr 24, 2026
Merged

vybe merged 4 commits into
mainfrom
feature/430-delete-process-engine

Conversation

@vybe

@vybe vybe commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Changes

Removed (backend):

  • src/backend/services/process_engine/ — 30 files, domain/engine/events/repositories/schemas/services
  • 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

Removed (frontend):

  • 8 views: ProcessDashboard, ProcessEditor, ProcessList, ProcessWizard, ProcessExecutionDetail, ExecutionList, Approvals, ProcessDocs
  • 5 components: ProcessFlowPreview, ProcessChatAssistant, ProcessSubNav, ExecutionTimeline, CostAlertsPanel
  • 4 stores: processes, analytics, executions, alerts

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.md

Updated: 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

  • Pre-existing failure in test_telegram_webhook_backfill.py (4 tests) is unrelated to this PR — verified by running same tests on main before this branch
  • All other existing tests pass: pytest tests/ --ignore=tests/process_engine -x -q
  • Backend imports cleanly (no dangling references to deleted modules)
  • Frontend builds without missing store/component imports

Closes #430

🤖 Generated with Claude Code

vybe and others added 2 commits April 24, 2026 12:06
…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]>
vybe and others added 2 commits April 24, 2026 12:25
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

decision: fold process engine agent_task through TaskExecutionService, or delete the engine

1 participant