External reality is not an Agent revision
Canonical Agent state and external state have different owners. BaseRevision protects a proposal against stale Agent-owned semantics. ObservedStateVersion records the external state on which an effect decision relied.
The two can change independently. A Work plan may remain at revision 12 while the repository branch, account balance, calendar event, or physical environment changes. The system therefore needs an explicit effect contract rather than an executor instruction that says “do it.”
EffectIntent
An EffectIntent binds one intended external mutation to its semantic basis:
logical effect identity
Work and Responsibility
target ExternalStateRef
BasedOnObservation
ObservedStateVersion
EffectPrecondition
PreconditionEnforcementClass
ExpectedPostcondition
Authority and purpose
provider/binding constraints
conflict and reconciliation policy
The logical effect identity survives retries and provider request IDs. It allows the system to determine whether a new Attempt is trying to complete the same intended consequence or create another one.
BasedOnObservation
An effect should state which Observation justified it. The observation records source, time, provenance, state version where available, freshness, uncertainty, and relevant Claims.
For a repository change, the observation may identify a commit or branch version. For a calendar edit, it may identify an event revision. For a physical action, it may identify a DomainStateEstimate built from sensor observations. The effect does not imply that the observation remains current indefinitely.
Preconditions and enforcement strength
Four enforcement classes matter.
ATOMIC_PROVIDER_ENFORCED
The provider evaluates the precondition atomically with the logical effect. HTTP If-Match, cloud-storage generation preconditions, and compare-and-swap operations are precedents. If the version no longer matches, the provider rejects the mutation rather than applying it to a stale target.
TRANSACTIONALLY_ENFORCED
A declared multi-operation effect set is protected by a transaction boundary with stated scope. This is stronger than a sequence of individually conditional operations. It does not imply a transaction across systems outside that boundary.
HOST_PRECHECK_ONLY
The Agent or host reads the current state, compares it locally, and then issues an unconditional effect. The check may be useful, but another actor can change the target between check and mutation.
host precheck ≠ TOCTOU-safe enforcement
OBSERVATIONAL_ONLY
No pre-effect enforcement exists. The system acts and then observes/reconciles. This may be the only available mode for email, some human interactions, physical actions, or weak provider APIs. The contract permits it when policy allows and the risk is explicit. It must not be described as stale-write prevention.
Provider-atomic condition is not a transaction boundary
A provider may atomically compare one version and apply one logical operation. That does not automatically make a set of operations atomic. Updating two objects with separate If-Match checks can leave one updated and one rejected.
The EffectIntent therefore states the logical effect set and enforcement scope. A provider-atomic condition is accurately described as provider-atomic for that operation. Multi-object or cross-system consistency remains a ChangeSet/reconciliation concern.
ExpectedPostcondition is not proof
ExpectedPostcondition describes what should be true after a successful effect:
expected repository revision exists
expected calendar event is canceled
expected access grant is absent
expected physical state remains within safety envelope
It is useful for observation and verification. It is not an Observation.
ExpectedPostcondition ≠ observed proof
A provider response may say 200 OK or completed. The system may record a Result and still require independent Observation, Evidence, Verification, or Acceptance before Closure.
ExternalStateConflict
When the provider rejects a precondition or observation shows divergence, the system records an ExternalStateConflict with:
- target and expected version;
- actual or newly observed version where available;
- affected effect and Work;
- conflict class;
- whether any partial consequence occurred;
- policy for re-observation, rebase, human decision, compensation, or abandonment.
The conflict is not automatically an error to hide or retry. It is information that the effect was based on a world that no longer exists in the assumed form.
Ambiguous effects
A timeout, dropped stream, lost response, or crashed provider can leave the effect outcome unknown. Retrying immediately may duplicate a payment, message, reservation, deployment, or physical action.
An unresolved outcome enters AMBIGUOUS or an equivalent state and invokes ReconciliationPolicy:
- query provider status using the logical effect/idempotency identity;
- observe the external target independently where possible;
- compare observed state to the ExpectedPostcondition;
- determine whether a retry is safe, unnecessary, or prohibited;
- record residual uncertainty and escalate if the outcome cannot be established.
Idempotency support reduces risk when the provider honors a stable identity. It does not prove exactly-once behavior for arbitrary side effects.
Effect lifecycle
A useful logical lifecycle is:
INTENDED
AUTHORIZED
READY
ATTEMPTING
PROVIDER_REPORTED
OBSERVATION_PENDING
OBSERVED_CONSISTENT
OBSERVED_CONFLICT
AMBIGUOUS
RECONCILING
COMPENSATION_REQUIRED
VERIFIED
ACCEPTED
CLOSED
Not every implementation needs these exact enum values. It must preserve the distinctions relevant to retry, reconciliation, Assurance, and Closure.
Complete illustrative effect
EffectIntent:
id: effect:repo:update-readme:2026-10-28:01
logical_effect_key: repo:lookmanme:main:readme-contract-link
work_ref: work:publish-contract-link
responsibility_ref: responsibility:site-editor
authority:
grant_ref: grant:repo-write:lookmanme
purpose: publish_accepted_content
target:
ExternalStateRef: github:lookmanrays/lookmanme:refs/heads/main
BasedOnObservation:
observation_ref: observation:repo-main:8f31
observed_at: 2026-10-28T10:05:00Z
source: github-api
ObservedStateVersion:
kind: git_commit
value: 8f31b8f2
EffectPrecondition:
relation: target_version_equals
expected: 8f31b8f2
PreconditionEnforcementClass: ATOMIC_PROVIDER_ENFORCED
operation:
kind: create_commit_and_advance_ref
artifact_ref: artifact:readme-patch:17
ExpectedPostcondition:
relation: branch_points_to_commit_with_artifact
artifact_ref: artifact:readme-patch:17
conflict_policy: REOBSERVE_AND_REBASE
reconciliation_policy:
query_by: logical_effect_key
observe_target: true
blind_retry: false
Possible conflict:
ExternalStateConflict:
effect_ref: effect:repo:update-readme:2026-10-28:01
expected_version: 8f31b8f2
observed_version: 91aa200c
provider_outcome: PRECONDITION_FAILED
partial_effect_possible: false
required_transition: REBASE_REQUIRED
These payloads illustrate the normative contract. They are not the only valid serialization.
Digital and physical effects share the contract, not the mechanism
A repository update and a physical actuator command differ radically in provider, latency, observability, reversibility, and safety. They still share generic questions:
- What responsibility justifies the effect?
- Which Principal and Authority permit it?
- Which observed state did it rely on?
- How strong was precondition enforcement?
- What consequence was expected?
- What was actually observed?
- What Evidence and Verification are required?
- What happens if the outcome is ambiguous?
Physical Modules may add safety envelopes, trajectories, control loops, and state estimators. They do not remove the shared effect and Assurance contract.
Observation, Evidence, Verification, Acceptance, and Closure
The operational chain remains:
Result
≠ Observation
≠ Evidence
≠ Verification
≠ Acceptance
≠ Closure
A Result is what the executor or provider returned. An Observation is a qualified account of external state. Evidence is material admitted for an assurance purpose. Verification evaluates Evidence against a criterion. Acceptance is an authorized decision. Closure is derived from satisfied or resolved obligations.
A conforming system can use a provider report as one piece of Evidence. It cannot let the provider become its own universal observer, verifier, acceptor, and closer.
Effect conformance
A system conforms when it can show:
- the distinction between Agent
BaseRevisionand externalObservedStateVersion; - the observation and version on which each consequential effect relied;
- where the precondition was enforced and at what scope;
- that host prechecks are not described as atomic provider enforcement;
- that ExpectedPostcondition is not recorded as observed proof;
- that ambiguous effects enter reconciliation before unsafe retry;
- that provider completion does not automatically close local Work;
- that external reality remains externally authoritative.