learning_ai_common_plat/services/platform-service/src/modules/runs
saravanakumardb1 84dc348687 feat(platform): Phase 2 — Agent Runtime Orchestration
- New: agents/executor.ts — full agent execution engine
  - Multi-step pipeline: prompt_assembly → tool_execution → finalize
  - AbortController-based cancellation with in-memory tracking
  - Token usage aggregation across tool calls
  - Review-required tool gating (pauses run, returns review_required)
  - Step event streaming for SSE consumers
- New: agents/tool-registry.ts — global tool registry
  - Register/list/validate tools with risk levels + review flags
- New: agents/executor-routes.ts — 11 endpoints, 14 tests
  - POST /agents/execute, POST /runs/:id/cancel
  - GET /agents/active-runs, GET /runs/:id/children, GET /runs/:id/tree
  - GET /agents/:id/metrics, GET /runs/:id/stream (SSE)
  - GET /tools, POST /tools/validate, POST /agents/:id/schedule
- Enhanced: runs/repository.ts — added listChildRuns() for DAG query
- 1,307 tests passing (14 new)
2026-03-20 03:20:31 -07:00
..
repository.test.ts feat(platform-service): add durable run tracking 2026-03-14 16:08:07 +00:00
repository.ts feat(platform): Phase 2 — Agent Runtime Orchestration 2026-03-20 03:20:31 -07:00
routes.test.ts feat(a2a): persist incident pipeline runs 2026-03-15 05:58:15 +00:00
routes.ts feat(ratelimit): back api throttles with datastore 2026-03-15 09:37:03 +00:00
runs.api-key.test.ts feat(api-key): restrict job operations to service tokens 2026-03-15 09:08:38 +00:00
tracker.ts feat(platform-service): add durable run tracking 2026-03-14 16:08:07 +00:00
types.ts feat(a2a): persist incident pipeline runs 2026-03-15 05:58:15 +00:00