# Verified by Design — The Deterministic Build Protocol for AI-Assisted Software Development

**URL:** <https://discuss.ai.google.dev/t/verified-by-design-the-deterministic-build-protocol-for-ai-assisted-software-development/187588>\
**Category:** Community\
**Created:** [October 8, 2026, 3:38pm UTC](https://discuss.ai.google.dev/t/verified-by-design-the-deterministic-build-protocol-for-ai-assisted-software-development/187588 "2026-10-08T15:38:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyrone\_Steele](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/tyrone_steele/32/155697_2.png) [@Tyrone\_Steele](https://discuss.ai.google.dev/u/Tyrone_Steele)\
**Post date:** [October 8, 2026, 3:38pm UTC](https://discuss.ai.google.dev/t/verified-by-design-the-deterministic-build-protocol-for-ai-assisted-software-development/187588/1 "2026-10-08T15:38:12Z")

</div>

# VERIFIED BY DESIGN

## The Deterministic Build Protocol

### A Practical Methodology for Architecting, Building, Verifying, and Evolving Production-Grade Software With AI

> **Do not accept what was generated. Accept what has been verified.**

* * *

# 1. THE SHIFT

Software development is changing.

AI can now generate code, architectures, tests, configurations, documentation, and entire application components from natural-language instructions.

This changes the economics of construction.

But generation is not engineering.

AI generation is probabilistic. Engineering acceptance must be evidence-based.

The critical shift is therefore not from human coding to AI coding. It is from **generation as an activity** to **verification as the acceptance mechanism**.

The fundamental workflow becomes:

**Generation → execution → evidence → acceptance**

The engineer’s responsibility is no longer limited to producing implementation. It includes defining what must be true, constraining what may be generated, executing what was produced, collecting evidence, and determining whether that evidence satisfies the original intent.

* * *

# 2. WHEN GENERATION BECOMES THE METHOD

The danger of AI-assisted development is not that AI generates code incorrectly.

The deeper danger is accepting generated output because it _looks_ correct, compiles, or produces a plausible result.

A generated implementation may be:

- syntactically valid but behaviorally wrong;
- logically coherent but inconsistent with the intended architecture;
- functional in isolation but incompatible with the system;
- capable of performing an action without being authorized to perform it;
- correct under one condition but unverified under another.

Generation creates an artifact.

Verification establishes whether that artifact deserves acceptance.

This distinction separates **AI Coding** from **AI Engineering**.

* * *

# 3. TAKE THE ARCHITECT’S SEAT

AI should accelerate construction, not replace engineering judgment.

The human architect establishes:

- intent;
- system boundaries;
- contracts;
- constraints;
- authority;
- proof requirements;
- acceptance criteria.

The model can then operate within those boundaries.

> **If a decision matters to the behavior of the system, make the decision explicit before generation.**

This prevents the model from silently making architectural decisions that should belong to the engineer.

* * *

# 4. THE THREE INVARIANTS

A deterministic engineering process begins with invariants that remain true regardless of implementation.

### 1. Sovereignty Before Convenience

The system must preserve human and architectural authority over consequential decisions.

Convenience must never silently become authority.

### 2. Verifiability Over Assumption

Claims about system behavior must be supported by evidence.

If the behavior has not been established, it remains unknown.

### 3. Modularity Without Fragmentation

Components should be independently understandable and testable without losing the coherence of the system as a whole.

> **The system must remain a system.**

* * *

# 5. INTENT BEFORE IMPLEMENTATION

Natural-language requests often contain multiple layers:

- desired outcome;
- constraints;
- assumptions;
- environmental context;
- implementation preferences;
- implicit expectations.

These must be separated before implementation begins.

A critical distinction is:

> **Context does not imply intent.**

The presence of a technology, noun, file, framework, or prior discussion does not automatically make it the task.

Likewise:

> **Inference does not imply evidence.**

A technically plausible explanation is not an established fact.

The engineering process therefore begins by defining what the system is actually expected to do.

* * *

# 6. ARCHITECTURE BEFORE GENERATION

Before generating implementation, establish:

- system boundaries;
- component responsibilities;
- interfaces;
- dependencies;
- state ownership;
- authority boundaries;
- failure behavior;
- verification requirements.

The architecture should answer:

**What exists?**

**What does each component own?**

**What may each component do?**

**What must each component refuse to do?**

**How will its behavior be verified?**

Generation then becomes an implementation activity rather than an architectural discovery process.

* * *

# 7. BUILD IN PROOF UNITS

Large AI-generated changes are difficult to verify.

Break the system into **Proof Units** : bounded pieces of functionality with explicit inputs, outputs, constraints, and acceptance criteria.

A Proof Unit should have:

1. Defined purpose
2. Defined inputs
3. Defined outputs
4. Defined constraints
5. Defined failure behavior
6. Defined verification method
7. Defined acceptance condition

This reduces ambiguity and makes failures localizable.

Instead of asking:

> “Does the application work?”

ask:

> “Can this specific behavior be demonstrated against its defined contract?”

* * *

# 8. THE DETERMINISTIC BUILD CYCLE

The core cycle is:

**Define → Constrain → Generate → Execute → Verify → Integrate → Observe**

### Define

State the intended behavior.

### Constrain

Specify boundaries, interfaces, permissions, dependencies, and prohibited behavior.

### Generate

Use AI or other development tools to produce the implementation.

### Execute

Run the actual artifact in the relevant environment.

### Verify

Compare observed behavior against the defined expectation.

### Integrate

Confirm that the verified component behaves correctly within the larger system.

### Observe

Monitor actual operational behavior rather than assuming verification ends at deployment.

The cycle repeats as the system evolves.

* * *

# 9. CONTRACTS BEFORE TRUST

A contract establishes what must be true before implementation is accepted.

Contracts may define:

- input and output structure;
- invariants;
- state transitions;
- error conditions;
- permissions;
- performance requirements;
- integration behavior.

A generated implementation should be evaluated against the contract—not against how convincing its explanation sounds.

* * *

# 10. EVIDENCE BEFORE ACCEPTANCE

Verification requires evidence.

A useful evidence ladder is:

1. **Inspection**
2. **Static analysis**
3. **Unit execution**
4. **Integration execution**
5. **System execution**
6. **Operational observation**

Higher levels provide stronger evidence of actual behavior, but the appropriate level depends on the claim being verified.

The acceptance rule is:

> **No evidence → UNKNOWN**

> **Partial evidence → LIMITED CONFIDENCE**

> **Sufficient evidence → ACCEPT**

Most importantly:

> **UNKNOWN ≠ PASS**

Absence of a detected failure is not equivalent to proof of correctness.

* * *

# 11. THE EXECUTION GATE

Before a consequential action is accepted, the process should pass through an explicit execution gate:

**Prepare → Execute → Capture → Compare → Accept or Reject**

### Prepare

Establish the expected state and test conditions.

### Execute

Perform the bounded operation.

### Capture

Record what actually happened.

### Compare

Evaluate observed results against expected results.

### Accept or Reject

Make the decision based on the comparison.

This separates **what the system was supposed to do** from **what the system actually did**.

* * *

# 12. INTEGRATION IS ENGINEERING

A component can pass its individual tests and still fail as part of a system.

Integration introduces:

- shared state;
- interface assumptions;
- dependency interactions;
- timing effects;
- configuration differences;
- authorization boundaries;
- unexpected coupling.

Therefore:

> **Integration is not the last step after engineering. Integration is where engineering becomes a system.**

A verified component is not automatically a verified system.

* * *

# 13. INTELLIGENCE ≠ STATE

AI can reason about state without owning authoritative state.

It can suggest an action without possessing authority to perform it.

It can identify a capability without being authorized to invoke it.

Therefore:

> **Capability does not imply authority.**

A robust architecture separates:

- intelligence;
- state;
- authority;
- execution.

The model may suggest.

The system must decide.

The execution boundary must enforce.

> **Intelligence can suggest. State must be owned. Authority must be enforced.**

* * *

# 14. GOVERNANCE OUTSIDE THE MODEL

Rules that matter should not exist only as instructions to an AI model.

Models can interpret, generate, and recommend.

Consequential constraints should be enforced where consequences occur.

> **Put the rule where the consequence occurs.**

If an action must be prohibited, authorization should prevent the action.

If state must be protected, the state boundary should enforce protection.

If an operation requires verification, the execution path should require verification.

This reduces dependence on model compliance alone.

* * *

# 15. THE FORENSIC AUDIT

When observed behavior differs from expected behavior, do not immediately patch the symptom.

Determine:

1. What was intended?
2. What was specified?
3. What was generated?
4. What actually executed?
5. What evidence was collected?
6. Where did observed behavior diverge?
7. Was the discrepancy architectural, implementation-related, environmental, or procedural?

The distinction between **observed** , **established** , **inferred** , and **unknown** must remain explicit.

A plausible explanation is not evidence.

* * *

# 16. EVOLVING WITHOUT UNCONTROLLED REGRESSION

AI-assisted systems can change rapidly.

That makes regression control essential.

Every significant change should preserve:

- existing contracts;
- established invariants;
- verified Proof Units;
- authority boundaries;
- integration behavior.

Changes should be evaluated against both the new requirement and the existing system.

A successful modification is therefore not merely:

> “The new feature works.”

It is:

> “The new feature works without invalidating previously established behavior.”

* * *

# 17. THE PRODUCTION VERIFICATION MATRIX

Verification should correspond to the level of risk.

| Level | Question | Evidence |
| --- | --- | --- |
| Component | Does the unit behave correctly? | Unit execution |
| Interface | Do components communicate correctly? | Integration execution |
| System | Does the complete system behave correctly? | System execution |
| Security | Are boundaries enforced? | Security testing |
| Operations | Does it behave correctly in its environment? | Operational observation |
| Change | Did the modification preserve prior behavior? | Regression evidence |

The matrix prevents a common error: treating one successful test as proof of the entire system.

* * *

# 18. FROM PROMPTING TO ENGINEERING

Prompting is valuable.

It accelerates construction, exploration, debugging, and documentation.

But prompting alone does not establish correctness.

The mature workflow is:

**Human Intent → Define → Architect → Decompose → Constrain → Generate → Execute → Verify → Integrate → Observe → Measure → Diagnose → Iterate**

This is the transition from AI-assisted coding to AI-assisted engineering.

> **Prompting accelerates construction. Verification determines acceptance.**

* * *

# THE PROTOCOL, CONDENSED

The methodology can be reduced to five questions:

### 1. What is supposed to happen?

Define intent and acceptance criteria.

### 2. What is allowed to happen?

Define architecture, constraints, contracts, and authority.

### 3. What actually happened?

Execute the real artifact and capture evidence.

### 4. Does the evidence support the claim?

Compare observed behavior against expected behavior.

### 5. What happens next?

**EXECUTE / REFUSE / ESCALATE**

The system should never silently convert uncertainty into acceptance.

* * *

# YOUR FIRST BUILD

Do not begin by trying to build an entire system.

Begin with one bounded Proof Unit.

Define:

- its purpose;
- its contract;
- its constraints;
- its expected behavior;
- its failure behavior;
- its evidence requirements.

Generate it.

Execute it.

Observe it.

Compare it.

Accept it only when the evidence supports acceptance.

Then build the next unit.

This creates an engineering history in which every accepted component has a reason for being trusted.

> **Begin by building one thing that can be proven.**

* * *

# THE NEW PARADIGM

AI has made software generation inexpensive.

That changes what becomes scarce.

When generation is cheap, **verification becomes the scarce capability**.

The central engineering question is no longer:

> “Can AI build this?”

It is:

> **“Can the system prove what it does?”**

Verified by Design establishes a methodology for answering that question.

The principle is simple:

> **Generate quickly. Constrain deliberately. Execute honestly. Accept only what the evidence supports.**

That is the difference between software that was generated and software that was engineered.

* * *

## VERIFIED BY DESIGN

**Intent → contract → implementation → execution → evidence → acceptance**

**Do not accept what was generated. Accept what has been verified.**
