Skip to content

feat(orchestration): unified liveness decision model across compute backends #491

Description

@krokoko

Context: ROADMAP.md → Unified liveness decision model
Related: #164, #45 (closed ECS heartbeat bug)


Component

API or orchestration

Describe the feature

Normalize task health evaluation across compute backends (AgentCore, ECS) through a single typed decision path: heartbeat support, compute session status, DynamoDB state—with deterministic precedence and regression tests preventing cross-runtime false failures.

Use case

#45 showed ECS tasks marked FAILED after success due to heartbeat mismatch. Adding backends multiplies liveness edge cases without a unified model.

Proposed solution

  1. LivenessCapabilities per ComputeStrategy (supports_heartbeat, session_status_api, etc.).
  2. Pure function: (snapshot, capabilities) → LivenessDecision.
  3. Orchestrator uses single path; unit tests per backend + matrix tests.
  4. Document precedence in docs/design/ORCHESTRATOR.md.

Other information

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestorchestrationTask lifecycle, REST API handlers, orchestrator Lambdas, durable execution

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions