Let’s Get Certified
Module 11 / 14 · Governance, safety, and risk management

Place controls at trust boundaries

Protect side effects, distinguish untrusted content from authority, and prioritize deployment risks.

A team is adding a document assistant to a shared workspace. It may read authorized records, draft summaries, and submit selected drafts for publication. Treat the model’s proposed action as input to an application that owns policy.

5.1 · Place guardrails where effects occur

Trace the path from a user or document to each effect. Put object-level access checks before retrieval, schema validation and business rules at tool execution, and a publication check before releasing material to a wider audience. A user permitted to summarize a file may still lack the right to publish it. Enforce the distinction without blocking legitimate private drafts. Test with synthetic records and distinct roles, and record the policy decision at the boundary.

Keep private drafting available

A warranty team may summarize a restricted report privately. Publishing any excerpt to a shared bulletin requires a separate grant. The proposed control blocks every prompt mentioning the bulletin. Find a legitimate request it blocks and identify a boundary where the publisher can enforce the actual rule.

Follow the content to its audience

A reviewer may legitimately ask for a private draft suitable for the bulletin. Check their read entitlement before retrieving the report. Save the resulting draft under its restricted audience. Enforce publication authority at the operation that creates a shared item, including background jobs and alternate clients. Check whether the recipient group may see the content, and record the approved draft revision.

Test three paths with synthetic records. Private drafting by an authorized reviewer should succeed. Their attempted publish should leave the shared bulletin unchanged. An authorized publisher can release the approved revision to its permitted audience. Checking the final state catches paths that return an error after a side effect already occurred.

5.2 · Protect decisions from untrusted instructions

Retrieved passages, tool responses, and third-party Skill packages introduce content from outside the instruction boundary. Keep source data and trusted instructions structurally distinct. Preserve provenance, review and pin approved packages, and restrict runtime capability. A document may describe a requested action, but only an authorized caller and trusted policy can grant it. Content delimiters and model instructions help the model interpret evidence. Independent access and output checks constrain consequences if interpretation fails.

Classify what enters the model’s context

A case contains an administrator-owned policy, a retrieved customer attachment, a remote tool’s free-text description of a ticket, and a third-party Skill update awaiting review. Mark which data can describe a request and which source can actually authorize a new action. How would you test the distinction using a benign fixture?

Place controls around the model

The host selects trusted policy and authenticates the caller. The attachment and ticket description are evidence with provenance. Neither can grant wider sharing rights. Treat the proposed Skill as a dependency change. Review its contents and capabilities, pin an approved revision, and isolate the execution environment. A label or delimiter helps interpretation but grants no protection at a resource boundary on its own.

Use a synthetic attachment recording a colleague’s request for publication. The assistant may summarize that request. In a draft-only session, verify the publication tool is unavailable or denied by the backend and that no shared record appears. Preserve a minimal audit of the policy decision without retaining the entire attachment.

5.3 · Rank deployment risks by exposure

Use a risk register with asset, exposure, likely failure, impact, existing controls, residual risk, and owner. A public read-only endpoint can still exhaust a shared quota. An internal write-capable dependency with broad privileges can have a much larger impact than its traffic suggests. Assess tenant isolation, token and concurrency budgets, dependency provenance, service availability, and the blast radius of each failure. Re-rank after controls change the likelihood or consequence. Record what evidence supports the ranking.

Rank risks under two exposure conditions

For a ten-user internal pilot, a shared index lacks verified tenant isolation, the generation quota runs out twice per month, and one dependency updates automatically with write privileges. The support team can absorb a one-hour read-only outage. Prioritize a launch blocker and a mitigated pilot configuration. Then consider opening the pilot to 10,000 users.

Examine severity and residual exposure

Require evidence of tenant isolation before loading confidential data. A disclosure has a persistent effect and cannot be repaired by restoring uptime. Pin and review the write-capable dependency, remove unnecessary grants and test a rollback. Bound quota consumption per tenant and give exhausted requests a visible deferred state. Document who owns each control and how its failure would be detected.

With a public launch, re-estimate quota demand, noisy-neighbor effects and support capacity. A one-hour interruption for ten pilot users and one for 10,000 customers have different business costs. Record the assumptions behind the ranking so a change in exposure triggers a new decision.

Design exercise

Rank three risks for a pilot: a stale manual, an unavailable summarizer, and a cross-tenant document read. Suppose the first two are reversible and the third discloses confidential material. Identify which control must be proven before the pilot and which signal will detect a regression. Use a second test tenant with fabricated content to verify the boundary.

Further reading · MCP authorization specification · Claude Code permission modes

Knowledge check

Place controls at trust boundaries quiz

Answer 9 questions. Check each answer for an explanation.