This repository contains ABEP (the Approval-Bound Execution Protocol): a technical-report draft and executable TLA+ artifact for a narrow governance guarantee:
A high-risk external action may execute only after a valid, matching approval causes a trusted reference monitor to issue authorization for that exact action and its declared preconditions still hold at the effect boundary.
The work concerns the runtime protocol around an agent, not whether an LLM made a correct business decision. It models retries, stale approvals, policy drift, duplicate execution, token replay, and direct executor bypasses.
Naming: ABEP is the framework-agnostic protocol specification. Aegis
is the designated runtime: Action Gateway, enforcement boundary, and evidence.
This repository does not implement that runtime and does not claim Aegis has
been verified as an ABEP refinement. The Aegis schedule lives in the Aegis
repository (docs/grk-aegis-drae-proposal.md). Do not add a Python monitor
or executor here.
Delta Conformance Statement.
Primary delta(s): D1 (protocol)
Mature mechanism used: approval bound to a specific act (PSD2-style dynamic linking, generalized)
Violated precondition: arbitrary commands over mutable external preconditions
Residual property owned here: the approval-to-authorization safety contract, TLA+ model, negative controls, trace schema and TLC validator
Trusted assumptions: see the trusted-boundary table below; Aegis is the designated runtime
Evidence level: finite TLC configurations as published; UNVERIFIED that Aegis refines this spec until Aegis WS1
Explicit non-claims: D2 reconciliation, D3, D4 research, D5, D6 productization, a Python executor in this tree
Falsified or made redundant if: a deployed mechanism already binds arbitrary params plus mutable preconditions across heterogeneous APIs
- Technical report — motivation, threat model, formal property, claim boundary, evaluation plan, and limits.
- Plain-language explainer — the protocol, model results, and limitations without the formal-methods depth.
- Roadmap — reproducibility, proof, conformance, and
publication milestones. Runtime work is Aegis
(
docs/grk-aegis-drae-proposal.mdin the Aegis repository). - TLA+ model — the executable state-machine specification.
- TLA+ artifact guide — commands, model-checking results, and the authorization-at-issuance semantic.
All completed runs use the fixed 2-action, 2-tenant, 2-policy-version, 2-approver model instance. The corrected configuration checks all declared invariants without error; four deliberately unsafe variants fail as expected.
| Configuration | Injected defect | Invariant | Outcome | Depth | Generated / distinct states |
|---|---|---|---|---|---|
ApprovalProtocol.cfg |
None (corrected) | All declared invariants | No error found | 19 | 33,761 / 7,680 |
ApprovalProtocol_NaiveApproval.cfg |
Stale Approved flag after matching approval expiry |
HighRiskExecutionRequiresApproval |
Violated as expected | 9 | 2,474 / 1,054 |
ApprovalProtocol_NaiveToken.cfg |
Shared authorization token | NoAuthorizationReuse |
Violated as expected | 14 | 13,139 / 3,449 |
ApprovalProtocol_NaiveBypass.cfg |
Direct high-risk executor call | HighRiskExecutionRequiresApproval |
Violated as expected | 5 | 49 / 36 |
ApprovalProtocol_NaiveWorld.cfg |
Executor skips the declared-world check after drift | ExecutedImpliesWorldMatchedDeclaration |
Violated as expected | 9 | 1,926 / 743 |
Depth is TLC's reported complete-search depth for the corrected run and the terminal counterexample state for expected failures. Complete TLC outputs and rendered negative traces are versioned in tla/results.
Stale-parameter, policy-drift, crash/retry, and cross-tenant replay remain proposed evaluation until dedicated configurations run in the checker. The world-drift negative control is completed: an approval and token can remain valid while the live world changes, so the executor must re-read the declared precondition immediately before the irreversible effect.
Install Java 21. The runner downloads the pinned TLA+ 1.7.4 command-line jar,
SHA-256 verifies it, and caches it under the gitignored tla/.tools/:
cd tla
sh run-model-checks.shFor offline use, provide a readable local jar without changing the runner:
TLA_JAR=/absolute/path/to/tla2tools.jar sh run-model-checks.shThe runner requires the corrected design to pass and each naïve configuration
to fail. It writes the corresponding checker outputs to tla/results/.
Render and test the three counterexamples with:
python3 tla/read_tlc_trace.py tla/results/ApprovalProtocol_NaiveApproval.out
sh tla/test-trace-reader.shTLC model checking establishes that no counterexample was found in the stated finite model, assumptions, and configuration. It is not a proof of arbitrary LLM behavior, unbounded agent populations, or a deployed implementation. The runtime guarantee also depends on a protected reference-monitor/executor boundary, authenticated approvers, durable records, and downstream idempotency semantics.
The current protocol uses authorization-at-issuance semantics: an approval must be valid when the reference monitor issues a single-use authorization. Later approval expiry or revocation does not retroactively invalidate that authorization. A stricter executor-time revocation policy would require a different protocol and model.
| Evidence level | Supported claim | Not supported |
|---|---|---|
| Current TLC configurations | No counterexample was found in the stated finite model; the three injected defects are exposed. | Safety for arbitrary instance sizes or a deployed implementation. |
| Future parameterized induction | The stated invariants hold for finite instances satisfying declared assumptions. | That a specific runtime implements the specification. |
| Future runtime trace conformance | Tested Aegis traces follow the modeled transition relation. | Security of a bypassable deployment boundary or liveness under infrastructure failures. |
| Trusted assumption | Why it matters | Future implementation evidence |
|---|---|---|
| Executor is not directly reachable | A bypass makes approval checks advisory. | IAM/network boundary test and rejected direct-call trace. |
| Token consumption is atomic and durable | Concurrent retries could otherwise consume a token twice. | CAS storage integration test under concurrency. |
| Approval identities are authentic | The monitor must reject forged approvals. | Authentication/key-management boundary and adversarial tests. |
| Canonicalization is stable | A mismatch can break approval-to-action/precondition binding. | Versioned canonicalization tests and hash vectors. |
| Executor-time precondition check is authoritative | A token names the approved declaration but cannot detect live-world drift by itself. | Conditional-mutation/CAS integration test, or an explicit non-atomic adapter assumption. |
| Downstream effects are idempotent | Crash/retry can otherwise duplicate impact. | Crash/retry trace against a downstream executor. |
These are the gaps standing between that and an arXiv-ready evaluation.
- The finite model's representativeness is asserted, not argued. The falsification-oriented instance (2 actions, 2 tenants, 2 policy versions, 2 approvers) is appropriate for finding counterexamples, and the report is honest that it doesn't claim parameterized/unbounded verification (§6.1, §11) — but there's no stated argument for why this bound is representative of the properties being checked, only that it's intentionally small.
- Separation-of-duties and approver-authorization coverage is thin.
ApproverAuthorizedandSeparationOfDutiesSatisfiedare real constraints now (closing the "claimed but not modeled" gap from the first review pass), but the instance is minimal — one hardcoded tenant-to-approver map, no case where an approver is authorized for a tenant and also happens to be the requester across two different actions. The properties are modeled, not yet stress-tested. - The production/evidence contribution remains a design. Aegis is the
runtime (
docs/grk-aegis-drae-proposal.mdin the Aegis repository). This repo adds a refinement/trace-mapped conformance suite and a signed event/evidence schema, then publishes one permitted and one rejected end-to-end bundle emitted by Aegis. Do not implement a second executor here.