Capability and authority separation
Family: Policy
Disclosure class: PUBLIC-PRACTICE
Maturity: Draft
Enforcement: Reference policy; adopters must implement enforcement in their own runtime.
This policy prevents an agent system from treating discovery, authentication, connectivity, or a valid request shape as permission to perform an effect.
Principle
Capability answers “what can this system technically do?” Authority answers “what may happen to this target, now, under this policy?” Keep them separate.
A visible tool, authenticated caller, connected provider, valid signature, discovered node, enabled integration, or syntactically valid request may be necessary evidence. None of those facts is sufficient authorization by itself.
Separate the layers
Capability discovery
Discovery may report that an operation exists and describe its input/output contract. It must not silently grant the operation permission to run.
Catalog presence is descriptive, not authoritative.
Identity and authentication
Authentication establishes who or what is making a request to the degree supported by the authentication mechanism. It does not decide which target, operation, scope, or side effect is allowed.
Treat a successful identity check as one input to authorization, not as authorization itself.
Request validity
A request should be structurally valid before policy evaluation. Where appropriate, bind it to explicit information such as:
- operation identity;
- target identity;
- intended capability or effect class;
- freshness or expiry;
- replay identity;
- an expected target revision or other precondition.
Passing validation proves that the request can be evaluated. It does not prove that the request should be executed.
Local or target-owning policy
The runtime that owns the target should make the final effect decision using deterministic policy and current state.
Policy should be able to deny a request even when the caller is authenticated and the requested capability exists.
Execution and evidence
If policy permits the effect, execution is still a distinct lifecycle stage. Record a durable operation identity or receipt when practical, then verify important postconditions from fresh evidence.
Do not collapse permission, execution, and verification into one success flag.
Preconditions are authority bounds
When a decision depends on observed state, carry a precondition that identifies that state. If the target has changed before the effect boundary, fail closed and require a fresh decision instead of applying stale intent to a new state.
Examples include a repository revision, object version, generation, lease epoch, or another target-specific freshness marker.
The exact mechanism is implementation-specific; the reusable rule is that authorization based on stale state must not silently widen across state changes.
Expiry and replay
Time-bounded or one-shot requests should have explicit freshness and replay semantics. A request that has expired or already been accepted under a non-replay policy should be rejected rather than silently executed again.
Do not invent cryptographic or replay guarantees that the implementation does not actually provide. It is better to expose an unimplemented acceptance gate than to imply protection that does not exist.
Unknown outcomes
A timeout, disconnect, client restart, or missing response can make an execution outcome unknown. Unknown is not equivalent to denied, failed, or not executed.
Before replaying a potentially non-idempotent effect:
- inspect durable receipts or authoritative target state;
- determine whether the original effect occurred;
- retry only when replay is known to be safe or the original effect is known not to have happened.
Receipt guidance
Keep lifecycle receipts independent from business/result payloads when that improves auditability. A small receipt may distinguish:
- accepted;
- queued;
- running;
- completed;
- failed;
- unknown.
The result may separately describe the observed output. Verification may then establish whether the intended postcondition is actually true.
Negative conformance cases
An implementation following this policy should reject or safely handle at least these cases:
- authenticated caller requesting an unauthorized capability;
- authorized capability aimed at the wrong target;
- request based on a stale target revision;
- expired request;
- replay of a one-shot request;
- capability available but denied by target-local policy;
- execution timeout whose outcome cannot yet be determined;
- executor success with no fresh postcondition evidence.
Non-goals
This policy does not define a private permission table, production topology, signing algorithm, key format, replay-store implementation, provider-selection strategy, or internal control-plane protocol.
Those are implementation decisions. The public practice is the separation of capability, identity, request validity, authority, execution, and verification.
# Capability and authority separation
**Family:** Policy
**Disclosure class:** `PUBLIC-PRACTICE`
**Maturity:** Draft
**Enforcement:** Reference policy; adopters must implement enforcement in their own runtime.
This policy prevents an agent system from treating discovery, authentication, connectivity, or a valid request shape as permission to perform an effect.
## Principle
**Capability answers “what can this system technically do?” Authority answers “what may happen to this target, now, under this policy?” Keep them separate.**
A visible tool, authenticated caller, connected provider, valid signature, discovered node, enabled integration, or syntactically valid request may be necessary evidence. None of those facts is sufficient authorization by itself.
## Separate the layers
### Capability discovery
Discovery may report that an operation exists and describe its input/output contract. It must not silently grant the operation permission to run.
Catalog presence is descriptive, not authoritative.
### Identity and authentication
Authentication establishes who or what is making a request to the degree supported by the authentication mechanism. It does not decide which target, operation, scope, or side effect is allowed.
Treat a successful identity check as one input to authorization, not as authorization itself.
### Request validity
A request should be structurally valid before policy evaluation. Where appropriate, bind it to explicit information such as:
- operation identity;
- target identity;
- intended capability or effect class;
- freshness or expiry;
- replay identity;
- an expected target revision or other precondition.
Passing validation proves that the request can be evaluated. It does not prove that the request should be executed.
### Local or target-owning policy
The runtime that owns the target should make the final effect decision using deterministic policy and current state.
Policy should be able to deny a request even when the caller is authenticated and the requested capability exists.
### Execution and evidence
If policy permits the effect, execution is still a distinct lifecycle stage. Record a durable operation identity or receipt when practical, then verify important postconditions from fresh evidence.
Do not collapse permission, execution, and verification into one `success` flag.
## Preconditions are authority bounds
When a decision depends on observed state, carry a precondition that identifies that state. If the target has changed before the effect boundary, fail closed and require a fresh decision instead of applying stale intent to a new state.
Examples include a repository revision, object version, generation, lease epoch, or another target-specific freshness marker.
The exact mechanism is implementation-specific; the reusable rule is that **authorization based on stale state must not silently widen across state changes.**
## Expiry and replay
Time-bounded or one-shot requests should have explicit freshness and replay semantics. A request that has expired or already been accepted under a non-replay policy should be rejected rather than silently executed again.
Do not invent cryptographic or replay guarantees that the implementation does not actually provide. It is better to expose an unimplemented acceptance gate than to imply protection that does not exist.
## Unknown outcomes
A timeout, disconnect, client restart, or missing response can make an execution outcome unknown. Unknown is not equivalent to denied, failed, or not executed.
Before replaying a potentially non-idempotent effect:
1. inspect durable receipts or authoritative target state;
2. determine whether the original effect occurred;
3. retry only when replay is known to be safe or the original effect is known not to have happened.
## Receipt guidance
Keep lifecycle receipts independent from business/result payloads when that improves auditability. A small receipt may distinguish:
- accepted;
- queued;
- running;
- completed;
- failed;
- unknown.
The result may separately describe the observed output. Verification may then establish whether the intended postcondition is actually true.
## Negative conformance cases
An implementation following this policy should reject or safely handle at least these cases:
1. authenticated caller requesting an unauthorized capability;
2. authorized capability aimed at the wrong target;
3. request based on a stale target revision;
4. expired request;
5. replay of a one-shot request;
6. capability available but denied by target-local policy;
7. execution timeout whose outcome cannot yet be determined;
8. executor success with no fresh postcondition evidence.
## Non-goals
This policy does not define a private permission table, production topology, signing algorithm, key format, replay-store implementation, provider-selection strategy, or internal control-plane protocol.
Those are implementation decisions. The public practice is the separation of capability, identity, request validity, authority, execution, and verification.