--- title: 'Specifying AI-SDLC Processes: A Protocol Language for Human-Agent Boundaries' authors: ['June'] date: 2026-06-01 categories: [] tags: ['multi_agent', 'ai_methodology', 'system_design'] source_id: '2606.20615v1' source_url: 'https://arxiv.org/abs/2606.20615v1' description: 'AI agents now participate as first-class team members across the software development lifecycle, yet no specification language exists for expressing the human-agent responsibility boundaries...' keywords: ['Specifying', 'AI-SDLC', 'Processes'] canonical: 'https://dailyreading.cc/records/arxiv_2606.20615v1' --- # Specifying AI-SDLC Processes: A Protocol Language for Human-Agent Boundaries Ylli Prifti Birkbeck, University of London ylli@prifti.us June 23, 2026 #### Abstract AI agents now participate as first-class team members across the software development lifecycle, yet no specification language exists for expressing the human-agent responsibility boundaries, approval gates, and governance constraints that this collaboration requires. Existing approaches encode process in agent prompts (subject to drift), target adjacent domains (workflow management, business processes), or address only fragments of the problem (access control, approval gates). Teams consequently adopt AI-SDLC workflows through ad-hoc tooling. We propose a domain-specific language for specifying AI-SDLC processes as protocols, with formal abstract syntax, well-formedness conditions, operational semantics, and enforcement invariants. The language distinguishes policy (declared intent) from mechanism (structural enforcement), enabling implementations to bound process non-determinism through primitives such as validation tokens and capability boundaries. Three results follow. First, a failure rate analysis shows that structural enforcement bounds system failure rates at a weighted product of agent and validator rates, while configurations relying on behavioral compliance permit cumulative or nearsaturating growth. Second, the 2+N team pattern—two human-in-control roles plus N specialized agent members—formalizes classical Separation of Duties for AI-SDLC as a reference configuration. Third, Kleene closure of orchestration loops and reflexive protocol-adherence validation arise as emergent properties of the design, rather than as special-case constructs. We position the contribution against multi-agent frameworks (MetaGPT), workflow specification (FlowAgent, BPMN extensions), and capability-based security (SAGA): the novelty lies in the specific integration, not any single primitive. A working implementation demonstrates feasibility; empirical evaluation is future work. ## 1 Introduction Recent practitioner analysis documents the emergence of AI-SDLC—software development workflows where AI systems participate alongside humans across planning, coding, reviewing, and deployment. Industry reports identify that success requires defining "human-agent responsibility mapping: responsibilities, decisions, approval gates and authority levels are explicitly divided between humans and the agent" [EPAM Systems2026](#page-16-0), yet explicitly ask: "Do we have standards or frameworks for prompting and supervising multi-agent contributions?" [Grid](#page-16-1) [Dynamics2026](#page-16-1). Multiple sources note that "when used without governance and security, it creates fragmentation, technical debt, and serious operational risk" [Ran The Builder2026](#page-17-0). The gap: While the need for governance, oversight, and approval gates is well-documented, no specification language exists for expressing these constraints as executable protocol. Teams implement AI-SDLC workflows through ad-hoc tooling without formal mechanisms to specify what agents can do, when approval is required, or how process violations are prevented. We propose a domain-specific language for specifying AI-SDLC processes. Defining AI-SDLC: We use AI-SDLC (AI-Integrated Software Development Lifecycle) to mean software development processes designed around collaboration between human and AI team members, where both take on defined roles and responsibilities within structured workflows. AI agents are first-class participants—planning, implementing, validating, reviewing—not tools augmenting a human-centric process. The fundamental shift: AI-SDLC requires new processes optimized for human-agent collaboration, not acceleration of existing human-only processes. The core challenge is specifying who (human or agent) does what, when approval is required, how disagreement is resolved, and what constraints cannot be violated. #### 1.1 Contributions - 1. A formal specification language for AI-SDLC processes, including abstract syntax, wellformedness conditions, operational semantics, and enforcement invariants - 2. A formal definition of AI-SDLC as processes designed for human-agent collaboration where agents are first-class team members - 3. The policy-mechanism distinction: protocols declare intent, enforcement primitives bound process non-determinism structurally - 4. The 2+N team pattern formalized as a reference protocol configuration - 5. A failure rate analysis establishing mathematical bounds on quasi-deterministic behavior under structural enforcement versus behavioral compliance - 6. A self-reinforcing protocol-adherence property: meta-level validators that police the protocol itself emerge from validator extensibility without requiring special-case language constructs - 7. Demonstration of executability through implementation (empirical evaluation is future work) We position this work against prior approaches—MetaGPT [Hong et al.2024](#page-17-1), FlowAgent [Shi et al.2025](#page-17-2), BPMN extensions for human-agentic workflows [Ait et al.2024](#page-16-2), and capability-based security [Yao et al.2025](#page-17-3)—in Section [3.](#page-2-0) Our contribution lies in the specific integration of these primitives as a coherent specification language for AI-SDLC, not in the invention of any single primitive. #### 1.2 Organization Section [2](#page-1-0) establishes the problem through documented failure modes and the specification gap. Section [3](#page-2-0) positions the work against related research in multi-agent frameworks, workflow specification languages, and capability-based security. Section [4](#page-5-0) presents the formal language specification including failure rate analysis. Section [5](#page-14-0) briefly describes our implementation. Section [6](#page-14-1) discusses limitations, what the language does not solve, and implications. ## 2 Problem: The Need for Formal AI-SDLC Specification #### 2.1 Documented Failure Modes Empirical research on AI coding systems documents consistent failure modes that persist across model generations: Security vulnerabilities. Analysis of 733 code snippets from GitHub Copilot and other tools found 29.5% of Python and 24.2% of JavaScript snippets contained security weaknesses [Fu](#page-16-3) [et al.2024](#page-16-3). Approximately 40% of Copilot-generated programs were vulnerable when evaluated against CodeQL [Pearce et al.2022](#page-17-4). Silent failures. Newer models produce code that "fails to perform as intended, but which on the surface seems to run successfully, avoiding syntax errors or obvious crashes" [IEEE Spec](#page-17-5)[trum2025](#page-17-5). These failures impose hidden costs through delayed discovery. Context overload. Agent behavior analysis identified "over-exploration where agents fail to reach the root of the problem due to context overload, and repeated application of the same fix without proper testing" [Bouzenia & Pradel2025](#page-16-4). Audit gaps. In regulated environments, autonomous code generation introduces "audit trail complications that go beyond code quality into regulatory territory" [SitePoint2026](#page-17-6). Determining what decisions were made and what validation occurred requires structured records most systems do not provide. Self-review limitations. Single agents reviewing their own output validate against the same flawed model that produced the implementation [CodeAnt AI2025](#page-16-5). These failures are process problems, not capability problems. Improving model quality does not eliminate the need for independent review, scope boundaries, and audit trails. ## 2.2 Process Variability No single AI-SDLC process fits all teams. A solo developer wants speed and tolerates risk; a regulated enterprise cannot ship without audit trails and separation of duties; a startup falls between. Software engineering processes vary by team size, regulatory burden, risk tolerance, and domain. Adding AI agents does not eliminate this variability—it amplifies the need to express it formally. #### 2.3 The Specification Gap The practitioner literature documents the problem but provides no solution. Recent analysis states teams need "highly structured, codified context" [Pandit2025](#page-17-7) but offers no language for specifying that structure. Industry reports call for "governance requirements" [Forrester](#page-16-6) [Research2025](#page-16-6) without formal mechanisms to express them. What exists: Ad-hoc implementations, implicit norms, behavioral expectations without structural enforcement. What's needed: A specification language that allows teams to express, in machine-executable form, how AI agents participate in their SDLC—what modes exist, what validators run, when human approval is required, how disagreement is resolved, what constraints cannot be overridden. ## 3 Related Work Our work intersects several research traditions: multi-agent frameworks for software engineering, workflow specification languages, capability-based security, and human-agent collaboration modeling. We position our contribution against the most relevant prior art. #### 3.1 Human Oversight Models Recent practitioner and research literature distinguishes Human-in-the-Loop (HITL) from Humanon-the-Loop (HOTL) oversight models [Anthropic2026,](#page-16-7)[LangChain2026](#page-17-8). HITL refers to designs where the human is inside the control loop and the agent blocks pending approval; HOTL refers to designs where the human monitors execution and intervenes only when anomalies appear. Our formalization requires both. The HI-CTRL role and the require\_human disagreement policy implement HITL: execution blocks pending human adjudication when validators split or when policy explicitly demands it. The audit log (INV4) and proceed\_with\_log policy implement HOTL: execution proceeds with full traceability, allowing human review of decisions post-hoc. The choice between HITL and HOTL is encoded in the disagreement policy and is part of the protocol specification rather than the agent implementation. This addresses a documented limitation of current frameworks: encoding oversight in agent code produces coverage drift as new action types appear [Waxell2026](#page-17-9). ### 3.2 Multi-Agent Frameworks for Software Engineering MetaGPT [Hong et al.2024](#page-17-1) is the closest prior work. It assigns software-engineering roles (Product Manager, Architect, Engineer, QA Engineer) to distinct agents and encodes Standardized Operating Procedures (SOPs) into prompts to coordinate execution. MetaGPT demonstrates that role-based agent specialization improves coherence in software generation tasks. However, MetaGPT encodes SOPs in prompts—a behavioral specification mechanism subject to the same drift and interpretation problems we identify in Section [2.](#page-1-0) There is no machineexecutable specification language separate from agent instructions, no mode boundaries enforced at infrastructure level, and no formal mechanism preventing role contamination beyond prompt discipline. Other multi-agent orchestration frameworks—LangGraph [LangChain2024](#page-17-10), AutoGen [Au](#page-16-8)[toGen2023](#page-16-8), CrewAI [CrewAI2024](#page-16-9)—provide toolkits for building agent systems rather than specification languages for SDLC processes. LangGraph models workflows as explicit state machines (nodes and edges); AutoGen frames interactions as conversations; CrewAI assigns rolegoal-backstory triples. All produce specific systems through code; none provides a portable, reviewable specification artifact separate from the implementation. Audit, modification, and protocol sharing are correspondingly more difficult. Our DSL differs in three respects: (i) it specifies AI-SDLC processes as standalone artifacts independent of any framework; (ii) it distinguishes policy declaration from mechanism enforcement, allowing implementations to choose mechanisms appropriate to context; (iii) it formalizes infrastructure-level mode boundaries (WF1) as required for the specification to hold. #### 3.3 Workflow Specification Languages Workflow specification languages have a long history. YAWL [van der Aalst & ter Hofst](#page-17-11)[ede2005](#page-17-11) provides domain-independent syntax for workflow patterns with a runtime engine that enforces specified workflows. BPMN [BPMN2013](#page-16-10) has become the dominant business process modeling notation, with both graphical and machine-processable representations. These languages address workflow specification well for human-only or human-tool processes but do not natively model autonomous agent participants, disagreement among agents, or the agent-specific failure modes documented in Section [2.](#page-1-0) Ait et al. [Ait et al.2024](#page-16-2) propose a BPMN extension for human-agentic collaborative workflows, formalizing modeling concepts for mixed human-agent processes and providing a graphical notation. Their contribution is directly comparable to ours in motivation but differs in approach: BPMN extension preserves backward compatibility with existing business process tooling, while our DSL is purpose-built for AI-SDLC with infrastructure-level enforcement as a first-class concept. The trade-off is real—BPMN extension benefits from a mature ecosystem; our DSL provides tighter integration with capability-based enforcement. Both approaches will likely coexist; the choice depends on whether teams need integration with existing BPM tooling or are designing AI-SDLC processes from scratch. FlowAgent [Shi et al.2025](#page-17-2) introduces a Procedure Description Language (PDL) for customerservice style workflows, with controllers that supervise execution paths. PDL combines natural language flexibility with code precision, similar in spirit to our DSL. The key differences: PDL targets single-domain conversational workflows (e.g., hospital appointment booking); our DSL targets the multi-mode, multi-role structure of software development with explicit producer/reviewer separation. PDL controllers enforce path compliance; our enforcement primitives (validation tokens, capability boundaries) enforce both path and authority constraints. ## 3.4 Capability-Based Security and Token Mechanisms Capability-based security has a substantial history in distributed systems [Dennis & Van Horn1966,](#page-16-11) [Li et al.2022](#page-17-12). Our "capability boundaries" (INV2) are an application of established capabilitybased access control patterns to the AI-SDLC domain. We do not claim novelty in the mechanism itself; we claim novelty in its application as a specification primitive for AI-SDLC processes. SAGA [Yao et al.2025](#page-17-3) provides a security architecture for agentic systems using cryptographic access control tokens for inter-agent communication. Our validation tokens differ in purpose: SAGA tokens control access rights between agents; our tokens encode validator quorum outcomes as preconditions for dispatch. Both are capability tokens; the semantics and lifecycle differ. SAGA addresses agent-to-agent authorization; we address validation-to-execution authorization. Recent industry analysis notes the shift from credential-based to capability-based access control for AI agents [Token Security2026](#page-17-13), observing that capability-based models are better suited to agents that invent new workflows at runtime than role-based access control (RBAC). Our DSL incorporates this insight by making capability boundaries (INV2) a structural property of mode definitions rather than a runtime authorization decision. #### 3.5 Standard Operating Procedures and Team Composition The notion of formalizing team roles and standardized procedures for software development draws on Belbin's team role theory [Belbin2012](#page-16-12) and DeMarco & Lister's analysis of software team dynamics [DeMarco & Lister2013](#page-16-13). MetaGPT cites this tradition explicitly. Our 2+N pattern formalization extends this tradition by specifying the minimum viable team structure under AI-SDLC: two human-in-control roles (architect, reviewer) plus N specialized agent members. Where Belbin describes roles people occupy, we specify roles that must exist with structural enforcement of separation. #### 3.6 Positioning Summary Our contribution is not the invention of any single primitive—DSLs, capability tokens, rolebased workflow specification, and human-agent collaboration modeling all have substantial prior art. The contribution is their integration into a coherent specification language for AI-SDLC processes with the following specific properties not jointly present in prior work: - Machine-executable specification independent of any agent framework - Policy/mechanism separation with explicit enforcement primitives - Infrastructure-level mode boundaries (not norm-enforced) - Validation tokens encoding quorum outcomes (not just access rights) - Non-overridable blocker semantics - Formalized 2+N team pattern as reference configuration - Kleene closure of orchestration loops as emergent property We acknowledge significant overlap with MetaGPT (role specialization, SOPs), FlowAgent (procedure description language with controllers), BPMN extensions (human-agentic workflow modeling), and capability-based security (token-gated access). Our differentiation is in the specific combination, the AI-SDLC application domain, and the formal treatment of failure rate bounds (Section [4.8\)](#page-9-0). ## 4 Formal Language Specification We present a domain-specific language for AI-SDLC processes. The language distinguishes policy (declared intent) from mechanism (structural enforcement). Protocols specify what should happen; implementations use enforcement primitives to bound process non-determinism. ## 4.1 Abstract Syntax A protocol P is a tuple of modes, validators, disagreement policy, and constraints: ``` Protocol P ::= ⟨M∗ , V ∗ , D, C∗ ⟩ Mode M ::= ⟨mode_id, R∗ , T∗ ⟩ Role R ::= ⟨role_id, identity,tools⟩ Validator V ::= ⟨validator_id, criteria,severity_fn⟩ DisagreementPolicy D ::= unanimous_pass 7→ proceed | majority_pass 7→ proceed_with_log | split 7→ require_human | any_blocker 7→ hard_stop Constraint C ::= positive(predicate) | negative(predicate) ``` Modes are operational stages with defined permissions. Examples: producer (writes code), reviewer (validates and approves). Modes are enforced at infrastructure level. Roles are actors within modes. Each has identity (defining responsibility), tools (what it can access), and constraints (what it cannot do). Validators evaluate tasks against criteria and emit severity levels. Multiple validators can operate independently (quorum validation with orthogonal criteria). Disagreement policies specify how the system responds when validators reach different conclusions. Constraints define structural requirements and prohibitions enforced by the implementation. #### 4.2 AI-SDLC Execution Flow Figure [1](#page-6-0) shows how human intent flows through orchestrator collaboration into the execution loop. The process begins with intent expression, proceeds through architectural breakdown, and enters a cycle of governance checking, validation, execution, and progression—with human escalation when needed. ![](figures/arxiv_2606.20615v1/_page_6_Picture_0.jpeg) Figure 1: AI-SDLC execution flow showing intent → breakdown → orchestration loop∗ → PR. The loop exhibits Kleene closure: instances spawn recursively as task breakdowns require, all operating under the same protocol constraints. #### 4.3 Kleene Closure as Emergent Property A significant emergent property of the formal specification is that the orchestration loop forms a Kleene closure [Kleene1956](#page-17-14)—the system can instantiate zero, one, or arbitrarily many loop instances, including recursively spawned sub-instances, all under the same protocol constraints. Formally, if L denotes a single orchestration loop instance executing the cycle (governance, validate, execute, move\_next), then the execution flow of the protocol is: Execution( $$\mathcal{P}$$ ) = $L^* = \bigcup_{i=0}^{\infty} L^i$ where L i denotes i sequential or recursively nested loop instances. This Kleene closure is not programmed into the system as a special case; it emerges from the protocol's structural properties: - Tasks may spawn subtasks. The architect agent, on encountering a blocker or scope expansion, creates new tasks following the same specification. - Each subtask requires its own cycle. A spawned task must independently pass governance, validation, and execution before its parent task can proceed. - Subtasks may themselves spawn subtasks. Recursion is permitted to arbitrary depth, bounded only by termination conditions in the breakdown. - All instances share protocol constraints. The same validators, disagreement policies, and enforcement invariants apply uniformly to every instance. This property has practical significance: the protocol scales naturally to arbitrary task complexity through composition rather than special-case handling. A blocker on a top-level task does not halt execution—it spawns a subtask whose successful completion enables the parent task to proceed. The Kleene closure property also implies that protocol verification need only establish correctness for a single loop instance; the closure operation preserves correctness across compositions. This significantly reduces the formal verification burden for protocol implementations. #### 4.4 Well-Formedness Conditions A protocol P = ⟨M∗ , V ∗ , D, C∗ ⟩ is well-formed iff: WF1 (Mode separation): $$\forall m_1, m_2 \in M^*, \ m_1 \neq m_2$$ $\Rightarrow m_1.\text{tools} \cap m_2.\text{tools} = \emptyset$ WF2 (Role uniqueness within mode): $$\forall m \in M^*, \ \forall r_1, r_2 \in m.R^*, \ r_1 \neq r_2$$ $\Rightarrow r_1.\text{role\_id} \neq r_2.\text{role\_id}$ WF3 (Validator coverage): ∀task dispatch op, ∃V ′ ⊆ V ∗ associated with that operation WF4 (Policy completeness): D defines behavior for all possible validator outcomes. WF5 (Constraint consistency): ∀c1, c2 ∈ C ∗ , ¬(c1 contradicts c2) ## 4.5 Runtime State and Tokens State $$\sigma ::= \langle \text{current\_mode}, \text{active\_roles}, \text{issued\_tokens} \rangle$$ Token $\tau ::= \langle \text{token\_id}, \text{task\_ref}, \text{validator\_sigs}, \text{timestamp} \rangle$ ValidatorResult ::= $\langle \text{validator\_id}, \text{severity}, \text{justification} \rangle$ Tokens are one mechanism for enforcement. A token is an unforgeable credential issued by validators after evaluation. Agents cannot mint tokens; dispatch operations require valid tokens. Other mechanisms (signed commits, capability boundaries, formal verification traces) are equally valid. #### 4.6 Operational Semantics Validation: $$\frac{V^* = \{v_1, \dots, v_n\} \quad \text{task} = t \quad \forall i. \ v_i(t) \to r_i}{\text{validate}(t, V^*) \to \{r_1, \dots, r_n\}}$$ Token Issuance (Success): results = $$\{r_1, \dots, r_n\}$$ apply\_policy( $D$ , results) = proceed \nissue\_token(results, $t$ ) $\rightarrow$ $\tau = \langle \text{fresh\_id}, t, \text{sign(results)}, \text{now()} \rangle$ Token Issuance (Blocker): results = $$\{r_1, \dots, r_n\}$$ $\exists r \in \text{results. } r.\text{severity} = \text{blocker}$ \nissue\_token(results, $t$ ) $\to \bot$ Dispatch with Token Enforcement: $$\tau = \langle \_, task\_ref, \_, \_ \rangle$$ $$valid(\tau)$$ $$current\_mode.tools contains dispatch$$ $$dispatch(task\_ref, \tau) \rightarrow execute(task\_ref)$$ $$\frac{\tau = \bot}{\text{dispatch}(\text{task\_ref}, \tau) \to \text{error}}$$ Figure [2](#page-8-0) contrasts behavioral compliance (policy alone) with structural enforcement (policy + mechanism). Without structural enforcement, the agent interprets the policy and may comply or drift—execution proceeds in either case, compounding process non-determinism with agent non-determinism. With structural enforcement, the mechanism gates execution: only compliant paths are possible, eliminating process non-determinism while bounding the residual non-determinism inherent to agent-based components. ![](figures/arxiv_2606.20615v1/_page_8_Figure_2.jpeg) Figure 2: Policy versus mechanism. Left: behavioral compliance leaves enforcement to agent interpretation, producing highly variable outcomes. Right: structural enforcement eliminates process non-determinism, bounding the remaining agent non-determinism within explicit policy structures. The mechanism does not eliminate agent variability—it makes that variability tractable. ### 4.7 Bounded Non-Determinism A critical clarification: the language does not produce deterministic outcomes. Agent-based components—validators, coders, the orchestrator itself—are inherently non-deterministic. Two invocations of the same validator on the same task may produce different evaluations; two invocations of the same coder on the same specification may produce different implementations. What the mechanism eliminates is process non-determinism: the variability introduced by agents skipping, drifting from, or reinterpreting protocol steps. This distinction matters: - Process non-determinism (eliminated): An agent might or might not call the validator before dispatching. With structural enforcement, dispatch is impossible without prior validation. The protocol step occurs deterministically. - Agent non-determinism (bounded, not eliminated): The validator, when invoked, produces its evaluation through a non-deterministic model. Two invocations may differ. The mechanism does not change this—it ensures the invocation occurs. - Compositional effect: Bounding process non-determinism makes the residual agent non-determinism tractable. Disagreement policies turn variable validator outputs into deterministic decisions (proceed, escalate, halt). The system as a whole exhibits quasideterministic behavior: same inputs lead to similar—not identical—trajectories. This is analogous to type systems in programming languages. A type system does not make programs correct; it eliminates entire classes of errors structurally, leaving the remaining errors more tractable. Similarly, the protocol language does not make AI-SDLC outcomes deterministic; it eliminates the class of failures that arise from agents bypassing process structure, leaving the remaining variability bounded and explicit. The honest claim, therefore, is not that structural enforcement produces deterministic outcomes, but that it produces quasi-deterministic process behavior when working with non-deterministic agents. This is a meaningful improvement: outcomes that would otherwise be uncharacterizable become characterizable, auditable, and improvable. #### 4.8 Failure Rate Bounds We can characterize the quasi-deterministic improvement more precisely through a failure rate analysis. Assume each agent $a_i$ has an individual failure rate $p_i \in [0,1]$ representing the probability of producing an incorrect output for a given task. We compare the expected system failure rate under behavioral compliance versus structural enforcement. Behavioral system failure rate. Without structural enforcement, failures compound through the workflow because (i) process steps may be skipped, removing detection opportunities, and (ii) agents operating on already-corrupted intermediate state exhibit elevated failure rates. For a workflow of N sequential agents: Lower bound (independent failures): $$P_{\text{fail}}^{\text{behavioral}} \geq 1 - \prod_{i=1}^{N} (1 - p_i)$$ For small individual rates, this approximates to $\sum p_i$ —failures are at minimum cumulative. Realistic case (cascading failures): When agent $a_{i+1}$ operates on corrupted output from $a_i$ , its effective failure rate increases. A naive additive model $(p'_{i+1} = p_{i+1} + \alpha_i p_i)$ is bounded only by stipulation and can exceed unity in long chains, invalidating the probabilistic interpretation. We instead use a noisy-OR-style composition in which the effective rate depends on the accumulated upstream error $p'_i$ rather than the isolated $p_i$ : $$p'_{i+1} = p_{i+1} + \alpha_i p'_i (1 - p_{i+1})$$ where $\alpha_i \in [0,1]$ is the susceptibility of agent $a_{i+1}$ to upstream corruption. This form is bounded in [0, 1] for all parameter values, asymptotically approaches 1 in the worst case, and reduces to the independent-failure model when $\alpha_i = 0$ . The system failure rate is then: $P_{\text{fail}}^{\text{behavioral, cascading}} \geq 1 - \prod_{i=1}^{N} (1 - p_i')$ $$P_{\mathrm{fail}}^{\mathrm{behavioral, cascading}} \geq 1 - \prod_{i=1}^{N} (1 - p_i')$$ Worst case (near-saturating propagation): If failure detection is also impaired by upstream corruption ( $\alpha_i$ approaches 1), the effective rates rise quickly toward 1 before being caught—or are never caught. Structurally enforced system failure rate. Structural enforcement changes the failure model in three ways: - (1) Process steps cannot be skipped (INV3, capability boundaries). Validation occurs deterministically. The failure modes reduce to agent failures only; process non-determinism is eliminated. - (2) Validator quorums provide redundancy, modulated by shared bias. For a quorum of K validators with average individual failure rate $p_v$ , the probability that all validators miss the same issue is not the naive product $p_{\nu}^{K}$ , because foundation-model validators share substantial training data and exhibit correlated failure modes. We model this with an intraclass correlation coefficient $\rho \in [0, 1]$ capturing shared architectural bias: $P_{\text{miss}}^{\text{quorum}} = p_v^K + \rho(p_v - p_v^K)$ $$P_{\text{miss}}^{\text{quorum}} = p_v^K + \rho(p_v - p_v^K)$$ At $\rho = 0$ (perfectly independent validators) this reduces to the naive product $p_v^K$ . At $\rho = 1$ (perfectly correlated validators, effectively the same model) the quorum provides no benefit and $P_{\text{miss}}^{\text{quorum}} = p_v$ . Realistic values for cross-provider LLM validators lie between these extremes; methodological diversity in validator selection (different criteria, different model families) reduces $\rho$ but does not eliminate it. (3) Blockers halt cascade propagation, but recovery is not free. When a validator detects an issue, the protocol halts execution or spawns a corrective subtask (Kleene closure, Section 4.3). Subsequent agents do not operate on corrupted state. However, the corrective subtask is itself executed by non-deterministic agents and has its own failure probability $p_{\text{recovery}} \in [0, 1]$ representing the probability that the recovery loop fails or exhausts its retry budget. The effective failure rate contributed by agent $a_i$ under structural enforcement is then: $$P_{\text{stage}_i} = p_i \cdot P_{\text{miss}}^{\text{quorum}(i)} + p_i \cdot (1 - P_{\text{miss}}^{\text{quorum}(i)}) \cdot p_{\text{recovery}}$$ The first term covers undetected failures (the quorum misses the issue); the second covers detected failures that the recovery loop fails to resolve. Summing across the workflow: $$P_{\text{fail}}^{\text{structural}} \leq \sum_{i=1}^{N} P_{\text{stage}_i}$$ where each $P_{\text{stage}_i}$ uses the quorum size $K_i$ and correlation $\rho_i$ for the validators evaluating agent $a_i$ . Comparing the two systems: $$\frac{P_{\text{fail}}^{\text{behavioral}}}{P_{\text{fail}}^{\text{structural}}} \ge \frac{1 - \prod_{i=1}^{N} (1 - p_i')}{\sum_{i=1}^{N} P_{\text{stage}_i}}$$ For realistic values $(p_i \approx 0.1, p_v \approx 0.2, K = 3, \rho \approx 0.3, p_{\text{recovery}} \approx 0.1, N = 5, \text{ modest } \alpha_i)$ , this ratio remains substantial—structural enforcement reduces failure rates by roughly an order of magnitude in this regime, with the gap widening as N and $\alpha_i$ grow. The exact ratio depends sensitively on $\rho$ and $p_{\text{recovery}}$ , both of which are empirical questions for specific deployments. Residual assumptions. The corrected model still rests on assumptions worth flagging: - 1. Failure rate constancy: We assume individual $p_i$ is fixed. In practice, agents have task-dependent failure rates; the analysis bounds the average case. - 2. Stable correlation structure: We assume $\rho$ is fixed across the workflow. Validator correlation may vary with task type, and modelling this would require an empirical study of cross-model failure overlap. - 3. **Bounded recovery cost**: $p_{\text{recovery}}$ collapses the full Kleene recovery loop—which itself contains nested validation—into a single rate. This is a tight bound only when the recovery loop is shallow; deep recovery chains may require recursive analysis. Despite these residual assumptions, the structural difference is robust: structural enforcement bounds failure rates at a weighted product of agent and validator rates with explicit recovery cost, while behavioral compliance permits at least cumulative and potentially near-saturating growth. This is the formal basis for the quasi-deterministic claim. Empirical validation as future work: The mathematical analysis predicts a measurable difference between behavioral and structural enforcement under controlled conditions. Empirical validation—comparing failure rates of structurally enforced AI-SDLC against single-agent and behaviorally-compliant baselines—remains future work. #### 4.9 Self-Reinforcing Protocol Adherence A notable property of validator extensibility is that the language admits meta-level validators: validators whose evaluation criterion is the protocol itself rather than the artifact being produced. We call this category protocol-adherence validators. A protocol-adherence validator $V_{\text{meta}}$ evaluates whether the orchestrator and other agents are following the protocol's own rules: are validators being called when required? Are mode boundaries respected? Are scope constraints honored? Are dispatch operations gated by valid tokens? Formally, a protocol-adherence validator is a validator like any other: $V_{\text{meta}} = \langle \text{protocol}_{\text{-}} \text{adherence}, \text{criteria}_{\text{meta}} \rangle$ What makes it distinctive is its evaluation domain: the criteria operate over protocol execution traces rather than over code or task outputs. The criteria check well-formedness conditions (WF1-WF5) and enforcement invariants (INV1-INV4) on actual runtime behavior. **Self-reinforcement property.** This produces a self-referential structure: a validator within the system enforces the system's own rules. The protocol is auditing itself through a participant of the protocol. Three implications follow: - (1) Optional inclusion. A team may include a protocol-adherence validator in their validator set or omit it. The language treats it as any other validator—no special-case handling required. Smaller projects may omit it (overhead exceeds benefit); regulated environments may require it (audit trail completeness). - (2) Catches integration violations. While structural enforcement (capability boundaries, token gating) prevents many protocol violations at the mechanism level, integration points between agents and external systems may admit violations not caught by structural primitives alone. A protocol-adherence validator catches these by inspecting execution traces. - (3) Bootstrapping consideration. The protocol-adherence validator is itself an agent subject to the same non-determinism as other validators. It does not provide ground truth about protocol compliance—it provides another independent assessment, increasing confidence through quorumstyle redundancy when combined with other mechanisms. We do not claim infinite regress is required (a validator to validate the protocol-adherence validator, etc.); one meta-level suffices in practice because the structural enforcement mechanisms catch most violations, leaving the meta-validator to address edge cases. Comparison with type-theoretic self-reference. The protocol-adherence validator is analogous to systems with reflective capability: type systems where types describe types, operating systems where the kernel audits kernel operations, programming languages with metacircular interpreters. The key property in each case is that the same formalism describes both the artifacts under evaluation and the evaluation mechanism itself. Our DSL exhibits this property through validator extensibility without requiring any special meta-level construct. This self-reinforcing structure is a consequence of the DSL design, not an explicit feature of it. The language permits any validator to be added; one such addition happens to be a validator that polices protocol adherence. The interesting observation is that this is sufficient no separate meta-language is required to specify protocol-adherence rules. They are simply another validator definition. #### 4.10 Enforcement Invariants ``` The implementation must maintain: ``` INV1 (Token integrity): ``` ∀τ ∈ issued_tokens. ¬can_forge(τ ) ∧ verify(τ.validator_sigs) ``` INV2 (Capability boundary): ``` ∀a ∈ active_roles, t ∈ Tools. can_call(a, t) ⇒ t ∈ current_mode.tools ``` INV3 (Non-overridable blockers): ``` ∀results. (∃r ∈ results. r.severity = blocker) ⇒ issue_token(results, _) = ⊥ ``` INV4 (Audit completeness): ``` ∀op ∈ {dispatch, validate, transition}. execute(op) ⇒ ∃log_entry ∈ audit_log ``` The 2+N Team Pattern ![](figures/arxiv_2606.20615v1/_page_12_Figure_1.jpeg) Minimum viable Al-SDLC team: 2 humans + N agents. For smaller projects, one human may fulfill both HI-CTRL roles sequentially; role separation remains structural Figure 3: The 2+N team pattern showing producer and reviewer modes separated by infrastructure boundaries. Each mode has a human-in-control (HI-CTRL), coordinating agents, and mode-specific tools. The infrastructure boundary enforces capability separation (WF1). #### 4.11 The 2+N Pattern as Reference Configuration We formalize the 2+N team pattern—two human-in-control (HI-CTRL) roles plus N specialized agent members—as a reference protocol. Figure 3 shows the architecture with mode separation, role distribution, and tool boundaries. #### Why this structure: - Producer-reviewer separation (WF1): Producer mode cannot access merge tools; reviewer mode cannot access edit tools. This formalizes the classical Separation of Duties principle [Botha & Eloff(2001), NIST(2020)] for AI-SDLC. Prevents self-approval. - Validator quorum: Validators with orthogonal criteria operate independently. Unanimous agreement provides confidence; disagreement signals genuine ambiguity requiring human judgment. - Non-overridable blockers (INV3): When any validator emits a blocker, work stops. Agents cannot proceed regardless of other validator opinions. - Human-in-control roles: The 2 humans are first-class team members with execution authority, ambiguity resolution, disagreement adjudication, and veto power. The minimum of two humans derives from Separation of Duties: a single human cannot independently validate their own work, regardless of agent assistance. ``` P_2 + N = where : M * = { < producer , R_prod = { hi_ctrl , orchestrator_agent , coder * , validator *} , T_prod = { validate , dispatch , edit , test } > , < reviewer , R_rev = { hi_ctrl , review_agent , specialty_reviewers *} , T_rev = { review , approve , reject , merge } > } V * = { < security , check_owasp_categories , severity_security > , < architecture , check_patterns_separation , severity_arch > , < conventions , check_style_docs_tests , severity_style > } D = unanimous_pass | - > proceed | majority_pass | - > proceed_with_log | split | - > require_human | any_blocker | - > hard_stop C * = { negative ( orchestrator_agent calls edit ) , negative ( coder modifies out_of_scope ) , positive ( exists tests = > dispatch ) , negative ( producer_mode calls merge ) } ``` Listing 1: 2+N protocol specification • Agent roles: The N agents are also first-class team members with defined responsibilities within their capability boundaries. ## 5 Implementation We have implemented this specification in a working system. The implementation demonstrates that the formal language is executable and the enforcement invariants are maintainable. #### Architecture: - Protocol engine parses specifications and enforces well-formedness conditions - Two MCP servers (producer-side, reviewer-side) implement mode separation (WF1) - Token subsystem implements validation token issuance and verification (INV1) - Capability boundaries enforced through tool exposure at infrastructure level (INV2) - Event-sourced audit log maintains immutable operation records (INV4) Self-development validation: We have used the system to extend its own codebase under the 2+N protocol, providing initial evidence that the approach is viable for real software development. Evaluation scope: This paper establishes the specification language and demonstrates its executability. Comparative evaluation against single-agent and self-review baselines, failure mode analysis, and quantification of human intervention rates are future work. ## 6 Discussion #### 6.1 Limitations This is a position paper proposing a specification language with feasibility demonstration. Several limitations bound its claims: Single-implementation evidence. The feasibility argument rests on one implementation extending its own codebase. While self-development is meaningful as a stress test (the system must handle the complexity of its own evolution), N = 1 is weak evidence. Comparative evaluation across baselines and tasks is future work. Mathematical analysis under assumptions. The failure rate bounds (Section [4.8\)](#page-9-0) depend on assumptions about failure rate constancy, stable correlation structure, and bounded recovery cost that may not hold in practice. The analysis establishes the structural difference; precise quantitative claims require empirical validation. Token integrity is implementation-dependent. INV1 specifies that tokens must be unforgeable for the system to be valid. The specification does not prescribe how unforgeability is achieved—this is an implementation responsibility. Different deployment contexts (singleprocess, distributed, multi-tenant) require different cryptographic or capability primitives. We treat this as feature: the specification is portable; the enforcement mechanism is contextual. Validator quality bounds system quality. Structural enforcement bounds process nondeterminism but cannot exceed the quality of the validators themselves. Poor validators produce poor outcomes regardless of how strictly the protocol is enforced. The DSL supports validator quorums with orthogonal criteria as mitigation, but does not solve the underlying validatorquality problem. Protocol expressiveness vs. simplicity trade-off. The current language may be too complex for small teams (overhead of specification authoring exceeds benefit) or insufficiently expressive for highly regulated domains (additional constructs needed for specific compliance requirements). The right expressiveness point is an empirical question. No formal verification of protocol consistency. Well-formedness conditions (WF1– WF5) are syntactic checks. We do not verify that a given protocol achieves its stated intent, satisfies temporal properties, or is internally consistent beyond the structural rules. Formal methods could strengthen these guarantees but are out of scope. #### 6.2 What the Language Does Not Solve Protocol authoring expertise. Writing effective protocols requires deep software engineering knowledge. The language gives senior engineers a mechanism to encode that knowledge; it does not eliminate the expertise requirement. Protocol evolution. How teams modify protocols over time—who can change them, what review changes require—is governance the language does not prescribe. The language provides version control and peer review through its machine-executable form, but teams must establish their own change processes. Formal verification. We do not currently verify that a protocol satisfies temporal properties or achieves stated goals. Well-formedness conditions catch structural errors; formal methods could provide stronger guarantees. Optimal protocol synthesis. Given constraints (regulatory requirements, team size, risk tolerance), could an appropriate protocol be generated automatically? This is future work. ## 6.3 The Commoditization Argument As foundation models converge in capability—Claude, GPT, Gemini, DeepSeek reaching similar quality on similar tasks—the differentiating asset shifts. Model choice will matter less; process design will matter more. AI-SDLC is not about making existing processes faster; it is about designing new processes where human and agent team members collaborate effectively. A team with a well-designed protocol has a durable asset that survives model transitions. Swap validators from Claude to DeepSeek; the protocol still runs. Add a new model provider; the protocol still runs. The protocol is institutional memory; models are commodity infrastructure. This mirrors cloud computing's evolution. Early teams differentiated on infrastructure choices. As infrastructure commoditized, differentiation became how teams used it. AI-SDLC is following the same trajectory. #### 6.4 Relationship to Existing Frameworks Multi-agent frameworks (LangGraph, AutoGen, CrewAI, MetaGPT) provide tools for building agent systems. They do not provide a language for specifying SDLC processes. Building with them produces a specific system; our language produces a specification that systems implement. The difference matters for audit (protocols are reviewable documents), modification (edit YAML vs. edit code), and sharing (portable specifications vs. implementation-bound systems). ## 7 Conclusion We have presented a formal specification language for AI-SDLC processes, addressing a documented gap in the practitioner literature: the need for formal mechanisms to define human-agent responsibility boundaries, approval gates, and governance constraints. The language provides abstract syntax for expressing modes, roles, validators, disagreement policies, and constraints. Well-formedness conditions define valid protocols. Operational semantics specify how constructs execute. Enforcement invariants ensure implementations bound process non-determinism structurally—eliminating the class of failures arising from agents bypassing protocol steps, while bounding the residual agent non-determinism within explicit policy structures. The 2+N team pattern—two human-in-control roles plus N specialized agent members demonstrates the language through a reference configuration exhibiting producer-reviewer separation, validator quorum with orthogonal criteria, and non-overridable blockers. An implementation shows the language is executable. As foundation models commoditize, the durable engineering asset becomes process design. The specification language is that asset's form. ## References - [Anthropic(2026)] Anthropic. Measuring AI Agent Autonomy in Practice. Anthropic Research, 2026. - [Ait et al.(2024)] Ait, A., Cánovas Izquierdo, J. L., & Cabot, J. Towards Modeling Human-Agentic Collaborative Workflows: A BPMN Extension. arXiv preprint arXiv:2412.05958, 2024. - [AutoGen(2023)] Wu, Q., Bansal, G., Zhang, J., et al. AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation. arXiv preprint arXiv:2308.08155, 2023. - [Belbin(2012)] Belbin, R. M. Team Roles at Work, 2nd ed. Routledge, 2012. - [Botha & Eloff(2001)] Botha, R. A., & Eloff, J. H. P. Separation of Duties for Access Control Enforcement in Workflow Environments. IBM Systems Journal, 40(3), 666–682, 2001. - [Bouzenia & Pradel(2025)] Bouzenia, I., & Pradel, M. Analyzing Autonomous Software Engineering Agents. In International Conference on Software Engineering, 2025. - [BPMN(2013)] Object Management Group. Business Process Model and Notation (BPMN), Version 2.0.2. 2013. - [CodeAnt AI(2025)] CodeAnt AI. Code Review Best Practices. 2025. - [CrewAI(2024)] CrewAI. CrewAI: Framework for Orchestrating Role-Playing Autonomous AI Agents. 2024. - [DeMarco & Lister(2013)] DeMarco, T., & Lister, T. Peopleware: Productive Projects and Teams, 3rd ed. Addison-Wesley Professional, 2013. - [Dennis & Van Horn(1966)] Dennis, J. B., & Van Horn, E. C. Programming Semantics for Multiprogrammed Computations. Communications of the ACM, 9(3), 143–155, 1966. - [EPAM Systems(2026)] EPAM Systems. Agentic Development Lifecycle (ADLC): A New Model for AI Systems Beyond SDLC. EPAM Technical Report, February 2026. - [Forrester Research(2025)] Forrester Research. Create Your AI-Enhanced SDLC Transformation 90-Plus-Day Roadmap. Forrester Research Report, December 2025. - [Fu et al.(2024)] Fu, M., van Tonder, R., Gulwani, S., Mechtaev, S., & Tomasic, N. Security Implications of Large Language Model Code Assistants: A User Study. ACM Transactions on Software Engineering and Methodology, 33(4), 2024. - [Grid Dynamics(2026)] Grid Dynamics. AI SDLC: Redefining Developer Work. January 2026. - [Hong et al.(2024)] Hong, S., Zhuge, M., Chen, J., Zheng, X., Cheng, Y., Zhang, C., Wang, J., Wang, Z., Yau, S. K. S., Lin, Z., et al. MetaGPT: Meta Programming for a Multi-Agent Collaborative Framework. In International Conference on Learning Representations (ICLR), 2024. - [IEEE Spectrum(2025)] IEEE Spectrum. Silent Failures in AI Code Generation. IEEE Spectrum, January 2025. - [Kleene(1956)] Kleene, S. C. Representation of Events in Nerve Nets and Finite Automata. In Shannon, C. E., & McCarthy, J. (eds.), Automata Studies, 3–41. Princeton University Press, 1956. - [LangChain(2024)] LangChain. LangGraph: Multi-Agent Workflows. 2024. [https://www.](https://www.langchain.com/langgraph) [langchain.com/langgraph](https://www.langchain.com/langgraph) - [LangChain(2026)] LangChain. Human-in-the-Loop Middleware. 2026. [https://docs.](https://docs.langchain.com/) [langchain.com/](https://docs.langchain.com/) - [Li et al.(2022)] Li, A. S., Safavi-Naini, R., & Fong, P. W. L. A Capability-based Distributed Authorization System to Enforce Context-aware Permission Sequences. arXiv preprint arXiv:2211.04980, 2022. - [NIST(2020)] National Institute of Standards and Technology. Security and Privacy Controls for Information Systems and Organizations. NIST Special Publication 800-53 Rev. 5, 2020. - [Pandit(2025)] Pandit, R. Agentic SDLC: A Complete Guide. November 2025. [https:](https://rajatpandit.com) [//rajatpandit.com](https://rajatpandit.com) - [Pearce et al.(2022)] Pearce, H., Ahmad, B., Tan, B., Dolan-Gavitt, B., & Karri, R. Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributions. In IEEE Symposium on Security and Privacy, 2022. - [Ran The Builder(2026)] Ran The Builder. AI-Driven SDLC: Build Secure, Scalable Software with AI. February 2026. - [Shi et al.(2025)] Shi, Y., Cai, S., Xu, Z., Qin, Y., Hu, X., Xu, J., Liao, Y., Lu, Y., Wang, S., Xiong, L., Lin, J., Liu, Z., & Qiu, X. FlowAgent: Achieving Compliance and Flexibility for Workflow Agents. arXiv preprint arXiv:2502.14345, 2025. - [SitePoint(2026)] SitePoint. Audit Trail Complications in AI Code Generation. 2026. [https:](https://www.sitepoint.com) [//www.sitepoint.com](https://www.sitepoint.com) - [Token Security(2026)] Token Security. The Shift From Credentials to Capabilities in AI Access Control Systems. 2026. - [van der Aalst & ter Hofstede(2005)] van der Aalst, W. M. P., & ter Hofstede, A. H. M. YAWL: Yet Another Workflow Language. Information Systems, 30(4), 245–275, 2005. - [Waxell(2026)] Waxell. Human-in-the-Loop vs Human-on-the-Loop for AI Agents. 2026. [https:](https://www.waxell.ai/blog/human-in-the-loop-vs-human-on-the-loop-ai-agents) [//www.waxell.ai/blog/human-in-the-loop-vs-human-on-the-loop-ai-agents](https://www.waxell.ai/blog/human-in-the-loop-vs-human-on-the-loop-ai-agents) - [Yao et al.(2025)] Yao, Y., et al. SAGA: A Security Architecture for Governing AI Agentic Systems. arXiv preprint arXiv:2504.21034, 2025.