AI architecture / AI architects
AI agent security architecture: boundaries before autonomy
A practical strategy for tool access, context provenance, human approval, telemetry, and cost controls in multi-agent systems.
The most important part of a multi-agent system is not how many agents it has. It is the contract between them.
Secure agent architecture starts with explicit boundaries
An AI agent becomes security-relevant when it can retrieve private context, call tools, change state, or influence a human decision. Adding more agents does not automatically improve safety or accuracy. It increases the number of boundaries, identities, artifacts, and failure modes that must be governed.
A secure design defines each role, activation rule, tool allowlist, input schema, output schema, limits, memory policy, and guardrail before execution. The agent receives only the context required for its role. General shell access and ambient platform credentials do not belong in the reasoning loop.
Treat context as a security object
Context can contain source code, infrastructure facts, policies, previous decisions, and adversarial repository text. It needs the same tenant isolation, provenance, retention, and access control as any other sensitive asset.
A context pack should identify every included record and the rule that selected it. Repository text should remain untrusted data. Instructions found in a README, source comment, issue, or artifact must never silently become system instructions for an agent.
- Partition retrieval and caches by workspace.
- Attach evidence IDs instead of copying unbounded raw source.
- Exclude secrets and mask evidence before model calls.
- Record model, prompt version, context hash, latency, token usage, and price.
- Expire optional diagnostics quickly and audit every access.
Collaboration needs artifacts, not hidden reasoning
Agents should exchange typed artifacts: verified facts, competing hypotheses, risk assessments, diagram specifications, remediation proposals, and adjudication decisions. They do not need to exchange hidden chain-of-thought. Structured outputs make collaboration testable and keep the customer-facing explanation tied to evidence.
A coordinator can route work while specialist agents stay bounded. An evidence verifier can reject unsupported claims. A report synthesizer can preserve disagreement instead of smoothing it into false certainty. Human approval remains the boundary for consequential actions such as publishing a report or opening a remediation pull request.
“Agent count is not a quality metric. Evidence coverage, schema validity, replayability, and decision accuracy are.”
Design the control plane around failure
Models time out, tools fail, budgets expire, and evidence sources disagree. A production agent workflow should turn those conditions into explicit partial results rather than a clean-looking answer. Durable orchestration, idempotent activities, bounded retries, cancellation, and stage-level coverage gaps make failure visible and recoverable.
- Check budget before every model or embedding request.
- Use low-cost models for routing and formatting; reserve deeper reasoning for approved work.
- Cache only when tenant, source, context, agent, and model identities match.
- Keep deterministic scanners and validators outside agent control.
- Stream stage, artifact, log, cache, and cost events to the operator and customer.
A defensible multi-agent security review
For Hyperoru, the agent system is a way to divide a complex review into inspectable responsibilities. The security engineer interprets findings. The security architect reasons about boundaries and blast radius. The diagram architect converts accepted facts into validated views. The adjudicator checks that every material claim is supported before a report becomes reviewable.
That design makes agent collaboration visible without pretending the model is authoritative. Authority remains in deterministic evidence, explicit policy, and human approval.
Primary references
Continue reading
Architectural truth
Evidence-backed security architecture: from diagram to architectural truth
Security engineering
What is security engineering—and why does it need a context engine?
Structural risk