Protocol-Driven Development: Governing Generated Software Through Invariants and Continuous Evidence
Jun He, Deying Yu · 2026
Read Protocol-Driven Development: Governing Generated Software Through Invariants and Continuous Evidence by Jun He, Deying Yu (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-12981.txt.
Introduction
He and Yu set out Protocol-Driven Development, a way to govern machine-made software. Instead of treating code as the main artifact, teams write a machine-checked protocol of structural, behavioural and operational invariants. Only code that meets the protocol, with a checkable evidence chain, gets in. For live systems the chain grows into a ledger of signed runtime notes. The core idea is that code is transient while the protocol holds lasting authority.
Catalog record
| CREATOR | Jun He, Deying Yu |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 98954 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.12981
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Protocol-Driven Development: Governing Generated Software Through Invariants and Continuous Evidence Jun He, Deying Yu Abstract Automated program synthesis lowers the cost of producing implementations but introduces a harder governance problem: determining which generated artifacts are admissible. Natural-language specifications are ambiguous, and example-based tests sample only part of the behavioral space. Used alone, neither provides a sufficient control boundary. We introduce Protocol-Driven Development (PDD) , where the primary software artifact is a machine-enforceable protocol rather than code. We define a protocol as the triplet 𝒫 = ( 𝒮 , ℬ , 𝒪 ) \mathcal{P}=(\mathcal{S},\mathcal{B},\mathcal{O}) , specifying structural, behavioral, and operational invariants. Their conjunction defines the admissible implementation space of a software component. Under PDD, implementations are replaceable realizations discovered through constrained search. An implementation is admitted only if it satisfies the protocol and produces a verifiable Evidence Chain of compliance. Admission is grounded in protocol satisfaction and recorded evidence rather than trust in the generator. For deployed systems, we extend the Evidence Chain into a Dynamic Evidence Ledger . Runtime verifiers append signed observations, invariant checks, and violations to the ledger, allowing monitorable obligations to be continuously attested. This connects live failures back to the generation loop without granting the generator runtime authority. Combining formal methods, property testing, runtime verification, policy-as-code, and software provenance, PDD defines a governance model for automated software engineering. Its organizing principle is that code is transient, while the protocol carries durable authority. Introduction Generative program synthesis has reduced the marginal cost of producing candidate implementations. Boilerplate, interface implementations, service scaffolds, and many routine code changes can now be produced quickly by synthesis engines. This shift moves the central pressure from production to admission, and from admission to continued accountability in operation. The difficult question is no longer only how to produce code, but how to decide which generated implementations are structurally valid, behaviorally correct, operationally bounded, eligible for regeneration, and still compliant after deployment. Traditional software engineering methodologies were developed when implementation effort dominated many workflows. In Spec-Driven Development (SDD), natural-language documents describe intended structure and behavior, but they are often too ambiguous for automated admission. Different engineers—or different generative systems—may interpret the same requirement incompatibly, producing semantic drift, inconsistent assumptions, and hidden side effects. Test-Driven Development (TDD) improves on this model by encoding expected behavior in executable tests ( 2 ) . Tests reduce ambiguity and increase confidence in functional behavior, but they are fundamentally extensional: they verify selected cases rather than defining the full space of admissible implementations. They rarely express structural contracts, authority boundaries, or operational constraints such as latency limits, side-effect restrictions, dependency controls, or resource quotas. Automated code generation makes these weaknesses harder to ignore. When implementations can be synthesized and regenerated at low cost, source code becomes less durable than the constraints that determine whether the code is admissible. The operative question changes from “How do we implement this component?” to “What constraints must every acceptable implementation satisfy?” In this setting, software engineering becomes less a matter of prescribing one implementation and more a matter of defining the invariant boundary within which implementations may be safely discovered. We call this model Protocol-Driven Development (PDD) . In PDD, the primary artifact is a machine-enforceable protocol rather than implementation code. We formally define a protocol as \mathcal{P}=(\mathcal{S},\mathcal{B},\mathcal{O}), where \mathcal{S} denotes structural invariants , \mathcal{B} denotes behavioral invariants , and \mathcal{O} denotes operational invariants . Structural invariants define rigid type and interface contracts through typed handshakes. Behavioral invariants specify semantic properties that must hold for all admissible implementations. Operational invariants impose explicit capability boundaries covering side effects, latency, external dependencies, and resource consumption. Their conjunction defines the admissible implementation space within which automated generators may explore. Under PDD, implementations are treated as replaceable realizations of a governing protocol. Automated generators may generate, discard, and regenerate candidate code, but a candidate is admissible only if it satisfies the protocol. We propose a Validator Loop that performs structural validation, property-based verification, and operational conformance checks before admission. Admitted implementations then produce an Evidence Chain : a cryptographically verifiable record of the governing protocol, implementation metadata, validation results, and observed behavioral characteristics. The Evidence Chain supports auditability, accountability, and replay of admission decisions when replay inputs are preserved. Pre-deployment evidence is not the end of governance. Production traffic can expose memory leaks, race conditions, dependency drift, adversarial inputs, and operational degradation that were absent from simulation. PDD therefore extends Evidence Chains into Dynamic Evidence Ledgers : append-only records that include signed runtime observations, invariant checks, violations, and remediation outcomes. Runtime verification layers enforce protocol boundaries outside the generated implementation, and violation blocks can be converted into structured repair contexts for the next generation attempt. For concreteness, Appendix A sketches a minimal protocol bundle, typed handshake, behavioral invariant set, capability manifest, and evidence record. We term the recurring cost of this ambiguity the Natural Language Tax : the cost of interpreting, reconciling, and maintaining ambiguous textual descriptions. Rather than describing desired behavior in prose and relying on downstream interpretation, PDD encodes invariants directly as machine-enforceable assertions. Typed handshakes address type drift, property-based assertions address intent drift, and capability manifests address side-effect drift. The protocol becomes the authoritative admission artifact, and valid implementations are constrained to remain within its boundaries. The model draws on formal methods, property-based testing, zero-trust security, and generative systems ( 11 ; 6 ; 5 ; 22 ) . It combines invariants, executable properties, explicit verification, and constrained search into a development model for software synthesis. PDD does not claim to invent interface schemas, property-based testing, policy enforcement, or provenance and attestation mechanisms. Its novelty is the elevation of the protocol to the primary development artifact: a single governing object that jointly specifies structure, behavior, operational authority, and evidence-producing admission for generated software. Schema-first or interface-first development stabilizes component boundaries but usually leaves behavior, authority, and admission evidence outside the interface artifact. TDD and property-based testing constrain selected behavioral properties but do not by themselves define operational capability boundaries or provenance-linked admission. Policy-as-code governs authority but is typically external to software construction; supply-chain provenance records where artifacts came from rather than defining which artifacts are admissible. PDD unifies these concerns into a protocol-centered development model in which generated implementations are proposals admitted only through invariant satisfaction and verifiable evidence. PDD also relates to runtime governance for autonomous systems while remaining independent of any particular deployment stack. Sovereign Agentic Loops ( 10 ) and OpenKedge ( 9 ) separate model-generated proposals from privileged execution through control boundaries, policy evaluation, and evidence records. PDD applies the same proposal-admission structure to software construction and then carries it into operation through runtime attestation. The thesis of this work is: Code is transient; protocol is sovereign. By making protocols the durable engineering artifact, PDD treats software creation as constrained discovery: implementations may change while admissibility conditions remain explicit, testable, and auditable. Contributions. The paper makes the following contributions: 1. We propose Protocol-Driven Development (PDD), a model that treats protocols, rather than implementation code, as the durable artifact of automated software engineering. 2. We formalize a protocol as a triplet of structural, behavioral, and operational invariants that together define an admissible implementation space for generated software. 3. We define protocol