Pipelines for Software Development & Maintenance Automation: Software Factories, Co-Work, Dark Agents, the Epistemic Triad, Legacy Lift & Sovereign Lifecycle

Reframing software development and maintenance automation as the engineering goal and computer intelligence as a substrate choice across the full 8-stage software lifecycle: from McIlroy (1968) & Cusumano (1989) to Gate-First Deterministic Software Factories (Spec ⊥ Impl + 200/200 Mutant Gate + 1.04 us wasm_gate_m3 + 9.17 nJ G0 crystallization), binary thresholded AI-to-AI co-work (WAI1 128 B, FlatBuffers 0.65 us, CTA 45 Lean proofs, DES-10 98/100 at 75,374x lower measured_j handoffs), dark long-working agents (0.00% prefix poisoning & 0.00% MCPMark CoW corruption, 1,000-step 100% survival), the Scholar v69 x JouleDB v0.28.1 x RCE Epistemic Triad (74.90 uJ/distinction RAPL reported_j, 128/128 contradictions preserved), legacy COBOL/Fortran/Ada/Verilog lift across 270 grammars, zero-exfiltration sovereign compilation (rce @ 258cbb11 1,280/1,280 CapSandbox, 4 ISAs, PQ JCR-1 v1.2), and LUT-Adapt v3.7 (183/183 ARC-AGI-3, 168.31 MB enwik9).

Pipelines for Software Development and Maintenance Automation — Gate-First Deterministic Software Factory, binary thresholded AI-to-AI co-work, dark autonomous maintenance agents, the Scholar x JouleDB x RCE Epistemic Triad, 270-grammar legacy lift, zero-LLVM 4-ISA sovereign compilation, and LUT-Adapt v3.7
Chronicle Entry #61 (30 November 2026): reframing software automation as the engineering goal and machine intelligence as a per-stage substrate choice.

Temporal & Archival Scope: Era II OpenIE Study (November 30, 2026) · Canonical OpenIE Chronicle Entry: https://blog.openie.dev/posts/pipelines-for-software-development-and-maintenance-automation/ · Canonical Digest: git:rce@258cbb11+rce-vc@d05887df+lut-adapt-ai@v3.7+scholar@v69+jouledb@v0.28.1

Provenance & Telemetry Hygiene: Signed Provenance · Self-Checked (automated OpenIE internal gates; not externally peer-reviewed) · Energy Class: measured_j (measured_j ⊥ reported_j ⊥ est_j ⊥ unmetered — 1-Command External Replication Kits · Verification, Licensing & AI-Use Disclosure · Glossary & Non-Mixing Rules).

In Plain Words: The Gate-First Software Factory: Co-Work, Dark Agents, Legacy Lift & Sovereign Code

Across all 8 stages of the software lifecycle, reliable automation—not chat volume—is the goal: uniting Gate-First Software Factories, binary AI-to-AI co-work (75,374× lower handoff joules), rollback-safe dark agents, the Scholar × JouleDB × RCE Epistemic Triad, 270-grammar legacy lifting, and air-gapped 4-ISA sovereign compilation.

Everyday analogy: A precision factory uses go/no-go gauges between stations, compact stamped part numbers instead of handwritten essays, atomic safety shutoffs on overnight shifts, and universal blueprints whether parts began in COBOL or Rust—calling in heavy R&D only for genuinely new parts.


Primary Bridge & Study: Automation Pipelines Bridge: research.openie.dev/automation-pipelines/ · Full Monograph: research.openie.dev/papers/software-automation-pipelines/ · Language Constellation (12,117 Languages / 270 Grammars / 131 Constructs): research.openie.dev/constellation/ · 10-Kit Replication Portal (5,175/5,175 SHA-256): research.openie.dev/replication/ · Research TV (32 Studies / 160 Films): research.openie.dev/tv/ · Research Radio (20 Broadcasts): research.openie.dev/radio/ · Telemetry Discipline: measured_j ⊥ reported_j ⊥ est_j ⊥ unmetered

