
TL;DR
AI context governance turns evaluation findings into controls over evidence, context assembly, and consequential actions. Preserve decision-critical facts through retrieval and summarization, distinguish source authority from access permission, and bind recommendations to the policy and target state they evaluated. Keep authorization outside the model. A passing evaluation supports a release decision; it does not grant execution rights or prove that the surrounding workflow is safe.
Introduction
Consider a hypothetical extension of the architecture review used throughout this series. An assistant correctly identifies that two application nodes share a power failure domain. After a context-assembly change, it receives a summary describing only “two healthy application nodes” and recommends approval.
The underlying placement did not change. The fact needed to reject the requirement disappeared before the reviewer saw it.
Another prompt adjustment might repair this particular response. It would not explain why the evidence pipeline was allowed to remove a decision-critical field, who owns that transformation, or what prevents the recommendation from becoming a production change.
Part 1, AI Context Sensitivity: Same Evidence, Different Decisions, established how to distinguish meaningful changes from presentation and grading defects. Part 2, Build an AI Context-Sensitivity Test Harness in Python, provided a controlled way to investigate them. Its local fixtures tested the harness, not a live AI application.
This final installment moves from detection to control. The objective is not to make every answer identical. It is to make the decision path inspectable and prevent an incorrect recommendation from acquiring authority it never had.
Define What AI Context Governance Controls
In this article, AI context governance means the policies, ownership, and enforcement mechanisms governing what information reaches an AI application, how that information is transformed, and how its output may influence a workflow. It is a proposed operating pattern, not a named product or published standard.
Anthropic’s Effective context engineering for AI agents describes context engineering as managing the information available during inference, including instructions, tools, external data, and message history. Governance adds an accountability question: who is permitted to change those inputs, under which rules, and with what evidence that the change remains acceptable?
The scope remains an advisory architecture reviewer assessing one power-domain requirement. It has no deployment credentials. Where this article discusses execution, that work belongs to a separate change-management and execution path.
The synthetic domain records are assumed accurate for the example. In a real environment, a different domain label is not proof of independent power infrastructure. Someone must own the authoritative mapping between logical placement and physical dependencies.
Keep Evidence, Recommendation, and Authority Separate
These concepts answer different questions. Evidence describes the target state. A recommendation interprets that evidence against a requirement. Authorization determines whether a particular identity may perform a particular action now.
A correct recommendation can exist without authorization. An authorized operator can also receive an incorrect recommendation. Neither property substitutes for the other, and passing one resilience requirement does not establish complete production readiness.
For this narrow rule, I would enforce the domain comparison deterministically against trusted structured records. The model can explain the finding and help assemble remediation options, but it should not be the sole enforcement mechanism for a rule that ordinary code can evaluate directly.
Admit Evidence Before Asking the Model to Interpret It
A relevant document is not necessarily an authoritative source. An authoritative record is not necessarily current. A current record is not necessarily available to the requester.
The proposed admission layer makes those distinctions explicit before constructing the review packet.
| Control | Question it answers | Example failure response |
|---|---|---|
| Access permission | May this workflow use this record for this requester? | Deny access without exposing restricted contents. |
| Source authority | Can this source establish the fact under review? | Do not use a health dashboard to establish physical power independence. |
| Revision and freshness | Does the evidence describe the target state being assessed? | Refresh or stop when the relevant state cannot be established. |
| Required facts | Are the necessary domain values available? | Return insufficient evidence rather than inventing a value. |
| Conflict handling | Do authoritative records disagree? | Stop and route the conflict to the evidence owner. |
OWASP’s Authorization Cheat Sheet recommends denying access by default and validating permissions on every request. Applied here, authorization belongs in the retrieval and tool services, not in an instruction asking the model to ignore records the user should not see.
For delegated workflows, validate both the service’s permitted function and the requester’s scope. A powerful service account should not silently expand a user’s access.
Freshness Is More Than a Timestamp
For the power-domain example, the important relationship is between the observation and the placement revision. A record captured moments ago can still describe the wrong cluster or an earlier configuration. An older record may remain valid if the authoritative system can establish that the relevant placement has not changed.
Define freshness rules by evidence type and decision consequence. Where revision tracking is unavailable, document the limits of time-based freshness rather than describing a recent timestamp as proof of current state.
Admission also needs an explicit unavailable state. A failed lookup is not evidence that a dependency does not exist. Distinguish an observed violation, an unknown fact, an access denial, and a service error in the workflow record.
Separate the Review Path From the Action Path
The architecture below shows where the boundaries belong. The review service produces advisory output. The execution service requires its own authorization and current preconditions; it does not inherit permission from the model’s verdict.

