Skip to content

CL-6440: longevity campaign harness (@corbits/longevity-sim) - #177

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-6440-longevity-sim
Aug 21, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-6440-longevity-sim

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Adds @corbits/longevity-sim, the longevity simulation harness for CL-6440 (references the ticket; does not close it — the campaign findings land there).

What it does

  • Boots a scratch stack (hub + sidecar + dedicated Postgres, free ports) and provisions a simulated 10-person sales team via real sign-ups over the public HTTP APIs.
  • Deploys real-inference agents through the workflow deployment freeze path (asset -> source push -> POST /workflows/deployments -> invite), spread across multiple Ollama-served models via openai-compatible catalog providers — no Anthropic, no stub inference; hub/sidecar children inherit a whitelisted env, so no API key can leak in.
  • Drives a seeded, deterministic campaign plan: paced persona chatter, thread replies, concurrent bursts, fire-and-forget and measured agent turns, time-compressed routines (scheduler-claimed via next_fire_at advance + manual runs), hub restarts mid-conversation, provider switches, and mid-campaign skill-edit / agent-spawn self-improvement checks.
  • Checkpoints degradation metrics by message count (send/turn latency percentiles, DB size, message-page and workbench-list timings at depth, hub/sidecar RSS, collector-failure log signatures) and renders a markdown campaign report with knee detection and a verdict.

Notes

  • Pure core (personas, plan, metrics, knees, report) is fully unit-tested (51 tests); the stack/engine layer drives only public HTTP APIs plus the shared e2e boot glue.
  • Verified live end-to-end against a Mac Studio Ollama fleet (4 models): boot, 44-message smoke campaign, restart recovery, provider switch, spawn-at-depth all green; skill-probe failure correctly attributed to the known tools/history blocker on the openai-compatible path.

References CL-6440.

Boots a scratch hub+sidecar stack, signs up a simulated sales team,
deploys real Ollama-backed agents through the workflow deployment
freeze path, and drives a seeded campaign plan against it: paced
sends, measured agent turns, time-compressed routines, hub restarts,
provider switches, and mid-campaign skill-edit/agent-spawn checks,
with degradation metrics checkpointed by message count.
@TheGreatAxios
TheGreatAxios force-pushed the cl-6440-longevity-sim branch from 1a826b0 to 8ab7784 Compare August 21, 2026 00:35
@TheGreatAxios
TheGreatAxios merged commit 6a289d6 into main Aug 21, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant