One Project. One Method. Multiple AI Executors: Stress-Testing a Project-Centric AI Engineering Architecture
ONE PROJECT. ONE METHOD. MULTIPLE AI EXECUTORS.
One AI may analyze the architecture. Another may implement a change. A third may review it. A fourth may run tests. A fifth may handle a task where a different capability, deployment model, or cost profile makes sense.
On an architecture diagram, this can look like an ideal engineering team. Each model contributes a capability, the team can route tasks, and the project is no longer tied to a single provider.
But there is a question worth asking before building such a system:
What happens when all those AI executors actually work on the same software project?
One executor may interpret an architectural rule differently from another. A second may propose a change based on stale project state. A third may receive a task through an adapter that preserved the prompt format but lost an important constraint. Meanwhile, the team still has to determine which changes are authorized, which results are verified, and what becomes part of the canonical project.
At that point, the problem is no longer just model selection. It is a broader engineering problem: how do we preserve consistency, authority, and continuity when the executor can change?
In Beyond Vibe Coding, I describe this proposition as:
One Project. One Method. Multiple AI Executors.
This article is a technical stress test of that proposition—not a claim that the architecture is finished. I will walk through the architectural model, a small Python reference lab, three implementation challenges, five organizational trade-offs, and practical patterns for adopting the approach incrementally.
1. Architectural Proposition: Project-Centric, Not Model-Centric
Many AI coding workflows begin with a question:
Which AI model should I use?
I want to shift that question to:
What does the project require, and which executor is eligible to perform the task?
That shift changes the center of the architecture.
In a model-centric workflow, each AI can become a largely independent working environment. Context, technical decisions, and execution history are often scattered across conversations, tools, and local workspaces. When the team changes models, it has to reconstruct much of the context. When an executor stops halfway through a task, the next executor may not know the project's actual state.
In a project-centric workflow, the project owns its state, rules, knowledge, and continuity. AI models are execution capabilities that can be selected, replaced, or routed according to the task and the project's policy.
I propose separating four concerns.
1.1 Project Continuity
The project needs a reliable, shared reference for:
- Project identity and repository baseline.
- Engineering Method and its applicable version.
- Governance and authority boundaries.
- Project State and checkpoints.
- Knowledge, decisions, and evidence references.
- Handoff information and unresolved items.
A new executor does not need the previous executor's conversation history. It needs a trustworthy, task-relevant working set that allows it to continue the project without inventing or guessing the state.
1.2 Engineering Method
The Engineering Method defines how work is carried out across the project:
DEFINE → PLAN → EXECUTE → VERIFY → RECORD
The method can be versioned and changed through governance. What should not happen is each executor silently changing the method simply because it prefers another way of working.
The same method does not require identical prompts. Provider-specific instructions and tool interfaces may differ, while the task's objective, scope, constraints, authority, acceptance criteria, and verification expectations remain consistent.
1.3 Semantic Contract
A task should be described in terms of its engineering meaning, not in terms of one provider's prompt format.
At a minimum, a Semantic Contract should make these elements explicit:
- Objective.
- Scope.
- Authorization.
- Required Context.
- Acceptance Criteria.
- Verification.
- Stopping Conditions.
- Reporting Requirements.
The Semantic Contract is not intended to replace the project's complete task specification. It is a normalized, typed view of the engineering meaning needed by the orchestration layer.
1.4 Executor Adapter
An adapter translates the Semantic Contract into a request that fits a particular executor's interface. One adapter may produce a JSON-style payload; another may use a tagged-prompt format or a provider-specific tool interface.
The delivery mechanisms can differ, but the meaning of the task must remain stable.
Different prompts. Different interfaces. Same engineering semantics.
Model-agnostic does not mean provider-independent in every respect
I do not believe that adding an adapter layer automatically gives us zero vendor lock-in. Providers still differ in APIs, tool calling, structured output, context limits, model behavior, latency, pricing, deployment options, and data policies.
A more realistic goal is to reduce coupling between the Engineering Method and provider-specific implementations. We want to be able to change an executor without redesigning the way the project itself is organized.
That is intentional independence—not absolute independence.
2. Reference Architecture: One Contract, Multiple Executors, One Canonical Project State
I translated the architectural proposition into a small Python-based Multi-Executor Reference Lab. The diagram accompanying this article shows the overall flow from project context through task definition, validation, execution, verification, evidence, and controlled Project State evolution.
At a high level, the pipeline is:
PROJECT CONTEXT (Code Repository | Project Rules | Knowledge | History & Decisions) | v 1. TASK CONTRACT | v 2. CONTRACT VALIDATION | v 3. SEMANTIC CONTRACT | v 4. EXECUTOR ELIGIBILITY | v 5. CONTEXT + HANDOFF | v 6. EXECUTOR ADAPTERS | v 7. AI EXECUTORS | v 8. SCOPE / CHANGE VALIDATION | v 9. DETERMINISTIC VERIFICATION | v 10. EVIDENCE RECORD | v 11. CONTROLLED PROJECT STATE UPDATE Governance and policy are not a final step in this sequence. They apply across the lifecycle: which project sources are authoritative, which provider is eligible for a data classification, which actions are authorized, what evidence is required, and who can accept a consequential change.
2.1 BVC Task Contract: Define What an Executor May Do
The Beyond Vibe Coding repository defines BVC Task Contract v0.1.0 as a machine-readable form of the book's Execution Contract.
A Task Contract is not merely a prompt. It defines what the executor is allowed to do, what it must produce, which resources it may access, how the result is evaluated, what evidence is required, and when execution must stop.
Important elements include:
- Exact repository-relative file scope.
- Separate allowed operations:
create,modify, anddelete. - Constraints and required context.
- Acceptance criteria.
- Verification requirements and evidence levels.
- Change budget.
- Authority and human approval.
- Stopping conditions.
- Reporting and continuity requirements.
Permission to modify a file does not imply permission to delete it. Discovering an issue outside the task's scope does not grant the executor permission to fix it. Scope expansion requires a new or revised authorization; it must not be inferred from an executor's recommendation.
The specification is currently marked Draft / Experimental. It should not be presented as a universal standard that has already been validated for every type of project.
Specification: BVC Task Contract v0.1.0.
2.2 Semantic Contract: A Typed Projection, Not a Competing Schema
The Reference Lab uses a typed SemanticContract as a projection of the core engineering meaning in the canonical Task Contract. The complete YAML document remains authoritative and is validated before this projection is constructed.
The projection contains task intent, project identity and baseline, scope, constraints, acceptance criteria, verification checks, permitted actions, capability requirements, required context, contract status, and approval information.
A compact excerpt from the implementation shows how the normalized semantic core is fingerprinted:
import hashlib import json def semantic_fingerprint(self) -> str: canonical = json.dumps( self.semantic_core(), sort_keys=True, separators=(",", ":"), ) return hashlib.sha256(canonical.encode("utf-8")).hexdigest() The implementation serializes the semantic core into canonical JSON by sorting keys and removing insignificant separators, then computes a SHA-256 digest.
This provides a useful integrity check at the adapter boundary: requests can be checked against the same normalized semantic representation. But a matching fingerprint does not prove that two models reason alike, that their outputs are equivalent, or that the underlying contract is correct. A hash identifies the serialized representation; it does not prove truth, authorship, or quality.
2.3 Executor Eligibility: Capability Is Not Authorization
An executor should not be selected only because it is the user's preferred model.
The system should first check eligibility:
- Is the provider allowed by policy?
- Is its data handling compatible with the task's data classification?
- Does the executor have the required capabilities?
- Are the requested actions within its authorization?
- Is the executor available?
- Is its Engineering Method version compatible with the project baseline?
Preference and fallback should be considered only after mandatory eligibility checks. A preferred executor that is not eligible must not bypass an authorization gate.
This distinction is important: a model may be capable of performing an action without having permission to perform it.
2.4 Context Compilation and Handoff: Do Not Make Conversation History the Source of Truth
A new executor should not have to reread hundreds of conversations to continue the work.
The context compiler should use only sources listed in the contract, while preserving provenance, authority labels, and content hashes. A source being relevant does not automatically make it authoritative; its authority classification still matters.
The Handoff Packet is built from Project State—not by copying the entire conversation history. It may include:
- Task ID and objective.
- Project baseline and source revision.
- Engineering Method version.
- Current state and latest checkpoint.
- Knowledge and evidence references.
- Recent changes and unresolved items.
- Open blockers and next action.
This is how I want to separate Project Continuity from the memory of any particular model.
2.5 Scope, Verification, Evidence, and Project State
These stages must remain distinct.
Scope and change validation checks whether proposed or observed changes fit the authorized paths, operations, and change budget. In a production write-capable runtime, this post-run validation must be paired with runtime permission enforcement and filesystem isolation. A VCS diff can reveal an unauthorized write after it occurs; it cannot undo that write or prevent it in the first place.
Verification evaluates the result using trusted, registered checks. The system should not automatically execute arbitrary commands supplied by a model or a YAML file. If a required verifier has not been registered, its status must remain NOT_RUN; it must not be treated as a pass.
Evidence records what was checked and what the checks returned. An executor's statement that a task is complete is a claim, not verification evidence.
Acceptance is a separate decision. Even when all required verification checks pass, a run may finish with:
VERIFIED_PENDING_ACCEPTANCE
That means the run has produced the required verification evidence. It does not mean that a human or authorized owner has accepted the task.
Finally, a Project State update must be controlled. Evidence may support a state transition, but an executor's output should not silently rewrite canonical project truth. Required approval and acceptance gates still apply.
3. Three Implementation Challenges
The architecture addresses several structural problems. Implementation introduces challenges that need to be handled separately.
Challenge 1: Context Fragmentation and Semantic Drift
Suppose Executor A analyzes a problem and reaches a conclusion. Executor B receives that conclusion through an adapter and implements it. How can we ensure that Executor B understands the original meaning correctly?
A prompt may be converted successfully at the syntax level while important constraints are lost. For example:
- A file may be allowed for reading but not for modification.
- A change may require human approval.
- An architecture decision may already be final.
- An acceptance criterion may require automated evidence.
- A dependency may be permitted only in a specific environment.
If the adapter merely transforms text without preserving these semantics, the next executor may produce a result that sounds reasonable but violates the engineering requirements.
A few approaches are worth exploring.
Typed outputs and schema validation. Use Pydantic or JSON Schema to validate structured data before it moves further through the orchestration pipeline. This catches malformed or incomplete representations, although structural validity does not prove that the content is correct.
AST-based validation. For source-code tasks, an Abstract Syntax Tree can help validate structural changes rather than relying only on text diffs. An AST is not, however, a universal solution for every kind of semantic drift or for every artifact type.
Minimum sufficient context. Instead of passing the entire history, provide a working set appropriate to the task and to the authority of each source. This reduces unnecessary context transfer but creates a design problem: how do we know the working set is sufficient without giving every executor the entire project?
The difficult question remains: how do we balance enough context for an executor to understand the project against the cost of transferring, processing, and validating that context?
Challenge 2: Adapter Correctness and the Debugging Problem
When the final result is wrong, we need to identify where the failure originated. There are at least three possibilities:
- The Task Contract or Semantic Contract was flawed.
- The adapter translated the task incorrectly.
- The executor returned an output that did not satisfy the requirements.
Without separating these layers, debugging becomes difficult.
For example, when a model ignores a constraint, the cause may be that the constraint was omitted from the request, incorrectly transformed by the adapter, or simply not followed by the model.
Saving only the final prompt is not enough. An orchestration layer should be able to trace:
- Task ID and Run ID.
- Contract revision.
- Engineering Method version.
- Adapter version.
- Provider and model version.
- Context references and hashes.
- Semantic fingerprint.
- Executor response and artifact references.
- Verification and scope-validation results.
- Latency and token/cost metrics.
I believe adapters should be tested like ordinary software components, not only through manual prompt experiments. Useful tests may include:
- Contract-to-request mapping tests.
- Required-field preservation tests.
- Semantic fingerprint conformance tests.
- Authorization and scope preservation tests.
- Mock executor response tests.
- Provider integration tests.
The current Reference Lab uses two deterministic adapter fixtures. They allow the orchestration flow to be tested without calling real provider APIs. This checks the adapter boundary and semantic representation; it does not establish the quality of real models or prove cross-provider behavioral equivalence.
Challenge 3: Runtime Enforcement, Verification, and Security Boundaries
This is the issue I consider especially important when moving the architecture into an enterprise environment.
A Task Contract may clearly state that an executor must not modify a file. But declaring a restriction in a contract does not mean the execution process is technically prevented from writing to that file.
Contract validation is not runtime sandboxing.
A production system needs controls such as:
- An isolated execution workspace.
- Least-privilege filesystem and tool permissions.
- Runtime enforcement for authorized actions.
- A VCS-derived change inventory.
- Post-execution scope and change-budget validation.
- Trusted verification runners.
- Human approval for consequential changes.
- Audit trails and recovery mechanisms.
Post-run diff validation is an additional safeguard. It cannot replace restricting write permissions during execution.
An Adversarial Scope-Gate Scenario
To test one specific case, I added a rogue executor fixture. The task is running under a READ_ONLY contract, but the simulated executor proposes:
MODIFY migrations/004_drop_legacy.sql That file is outside the authorized scope. The expected result is:
[GATE REJECTED by deterministic scope gate] BLOCKED_SCOPE_EXPANSION: observed MODIFY of 'migrations/004_drop_legacy.sql' is not authorized The proposal is rejected before the Verification Gate, and no Evidence Record is created for the rejected artifact. The workspace remains unchanged.
This is a deterministic scope-validation scenario. It is not a second AI model reviewing or auditing the first one. The rogue executor only proposes the change; it does not write to the file.
The current Reference Lab also deliberately blocks all WRITE contracts. It does not yet provide filesystem sandboxing, runtime write-permission enforcement, or VCS-derived inventory for a write-capable execution runtime.
I want to be precise about what has been verified and what remains to be built.
4. Five Organizational Trade-Offs
An architecture can be technically sound and still fail when introduced into an organization.
The decision to implement Multi-AI is not owned by the Software Architect alone. It affects Tech Leads, Engineering Managers, Product Managers, CTOs, Security teams, and the people accountable for operational costs.
I see at least five trade-offs.
Trade-off 1: Model Optionality vs. Adapter Maintenance
From an architectural perspective, being able to replace models is valuable. But each additional provider may introduce a new adapter, different API behaviors, differences in structured output and tool calling, new conformance tests, changes to logging and observability, and maintenance work when a provider changes its interface.
A Tech Lead may ask a very practical question:
Who is going to maintain this adapter layer when providers change their APIs?
If the team does not have the capacity to maintain the adapters and test suites, model optionality can turn into integration debt. Not every project needs multiple providers. Sometimes one capable model, a stable workflow, and a strong test suite are the more reasonable choice.
Trade-off 2: Parallel Execution vs. Project Consistency
Multiple AIs can support parallel discovery, analysis, and proposal generation. But allowing multiple executors to write to the same workspace creates a real concurrency problem.
Imagine Executor A updates the service layer, Executor B changes the database model, and Executor C modifies the API contract—all based on different assumptions about the project state. Each change may look reasonable in isolation. Integration can still expose conflicts.
The organization needs explicit answers:
- When is parallel discovery allowed?
- When is exclusive workspace ownership required?
- Who is authorized to create a canonical change?
- Which branch is eligible for promotion?
- Who owns conflict resolution?
I favor a simple principle:
Multi-AI does not automatically mean multi-writer.
Multiple AIs can create multiple proposals. A canonical change should still pass through one consistent authority and verification path.
Trade-off 3: Engineering Infrastructure vs. Product Delivery
An orchestration platform can be an interesting engineering investment. But a Product Manager may ask:
Why are we building an AI orchestration platform instead of shipping product features?
That is not a question that dismisses engineering architecture. A system is worth building only when its long-term benefits justify the cost of creating and maintaining it.
For a small team with a few developers, an AI-enabled IDE and one suitable model may solve most of the problem. For an enterprise with multiple teams, repositories, strict security requirements, and high continuity needs, platform-level orchestration may be more valuable.
The scale of the architecture should come from a real organizational problem—not from the number of models available in the market.
Trade-off 4: Cloud Model Capabilities vs. Enterprise Data Governance
A cloud model may provide capabilities that a local model does not currently meet for a particular task. But sending source code, customer data, internal documents, or business logic to multiple providers increases the organization's data-governance surface.
A CTO or CISO needs to ask:
- Which data categories may be sent outside the organization?
- Which providers are approved for each data classification?
- Are there data-residency requirements?
- Can logs and traces contain sensitive information?
- Who manages API keys and access permissions?
- How are each provider's retention and data-use policies reviewed?
A local LLM or on-premise deployment may be appropriate in some situations. But it does not automatically solve every security problem. The organization still owns compute infrastructure, model operations, security, upgrades, and evaluation.
The decision should follow data classification and risk policy—not the assumption that local is always safer or cloud is always better.
Trade-off 5: Orchestration Efficiency vs. Total Cost of Ownership
Multiple models may reduce the cost of individual tasks. But the total cost of a Multi-AI system is not just API tokens.
It may include:
- Model API usage.
- Adapter development and maintenance.
- Context compilation and data transfer.
- Evaluation and conformance testing.
- Observability and tracing.
- Security review.
- Infrastructure and runtime isolation.
- Human review and approval.
- Incident handling and operational support.
Switching a task to another model may reduce inference cost while increasing context recovery, verification, and coordination costs.
I want to keep one simple principle:
Switch when expected benefit is greater than switching cost.
Switching cost is not just money. It also includes the time required to recover context, synchronize state, re-check results, and handle differences between executors. Without measuring total cost, it is easy to confuse having more executors with being more efficient.
5. Practical Implementation Patterns
Given these challenges, I would not start by connecting four or five models immediately. I would break implementation into steps that can be verified independently.
Pattern 1: Define the Task Before Selecting the Executor
Do not let the model define the task it is about to perform. Start with a Task Contract:
task: objective: "Inspect the authentication module" scope: mode: "READ_ONLY" allowed_changes: create: [] modify: [] delete: [] constraints: - "Do not modify source files" - "Do not change authentication behavior" verification: required: true authority: permitted_actions: - "read" - "report" This is a shortened illustration, not a complete BVC Task Contract v0.1.0 that can be submitted to the repository validator.
After defining the task, select an executor based on capability, authorization, data classification, availability, and compatibility.
Pattern 2: Normalize Semantics, Not Prompt Text
There is no need to force every provider to receive the same prompt. Maintain one semantic representation, then let each adapter translate it into the appropriate request format.
Task Contract | v Semantic Contract | +--------+--------+ | | v v Adapter A Adapter B | | v v Request A Request B The properties that must be preserved include objective, scope, constraints, authority, acceptance, and verification.
Do not confuse a matching semantic fingerprint with proof that two model outputs are equivalent.
Pattern 3: Use One Authorized Writer
Allow multiple executors to analyze and propose changes when that is useful. But changes to canonical project state need clear ownership and authorization.
One possible workflow is:
DISCOVERY | v MULTIPLE PROPOSALS | v AUTHORITY / CONFLICT RESOLUTION | v AUTHORIZED EXECUTION | v VERIFICATION | v CANONICAL STATE UPDATE A branch can serve as an execution lane, experimental lane, or recovery lane. But a branch does not automatically become canonical truth just because it contains newer code.
Pattern 4: Separate Verification from Acceptance
A model saying "Done" is not evidence. Use trusted verification runners for the required checks.
EXECUTOR CLAIM | v SCOPE VALIDATION | v REGISTERED VERIFIERS | v EVIDENCE RECORD | v ACCEPTANCE DECISION If a required verifier does not exist, keep its status as NOT_RUN. If verification succeeds but human acceptance has not occurred, use an appropriate state such as VERIFIED_PENDING_ACCEPTANCE.
Do not collapse these distinct states into a single DONE label.
Pattern 5: Make Handoff a Project Artifact
Do not make project continuity depend on the previous executor's memory. Build handoff from Project State and give it a clear structure:
HANDOFF PACKET --------------- Project ID Task ID Source Revision Method Version Current State Latest Checkpoint Recent Changes Verification Status Evidence References Open Blockers Next Action The next executor should receive enough working context to continue—not the entire conversation history.
In the current Reference Lab, the handoff packet is generated and printed to stdout. Durable persistence in an execution ledger, database, or artifact store remains an integration task.
Pattern 6: Build Incrementally
I suggest an adoption path based on increasing levels of maturity.
Stage 1 — Offline, Read-only
- One bounded Task Contract.
- Two deterministic executor fixtures.
- Semantic fingerprint.
- Eligibility checks.
- Handoff packet.
- Deterministic verification.
Stage 2 — Real Provider Adapters
- Connect one real provider.
- Add a second provider.
- Run the same Task Contract through both adapters.
- Add conformance tests.
- Track model and adapter versions.
Stage 3 — Controlled Execution
- Isolated workspace.
- Least-privilege permissions.
- Runtime scope enforcement.
- VCS-derived change inventory.
- Rollback and recovery.
Stage 4 — Enterprise Integration
- Durable state and evidence persistence.
- Human approval workflow.
- Security and data governance.
- Concurrency control.
- Cost and performance observability.
Starting with two executors and one small task is better than building a multi-model ecosystem before continuity has been demonstrated.
What the Current Reference Lab Actually Demonstrates
The current experimental version demonstrates the following:
- Two deterministic adapters create requests in two different formats.
- The same semantic fingerprint is preserved across those formats.
- Executor selection checks eligibility before preference and fallback.
- Context is compiled from sources listed in the contract.
- Handoff is derived from Project State, not conversation history.
- Missing deterministic verifiers are not treated as passes.
- An out-of-scope rogue proposal is blocked by a deterministic scope gate.
- The demo makes no provider API calls and does not modify the project fixture files.
- The normal scenario ends at
VERIFIED_PENDING_ACCEPTANCE; the task is not automatically accepted.
The local validation report records 15 passing local unit tests, including the rogue scenario.
There is an important validation boundary: the tests in the current working session used a minimal local validation mirror/stub for the schema and semantic-validator interface. End-to-end validation against the complete canonical JSON Schema and semantic validator in a fresh full repository checkout has not yet been confirmed. The local test result should not be presented as complete conformance certification.
The Reference Lab also does not yet implement live provider integrations, a production sandbox, durable persistence, distributed recovery, or a real cross-model AI audit.
I consider it an inspectable starting point—not a production-ready system.
6. Questions for the Engineering Community
I want to open this architecture to people who have built Multi-Agent Systems, LLM Routers, AI Coding Workflows, or engineering systems with multiple executors.
I am especially interested in implementation experience and the trade-offs teams have encountered in practice.
1. Semantic Contract and Context
What approaches are you using to preserve semantics when a task moves across providers? Pydantic, JSON Schema, constrained structured output, AST-based validation, or something else?
How do you distinguish between context being transmitted completely and a model actually understanding that context correctly?
2. Adapter Testing and Observability
How do you test LLM adapters? Mock responses, golden test fixtures, local models in CI/CD, or integration tests against real providers?
In a real system, what helps you distinguish a contract error from an adapter error or a model-output failure?
3. Workspace Ownership and Concurrency
When several AIs participate in one codebase, do you use a single-writer model, branch-based execution, or another workspace-locking mechanism?
How do you benefit from parallel discovery without fragmenting project state?
4. Enterprise Security and Provider Routing
Do you combine local and cloud models based on data classification?
Which factors actually determine executor eligibility: data residency, retention policy, access control, capability, or operational cost?
5. The Economics of Multi-AI Engineering
At what project scale does orchestrating multiple AIs begin to create more value than the cost of adapter maintenance, context transfer, observability, and coordination?
How do you measure the total cost of a Multi-AI workflow against a single-model workflow without looking only at token usage?
If you are building multi-agent systems, I would especially like to hear your failure cases. Where did the architecture break first—context, concurrency, security, verification, or the economics of maintaining the orchestration layer?
Final Thought
I started with an assumption:
If I use more AI models, my project will become faster and more capable.
But the deeper I go into the architecture, the more I see that the number of executors is not a measure of engineering capability.
A system can use many AIs and still fail if it cannot control context, authority, state, and verification. Conversely, a project with one executor can be well organized if it preserves Project Continuity and a consistent Engineering Method.
The ultimate goal is not to create a system with as many AIs as possible. It is to build an engineering environment in which the executor can change without the project losing consistency.
One Project.
One Method.
Multiple AI Executors.
The executor is replaceable. Project continuity is not.
I would genuinely appreciate practical feedback, alternative architectures, implementation patterns, and real-world failure cases from the engineering community.
Let's stress-test the architecture together—not just on a diagram, but against the realities of building and maintaining software.
Dong Hong · Beyond Vibe Coding
AI is a tool. Engineering is our capability.
Learn continuously. Understand deeply. Build thoughtfully. Improve every day.
Project repository: donghp/beyond-vibe-coding
Task Contract specification: BVC Task Contract v0.1.0
