asexec - AsExecuted
Pre-registered trials for AI executions. A local-first, pseudonymous, offline-verifiable cryptographic primitive: a practitioner commits to running a test before the results are known, then publishes tamper-evident, independently-verifiable receipts of what actually happened, so that silence after public commitment becomes visible evidence of non-disclosure.
It is the "as executed" counterpart to pre-registration ("as predicted"), borrowing the commit-then-reveal mechanism from clinical-trial pre-registration and applying it to the selective-disclosure problem in AI safety.
asexec is a primitive, not a platform. It offers a signing/verification library and a thin CLI.
There is no hosted service, no CA, no leaderboard, etc, in the core product. Publish the files
wherever you like according to how you wish to disclose.
What does asexec prove?
What a particular execution cycle's manifest proves is up to the practitioner (who can
choose what to disclose) and the verifier (who can choose what to check). Proof comes
in the form of asexec verify providing a code regarding the checks applied.
asexec can prove:
- A manifest (pre-registration or post-registration) was not altered after signing.
- A post-registration references a specific prior pre-registration, and the post-registrations
of a commitment form a single linear
prev_hashchain (one root, no gaps, no forks). A post-registration counts toward fulfilling a pre-registration only if it is validly signed by that pre-registration's key. Dropping the last post-registration(s) of a chain is not detectable yet; close-out manifests (final) arrive in 0.4.0. - The state of each commitment, rendered as an explicit
fulfilled/open/elapsed-no-receipt/invalid-due/notarization-only. The declared disclosure deadline (due) is displayed and used to tellopenfromelapsed-no-receipt, butasexecdoes not check that a post-registration was created beforedue; that check (timely) arrives in 0.4.0. - A manifest was created no earlier than a public moment (floor "freshness" check, offered by
drand). - A manifest was created no later than time T (ceiling "witness" check, offered by
Roughtime; a signature-witness, not proof-of-work).
asexec does not prove:
- Provenance. Content hashes prove a transcript wasn't altered; they do not prove it is the output of the named harness+model (asserted by the signer, not re-executed).
- Completeness. It renders only the manifests you give it; it cannot prove a lab pre-registered
every eval it should have (selective pre-registration). However, just like practitioners are not
forced to
asexec preregall their testing, verifiers are not forced to trust results that were telegraphed less than they could have been. It is a signal of good faith to pre-register as much as you can! - Qualities of the science of evals, including eval quality, elicitation rigor, sandbagging, etc.
asexecaims to make the process of AI testing auditable, but does not make claims about the science itself. - Anti-forgery of verify codes. The code is a summary of a computation, not a certificate. It is meaningful to verifiers only when produced from the registration files. In other words, don't blindly trust a verify code handed to you; see if you can reproduce it!
Install
pip install asexec # ed25519 (PyNaCl) + BLS verification for drand (py_ecc)
Quickstart (the full commit-then-reveal cycle)
# 1. Practitioner, one-time: generate a pseudonymous keypair (no CA, no registration)
asexec keygen --out lab.key # refuses to overwrite an existing key unless --force
# 2. Practitioner, BEFORE the run: pre-register the target
asexec prereg --key lab.key \
--subject ./harness \
--target "claude-opus-4-8 via the anthropic API" \
--due 2026-08-30T00:00:00Z \
--declaration "all runs of this harness against this model, in full" \
--out preregistration.json
# 3. Practitioner, AFTER each run: post-register a receipt of the inputs
asexec postreg --key lab.key --fulfills preregistration.json \
--subject ./transcript.txt ./harness \
--out postregistration.json
# 4. Any verifier, anytime: verify the cycle and render the commitment state.
# --tests names exactly which checks to run; 'BDR' (sig + keyid) is required.
asexec verify preregistration.json postregistration.json \
--tests BDR,content,chain,keyconsist --artifacts .
--due must carry an explicit UTC offset or Z (2026-08-30T00:00:00Z); a timezone-less
deadline is rejected. --fulfills and --prev take an existing manifest file or a literal
sha-256:<64 hex> ref; anything else is an error.
For a detailed look at parameters and options, see: asexec --help.
The verify code (what step 4 produces)
verify runs the tests you name and prints one canonical code, e.g.:
asexec-verify/1 BDR=PASS chain=PASS content=PASS keyconsist=PASS
Grammar (asexec-verify/1 versions the code format): the literal prefix, then one
name=RESULT token per requested test (RESULT ∈ {PASS, FAIL}), sorted alphabetically,
single-space delimited. The same result set is byte-identical everywhere.
- You declare your appetite.
--testsis required and must includeBDR(bedrock - the mandatory minimum: signature + keyid). Everything else is opt-in:content(subject digests vs.--artifacts),chain(prev_hashintegrity),keyconsist(postregs share the prereg's key),floor(drand freshness),ceiling(Roughtime witness). - Named, not scored, so it's forward-compatible. Because the code names which tests ran, adding a test in a later version can never change the meaning of an older code. A code means exactly one thing, permanently.
- A requested test that applies nowhere is
FAIL, never a silent omission (e.g.--tests BDR,ceilingon manifests with no ceiling ->ceiling=FAIL). - Each test's exact pass criteria are in the verification catalog.
- The code is not a certificate. Real verification comes from the verifier running the tool against the files and get the code.
Identity (optional domain control check, no CA)
# A domain owner asserts which keys speak for it:
asexec identity emit --key lab.key --domain lab.example --out asexec.json
# -> publish at https://lab.example/.well-known/asexec.json
# Anyone checks the binding for a match (point-in-time; a domain can rotate keys):
asexec identity match --domain lab.example --key lab.key
# -> GET https://lab.example/.well-known/asexec.json
# -> returns bound==True iff specified key exists there.
Network requirements
Most asexec functionality is fully offline, which serves to drastically reduce the trust
surface. This includes all asexec verify operations, which are 100% offline by design;
everything needed to perform a verification is baked-in to the prereg/postreg manifests.
There are a few opt-in registration paths that use a network connection:
prereg/postreg --floor: Fetches a distributed randomness beacon round fromapi.drand.sh(or a fallback) at sign-time.prereg/postreg --ceiling: Makes a UDP socket call (with server-list fallbacks) to a Roughtime server at sign-time.
If a requested --floor/--ceiling fetch fails, signing fails and nothing is written.
Pass --best-effort to warn and sign without the anchor instead.
The asexec identity check loop is also network-dependent, as it is explicitly a domain-
ownership check. It exists outside registration verification as an opt-in helper.
Manifest at a glance
Bespoke signed JSON, signed over a DSSE-style PAE input (borrows in-toto field names, not the tooling). The bedrock (mandatory) set is deliberately small - the fields whose absence would break verifiability of commitment -> fulfillment/gap:
- semantic:
target(what was committed to - plain text or structured JSON). This is the only mandatory claim. - structural: the format frame -
schema_version,predicateType,phase(prereg|postreg).
Everything else is individually optional: due (the disclosure deadline — a commitment
without one simply stays open), declaration (plain-language or structured commitment
text), subject + hash_alg (conditionally paired - hash_alg is required iff a
subject is present; a pre-registration may commit to a target before any harness exists to
hash), anchor.floor (drand, opt-in via --floor), identity, provenance +
repro_recipe, free-form notes. Specificity is a trust gradient the reader prices.
The ceiling witness (Roughtime) lives at the envelope level, beside payload and
signature - not inside the signed body, because its nonce is the body's own hash
(ref(payload)), which can't be embedded in the thing it hashes. It is self-authenticated by
the witness signature and binds to the manifest via nonce == ref(payload). This is a purposeful
asymmetry between floor and ceiling, because the proof of floor requires a piece of information
to be embedded in the manifest, while the ceiling proof requires the payload to be referenced
by an external witness.
Prior art and related projects
AsPredicted/OSF pre-registration, ClinicalTrials.gov + the FDAAA TrialsTracker, OpenTimestamps, in-toto/DSSE, drand/League of Entropy.
Development and Releases
Local setup, checks, CI, and the tag-triggered release pipeline (TestPyPI, then PyPI after
manual approval) are documented in docs/DEVELOPMENT.md.
Quick start:
scripts/dev-setup.sh # one-time setup
scripts/check.sh # lint + format check + tests
Author
Designed by Luke Whitestone. Check out my other projects at: lukewhitest.one.
Status
Currently: 0.3.x - alpha. Realigns the vocabulary and hardens the types (breaking, no back-compat):
prereg/postreg commands + phases, a free-form target (the only mandatory claim), an
optional due deadline + declaration, opt-in drand --floor, the BDR bedrock code
token, and Pydantic-typed manifest construction. Builds on 0.2.0's schema rebalance + typed
anchor.floor (drand) / external-witness ceiling (Roughtime) + canonical
asexec-verify/1 code. See ROADMAP.md for the version-keyed backlog —
including later items (per-key public index, re-execution/determinism mode) and what is
explicitly not scheduled (hosted transparency log, identity binding/CA).
Ceiling — status: the Roughtime verification protocol (delegation chain, Merkle path, validity window) is fully implemented and offline-verifiable. Long-term keys for four public IETF-Roughtime servers are pinned from the official ecosystem list, and the wire format is reconciled against a live
int08h-Roughtimecapture baked as an offline fixture. The other three servers weren't reachable during capture (UDP egress, not a known format mismatch), so end-to-end interop is proven for int08h and expected-but-unproven for the rest.--ceilingfetch fails safe if a server's variant differs.
No backward-compatibility guarantee before
1.0.0. This is pre-1.0 alpha: any release may change the manifest schema, the signed-byte format, the verifier output, or the CLI without a migration path — manifests signed by an older build may stop verifying against a newer one. (0.2.0 rebalanced the schema in a breaking way by design.) Stability begins at1.0.0, which is neither defined nor planned yet.
Known issues (0.3.x alpha)
Fixed in 0.3.15: see ROADMAP.md for the full list. The following remain
(format-level fixes arrive in 0.4.0). Until then, treat asexec verify output with these
caveats:
Commitment state and chain
- Dropping the last receipt(s) of a chain is undetectable, and timeliness is not checked:
a post-registration created after
duestill rendersfulfilled. - A manifest whose
duehas no timezone (only possible from manifests signed before 0.3.15) is read as UTC and flagged in the report.
Input handling
BDRchecks the signature only; any signed JSON object passes, whether or not it is a well-formed asexec manifest.- Directory hashing (v1) is ambiguous on POSIX: a filename containing a newline can make two different trees hash identically. Symlinks are skipped silently.
License
Apache-2.0.
Metadata
Release files for asexec 0.3.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asexec-0.3.15.tar.gz | 45.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asexec-0.3.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 90.5 kB
Release files / asexec-0.3.15.tar.gz
| Download URL | asexec-0.3.15.tar.gz |
|---|---|
| Size | 45.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bee17391ea76ae8e09c78170f54560475683f7049a4ea63fd3ae8315b5b16504
|
|
BLAKE2b-256 checksum How to use checksums |
d41137c5401981e1d3a575ecab10d9537d11a1fcae1d97bff70edcddc21bdd4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.
Transparency logRelease files / asexec-0.3.15-py3-none-any.whl
| Download URL | asexec-0.3.15-py3-none-any.whl |
|---|---|
| Size | 45.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4aad3eb3a63aab217ee4c3f94034ff70f1ed145976fb5469efb88a3be8f2519d
|
|
BLAKE2b-256 checksum How to use checksums |
b2a4c282c548752b9e37725f2787a825baef5bef8333debd022673ec2afec3f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.
Transparency log