Agentic AI
GxP
Best practices

One owner, two models: delegating to a second AI and verifying it

Pairing complementary LLMs with strict ownership, explicit briefs, and human-in-the-loop review

Structure dual-model AI workflows with clear task ownership, written briefs, and human verification to maintain engineering rigor.
Published

2026-09-26

Modified

2026-09-26

The problem

Relying on a single AI model for complex software engineering creates subtle failure modes:

  1. Context saturation and drift. Long-running coding sessions accumulate numerous turns. Over time, the model loses sight of original architectural constraints, begins making assumptions, and glosses over breaking changes.
  2. Confirmation bias and echo chambers. When the same model that wrote a piece of code is asked to review or test it, it frequently confirms its own initial assumptions rather than catching edge cases.
  3. The loss of accountability. Handing complete control to autonomous agentic workflows violates fundamental engineering governance. In regulated environments (such as GxP clinical analytics), every code change must be attributable to a qualified practitioner who understands and verifies the work.

To achieve high velocity without compromising rigor, we use a two-model workflow: an Owner model that directs, reviews, and executes outward actions, paired with one or more Delegate model sessions that perform focused research, drafting, and analysis under strict constraints.

The delegation pattern: Owner and Delegate

The workflow establishes a clear division of responsibility between two distinct AI models (in our practice, delegating to Gemini with Claude acting as owner):

flowchart TD
    Human["Named Human Engineer"] --> Owner["Owner AI (Claude)"]
    Owner -->|"Written Brief & Constraints"| Delegate["Delegate AI (Gemini)"]
    Delegate -->|"Structured Digest"| Owner
    Owner -->|"Re-opens files, verifies claims"| Review{"Verification Gate"}
    Review -->|"Pass"| Actions["Git Commit, Push, Merge, Deploy"]
    Review -->|"Nuance missed / Fail"| Revise["Refine or Reject"]

1. The brief: explicit scope and acceptance checks

Delegation begins with a structured markdown brief (such as dev/handoffs/playbook-site/research/gemini-brief.md, following our pattern for handoffs and agentic context). The brief defines: - Strict file ownership: Explicit directories the delegate may modify, with all other repository files designated read-only. - Hard constraints: Specific forbidden commands (no git commit, git push, or package installations) and strict style guidelines (no marketing hype, no unverified claims). - Verifiable facts: Exact evidence from repository configuration and official documentation that the delegate may cite.

2. The output contract: digests, not transcripts

Delegates are never permitted to dump raw session transcripts or full file contents into the owner’s context. The delegate must conclude with a compact digest: - Files created or modified; - Decisions made and rationale; - Unverified items flagged explicitly with <!-- UNVERIFIED: ... -->; - Open questions or discrepancies found.

3. The owner retains outward actions

The delegate never touches outward-facing tools. The owner model (under human supervision) reviews the diffs, runs test suites, builds the documentation, and executes git operations.

Evidence from our own work

We applied this two-model workflow to two real engineering challenges in our repositories.

Case 1: Dependabot PR triage

When automated dependency PRs arrived on our website repository, we assigned Gemini to analyse three separate pull requests and produce a triage recommendation:

  1. React 19.3.0: Gemini verified that Next.js 16.3 declared a peer dependency range of ^19.0.0, confirming that the minor version bump was safe. Recommendation: Merge.
  2. @types/node 26.x: Gemini verified that our runtime environment was pinned to Node 24 (.nvmrc and package.json). While CI passed and no type mismatches were observed, the types should match the Node 24 runtime so code cannot start using Node 26 APIs the runtime lacks. Recommendation: Close and add a semver-major ignore rule in .github/dependabot.yml.
  3. TypeScript 7.x: Gemini verified that Next.js 16.3 bundled official documentation for TypeScript 7 compatibility. Recommendation: Merge.

The verification step: The owner did not simply accept the summary. Claude re-opened every cited file, inspected the diffs, and checked the bundled Next.js documentation.

In doing so, Claude noted a nuance that Gemini had glossed over: running the project’s own tsc is Next 16.3’s default, and the related config page (useTypeScriptCli) is labelled experimental. The triage was accepted with this caveat recorded in the PR description.

Case 2: Playbook documentation migration

Migrating our engineering playbook from legacy topic folders to a modern blog structure was split across five delegate sessions: - A research session explored Quarto visual themes and listing options; - A migrate session moved files and restructured navigation; - An articles session drafted new technical content in drafts/; - An editor/categories session finalised copy and unified metadata taxonomy; - A theme/bslib session integrated shared branding.

Each session operated under the shared brief (gemini-brief.md). Claude reviewed each phase, rendered the site locally, ran offline link checks, performed browser checks, and committed the verified diffs via pull request. The no-git and no-push constraints were enforced through the explicit brief and owner review rather than technical sandboxing.

Pitfalls we hit

  • The summary trap. Trusting a delegate’s polished summary without re-opening the primary source files. If the delegate misinterprets a release note or misses an experimental flag, the owner inherits the error.
  • Instructions are not technical isolation. Prompts and briefs that instruct delegates not to run git push or modify credentials rely on compliance, not enforcement. For stronger boundaries, run delegates in an isolated sandbox or git worktree without write credentials.
  • Overlapping file ownership. Allowing multiple parallel AI sessions to edit the same files leads to merge conflicts and overwritten context. Enforce strict, non-overlapping directory boundaries.
  • Context dumping. Pasting full agent chat transcripts into the owner session rapidly bloats context windows and degrades reasoning performance. Enforce compact, bulleted digests.
  • Leaking execution authority. Giving subagents permission to run git push, publish packages, or close PRs bypasses the verification gate. Outward actions must belong exclusively to the owner.
NoteUpdates
  • 2026-09-26: Removed the end-of-post checklist.