Skip to content

Update stale feature flow documentation for execution layer #100

Closed

Description

@vybe

Problem

Multiple feature flow documents are out of date and contradict the current code, specifically around the 2026-03-09 EXEC-024 consolidation and other recent changes.

Specific Contradictions

Document Claims Reality
scheduling.md Scheduler calls agent container directly Scheduler calls backend POST /api/internal/execute-task (changed 2026-03-09)
scheduling.md Scheduler tracks activities via internal API endpoints TaskExecutionService now handles activity tracking
execution-queue.md Lists COMPLETED, TIMEOUT as status values Database uses success, failed (no completed or timeout)
parallel-headless-execution.md Default timeout 120s Scheduler uses 900s, various paths use different defaults
task-execution-service.md "All paths go through service" Async mode and /api/chat bypass it
task-execution-service.md Doesn't mention async mode Async mode exists and uses separate inline code

Documents to Update

  1. docs/memory/feature-flows/scheduling.md — Update execution flow to show backend internal API path, remove direct agent call documentation
  2. docs/memory/feature-flows/execution-queue.md — Fix status values to match actual DB values (success not completed)
  3. docs/memory/feature-flows/parallel-headless-execution.md — Document actual default timeouts, note async mode divergence
  4. docs/memory/feature-flows/task-execution-service.md — Document which paths go through service and which don't, add async mode section
  5. docs/memory/feature-flows/scheduler-service.md — Verify alignment with current scheduler code

Principle

After fixing execution layer issues (#92-#98), update ALL feature flow documents to reflect the new unified architecture. Consider creating one canonical "Execution Architecture" document that maps ALL paths through the system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-lowpriority-p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions