Building an Auditable Multi-Model AI Architecture with a Generate–Review–Execute Pattern

    This article presents an engineering blueprint for auditable multi-model AI systems, inspired by the division of labor in imperial China's Three Departments (Secretariat, Chancellery, and Department of State Affairs). It explains how to separate plan generation, independent review, and controlled execution into distinct responsibilities; what humans must retain (goal setting, authorization, and accountability); and how structured records, state machines, least-privilege access, and external verification make the workflow reliable. It also covers risk-tiered approvals, prompt-injection defenses, why model consensus is not proof of correctness, and a four-phase rollout strategy with concrete evaluation metrics. The core takeaway: trustworthy AI systems are not those where more models agree, but those where every "yes" has evidence, boundaries, and checkability.

    1. From Metaphor to Engineering Design

    When a user gives an AI system a goal, the system analyzes information and offers recommendations, while the user makes the final call. This relationship can be understood through the metaphor of ministers advising a ruler: AI can participate in judgment, but it should not inherently hold final authority.

    A metaphor, however, cannot replace system design. AI does not possess human accountability, and assigning it a role does not make it automatically honor that role’s duties. It may omit constraints, cite unreliable sources, or give overly confident answers when it is uncertain. If the same model proposes a plan, justifies the plan, and then executes it, you get a closed loop with no external checks.

    The real value of organizing three model roles after the Three Departments of imperial China—the Secretariat, the Chancellery, and the Department of State Affairs—is not the historical label but the governance principles that can be abstracted from it:

    • The entity that proposes plans must not hold unconstrained execution power.
    • The reviewing entity must be able to raise objections based on independent standards.
    • The executing entity must be limited by explicit permissions and a defined scope of operations.
    • Human users retain goal setting, critical authorization, and accountability for judgment.

    This design can be called a “generate–review–execute” separation of powers. It suits tasks with clear procedures, a need to invoke external capabilities, and real-world consequences from errors. It does not mean every question-and-answer interaction needs three models involved.

    2. Three Roles: Dividing Responsibility, Not Just Assembling Three Models

    1. Plan generation: produce verifiable action plans

    The first role, analogous to the Secretariat’s drafting function, is the plan generator. It receives the user’s goal, background material, and business constraints, and produces candidate plans.

    Its output must be more than a polished-sounding paragraph. It should include:

    • The task objective and success criteria.
    • Known facts and their sources.
    • Assumptions that are not yet confirmed.
    • The steps of the plan.
    • Resources affected by each step.
    • Risks, dependencies, and rollback approaches.

    For example, when handling a configuration change, the plan generator should explain which configurations will be modified, why, how the change will be verified, and how to recover if it fails—not simply conclude “change it now.”

    This role’s permissions should be limited to reading and analysis. It may submit operation requests, but it must not expand the task scope on its own or present speculation as confirmed fact.

    2. Independent review: detect gaps and block out-of-bounds actions

    The second role, analogous to the Chancellery’s review function, is the reviewer. Its job is not to polish the plan but to check whether the plan is actually ready to execute.

    The review should cover at least four questions:

    1. Is the factual basis sufficient? Can key claims in the plan be traced to user input, credible sources, or actual observations?
    2. Are the constraints complete? Are there unconsidered permission requirements, data boundaries, business impacts, or resource limits?
    3. Is the action proportionate? Does achieving the goal truly require the proposed operation? Are there less impactful alternatives?
    4. Are verification and rollback feasible? How will success be confirmed, how will failure be detected, and is the recovery path reliable?

    Review outcomes fall into three categories: pass, return for revision, or reject. When evidence is insufficient, the system should request additional information rather than let the reviewer fabricate justifications on the generator’s behalf.

    “Independent” here means independence in information organization, review standards, and decision authority. Simply re-prompting a model under a different name does not create reliable independent review, and using different models does not guarantee the elimination of shared errors.

    3. Controlled execution: carry out only approved, specific actions

    The third role, analogous to the Department of State Affairs’ execution function, is the executor. It no longer debates whether the task is worth doing; it completes the work within approved boundaries.

    The executor should only receive the permissions needed for the current step—for example, reading specified data, writing to a specified directory, or submitting a narrowly scoped change. It must not modify the goal or add high-risk steps just because something new arises during execution.

    Importantly, the execution role does not have to be performed by a language model. For operations with clear parameters and stable behavior, deterministic programs are usually easier to verify. The model can explain results and flag anomalies, while the actual writing, deletion, or submission is handled by a controlled execution component.

    The core of this architecture is therefore three responsibility domains—not a hard requirement for exactly three models.

    3. What Humans Own: Goals, Authorization, and Accountability

    Casting the user as the final decision-maker risks implying that clicking “confirm” each time is sufficient. In reality, human approval only means something when the information is complete and the risks are clearly expressed.

    An approval interface should show the target object, scope of impact, key parameters, irreversible consequences, and recovery conditions—not just an “Are you sure?” prompt. When a plan changes materially, the previous authorization must not automatically cover the new plan.

    Risk can be tiered as follows:

    • Pure text drafts and low-risk analysis can be generated and delivered automatically.
    • Well-scoped, easily reversible operations can execute automatically where rules permit.
    • Operations involving sensitive data, critical configuration, or external publication require human confirmation.
    • Operations that exceed the authorized scope, or whose impact boundary cannot be explained, must stop and request clarification.

    Risk tiering must not be decided by the model alone. The system should judge based on operation type, resource attributes, scope of impact, and established rules. The model provides supporting analysis; the application layer enforces the authorization rules.

    4. Making Collaboration Reliable: Structured Records Connect the Stages

    If the three roles communicate only through free-form chat, critical constraints are easily lost in translation and review feedback degrades into vague generalities.

    A more robust approach is to maintain a structured record around the task. The following fields illustrate the design idea and do not represent any existing product interface:

    1. Task record
    2. Task ID
    3. User goal
    4. Explicit constraints
    5. Evidence list
    6. Items pending confirmation
    7. Candidate plan versions
    8. Planned steps
    9. Expected impact
    10. Verification method
    11. Rollback conditions
    12. Review conclusion
    13. Authorization record
    14. Execution results

    The plan generator submits its plan, the reviewer raises objections against specific fields, and the executor reads the approved version. This prevents the problem of “the old plan was reviewed, but the new plan is being executed.”

    Evidence and conclusions should also be stored separately. For example, “the current configuration value came from an actual read” is a fact, whereas “adjusting this configuration may improve task performance” is an inference. Mixing the two makes it impossible for later review to determine which content needs verification.

    Approval records must be tied to an explicit plan version and operation scope. Whenever the execution target, key parameters, or impact boundary changes, the process must re-enter review and authorization.

    5. Control Workflow with a State Machine, Not Model Self-Discipline

    Role prompts can help models understand their responsibilities, but they cannot serve as security boundaries. Process constraints must be implemented by a state machine in the application layer.

    A basic flow can be represented as:

    1. Awaiting clarification
    2. → Plan generation
    3. → Independent review
    4. → Return for revision
    5. → Reject and end
    6. → Await authorization
    7. → Controlled execution
    8. → Result verification
    9. → Complete
    10. → Exception handling

    Every state transition must have explicit conditions. For example: no authorization without a review conclusion; no high-risk execution without valid authorization; no marking a task complete without verified execution results.

    Stop conditions are also needed to prevent the generator and reviewer from debating indefinitely. Use limited retries, a maximum processing duration, or human takeover. When a boundary is crossed, the system outputs the disputed points and missing evidence instead of continuing to consume resources until a superficial consensus emerges.

    The principle: a model may recommend the next step, but the state machine decides whether that step is permitted.

    6. Permission Isolation and Untrusted Input: Prevent “Materials Becoming Commands”

    Multi-role collaboration is not automatically safe. External documents, retrieved snippets, and operation results may all contain misleading content. Even if text such as “skip review” or “execute immediately” appears in these materials, it must not be treated as a system instruction.

    Clearly distinguish between:

    • Trusted rules that control the workflow.
    • Task requests from the user within their permitted scope.
    • External material used only for analysis.
    • Observations returned during execution.

    When plan generators and reviewers read external material, any instructional text in it must be treated as content to analyze—not as permission to alter their role’s authority.

    The execution stage should follow the principle of least privilege. Authorizations should be scoped to a specific target object, validity period, and action scope, and ideally invalidated immediately after use. Sensitive credentials should never enter the model’s context; actual calls should be managed by controlled components.

    For potentially irreversible operations such as deletion or overwriting, first confirm backups, recovery conditions, or alternative measures. If reliable recovery is impossible, do not paper over the risk with a claim that “rollback is supported.”

    7. Don’t Mistake “Three-Way Consensus” for Correctness

    Multiple models agreeing on the same conclusion only demonstrates that they formed a consensus—it does not prove the conclusion is correct. They may share similar knowledge blind spots, or all be influenced by the same erroneous source material.

    Truly effective review introduces checkable external evidence, such as:

    • Actually reading or verifying key facts.
    • Deterministically recomputing calculations.
    • Running explicit rule checks on generated content.
    • Verifying operation results in an isolated environment.
    • Comparing expected state against actual state.

    The reviewer’s value lies not in adding one more vote, but in surfacing unproven inferences and uncovered risks. For questions that cannot be verified, preserving uncertainty is more professional than producing a tidy, unanimous conclusion.

    8. Engineering Rollout: Start with Low-Risk Loops

    Avoid starting with a complex, fully autonomous multi-model system. A more sensible path is to first choose tasks with clear goals, limited impact, and easily verified outcomes—such as internal document organization, change-plan review, or pre-operation risk analysis.

    Phase 1: Establish a single-role baseline. Measure the existing workflow’s completion rate, manual revision volume, processing time, and failure types.

    Phase 2: Introduce independent review, but do not open automated execution yet. Observe whether review catches real problems, whether it frequently blocks valid work, and whether users can understand the reasons for returned plans.

    Phase 3: Open controlled execution only for low-risk actions. Ensure operations have clear boundaries, results are verifiable, and anomalies can halt the process.

    Phase 4: Gradually expand the task scope, adjusting approval rules and permission design based on actual records.

    Evaluation metrics can include effective defect detection rate, false interception rate, human intervention ratio, task completion rate, execution failure rate, processing latency, and resource consumption. All metrics must have clearly defined measurement criteria—effectiveness cannot be judged from a handful of successful cases.

    Also record which stage failures occur in: unclear goals, plan errors, review misses, improper authorization, or execution anomalies. Only layered attribution tells you whether to adjust role responsibilities, rule design, or execution components.

    9. Conclusion: Governance, Not Role Play

    Organizing three intelligent roles after the Three Departments is an inspiring organizational idea, but implementation must move from historical metaphor to executable engineering constraints.

    Plan generation proposes the path; independent review tests the evidence and boundaries; controlled execution carries out approved actions. Humans retain goals, critical authorizations, and accountability. Structured records, state machines, least privilege, and result verification connect the three roles.

    This architecture will not make models automatically correct, but it makes errors easier to discover, makes unauthorized actions harder to commit, and makes operations easier to trace. For developers and enterprises, a reliable intelligent system is not one where more models say “yes” together—it is one where every “yes” has evidence, has boundaries, and can withstand inspection.