Repository navigation
Description
Summary
Research and prototype soak testing approaches for multi-agent Trinity fleets. The goal is to define a set of scripted interaction scenarios (e.g. one orchestrator agent driving several worker agents over extended periods) that expose stability issues — context window exhaustion, capacity saturation, token waste from blind retries — before they surface in production.
Context
Raised in the Intelligence Design Weekly meeting (2026-05-15). The current health picture comes from manual monitoring (DevOps agent watching logs + db) and the 5-min canary invariant checks. What's missing is sustained, scenario-driven load that mirrors real usage: an orchestrator agent receiving large responses from multiple workers, hitting context limits, retrying, and exhausting tokens.
Concrete example from the discussion: PolyMarket agent talks to 3 Oracle agents. After 20 minutes of execution the orchestrator can no longer handle the aggregated response — retries 3x, exhausts all tokens, spends 2 hours on a failed task. A soak test would catch this class of failure early.
This spike should produce a technical document (filed as a comment on this issue) covering approach, tooling, and a proposed set of initial scenarios — not a full implementation. Eugene wants to extend the DevOps agent monitoring approach rather than build a separate harness.
Acceptance Criteria
- Document 3–5 concrete soak test scenarios mapped to known failure modes (context exhaustion, retry storms, capacity saturation)
- Assess whether scenarios can run against the existing canary fleet on the dev instance, or require a dedicated fixture fleet
- Identify the relationship to the canary invariant harness (CANARY-001) — which checks are additive as new invariants vs. which need a separate soak runner
- Evaluate resource correlation: agent container CPU/memory spike vs. context size — determine if this can be measured from existing Vector logs or needs new instrumentation
- Propose a standardized scenario file format (e.g. YAML) that can grow over time as new failure patterns are discovered
- Deliver a short recommendation: extend the DevOps agent monitoring loop, add invariants to the canary, or build a dedicated soak harness
Technical Notes
- Canary fleet definition:
config/canary-fleet.yaml— synthetic load generators already defined (canary-fleet-burst,canary-fleet-long) - Canary service:
src/backend/services/canary_service.py— 5-min invariant loop; new checks can be added tosrc/backend/canary/ - DevOps agent monitoring loop:
loopskill +monitorskill watching Vector logs and DB — Eugene's current manual approach that this spike should help standardize - Vector logs at
/data/logs/agents.json— container CPU/memory telemetry available here - Related: Research and implement orchestration invariant catalog + continuous canary harness #411 (Orchestration Invariants / CANARY-001), feat: implement CI/CD pipeline for automated test suite execution on dev/staging #851 (CI/CD pipeline), bug: agent-server.py develops futex spin loop after days of uptime #333 (agent-server futex spin loop)
- Spike output: technical document as a comment on this issue — no code changes in scope
Activity
vybe commentedon Jul 3, 2026
Incubation triage 2026-07-03: closing — superseded by the shipped canary invariant harness (CANARY-001: 10 invariants + synthetic canary fleet load generators) which covers the continuous-soak role this spike was scoping. Pull-coordination (#1081) soak needs will be scoped inside that epic against the canary fleet.
docs(pull): one entry point for the pull migration — delete five supe…