OWASP’s LLM06:2025 Excessive Agency recommends minimizing available functionality and permissions and enforcing authorization in downstream systems rather than allowing the LLM to decide what is permitted.
In this design, the reviewer cannot invoke the executor directly. The executor validates an authenticated request, its action scope, and required approvals independently. A generated approve value remains data, not a credential.
The checks themselves also need tests. Submit an unauthorized action request directly to the executor, without involving the model, and verify rejection. Otherwise, a convincing AI demonstration can distract from a bypass in ordinary application code.
Preserve Decision-Critical Facts Through Summarization
Anthropic’s context-engineering guidance warns that aggressive compaction can lose subtle but critical information. The architectural response here is to identify which facts must survive before optimizing the size of the context.
For the power-domain requirement, preserve each node identifier, its domain value, the source revision, and unresolved uncertainty in structured fields. A narrative summary can explain those records, but it should not replace them.
A useful transformation test is not merely whether the summary sounds accurate. It is whether the downstream review still receives the facts necessary to apply the requirement.
Compare the source packet with the assembled packet before invoking the reviewer. Missing or altered critical fields should fail assembly validation. If the authoritative source itself lacks a domain value, preserve that unknown and allow the requirement to be classified as insufficient_evidence.
For facts available only in unstructured documents, extraction becomes another evaluated component. Retain the supporting passage and source identity, and use appropriate review for consequential conclusions. Calling extracted text “structured evidence” does not make it authoritative.
Do Not Promote Generated Memory Into Infrastructure Truth
An earlier model statement such as “the nodes appear independent” is a previous assessment, not a new placement record. In this pattern, generated notes retain their origin and cannot replace the authoritative domain fields.
Apply the same separation to cached summaries. Reuse them only when the current requester remains authorized and the relevant source, policy, and assembly revisions remain acceptable. A cache key based only on the user’s question cannot establish those conditions.
This matters for reassessment. When material evidence changes, reconstruct the review from current records rather than asking the assistant to defend its earlier conclusion.
Express the Context Contract Outside the Prompt
The following YAML records the proposed responsibilities of admission, assembly, model output, and execution. It is an illustrative application contract, not an executable policy engine or a native vendor schema. The Part 2 runner does not consume it.
The example preserves Part 2’s three model decision values and adds production-oriented provenance and workflow controls around them.
context_contract:
id: power-domain-review-v1
owner: platform-ai-team
decision_scope: independent_power_domains
evidence:
access_check: before_model_exposure
authority_profile: physical-placement-sources-v1
freshness_profile: placement-evidence-freshness-v1
required_fields: [id, power_domain]
required_provenance:
- source_id
- source_revision
- observed_at
- target_revision
on_unknown_domain: insufficient_evidence
on_authoritative_conflict: stop_and_escalate
assembly:
version: context-assembler-v1
preserve_record_ids: true
preserve_unknown_values: true
preserve_critical_fields: true
retain_source_lineage: true
on_transformation_failure: stop_and_escalate
model_output:
fields: [decision, evidence_ids, basis]
decisions: [approve, hold, insufficient_evidence]
deployment_authority: none
execution_boundary:
independent_authorization: required
revalidate: [identity_scope, target_revision, policy_revision]
revalidate_evidence: required
on_failed_precondition: stop_and_reassess
Replace the owner and profile identifiers with records your organization maintains. Implement the checks in retrieval, assembly, validation, and execution services, with credentials that enforce the separation. Putting deployment_authority: none into a prompt does not revoke a tool’s permissions.
The provenance fields belong in the application’s evidence envelope; they are not additional required keys in the Part 2 model response. Likewise, stop_and_escalate and stop_and_reassess describe workflow states, not new values for the model’s decision field.
Successful implementation would demonstrate that missing critical fields prevent a normal approval path, contradictory sources reach the evidence owner, and unauthorized execution requests are rejected. Parsing this YAML successfully would demonstrate none of those controls by itself.
Treat Prompt Injection as a Separate Trust-Boundary Test
A legitimate evidence-order change and an instruction hidden inside retrieved content are not the same test.
OWASP’s LLM01:2025 Prompt Injection describes indirect injection through external sources and notes that retrieval augmentation does not fully mitigate the vulnerability. Approved retrieval therefore does not make every sentence in a returned document an authorized instruction.
In the proposed review workflow, a record may establish a node’s placement. It cannot grant the assistant permission to change that placement, replace the governing policy, or authorize additional data access.
Test those boundaries separately from benign context sensitivity. Include cases where retrieved material attempts to redirect the workflow or requests an out-of-scope action. The required outcome is not merely a polite refusal in the final answer; inspect whether unauthorized tool calls, disclosures, or side effects occurred.
Delimiters and instruction hierarchy can help organize context. They are not substitutes for the independently enforced access and execution boundaries shown above.
Bind Approval to the State That Was Reviewed
Suppose a separate deployment request receives the required approvals after an architecture review. Before execution, the placement revision changes or the governing policy is updated.
The earlier decision is still evidence about the earlier review. It is not automatically valid for the new state.
In this pattern, the approval record binds the authorized subject, target, action, evidence snapshot, and policy revision. The executor checks that binding against current conditions before making a consequential change.
The sequence matters because a check performed long before execution leaves room for intervening changes.

