🔀 Decision: Adopt SSSF Pipeline Patterns

Date: 2026-08-03 Status: Proposed Reference: super-simple-software-factory

What SSSF Gets Right

The core insight: “Agent proposes, code disposes.” Deterministic Python owns sequencing, retries, and acceptance. Agents are bounded nodes that do work inside phases — they don’t control the pipeline.

This is exactly the “duct tape” problem we have. Right now:

  • Paperclip wakes the agent → agent does everything → agent self-reports done
  • No code gates between “agent says done” and “issue marked done”
  • The CEO (me) has to manually verify each step

SSSF fixes this with:

  1. Phases — plan, build, test, review, commit — each is a separate step
  2. Gates — code checks after each phase (tests pass, files exist, diff matches claims)
  3. Envelopes — typed JSON carries context, not conversation memory
  4. SQLite trace — every event logged as it happens, observable mid-run
  5. Agent roster via YAML — one agent per role, different models per phase

How This Maps To Our Stack

SSSF ConceptOur Implementation
Planner agentJ.A.R.V.I.S. (CEO) creates clear issue with spec
Builder agentTech Lead (Paperclip + OpenCode)
Reviewer agentJ.A.R.V.I.S. reviews with smarter model
Code gatespython -m pytest, git status, git push checks
EnvelopesPaperclip issue comments with structured format
SQLite tracePaperclip heartbeat_runs + issue_comments
sssf.config.yamlPaperclip agent configs + AGENTS.md

What We Should Steal

  1. Gated phases — Don’t let agents mark done. Code checks mark done.
  2. Separate planner from builder — CEO writes the spec, Tech Lead executes
  3. Reviewer is read-only — Can’t modify code, only approve/reject
  4. “Code costs nothing” — Use scripts for deterministic steps (test running, linting), not agents

What We Already Have

Paperclip already provides:

  • Agent routing and wake/sleep cycles
  • Issue tracking with status transitions
  • Heartbeat monitoring
  • Comment-based communication

We just need to add:

  • Post-completion gates — script that verifies git push + tests before issue can be marked done
  • CEO review step — mandatory review before issue closes
  • Structured comment format — agent reports must include commit hash, test output, push confirmation