Skip to content

Part 6 · Blueprint 36

Enterprise Copilot Platform: Full Architecture (Capstone)

14 min reading · Sources · Editorial review pending

A complete assistant must preserve permissions and effect identity across every subsystem.

More
20px
Reading list
Page details

Published date · Last edited:

Draft edition. Editorial review and supplementary reading recommendations are still being completed.

Format: Architecture walkthrough. Prerequisites: the beginner bootcamp. Chapter prerequisites: Security Architecture, Zero-Trust & Multi-Tenancy, Enterprise RAG System Architecture & Failure Modes, Autonomous Agent Orchestration Platform, Enterprise AI Gateway: Routing, Semantic Caching & Guardrails.

Sixty-second mental model

Problem: A complete assistant must preserve permissions and effect identity across every subsystem.

Use: Separate answering from authorized action and observable outcome.

Design boundary: Compose enterprise document assistance with retrieval, tool permissions and recovery. Keep source access, model planning and action authorization as separate responsibilities.

Layer 1 · Intuition

Hypothetical scenario: Northwind is designing enterprise copilot. Maya represents product requirements, Dev implementation and Priya reliability. The team must agree what one assistant turn means and which component owns the user task authority.

Think of a staffed help desk retrieving records and performing bounded actions. Separate the requester from user task authority, then identify the retained evidence needed after failure.

Authority
The entitled state owner.
Invariant
A rule preserved across concurrency and failures.

Architecture and worked reasoning

Design boundary: Compose enterprise document assistance with retrieval, tool permissions and recovery. Keep source access, model planning and action authorization as separate responsibilities.

Responsibilities on the request path

Enterprise copilot: responsibilities and request directionCompose enterprise document assistance with retrieval, tool permissions and recovery. Keep source access, model planning and action authorization as separate responsibilities.User taskScoped retrievalAction plannerApproval adapter
Compose enterprise document assistance with retrieval, tool permissions and recovery. Keep source access, model planning and action authorization as separate responsibilities.

Workload and limiting resource

Choose eight retrieved chunks of 600 tokens: 4,800 context tokens. If each of three action stages can make two attempts, the upper action count is six under that policy. Context size and action exposure are distinct budgets; reducing one does not bound the other.

Keep the units attached to each intermediate result. The assumptions above describe a hypothetical exercise, not observed vendor capacity. A real capacity decision also needs a measured service curve, skew, recovery traffic and an explicit admission policy for overload.

Mutation or publication path

Enterprise copilot: mutation boundaryAuthenticate task owner and source scope. Then: Retrieve permitted evidence and generate a bounded plan. Then: Authorize and journal each permitted external action.Step 1
Authenticate task owner and source scope.
Step 2
Retrieve permitted evidence and generate a bounded plan.
Step 3
Authorize and journal each permitted external action.
Authenticate task owner and source scope. Then: Retrieve permitted evidence and generate a bounded plan. Then: Authorize and journal each permitted external action.
  1. Authenticate task owner and source scope.
  2. Retrieve permitted evidence and generate a bounded plan.
  3. Authorize and journal each permitted external action.

Observation and recovery path

Enterprise copilot: observation boundaryExplain answers with source/version provenance. Then: Expose pending action outcomes honestly. Then: Recover interrupted work from durable task evidence.Step 1
Explain answers with source/version provenance.
Step 2
Expose pending action outcomes honestly.
Step 3
Recover interrupted work from durable task evidence.
Explain answers with source/version provenance. Then: Expose pending action outcomes honestly. Then: Recover interrupted work from durable task evidence.
  1. Explain answers with source/version provenance.
  2. Expose pending action outcomes honestly.
  3. Recover interrupted work from durable task evidence.

Failure that changes the decision

Hypothetical scenario: A retrieved document contains instructions to exfiltrate another team’s data. Treat retrieved content as untrusted evidence and enforce permissions outside the model.

Attempt this decision before reading the explanation

Does the user’s access to one document grant the copilot broad authority to execute its instructions?

No. Reading permission, instruction authority and action capability are separate. Validate each action against trusted task context and least-privilege tool policy.

Supporting mechanism analysis

Hypothetical scenario: Northwind. Maya represents product, Dev implementation and Priya reliability. The following workflow develops the underlying mechanism.

Maya: “Can we call the workflow complete if the answer is right but the change is uncertain?”

Priya: “Trace both, preserve the operation identity and show the recovery decision before approving the design.”

