Skip to main content

Module control

Module control 

Source
Expand description

Feature-gated control route registration.

This module centralizes control-surface route registration behind the daemon enable_control feature flag.

§Control behavior contract

  • When control is disabled, no control routes are registered.
  • When control is enabled, task cancel is implemented in P6-011:
    • POST /api/v1/tasks/:task_id/cancel
  • When control is enabled, run cancel is implemented in P6-012:
    • POST /api/v1/runs/:run_id/cancel
  • Engine pause is implemented in P6-013:
    • POST /api/v1/engine/pause
  • Engine resume is implemented in P6-014:
    • POST /api/v1/engine/resume

This routing boundary is intentionally centralized so control feature gating remains deterministic and testable.

Functions§

register_routes
Registers control routes according to the control_enabled feature flag.