Early AI coding loops look linear: prompt, edit, test, pray. Yet real repository work splits cleanly into independent leaves — tests, schema updates, docs, isolated adapters — while the governance lifecycle (intake, human intent gate, plan gate, build/review, delivery, cleanup) must remain predictable. Dynamically rewriting Airflow Python DAG files for every issue creates scheduler churn and unbounded DAG cardinality.
1. Fixed control graph, dynamic data graph
As documented in docs/lifecycle.md, swfactory keeps the Airflow DAG topology constant per blueprint while validating each issue's plan.json as an explicit data DAG (<= 64 nodes, rejecting cycles, undeclared files, duplicate IDs, and missing dependencies). Work nodes declare a parallel_safe hint — always safe to serialize, or fanned out when admission gates pass.
2. Hard admission gates for fork waves
Codified in commit c4ee502 (Oct 16, 2026) and generalized in the Cambridge companion papers (Speculative Sandboxes & Evidence Frontiers), a wave only forks when every boundary holds:
- Immutable parent checkpoint: parent parked cleanly; every child verifies
HEAD == checkpointbefore launching an agent. - Budget & lease isolation: sibling leases expire no later than the stage TTL and carry deterministic idempotency keys.
- Credential-free children: workers fork without publishing tokens (
noEnv); only the parent verifies unified diffs and delivers.