You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
decision: fold process engine agent_task through TaskExecutionService, or delete the engine #430
src/backend/services/process_engine/engine/handlers/agent_task.py calls AgentClient.chat() directly, bypassing TaskExecutionService, SlotService, CapacityManager, cleanup service, and all other orchestration invariants.architecture.md already documents the engine as "OUT OF SCOPE, dormant."
This is the silent exception to every invariant in the Tier 0–2.5 plan. Every hardening PR that ships has a footnote "…except for process engine."
Decision required
Two honest options — sitting between them is the expensive choice:
Option A — Fold agent_task handler through TaskExecutionService
Process steps inherit slot/timeout/PID/cleanup behaviour automatically.
Process-engine becomes a specific kind of trigger, not a parallel universe.
Cost: ~200–400 LOC refactor in the engine handler.
Risk: process-engine tests may surface drift (the engine has its own observability).
Option B — Delete the process engine
Code exists but is not actively being developed (per CLAUDE.md and architecture.md).
feature-flows/process-engine/ docs move to historical/.
Removes ~several thousand LOC of dormant surface.
Cost: one PR with a big red diff, plus stakeholder confirmation that no one is using it.
Non-option — status quo
Leaving it as-is means every future invariant (CAPACITY-CONSOLIDATE, CLEANUP-COLLAPSE, #306 push completion) has a silent exception. #291 webhook triggers also can't be designed cleanly until this is resolved.
Parallel to other Tier 2.5 work
This can proceed in parallel with #306 because it's an architectural decision + refactor with no runtime dependency on push completion. Best to resolve before CAPACITY-CONSOLIDATE so the new primitive doesn't have to account for a legacy bypass path.
Decision owner
@vybe — please weigh in on A vs. B. If A, I can scope the refactor. If B, I'd like a confirmation that no live deployment depends on process engine.
Context
See docs/planning/ORCHESTRATION_RELIABILITY_2026-04.md — Tier 2.5 Simplification.
Activity
docs(planning): orchestration reliability — Sprint D / #306 shipped, #…
docs(#430): sync feature flows after process engine deletion
vybe commentedon Apr 24, 2026
Closed by PR #482 — chose Option B (delete). Process engine removed from main; full history preserved on branch
archive/process-engine.docs(#430): mark process engine deleted in requirements.md
fix(#430): remove stale /alerts → ?tab=cost-alerts redirect
refactor(#430): delete process engine (Option B)
docs: remove process-dashboard feature flow (process engine deleted in …
fix(validate-architecture): stale-citation filter + dedupe guard (#511)…
Release: v0.5.0 (#608)
docs(user-docs): sync to platform state since 2026-04-23
chore: reconcile dev with divergent main (dev authoritative)
feat(workspace): New chat means a new chat (ent#451 — the fresh-threa…
Release: v0.9.5 (#2872)
refactor(scheduler): remove the process-schedule remnant from the sch…
refactor(scheduler): remove the process-schedule remnant (#3432) (#3440)