AI-generation and verification disclosure. This addendum, the illustrative formal model, and its finite-state checker were AI-generated. The checker was rerun, and its transition counts were separately tabulated from its transition generator for this revision. The checker source is not distributed with this document. The example proves properties of a specified finite abstraction, not of any production CRM, Calendar, or customer-notification integration. The separate enterprise-scale workload estimates near the end come from the author’s other work; they are not derived or validated by this checker.
Definitions
Let the enterprise-wide inventory be , where is the set of cohesive business/software subdomains, records principals, systems, resources, and information sources, and records their dependencies, including indirect and asynchronous effects. The global security-relevant state is
Here is the business state of subdomain ; records identities, mandates, approvals, revocations, and policy versions; records authorized information flows; records source integrity; includes plans and persistent memory; includes requests, commitments, queues, retries, and callbacks; includes independent observations, audit, and fail-safe status. is the specified global state space. Agents may operate across all subdomains; the partition is for implementation and proof, not a restriction on agents’ plans.
Let be the possible initial states; the operations (including proposals, approvals, delegation, execution, and refusal); the environmental events; and an agent observation. Agent may propose ; may be nondeterministic. An adaptive control may rank or veto proposals. Independent enforcement must satisfy
where is the set of externally effective operations admitted by the indicated controls. An authenticated approval is bound to a specific effect, principal and mandate, policy/state versions, revocation status, and any required separation of duties. An agent may approve another agent’s proposal—or its own where permitted—but approval authority cannot be created through model output. Lower-integrity input may influence a choice among authorized actions, not expand the authorized set or elevate the source’s integrity.
Define as the permitted-state predicate and as the permitted-transition predicate, incorporating authorization, information flow, ordering, and external effects. Both are necessary: even two permitted endpoint states can be connected by a forbidden transition.
For subdomain , define an interface contract
Here is the subdomain’s abstract state, its typed operations/events, its assumptions about callers and the environment, its guarantees about effects, failures, and evidence, and its implementation-to-contract abstraction. A cross-domain contract describes coordination and relational invariants. is the transition relation of their compatible composition; describes actual enterprise transitions, including external actors and integrations. Neither nor a successful interface response automatically establishes conformity of .
CRM–Calendar proof instance
Consider a single booking-creation workflow requiring CRM and Calendar commitments to agree at every business-visible state. Customer notification is prohibited until their joint commitment has been independently verified. Define ten Boolean variables, each either 0 (false) or 1 (true):
| Variable | Meaning when equal to 1 |
|---|---|
| The booking is committed and business-visible in CRM | |
| The booking is committed and business-visible in Calendar | |
| A customer notification has actually been sent; this effect is irreversible | |
| An independent verifier observed the joint commitment | |
| An applicable delegated mandate exists | |
| A trusted, effect-bound approval is currently valid | |
| The mandate or approval has been revoked | |
| A booking request is pending | |
| The request was safely denied before business commitment | |
| A lower-trust source-content flag, which may change nondeterministically |
The booking state is ; its initial value is . The five required invariant clauses define
The clauses require joint commitment, genuine postcondition evidence before notification, denial without business effects, and validity of approval under the mandate. In this creation-only model, a sent notification is never undone; cancellation after a completed booking is not modeled. Approval provenance and any separation-of-duties rule are assumed to have been checked by the trusted approval action; their internal mechanisms are not separately verified by this instance.
Exact transition guards and effects
The table below specifies the nine transition kinds actually used by the executed checker. Every guard is evaluated on the pre-state. The effect changes exactly the named fields; all other fields remain unchanged. A false guard disables that transition. The abbreviations in the first column are operation labels, not additional state variables.
| Operation | Required guard | Exact effect |
|---|---|---|
stutter |
true |
No change |
propose |
||
trusted_approval |
||
atomic_joint_commit |
in one visible step | |
independent_attestation |
||
send_confirmation |
||
external_revoke |
||
safe_refusal |
||
untrusted_source_change |
true |
In particular, commit requires , approval requires , notification requires , and propose requires : a denied request cannot be re-proposed without a new, separately specified workflow. The transition-policy predicate is true only when the table’s guard and exact effect hold; it rejects all other operation/effect pairs.
The general includes an environmental event argument . In this instance, the two explicit environmental events—revocation and lower-trust source change—are included as operation labels (external_revoke and untrusted_source_change), so the abbreviated does not need a separate parameter.
Concurrency and trusted actions. The checker uses interleaving semantics: one modeled atomic transition at a time, with nondeterministic ordering. The atomicity of each modeled step, especially the joint CRM–Calendar commit, is an interface assumption. Real concurrent or partially completed operations require a justified refinement to this model; the checker does not prove real distributed atomicity. Trusted approval issuance, independent attestation, and the absence of unmodeled side effects are likewise explicit interface assumptions.
Source-integrity scope. No guard for a permitted authority transition reads , so the non-amplification property holds by construction in this example. Lower-trust content may affect which already-enabled operation an agent chooses, including whether to proceed or refuse; the checker enumerates both possible choices rather than modeling the agent’s preference. The deliberately defective source_authority_promotion variant introduces an approval based on the source flag and produces a counterexample. This is not an independent proof of prompt-injection resistance in a real agent.
Conditional enterprise safety proposition
Assume:
- Initial states. Every satisfies .
- Contract correctness and compatibility. Each implementation meets when holds; neighboring guarantees and discharge those assumptions without unsupported circular reasoning.
- Global closure. For each composed interface transition , if , then . This includes failures, revocation, approvals, and external effects represented by the contracts.
- Complete refinement and predicate preservation. All trust-relevant real transitions refine the composed contracts under the abstractions , preserving the meaning of and . Let be the jointly consistent enterprise abstraction, including the shared trust state. In particular, the real-state predicates are the abstractions’ pullbacks: , and the real-transition policy uses . Every actual trust-relevant effect must be represented. A real transition classified as not trust-relevant must stutter on the entire security-relevant abstract state, with no hidden trust-relevant side effect.
- Independent complete mediation. Agent-originated effects cannot bypass the independent enforcement boundary, and adaptive controls cannot expand the authorized action set.
Proposition (conditional safety). Under assumptions 1–5, every state reached by any admitted real execution satisfies , and every effective real transition satisfies the pulled-back . This is universal over admitted agent choices and environment events, not a probability or a claim about unmodeled actions.
Proof. The initial abstract state satisfies by assumption 1 and refinement. Suppose a real execution reaches a state whose abstraction satisfies . Assumptions 2, 4, and 5 show that the next trust-relevant real effect maps to a valid composed transition. Assumption 3 makes that transition preserve and satisfy . A genuinely non-trust-relevant step stutters on the abstraction by assumption 4 and preserves . Induction over finite execution prefixes establishes state safety and transition compliance for every admitted choice. End of proof.
Scope of the proposition. This is standard inductive-invariant reasoning combined with assume–guarantee/specification composition, in the tradition of Jones and Abadi–Lamport. Assumption 3 contains the global one-step safety obligation; the proposition does not derive it for free. The substance is independently discharging assumptions 2–4 for real enterprise interfaces, especially validating contract compatibility, proving composed closure, and establishing complete implementation refinement. The conditional induction itself is not presented as a novel theorem or a production certification.
Counterexample to sequential CRM–Calendar writes. Starting from , any first business-visible write to only CRM or only Calendar reaches or , violating . Later rollback cannot erase that intermediate violation. If the CRM write also sends an external notification, additionally sends a notification before independent verification. Rolling back the CRM record cannot retract the false notification to the customer. The specified enterprise requirement therefore calls for a truly atomic business-visible transition, an alternative verified interface, or safe refusal; the checker assumes, rather than implements, the atomic option. End of counterexample.
Separate completion obligation. Safety alone does not establish progress. One possible additional requirement is: every pending request () eventually reaches a customer-notified state () or safe denial (). Such a result requires separate scheduling, availability, and failure-containment assumptions. Revocation after joint commit but before notification can block both outcomes in the current abstraction; this liveness property was not proved. State/version changes require rechecking the assumptions and proofs they affect.
Executed finite-state enumeration
The example has ten Boolean fields and hence candidate assignments. This is a universe of logical combinations, not a count of actual agent executions. Of these, 100 meet . Specifically, 40 have both bookings uncommitted: then , and there are 5 valid combinations and 8 combinations, giving . 60 have both bookings committed: then , , there are the same 5 mandate/approval/revocation combinations and 4 combinations, giving . Some of these 100 permitted assignments are unreachable from the initial state: checks state admissibility, while the transition guards impose further workflow ordering.
The executed checker examined 332 transition instances from all 100 permitted states, with zero violations of or . The exact count is:
| Transition kind | Checked instances |
|---|---|
| Stutter | 100 |
| Untrusted-source content change | 100 |
| External revocation | 60 |
| Proposal | 30 |
| Independent attestation | 20 |
| Safe refusal | 10 |
| Trusted approval | 8 |
| Atomic joint commit | 2 |
| Customer notification | 2 |
| Total | 332 |
Thus 200 of these are stutters or source-content changes, and 132 are the other seven transition kinds; the total should not be interpreted as 332 distinct business operations. Separately, exhaustive reachable-state exploration from found 26 states and 86 transition instances, with zero violations. A permitted successful route is propose → trusted_approval → atomic_joint_commit → independent_attestation → send_confirmation.
Eight deliberately faulty variants each yielded a counterexample: sequential CRM write; premature notification; CRM write with automatic email before Calendar commitment; accepting an unverified tool acknowledgment as attestation; committing without approval; untrusted source granting approval; unmediated Calendar callback; and a forbidden write followed by a proposed rollback. The approval-bypass and source-promotion variants violate , even where their resulting state happens to satisfy .
Verification method and reproducibility. The checker was actually executed using exhaustive enumeration, with the nine operations and guards given above. SMT-based verification and a Lean 4 mechanized proof are alternative methods for larger or different models; neither was run here. The source is not published. For provenance, the executed Python checker has SHA-256 494fe0bb79036499f47bfe28e77ba3e2ecf4ea661629f64c5303710b667c1573. This checksum identifies the checked source if it is later shared, but does not itself make an unpublished checker independently reproducible.
What this proves. The admitted finite transition relation is closed under its specified invariant and transition policy, and each deliberately defective variant includes a checked violation. What it does not prove. Completeness of enterprise requirements, production transaction atomicity, trustworthiness of real approval/attestation systems, separation of duties in actual deployments, coverage of unobserved effects, or successful completion under arbitrary failures. Those remain contract, integration, and implementation-refinement obligations.
How this scales
The same safety reasoning can be organized as induction and compositional contracts instead of full-state enumeration. Nine transition kinds checked against five invariant clauses give 45 basic transition-by-clause pairs, though some are trivial and the guards, contracts, and refinement assumptions introduce additional obligations. This 45 is an illustrative organization of checks, not the 332 enumerated transition instances.
Separate engineering estimate (not derived from this example): The author’s other work estimates that even a single real product with agentic access may involve on the order of 1,000 or more machine-checked items, roughly 20–50 times the basic obligations in this example. An enterprise containing many such systems and their cross-domain agreements may need another one to two orders of magnitude. These are indicative estimates from separate work; their derivation is neither reproduced nor validated by this enumeration and the counts depend on abstraction, threat coverage, and reuse of verified contracts.
At that scale, verification is practical only if most obligations can be discharged automatically, affected proofs are rechecked when systems change, and evidence distinguishes formal proof, model assumptions, adversarial testing, and unverified external guarantees.