feat(factory-build): sequenced relayflows for the factory build-out (p1-p13)

Closed
KH
6mo ago
+1235-1

Summary

Adds factory-build/ — 13 sequenced relayflows that build the cloud-watches → local-node factory end to end, one per factory/planning issue (p1-p13), plus a shared squad + 80-to-100 review-ladder lib (lib/factory-build-lib.ts) and a wave runner.

  • Squad: lead-claude (lead+QA), impl-codex, assist-opencode, shadow-claude, Claude+Codex reviewers/fixers.
  • Imports @relayflows/core; ships draft PRs labeled no-agent-relay-review; acceptance gates are green-or-blocked.
  • All 13 dry-run PASS via the built relayflows CLI.

Depends on the build fix in #4 (merged). See factory-build/README.md for the wave order + publish gate.

🤖 Generated with Claude Code


Summary by cubic

Adds factory-build/: 13 sequenced relayflows for the cloud‑watches → local‑node factory (p1–p13), plus a shared squad/review lib and a wave runner. Sequence is gated on pear#368; p2 folds per‑team Linear states into WorkspaceConfig, and p1 clarifies runtime StateStore vs the Linear state resolver.

  • New Features

    • Shared lib/factory-build-lib.ts encodes the squad, review ladder, deterministic acceptance, and draft PR creation (labeled no-agent-relay-review).
    • run-factory-build.sh runs waves in order, supports --dry-run, and allows a runner override via FACTORY_BUILD_RUNNER; uses @relayflows/core.
    • 13 workflows (p1–p13) across pear/cloud/relay/factory repos, including cross‑repo steps; p4 is bespoke and seeds @agent-relay/factory then stops with PUBLISH_READY.md.
    • Readme documents wave order, the publish gate, and the pear#368 prerequisite + /linear/states provider dependency.
  • Migration

    • Prereq: merge pear#368 and ensure the /linear/states adapter is available.
    • Run ./factory-build/run-factory-build.sh prep to validate wave1, then wave1.
    • Run wave2; stop at the publish gate. A human publishes @agent-relay/factory@0.1.0 and swaps pear to the published package.
    • After publishing, run ./factory-build/run-factory-build.sh post-publish to complete waves 3–7.