An inspector role answers one question: may this kind of caller review a calibration? The workshop also requires current training. That is a separate fact, supplied by trusted context and evaluated when approval is attempted. Aegis policies express this additional condition beside the resource.
The example’s policy is a fragment of the complete domain:
approvalNeedsTraining:
ops: [transition]
when: "transition == 'approve'"
effect: require
obligations: ["user.claims.review_trained == true"]
error: REVIEW_TRAINING_REQUIRED
record: true
The policy applies to transition operations named approve. Every obligation must hold. An absent referenced claim denies; an expression that cannot be evaluated also denies under the policy contract. The named error lets a client distinguish the training failure from an ordinary permission denial.
Understand the supervisor boundary
ADL parses the policy and invokes the policy extension from covered actions. The compliance plugin decides applicability, evaluates the policy through the ADL host, selects its operational mode, and records decisions. The inspected extension interface is adl.host version 8.
This separation matters at deployment. Loading the ADL domain without a policy supervisor does not quietly waive the policy. A covered action is refused with 503 POLICY_SUPERVISOR_MISSING. The refusal occurs because the service lacks a component needed to decide the operation, not because the caller has failed training.
The lab exercises both situations. With the supervisor loaded but the trusted claim absent, approval is refused by the training policy. Without the supervisor, the covered transition path is unavailable. These are useful neighboring failures because they identify different repairs.
Policies narrow permission
Permissions are checked first. A policy cannot grant an operation the caller lacks permission to perform. Multiple applicable policies compose by denial: one denial is sufficient to refuse. Document order determines which denial supplies the reported error when several could decide.
This gives policy authors a useful local reasoning rule. Adding another enforced restriction cannot make an existing refusal become a permit simply by being placed later in the document. It can, however, change the reported reason or operational cost. Order remains relevant to explanation and diagnosis even when authorization is conjunctive.
The when expression is also part of the safety boundary. An unknown authority claim in applicability must not be treated as proof that a restrictive policy does not apply. The current policy contract denies on missing referenced claims there too.
The mode changes the result
The compliance plugin supports observe, warn, enforce, and strict modes. Observe and warn allow an operation that the policy would deny, while retaining the decision according to their logging behavior. Enforce refuses it. Strict adds failure handling for decision recording in the before-action path.
A manuscript that describes the policy text but omits the configured mode has left out a decisive premise. The handbook’s runtime lab explicitly selects enforce. A rollout using observe is a measurement period; it is not evidence that the written restrictions are preventing those operations.
There is another distinction around successful-operation recording. The policy’s record: true writes a permit after a successful action. Failure to write that after-action row does not undo the action. Do not infer transactional evidence completeness from strict mode or the presence of the key. Chapter 10 returns to that limit.
Read the coverage table before extending the claim
The current policy implementation covers the documented generated actions. Lists and exports can filter records after retrieval, leaving short pages and pre-policy totals. Some unsupported paths are deliberately refused. Other surfaces, including custom operations and several analytical or integration paths, are not covered by ordinary resource policies.
A policy on a resource therefore needs an operation inventory. Enumerate the ways that data is read, changed, or sent elsewhere. For each, identify the policy hook or another explicit control. Naming a policy confidential does not propagate enforcement to a route that never invokes it.
The authoritative local references are ADL 21 §21.12, the compliance plugin guide, and action_policy.cpp.
Workshop
Add a hypothetical policy requiring an unexpired inspection authorization. State whether its evidence comes from a token, a trusted configured expression, or a resource read. Then identify how an unavailable evidence source should affect approval and which error an operator should investigate.