Repository navigation
SwarmAI Autonomous Pipeline β the whole thing on one page #111
xg-gh-25
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
SwarmAI Autonomous Pipeline β the whole thing on one page
Every number on this page is read from live source (
pipeline_profiles.py+ thes_autonomous-pipelineskill), not from memory and not rounded for the slide.How to read it, top to bottom
INTENT β 5 phases (9 stages). A one-line natural-language intent feeds Frame (Evaluate β Think β turns intent into a concrete requirement + acceptance criteria), then Plan, Build (Build β Review β Test), Deliver (Deliver + the embedded Adversarial stage), Reflect. That's the 9 canonical stages collapsed into 5 phases. Three gates sit at the moments that matter β Gate 0 guards framing, Gate 1 guards the plan, Gate 2 guards the build (adversarial review, blocking, right before commit). Reflect's lessons flow back into the knowledge stores, so the next run judges better β value compounds across sessions.
2 modes fork at Build.
full/bugfixrun buildβreviewβtest once (one-shot).goalloops build+test until a measurable Definition-of-Done is met. Everything else is identical β the fork is only at Phase 2.What Deliver actually ships. Completion-audit β package β commit. The deliverables: a push-ready commit (plus an optional PR / CR with auto-merge β a GitHub PR on an open repo, a CR on an internal Amazon repo); a REPORT.md (delivery report + decision log, under
.artifacts/runs/<id>/); and METRICS.json (run metrics). The Push-Ready Gate is binary βrun-commitrefuses unless it passes.6 profiles β one core, cut to the scenario. STRICT (
full/bugfix/goal) runs the full adversarial pass; RELAXED (trivial/docs/research) relaxes the gates for low-risk work. The profile is fixed at EVALUATE and immutable after β so the pipeline can't quietly downgrade itself to skip the adversarial gate.Multi-skills orchestration. The main skill
s_autonomous-pipelineis the orchestrator; it dispatches a specialist skill per stage and reuses its capability rather than reinventing it βs_evaluate,s_deep-research,s_code-review,s_qa,s_deliver, DDD cultivation.Spawn sub-agents. A "sub-agent" is a separate process spawned via the Agent tool β fresh context, zero memory of the build or the main conversation. The point is to break the author-reviews-own-work bias: the one who wrote the code doesn't get to be the judge. Prompts are emitted by code with a mandatory scope cap (an uncapped prompt is refused); parallel groups spawn in one message; at
SubagentStopthe reviewed paths are captured fromgit diff HEADand matched against the commit. 16 roles total = 3 gate skeptics + 4 parallel reviewers + 9 scope-gated adversarial specialists.The DDD layer β what closes the loop
The whole pipeline sits on a DDD layer (the project's domain brain) and reads and writes it β that's what makes the feedback a real loop, not a slogan. Four markdown docs, each with a role and a wired read/write path (verified against each stage's references):
PRODUCT.mdTECH.mdIMPROVEMENT.mdPROJECT.mdThe loop: the front stages read the DDD for judgment β Reflect writes the new lessons back into the DDD (plus MEMORY / EVOLUTION) β the next pipeline reads a sharper DDD and judges better. The pipeline sits on its domain brain, reads and writes it, and compounds across sessions.
The architecture, stated
single-orchestrator, ephemeral adversarial sub-agents β not multi-resident-agent collaboration.
It looks like multi-agent because many sub-agents run per pipeline. But the backbone is one orchestrator holding the full context the whole time; the sub-agents are throwaway adversarial probes spawned at checkpoints β they don't persist, don't talk to each other, don't hand context back (only a verdict + the paths they reviewed). The difference matters:
You get the upside of multi-agent (parallelism, independent perspectives, de-biasing) without its disease (hand-off tax, context fragmentation, coordination overhead).
(Related: #43 Why we chose single-agent Β· #44 The three cracks in multi-agent Β· #12 Multi-agent is a coordination tax.)
All reactions