Correctover Recovery Admission
We determine whether an agent's action exceeds the authorization it was actually granted — parameter by parameter, not tool by tool. A tool whitelist proves a client can call an approved tool; it does not prove every parameter and target of that call was approved. Isolation-legal API calls to the wrong server are still unacceptable. Recovery paths (retry / degrade / failover / request-rewrite) are where this failure class concentrates, so this suite ships 576 anchors for them — but the decision table judges any action class the same way: four dimensions (identity, tool version, side effect, runtime state) before execution, a tamper-evident receipt after.
Scope keywords: agent authorization · delegated authorization · RFC 8693 token exchange · act/may_act delegation chains · CI security gate · attestation receipt · parameter-level authorization.
Run it (10 seconds, no install beyond Python 3.8+):
python3 verify-recovery.py # 576 vectors, independent checker, digest-only column
python3 verify-recovery.py --tamper # negative self-test: mutated digest must be caught
Expected output: agreement: 576/576 … STATUS: PASS.
What the suite proves
576 vectors, six orthogonal dimensions (nothing hand-tuned — the verdict distribution is a mathematical consequence of exhaustive cross-product):
| Dimension | Values |
|---|---|
| delegation shape | chained-valid · tail-mismatch · broken-chain · none-direct |
| revocation | none · revoked (propagates down the chain on the chain track; binds only locally on the no-chain track) |
| tool version | exact · patch · major |
| side effect | readonly · state-write · failover · irreversible |
| runtime | fresh · stale · upstream-down |
| integrity | intact · tampered-digest |
Two tracks with fixed semantics:
- Chain track (delegated, org→a→b): the verdict binds the chain tail; revocation of a mid-chain principal propagates to the tail (
identity-revoked-propagated). A structurally broken chain or tail mismatch refuses everything, readonly included. - No-chain track (direct grant): the verdict can only bind local assertions → fail-closed for anything but readonly (
no-chain-cannot-bind-state-action); local revocation has no chain to propagate (identity-revoked-local— a distinct reason code, not the same bucket).
ESCALATE fires on irreversible × (non-fresh or non-exact) and on failover × fresh-but-patch-drift — a rebind is traffic-moving; routing traffic through an unapproved build gets the same human gate as an irreversible action (RA3-0037 adjudication, Xinghua Zhao review 2026-11-17). The table itself locates the human gate; nobody weighted it there.
Reason-code honesty: clean is reserved for readonly/state-write ALLOWs; an irreversible ALLOW carries its own code (irreversible-authorized-exact-fresh) so a receipt reader never has to guess which class passed.
Receipt fields that carry their assertions:
- A
failover-sbsr-rebindALLOW asserts a rebind — the record carriesrebind_targetandrebind_authorization(approval id +version_locked). Failover targets are version-locked to the approved build; a target that is not version-locked is not pre-approved, it is a gate. - The boolean
sbsr_freshis the receipt/SBSR credential freshness and is deliberately independent of theruntimedimension (upstream-downkeepssbsr_fresh=True). One word, one predicate. - An
ESCALATEverdict is terminal for the table, not for the world: if the escalated action later proceeds, the record must carry a gate block —gate_id,gate_at,gate_decision,gate_evidence_digest,bound_args_digest(the last must re-bind the exact dispatched args). The verifier rejects a record whose gate block is incomplete or unbound (gate-block-invalid).
The digest-only column is the falsifiability anchor: a pipeline that only checks receipt digests BINDS all 288 intact anchors and REFUSES all 288 tampered ones — the negative branch is live and measured, not assumed.
Repo map
verify-recovery.py— independent verifier (different code path & evaluation order from the decision table; any disagreement = FAIL)recovery-admission-v3-vectors.json— the 576 anchors with expected verdict + reason classreport/recovery-admission-report.json— latest run: agreement, action & reason distributions, digest-only discriminationHONESTY.md— what is a proxy metric, what is an environment caveat
Honest boundaries
- Scope-drift statistics derived elsewhere use a verb-heuristic proxy (dangerous verbs in tool descriptions not reflected in tool names) — it is a signal, not ground truth.
- Endpoint-liveness figures were measured from a sandboxed egress; treat reachable percentages as lower bounds.
- This suite proves the admission decision semantics, not a deployed production system.
Use as a GitHub Action
Add the free tier to any workflow — one step, no install:
- uses: DSHCorrectover/correctover-recovery-admission@v0.1.0
Supply-chain locked (pin the commit SHA — what enterprises with CI security gates usually require):
- uses: DSHCorrectover/correctover-recovery-admission@c2eaf3b
What you get: a single-run verdict (PASS / MISMATCH) over the 576-anchor decision table, run against the published PyPI artifact (never a checkout), with a JSON report artifact and a step summary.
Tiers
| Free | Paid (planned) | |
|---|---|---|
| Single-run verdict + report | ✓ | ✓ |
| Signed receipt (Ed25519, independently verifiable) | — | ✓ |
| Long-term archive + timestamps | — | ✓ |
| Recompute bundle for your auditor | — | ✓ |
| Continuous watch on dependency upgrades | — | ✓ |
The difference between the tiers is not features — it is whether the output is something you can hand to an auditor. The free tier answers the question; the paid tier is the answer with evidence that survives review.
Licensing note: dataset CC0, code Apache-2.0. Nothing here requires you to trust us — every claim in this repo is replayable from your own machine.
Independent review engagement: we do bounded, fixed-fee reviews of admission/authorization semantics for frameworks and platforms — every finding ships with a replay pack. Write to wangguigui@correctover.com. · Dev.to write-up: Why "deny or allow" is the wrong model for MCP tool permissions
License
Code: Apache-2.0 · Vector data: CC0 1.0
Reproduction challenge
If you can refute any anchor — a verdict that is semantically wrong, a reason code that mislabels reality — open an issue with the anchor id and your reasoning. Verified refutations are credit-worthy: we will publish them in the suite's changelog with your attribution. Independent reproduction reports are welcome and will be linked from this README.
Metadata
Release files for recovery-admission 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| recovery_admission-0.1.7.tar.gz | 25.1 kB | Without provenance | Details for recovery_admission-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| recovery_admission-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for recovery_admission-0.1.7-py3-none-any.whl |
Total release size: 48.3 kB
Release files / recovery_admission-0.1.7.tar.gz
| Download URL | recovery_admission-0.1.7.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3de83d211d994dfcbb709bb30e29ce3e715a21ae46af52cf7b2eadd2039dcf94
|
|
BLAKE2b-256 checksum How to use checksums |
9a8aa731c370f6b10d088cb8567b3c3a1fe76450f5f550bcbb9567acddb2d011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / recovery_admission-0.1.7-py3-none-any.whl
| Download URL | recovery_admission-0.1.7-py3-none-any.whl |
|---|---|
| Size | 23.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d7cbaf543290443a1d1992616d56e88fa2b5f4cad619483e9c2e991e745b08e
|
|
BLAKE2b-256 checksum How to use checksums |
4bd60c91bfe8687743bc1d1401ea63296a6606ba29678cc59b2d2c3f6d2f6bbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for recovery-admission 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.