Unattended Gate Flag (human_in_gate = false): Automated compiler, capability-sandbox (CapSandbox), wasm_gate_m3, WAI1 / DES-10 binary co-work, MCPMark copy-on-write (CoW), multi-checker Lean 4.36.0 (0 sorry), enwik9 context-mixing, ARC-AGI-3 campaign, COSE_Sign1 Price-Per-Distinction (scholar-jouledb-ppd/1), and physical DC-shunt/RAPL scripts across openIE-dev/rce @ 258cbb11, rce-vc 0.2.0 @ d05887df, lut-adapt-ai v3.7, and Scholar Commons v69 × JouleDB v0.28.1 executed without manual mid-run human override; Signed Provenance · Self-Checked by OpenIE — zero external academic peer reviews or independent outside-lab replications to date (Verification & Licensing · Glossary).

Inline Evidence Tags: [T] machine-checked Lean 4 theorem over stated axioms · [E] empirical benchmark or hardware log · [M] analytical/mathematical model or simulation · [S] external literature, survey, or specification citation (Literature / Reported macro-estimates are never mixed with OpenIE hardware measurements).

Pipelines for Computer Automation of Software Development and Maintenance — Gate-First Software Factory, Binary AI-to-AI Co-Work, Dark Autonomous Agents, Epistemic Triad, Legacy Lift, Sovereign Compilation, and 8-Stage Lifecycle
Chronicle Entry #61 (30 November 2026): how Gate-First Software Factories, typed binary AI-to-AI co-work, rollback-safe dark agents, the Research–Search–Coding Epistemic Triad, polyglot legacy lifting, and zero-exfiltration sovereign compilation unite across the 8-stage software lifecycle.

1. Plain Words First: Automation Is the Destination; Intelligence Is One Gear in the Gearbox

Imagine running a municipal waterworks with ten thousand valves, gauges, and welded joints—or a precision assembly line stamping aircraft fasteners. Nobody stations an improvisational novelist beside every pipe twenty-four hours a day, re-reading the entire municipal code aloud before tightening a bolt, and passing handwritten essays down the assembly line from station to station. Civil and industrial engineering rely on layered, gated automation: calibrated check valves and go/no-go gauges catch defects at the exact station where they occur, standardized blueprints work regardless of what dialect a machinist speaks, settled operations run on low-energy mechanical reflexes, and open-ended human or machine problem-solving is reserved for genuinely novel designs.

Over the past three years, software engineering inverted that hierarchy. By treating conversational token generation as the entire pipeline—rather than one high-gear synthesis tool inside a deterministic factory—prevailing 4-layer autoregressive token pipelines incur compounding costs across every stage of development and maintenance [S, M, E]:

  1. Token & Context Amplification (~1,000–1,200× Chat Volume, ~85% Input-Context Bloat): A single autonomous repair trajectory routinely streams 1,000× to 1,200× more tokens than a chat turn, spending roughly 85% of total token traffic re-serializing unchanged source files, tool schemas, and transcript history [S, M].
  2. The Prompted-vs.-Unprompted Discovery Gap (SWE-bench Saturation vs. ~4.7% SWE-sweep): When a human engineer writes a clean issue report localizing the bug (prompted repair), frontier scaffolds approach saturation. When asked to sweep a live repository unprompted—discovering latent regressions and contract violations without human localization hints (SWE-sweep)—end-to-end resolution falls to roughly ~4.7% [S, E].

Our primary study and interactive bridge—Pipelines for Computer Automation of Software Development and Maintenance (research.openie.dev/automation-pipelines/ and research.openie.dev/papers/software-automation-pipelines/) [M, E, T, S]—examines the complete 8-stage software lifecycle from first principles: durable automation of software development and maintenance is the engineering objective; computer intelligence is a per-stage substrate choice.

2. Scope, Meter Class & Provenance Box

Cross-class energy arithmetic is structurally forbidden (measured_j ⊥ reported_j ⊥ est_j ⊥ unmetered), and external industry macro-estimates are strictly labeled Literature / Reported ([S], unmetered):

3. The Software Factory: From McIlroy (1968) & Cusumano (1989) to Gate-First Deterministic Pipelines

The ambition to turn bespoke programming into an industrial engineering discipline dates back nearly six decades: Doug McIlroy’s 1968 NATO Garmisch address (Mass Produced Software Components) proposed catalogued, parameterized routines verified once and composed predictably, while Michael Cusumano’s 1989 study (Japan’s Software Factories) documented standardized process stations, defect-prevention gates, and systematic reuse across Hitachi, Toshiba, NEC, and Fujitsu [S].