Before you continue: The policy answer is supported, but the dispatched update has an unresolved outcome. May the whole workflow be counted as accepted completion?

That drops the external-action condition from the requested task. The change may have occurred, failed or remained pending; a good answer cannot establish which outcome the operation produced.

This preserves both acceptance boundaries. Use the durable operation identity and remote contract to investigate, while keeping the supported answer distinguishable from the uncertain effect.

Hypothetical scenario. A permitted employee asks Northwind to summarize a current policy and propose a support-record change. Ingestion has published a versioned document snapshot. Retrieval applies employee scope before dense/sparse candidate fusion and reranking. Evidence assembly preserves source identity and effective date. Response-cache reuse is allowed only under the current task, policy and freshness contract; prefix reuse remains a separate model-state optimization.

The agent proposes a typed update through an approved tool. An explicit approval binds to that immutable proposal, and the executor owns the external operation identity. If the worker fails after dispatch, recovery reconciles the record rather than assuming the update never happened. A child reviewer receives only the artifact and authority needed for its task. The gateway admits model work under the run budget; traces connect the model, retrieval and tool attempts without exposing unrestricted source contents.

Hypothetical scenario. Maya asks Dev, Priya and Sam to defend the assistant before it can handle live support work.

In short. Join evidence, authority, state and budget decisions. Name each remaining unknown and its owner.

Hypothetical scenario. A small support team needs help answering questions about a changing product policy. Staff want a draft with evidence, not an autonomous system that silently promises refunds. The assistant may retrieve permitted documents and prepare a response; sending messages and changing customer accounts remain outside its initial scope.

Write a short design before opening the explained scenarios. State the audience and task contract, draw the evidence path, show the arithmetic behind your resource assumptions and name one condition that blocks release. Reading the reference reasoning is different from demonstrating that you can defend your own design.

Hypothetical scenario. Trace one permitted answer and one separately approved action through the existing platform. Retain source revisions, caller scope, budget and operation identity.

During revocation, fallback and resume, each boundary still owns its original obligation. Model availability cannot replace disclosure authority or effect reconciliation.

A system chosen only from a model leaderboard leaves the actual product unspecified. Does the draft identify the correct account and policy version? Is the evidence permitted for this staff member? What happens when the source does not answer the question? Which actions are allowed after generation?

Define successful behavior in terms a reviewer can inspect. A useful draft cites eligible passages, distinguishes source facts from uncertainty and avoids commitments outside the support worker's authority. The service must also handle unavailable evidence and interrupted generation without inventing completion.

Begin with a baseline that presents ranked excerpts and lets staff write the reply. Compare whether synthesis reduces the relevant effort while maintaining required constraints. A larger model can be a candidate, but the comparison must explain what problem its extra capability is meant to solve.

Source ingestion preserves identity, versions and access rules. Parsing and chunking retain enough context for policy exceptions. Retrieval combines appropriate exact-identifier and similarity signals over eligible material. The answer stage receives a bounded source set and produces a draft with references.

Application checks enforce output shape and citation eligibility. Source-support review determines whether material claims follow from the evidence. Neither valid JSON nor a plausible citation establishes a correct interpretation. Preserve a useful limitation response when support is inadequate.

Record logical tasks separately from generation attempts. A partial stream is provisional output until the application's acceptance conditions are met. The user interface should distinguish a complete reviewed draft from an interrupted response that requires another decision.

Hypothetical scenario. Choose four evidence passages of 350 tokens each. Their total is 4 × 350 = 1,400 tokens. Add 600 for task instructions and the question, and reserve 500 for output. The planned request allowance is 1,400 + 600 + 500 = 2,500 tokens before any extra serialization or retained history.

Choose ten logical tasks per minute, each with one attempt. Planned input demand is 10 × (1,400 + 600) = 20,000 tokens per minute; output reservation is 10 × 500 = 5,000. If two of those tasks require one extra attempt of the same planned size, attempts become 10 + 2 = 12, input demand becomes 12 × 2,000 = 24,000 and output reservation becomes 12 × 500 = 6,000.

Choose a ten-second useful task deadline. Retrieval uses two seconds, generation is allowed six and validation reserves one. The listed sum is 2 + 6 + 1 = 9 seconds, leaving 10 − 9 = 1 second for unlisted work. This is a planning budget; measured variation and queueing can invalidate it. A second six-second generation cannot simply be added after the first exhausts its allowance.