HTTP provides one implementation mechanism where an API supports it. RFC 9110 defines If-Match, which conditions a request on a matching entity tag and uses strong comparison. A failed precondition prevents the requested method from being performed; the server can report 412 Precondition Failed.
That mechanism protects the resource representation covered by the entity tag. It does not automatically make a policy check in another service atomic with an infrastructure change. Multi-system workflows need explicit coordination, version preconditions, or a documented approach to residual race conditions.
Do not respond to a mismatch by automatically substituting the newest revision and retrying the old approval. Reassess the decision against the changed state. For ambiguous execution outcomes, reconcile with the destination system before retrying a potentially consequential action.
Turn Test Findings Into Release and Runtime Controls
The Part 2 harness varied wording and evidence order under controlled conditions. Production evaluation should add the boundaries introduced in this article without pretending those tests are already implemented by the sample runner.
| Failure scenario | Required control behavior | Evidence to inspect |
|---|---|---|
| Summary drops a domain value present in the source | Reject the transformation or rebuild the context. | Source-to-context field comparison. |
| Another requester receives a cached review | Recheck access before reuse or disclosure. | Authorization and cache-access records. |
| Retrieved text requests an unauthorized action | Keep the action outside permitted scope. | Tool requests and downstream authorization results. |
| Target or policy changes after approval | Stop and require reassessment. | Bound revisions and executor precondition result. |
| Model or assembler changes | Run relevant regression cases before promotion. | Versioned release and evaluation records. |
Anthropic’s Demystifying evals for AI agents distinguishes an agent’s transcript from the resulting environment state. That distinction is essential here: “deployment blocked” in generated text is not evidence that the executor actually rejected the request.
For release testing, retain the model identifier, instructions, tool configuration, retrieval and assembly versions, output contract, and grader version. Keep live evidence versions in per-review records rather than assuming that a release pins every changing infrastructure fact.
Treat provider model changes as review triggers even when tool permissions remain unchanged. Stronger performance does not itself justify broader authority. Where a provider does not expose a fixed revision, record that limitation and use repeatable probes to watch for behavior changes without claiming exact reproducibility.
Monitor the Decision Path, Not Just the Answer Rate
Track incorrect approvals, unnecessary holds, evidence gaps, assembly rejections, authorization failures, and revision mismatches separately. Compare them by workflow and consequence, with explicit denominators.
A rise in insufficient-evidence outcomes may indicate a broken source integration rather than a weaker model. A fall in rejected actions may indicate fewer invalid requests or an enforcement bypass. Investigate the path before celebrating a metric.
NIST’s Generative Artificial Intelligence Profile provides broader risk-management guidance for the design, development, use, and evaluation of AI systems. The controls proposed here are an implementation approach, not a certification or a claim that adopting this YAML establishes compliance.
Assign Owners and Define the Degraded Mode
The infrastructure owner should be accountable for the domain evidence and its physical interpretation. The AI application team owns retrieval and assembly behavior. Security and identity teams own access enforcement, while the change-management and platform teams own execution approval and recovery.
Assign an operational owner to the complete workflow as well. Otherwise, an incident can remain unresolved while each component team reports that its service is healthy.
For this advisory architecture-review use case, unavailable policy or unusable evidence should prevent automated approval and route the case to review. Human reviewers need access to the governing requirement, source evidence, and unresolved conflict, not only the model’s explanation.
Any emergency exception should use a separate, established process with a named approver, bounded scope, and retained evidence. Asking the model to waive the requirement is not an exception process.
These checks add latency and dependencies. Scale their depth to the action’s consequence, but do not remove access controls from supposedly low-risk reading tasks. Read-only systems can still disclose information.
Contain the Failure Before Restoring the Workflow
For a confirmed context regression, suspend the affected automated decision path and preserve the relevant evidence. Restore a known configuration only after checking that it remains compatible with the current policy, evidence schemas, and execution services.
Keep recommendation records separate from action records. Responders need to know what was suggested, what was authorized, what was attempted, and what the destination system actually changed. A rollback of the assembler does not undo a deployment or retract information already disclosed.
Protect captured context and outputs with appropriate access and retention controls. A digest can help identify a captured payload, but it cannot prove that the payload was true, authorized, or fully visible to the model. Record unobservable provider-side context rather than claiming a complete reconstruction.
Once the failure is understood, add a focused regression case at the component that failed and an end-to-end case at the affected boundary. A repair is complete when the relevant control works again, not when one demonstration produces the desired wording.
Conclusion
The series began with a bounded lesson about observation: AI behavior must be interpreted under the conditions that produced it. It ends with an operating responsibility to manage those conditions and limit what follows from the answer.
Part 1 defined the decision and the changes that should matter. Part 2 made controlled variations testable. Part 3 connects the findings to evidence admission, transformation checks, independent authorization, and execution-time validation.
Start with one consequential decision. Identify the facts that determine its outcome, preserve them through the context pipeline, and prove that a bad recommendation cannot bypass the action controls. Then assign owners who can diagnose and contain failures across the complete workflow.
The model may explain the decision. The surrounding system must establish why the evidence was admissible, whether the requirement was satisfied, and who was authorized to act.
External References
- NIST: Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile
Canonical URL: https://www.nist.gov/publications/artificial-intelligence-risk-management-framework-generative-artificial-intelligence - OWASP Cheat Sheet Series: Authorization Cheat Sheet
Canonical URL: https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html - OWASP Gen AI Security Project: LLM01:2025 Prompt Injection
Canonical URL: https://genai.owasp.org/llmrisk/llm01-prompt-injection/ - OWASP Gen AI Security Project: LLM06:2025 Excessive Agency
Canonical URL: https://genai.owasp.org/llmrisk/llm062025-excessive-agency/ - RFC Editor: RFC 9110: HTTP Semantics
Canonical URL: https://www.rfc-editor.org/rfc/rfc9110.html - Anthropic: Effective context engineering for AI agents
Canonical URL: https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents - Anthropic: Demystifying evals for AI agents
Canonical URL: https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
TL;DR An AI agent should not receive production authority because it succeeded in a demonstration or scored well on a general benchmark....