In 2025–2026, industry revisited the phrase “lights-out software factory” by chaining autonomous LLM coding agents end to end. Yet a fundamental reliability law separates a Stochastic Token Factory from an industrial Gate-First Deterministic Factory [M, T, E]:

$$ R_{\text{ungated}}(K) = \prod_{k=1}^{K} p_k \approx p^K, \qquad \epsilon_{\text{esc,ungated}}(K) = 1 - p^K $$

When $K$ sequential agent stations (requirements splitter $\to$ planner $\to$ coder $\to$ test writer $\to$ reviewer) exchange unverified text with per-station fidelity $p = 0.92$, a $K = 20$-step pipeline retains only $0.92^{20} \approx 18.9%$ defect-free passage—and worse, when the test-writing station sees the implementation diff, shared-context Goodharting waves through 199 / 200 (99.50%) planted bugs (Kit #8) [E, M].

In OpenIE’s Gate-First Deterministic Software Factory, every station boundary is guarded by an independent, context-isolated (Spec ⊥ Impl) mechanical check over canonical RCE Form

$$ P = (S, E, \delta, D, \lambda) $$

routed through the 6-Gear (G0–G5) cascade:

4. AI-to-AI Co-Work: Replacing UTF-8 Transcript Chatter With Typed Binary Threshold Gates

Multi-agent coding frameworks routinely wire agents together via natural-language UTF-8 JSON chat rooms. Our 34-workload “AI” Reads Human study (Entry #56) and The Communication Tool Avalanche (/papers/communication-avalanche/) quantify why prose-between-machines fails at scale [T, E]:

  1. The Serialization & Retokenization Tax: Parsing UTF-8 JSON (2,212 nJ/record reported_j) and re-running BPE tokenization (27,679 nJ/record reported_j) burns orders of magnitude more energy than zero-copy aligned binary frames (280.4 nJ/record reported_j; FlatBuffers decode in 0.65 µs) while re-introducing syntactic ambiguity at every hop [E].
  2. Correlated Drift vs. Orthogonal Four-Role Separation (Proposer ⊥ Specifier ⊥ Gatekeeper ⊥ Memory): When peer agents share prose transcripts, persuasive rationalizations propagate unchecked. Enforcing strict structural separation across four typed roles—Proposer ⊥ Specifier ⊥ Gatekeeper ⊥ Memory—ensures the Proposer never edits the Specifier’s test oracle, the Gatekeeper executes deterministically in wasm_gate_m3 / rce-vc, and Memory commits only signed, gate-admitted state transitions [T, E].
  3. Empirical & Formal Co-Work Gains (CTA-T1..T45 & DES-10): Backed by 45 machine-checked Lean 4.36.0 theorems (CTA-T1..T45, 0 sorry), our 128 B WAI1 and 144.7 B IETF RFC 9052 COSE_Sign1 thresholded handoff fabric records 927.30 µJ / edge on Jetson AGX Thor INA3221 (measured_j), 0 empty wakeups across 5 heterogeneous hosts, and on the 100-task, 5-regime DES-10 10-camp co-work benchmark reaches 98 / 100 verified task completion vs. <= 49 / 100 for solo un-gated agents—achieving 9.26× to 26.87× higher measured_j Coherence-per-Joule and 75,374× lower measured_j inter-agent handoff energy than prose transcript loops [T, E].

5. Dark Long-Working Autonomous Agents & Coding Agents

Running autonomous coding or maintenance agents unattended overnight or across multi-day campaigns (dark execution) exposes four failure modes absent from short 5-turn benchmarks—and pairs each with a deterministic architectural countermeasure [E, T, M]:

6. The Epistemic Triad: Interplay Between Research, Search, and Coding

Production software engineering never happens in a vacuum: writing code without searching prior art re-invents broken wheels, while searching papers without executable verification accumulates ungrounded prose. Across Scholar Commons v69 (scholar.askdavidc.ai), JouleDB v0.28.1 (jouledb.org), and Constellation + RCE, research, search, and coding operate as a closed Epistemic Triad [E, S]:

  1. Research & Prior-Art Pre-Check (Scholar Commons v69): Before G4/G5 synthesis spends joules on a new subsystem, 56 Scholar MCP tools and 13 native SDKs (v0.56.0) execute a §6 prior-art and falsifier pre-check across 271k+ grounded ideas and 227k+ indexed works (31k+ primary sources)—surfacing known theorems, edge-case counterexamples, and standard algorithms upfront [S, E].
  2. Sub-100-Microjoule Structural & Claim Search (JouleDB v0.28.1): Exposed via 83 JouleDB MCP tools, 10,240-bit (1,280 B per record; ~102 KB working basin) 5-axis morphic claim basins resolve semantic and structural distinctions at 74.90 µJ / distinction Linux RAPL reported_j (scholar-jouledb-ppd/1 COSE_Sign1 receipts at N = 2,048)—running 13.30× faster, consuming 12.89× lower reported_j, and occupying a 37.29× smaller hologram + codebook footprint than a BM25 + 384-d FP32 multi-index baseline [E]. Crucially, every receipt enforces non_arbiter = true, preserving 128 / 128 explicit contradictions in the literature rather than flattening disagreements into a single vector average, alongside a nameless De Bruijn 0 / 500 alpha-rename-collision-free structural code index [E, S].
  3. Verified Coding & Receipted Feedback (Constellation + RCE @ 258cbb11): Lowering across 270 verified Tree-sitter grammars into RCE’s 6-Gear cascade (1,280 / 1,280 CapSandbox, 5,393 Lean constants, 2,221 conformance checks) emits signed RFC 9052 COSE_Sign1 verification and energy receipts directly back into Scholar Commons (truth.lock + C2SP witness quorum + Rekor PQ TLog), turning every verified build into reusable prior art [T, E, S].

7. Global Legacy Maintenance Burden & Polyglot Lifting Across 270 Grammars

Greenfield benchmarks (HumanEval, greenfield app demos) represent a tiny fraction of global software labor. Empirical software-engineering and government audits—reported here strictly as Literature / Reported ([S], unmetered)—document where real engineering effort goes:

Why have pure LLM rewrites struggled on legacy estates? Translating 500,000 lines of COBOL or Fortran via free-form token generation loses decimal fixed-point rounding semantics, implicit control-flow edges, and hardware timing contracts. The Language Constellation (research.openie.dev/constellation/) solves the front-end impedance mismatch structurally: across 12,117 catalogued languages, our 270 verified Tree-sitter grammars (100.0% canonical round-trip) lower legacy, scientific, safety-critical, and hardware-description dialects—including COBOL, Fortran, Ada, Pascal, Verilog, VHDL, and Mercury HLDS—onto the exact same 131 universal semantic constructs and canonical RCE Form $P = (S, E, \delta, D, \lambda)$ as modern Rust, Lean 4, Python, and TypeScript, gating every lifted module with translation-equivalence and Spec ⊥ Impl checks [E, T].

8. Keeping Proprietary Code Sovereign: Zero Exfiltration, Zero-LLVM 4-ISA & Post-Quantum Receipts

Enterprises maintaining regulated financial ledgers, avionics, silicon RTL, clinical devices, or proprietary algorithms cannot stream confidential repositories into external cloud token factories. OpenIE’s automation pipeline is architected for complete code, compiler, and hardware sovereignty [T, E, S]:

9. Infrastructure Requirements & the Full 8-Stage Software Lifecycle

Rather than requiring megawatt GPU clusters to automate routine maintenance, shifting the 8-stage software lifecycle onto a Sovereign Deterministic Factory collapses steady-state memory and compute footprints down to 64 KB SRAM (lut6-core / G0 reflex tables), ~102 KB morphic claim basins, and standard workstation or edge CPUs (x86-64, ARMv9, RV64IM, KV260, Jetson Thor) [E, M]:

10. Limitations, Scope Boundaries & 10-Kit External Replication (5,175/5,175 SHA-256)

Clone and rerun our expanded 10-kit Apache-2.0 External Replication Suite (5,175 / 5,175 CHECKSUMS.sha256 verified) on commodity Linux or macOS:

git clone https://github.com/openIE-dev/openie-research-experiments.git
cd openie-research-experiments
sha256sum -c CHECKSUMS.sha256
./replicate/run_replication.sh

Canonical Provenance, Primary Artifacts & Independent Replication