For a hypothetical 20-case review set, choose eight straightforward policy questions, four exception questions, four insufficient-evidence questions and four permission-boundary questions. The count is 8 + 4 + 4 + 4 = 20. This deliberate mix provides coverage, not a claim about real traffic prevalence.

Suppose the candidate passes all eight straightforward cases but only two in each other group. Its total is 8 + 2 + 2 + 2 = 14, or 14 ÷ 20 = 0.7. The aggregate hides that each challenging group passes only 2 ÷ 4 = 0.5. Release decisions must inspect those required behaviors rather than celebrate the overall fraction.

Anthropic's Building effective agents : A bounded workflow and a dynamically directed agent have different orchestration needs.

If exception passages are missing, inspect source parsing, chunk identity and retrieval before training. If the right passages arrive but the draft ignores an exception, compare a clearer task contract, examples or answer validation. If a stable behavioral failure persists across representative cases, adaptation becomes a candidate with its own data and regression plan.

Layer 3 · Internals

Trade-offs and limits

ApproachProvidesRequires
Answer-only assistantLimits effects to a disclosed response.Users still need sufficient evidence and permission-aware retrieval.
Bounded action-capable assistantCan complete a defined authorized workflow.Tool identity, approval, durable effects and reconciliation enlarge the trust boundary.

Recovery decision

Hypothetical scenario: A retrieved document contains instructions to exfiltrate another team’s data. Treat retrieved content as untrusted evidence and enforce permissions outside the model.

No. Reading permission, instruction authority and action capability are separate. Validate each action against trusted task context and least-privilege tool policy.

Write your design before revealing the review

Does the user’s access to one document grant the copilot broad authority to execute its instructions?

Evidence you can explain in your own design

Drafts and self-review are stored only in this browser. They are separate from reading completion.

Compare your decision

No. Reading permission, instruction authority and action capability are separate. Validate each action against trusted task context and least-privilege tool policy.

A retrieved document contains instructions to exfiltrate another team’s data. Treat retrieved content as untrusted evidence and enforce permissions outside the model.

Check your understanding

Does the user’s access to one document grant the copilot broad authority to execute its instructions?

No. Reading permission, instruction authority and action capability are separate. Validate each action against trusted task context and least-privilege tool policy.

How would you recover from this failure: A retrieved document contains instructions to exfiltrate another team’s data. Treat retrieved content as untrusted evidence and enforce permissions outside the model.

Start with the exact boundary that failed. Authenticate task owner and source scope. Retrieve permitted evidence and generate a bounded plan. Authorize and journal each permitted external action. Then recover evidence through the observation path: Explain answers with source/version provenance. Expose pending action outcomes honestly. Recover interrupted work from durable task evidence. Preserve the distinction between a confirmed state change and an unavailable response.

Which assumption in the worked calculation would a burst or concentrated tenant invalidate first?

Choose eight retrieved chunks of 600 tokens: 4,800 context tokens. If each of three action stages can make two attempts, the upper action count is six under that policy. Context size and action exposure are distinct budgets; reducing one does not bound the other. Recompute the affected resource rather than multiplying unrelated storage and network budgets by the same factor. Compose enterprise document assistance with retrieval, tool permissions and recovery. Keep source access, model planning and action authorization as separate responsibilities.

Which component in this topology could be removed from a smaller first deployment?

User task, Scoped retrieval, Action planner, Approval adapter name responsibilities, not a requirement for separate processes. Co-locate responsibilities when their transaction, trust and capacity boundaries permit it. Authenticate task owner and source scope.

What evidence must a caller have before relying on the observation path?

Explain answers with source/version provenance. Expose pending action outcomes honestly. Recover interrupted work from durable task evidence. No. Reading permission, instruction authority and action capability are separate. Validate each action against trusted task context and least-privilege tool policy.

45-minute interview rubric

  1. 00–05: scope assistant turn and user task authority.
  2. 05–12: identify the limiting resource and derive the domain workload above, retaining units and assumptions.
  3. 12–28: draw user task authority, numbered writes and reads.
  4. 28–40: challenge recovery: Separate answering from authorized action and observable outcome.
  5. 40–45: defend session_id placement, observations and remaining assumptions.

Go deeper

Decision log

Separate answering from authorized action and observable outcome.

Preserve assistant turn identity and user task authority ownership.

Revisit changed workload, observations or recovery objectives.