aws-samples / aws-samples/sample-autonomous-cloud-coding-agents
feat(orchestration): unified liveness decision model across compute backends
- Lenguaje dominante
- TypeScript
- Estrellas
- 143
- Forks
- 46
- Merge medio
- 3 d 10 h
- PR fusionados (30 d)
- 24
Descripción
**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
- Prerequisite for reliable **alternative compute** (#164).
- Design context: `docs/design/COMPUTE.md`, `docs/design/ORCHESTRATOR.md`.
- [ ] This might be a breaking change
Guía de contribución
Línea de trabajo
Empieza por ROADMAP.md y el contexto de diseño en docs/design/COMPUTE.md y docs/design/ORCHESTRATOR.md; después, localiza los puntos de entrada de la orquestación y de ComputeStrategy. Revisa la issue cerrada sobre el heartbeat de ECS, #45, y las issues relacionadas #164 y #491. Se considera terminado cuando las pruebas de regresión específicas del backend y las pruebas de matriz cubren decisiones deterministas de liveness sin falsos fallos entre runtimes, con la precedencia documentada en docs/design/ORCHESTRATOR.md.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws, typescript
- Área
- backend, databases, distributed-systems
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100