Skip to main content

asexec - AsExecuted

Pre-registered attestations for AI executions: tamper-evident, non-repudiable, and independently verifiable.

How it works in a nutshell:

A practitioner attests to invoking AI before the outcome is known, then publishes records of what actually happened. Anyone with the records can verify nothing was changed and whether any assertions hold up.

Benefits:

  • As a practitioner, using asexec signals intellectual honesty, transparency, and a commitment to responsible disclosure, as you can no longer withhold results (which might not appear favorable on their own) without your non-disclosure becoming public. This makes any results you publish more meaningful to your audience, who can now "trust, but verify" your claims.
  • As a watchdog, you now have the power to pressure-test claims that controllers of generative AI systems may make. A practitioner refusing to pre-register their executions serves as its own red flag.
  • As a consumer, you now have increased confidence that quality and safety problems are caught, because practitioners are more transparent with watchdogs, who actually have the incentive to notify you when issues arise.

As predicted... for AI:

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 similar transparency problems in AI safety, including selective disclosure and lack of oversight.

Opinionated about verification, but everything else is up to you:

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. Choose what you wish to disclose, and publish the records wherever you like. Verifiers choose what tests to run.


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.

What asexec always proves

Every verify run checks BDR and renders the state of each commitment (a pre-registration and its signer):

  • Integrity and non-repudiation. A manifest (pre-registration or post-registration) was not altered after signing, and was signed by the private key whose public key its keyid names, so the holder of that key cannot later deny signing it.
  • What was committed to. The signature covers the whole payload: its target (which asexec prereg and postreg always write) and, in a post-registration, the pre-registration it fulfills.
  • Commitment state. Each commitment is rendered as fulfilled, open, elapsed-no-postreg or invalid-due. A post-registration that names a pre-registration counts toward fulfilling it only if validly signed by that pre-registration's private key; otherwise it is listed under it as rejected, with the reason. A post-registration whose pre-registration was not provided belongs to no commitment, so it has no state: it is listed as notarization-only. Silence is on the record too: a pre-registration with no counted post-registration reads elapsed-no-postreg once its deadline (due) passes. But asexec does not yet check that a post-registration was created before due, so a late one still turns it fulfilled; that check (timely) arrives in 0.4.0.

What asexec can prove (optional fields and tests)

Each of these holds only when the practitioner includes the field and the verifier names the test:

  • Content (subject; content with --artifacts). The artifacts the verifier holds match the digests a manifest records.
  • Chain (prev_hash; chain). The counted post-registrations of a commitment form a single linear chain: one root, no gaps, no forks. Dropping the last post-registration(s) of a chain is not detectable yet; close-out manifests (final) are deferred to 0.7.0 or later.
  • Key consistency (keyconsist). Every validly signed post-registration that names a pre-registration was signed with the key of a provided pre-registration with that body.
  • Created no earlier than (anchor.floor; floor). A manifest was created after a public moment: a drand beacon round it embeds.
  • Created no later than (ceiling; ceiling). A manifest existed by time T: a Roughtime server signed its hash (a signature-witness, not proof-of-work).

What asexec cannot prove

  • Who signed. Non-repudiation stops at the key. A key pair is pseudonymous: asexec proves which private key signed, not whose it is, so a signer can still claim "that's not my key" or "my key was stolen". The optional identity check ties a public key to a domain, outside verify; a ceiling witness shows a manifest existed before any claimed theft. There is no key revocation (see Keys).
  • 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 prereg all 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!
  • The science of evals. Eval quality, elicitation rigor, sandbagging, etc. asexec aims 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!

Installation

Requires Python 3.12 or later.

pip install asexec            # ed25519 (PyNaCl) + BLS verification for drand (py_ecc)
pip install 'asexec[blake3]'  # optional: blake3 as a content-hash algorithm

Usage

# 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 2099-01-01T00:00:00Z \
    --declaration "all runs of this harness against this model, in full" \
    --out preregistration.json

# 3. Practitioner, AFTER each run: post-register the run
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 .

For a detailed look at parameters and options, see: asexec --help.

For a worked end-to-end run, with faults replayed against the verifier, see examples/adequacy-test: python examples/adequacy-test/run.py.

Exit status

Status Meaning
0 Success. For verify, every requested test is PASS; for identity match, the key is bound to the domain.
1 Error: the arguments are valid, but the command could not complete with the files or network they name, e.g. a missing or invalid key file, an unreadable --subject or --target-file, a key file it refuses to overwrite, a failed identity match fetch, or a failed --floor/--ceiling fetch without --best-effort. An error: ... line is printed; a few bad inputs still print a traceback instead (#45).
2 verify: at least one requested test is FAIL. identity match: the key is not bound.
64 Usage error: the arguments themselves are wrong, whatever the files hold. For example: an unknown command or option; a missing argument; two that exclude each other, such as --target and --target-file; a --due without an explicit offset; a --tests that names an unknown test, names none, or omits BDR; or for identity match, not exactly one of --keyid, --pubkey and --key. Usage is printed and nothing runs (verify prints no code). A few argument mistakes, such as an empty value, are not caught yet (#45).

For verify, malformed manifest input is a FAIL, never an error.

Verification output

What each test examines, its exact pass criteria, and what it does not establish are specified in the verification catalog.

verify runs the tests you name and prints a report for people to read (each manifest, each commitment with its state, any notarization-only post-registrations, and each test's result with a short reason), then one canonical code, then Checked at <time> (UTC, the moment commitment states were judged against), e.g.:

asexec-verify/1 BDR=PASS chain=PASS content=PASS keyconsist=PASS
Checked at 2026-12-31T23:59:59Z

Only the code line and the exit status are stable to script against. Commitment states never affect either.

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. --tests is required and must include BDR; every other test is opt-in (see What asexec can prove).
  • 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, from 0.4.0; until then a test's documented meaning may still be corrected (see Status).
  • A requested test with nothing to examine is empty and FAIL, never a silent omission or a pass (e.g. --tests BDR,ceiling on manifests with no ceiling -> ceiling=FAIL).
  • The code is not a certificate. Real verification comes from the verifier running the tool against the files and getting the code.

Manifest at a glance

A pre-registration and a post-registration that fulfills it, as would be built by asexec prereg and asexec postreg, with every field filled in. Fields marked required are the only ones verify needs to read a manifest at all; without one, the file is malformed. Every other field is optional: leaving it out is structurally fine, and whether a manifest meets a bar is up to the tests you request. Fields marked always are always written by asexec prereg or asexec postreg; the rest are the practitioner's call.

Pre-registration

{
  "payloadType": "application/vnd.asexec+json",
  "payload": {                                       // required: the signed body
    "schema_id": "asexec",                           // always
    "predicateType": "https://asexec.dev/manifest",  // always
    "phase": "prereg",                               // always: prereg | postreg
    "target": "claude-opus-4-8 via the anthropic API", // always: text or JSON
    "due": "2099-01-01T00:00:00Z",                   // deadline; none = stays open
    "declaration": "all runs of this harness against this model, in full", // text or JSON
    "subject": [                                     // artifacts, hashed
      { "name": "harness/", "digest": { "sha-256": "2c26b46b…" } }
    ],
    "hash_alg": "sha-256",                           // always with subject
    "anchor": {
      "floor": {                                     // drand (--floor): not before
        "floor_type": "drand",
        "chain_hash": "52db9ba7…",
        "round": 21102400,
        "signature": "b7e04a19…",
        "randomness": "1f0c9d2e…"
      }
    },
    "identity": ["lab.example"],                     // free-form list
    "notes": "hypothesis: refusal rate under 2%"     // text or JSON
  },
  "signature": {                                     // required
    "alg": "ed25519",
    "keyid": "sha-256:8f3e0a91…",                    // always: sha-256 of pubkey
    "pubkey": "d75a9801…",                           // required: hex
    "sig": "3a91c0de…"                               // required: hex
  },
  "ceiling": {                                       // Roughtime (--ceiling): not after
    "ceiling_type": "roughtime",
    "witness_id": "int08h-Roughtime",
    "pubkey": "016e6e02…",
    "nonce": "4be1c1f8…",                            // = ref(payload)
    "midpoint": 1785911400.0,
    "radius": 1.0,
    "response": "0400000040…"
  }
}

Post-registration

{
  "payloadType": "application/vnd.asexec+json",
  "payload": {                                       // required: the signed body
    "schema_id": "asexec",                           // always
    "predicateType": "https://asexec.dev/manifest",  // always
    "phase": "postreg",                              // always: prereg | postreg
    "target": "claude-opus-4-8 via the anthropic API", // always: text or JSON
    "due": "2099-01-01T00:00:00Z",                   // deadline; none = stays open
    "declaration": "all runs of this harness against this model, in full", // text or JSON
    "subject": [                                     // artifacts, hashed
      { "name": "transcript.txt", "digest": { "sha-256": "9f86d081…" } },
      { "name": "harness/", "digest": { "sha-256": "2c26b46b…" } }
    ],
    "hash_alg": "sha-256",                           // always with subject
    "fulfills": "sha-256:4be1c1f8…",                 // always in a postreg
    "prev_hash": "sha-256:07ad3b2e…",                // previous postreg
    "anchor": {
      "floor": {                                     // drand (--floor): not before
        "floor_type": "drand",
        "chain_hash": "52db9ba7…",
        "round": 21543210,
        "signature": "8d2f1c3a…",
        "randomness": "c3d4e5f6…"
      }
    },
    "identity": ["lab.example"],                     // free-form list
    "provenance": "reproducible",                    // asserted | reproducible
    "repro_recipe": { "seed": 42, "decode": "greedy", "runtime": "vllm 0.9" },
    "notes": "free-form text or JSON"
  }
  // "signature" (required) and "ceiling": same shape as in the prereg
}

sig signs a DSSE-style PAE (pre-authentication encoding) of payload, borrowing in-toto field names. A postreg carries its prereg's target, due and declaration, links back with fulfills (the prereg's ref, which is also its ceiling nonce) and prev_hash, and, from the CLI, adds provenance and repro_recipe. The ceiling sits outside the signed payload because its nonce is the payload's own hash; the floor sits inside it, because a value fixed before signing can be signed.

Keys

asexec keygen --out lab.key writes two files:

File Contains Secret?
lab.key ed25519 private key (hex, unencrypted), public key, keyid Yes. Written mode 0600 on Unix
lab.key.pub public key and keyid (sha-256: of the public key) No. It is also in every manifest you sign

Impact

A post-registration counts toward a pre-registration only if both were signed with the same private key. So:

  • Lose the private key and your open commitments can never be fulfilled: they stay open, or turn elapsed-no-postreg once due passes. Back up lab.key offline (e.g. in an encrypted password manager or vault) before you pre-register.
  • Leak the private key and anyone can sign pre- and post-registrations as you, including post-registrations that count toward your commitments. asexec has no revocation: stop using the key pair, say so publicly, and remove its public key from your identity .well-known file.

Handling

  • Never commit the private key file (*.key in .gitignore) or print it in logs. In CI, keep it in the secret store and write it to a 0600 file only for the signing step.
  • On Windows, file modes are not applied; restrict the private key file's ACL yourself.
  • keygen refuses to overwrite an existing key pair; --force replaces it and the old private key is gone.
  • Your public key (and its keyid) is your pseudonym: every manifest it verifies is linkable to the others. Use separate key pairs for identities you want kept apart.

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 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 from api.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.

asexec identity is network-dependent too, since it checks domain ownership; it is an opt-in helper outside verify.

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

How the verifier is built, and how to change it, is in docs/DEVELOPMENT.md.

Author

Designed by Luke Whitestone. Check out my other projects at: lukewhitest.one.

Status

Alpha. ROADMAP.md has the release history, what is planned, and what is explicitly not.

Backward compatibility starts at 0.4.0. Until then, this is 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.) From 0.4.0, manifests stay verifiable: a format change adds a new format version and keeps accepting the old ones. Manifests from 0.3.x are not supported. The verifier support for this is designed but not built yet.

Known issues

Where asexec deviates from the verification contract (0.4.0 closes this by accepting only files as subjects):

  • Directory hashes (v1) are ambiguous, so content can pass for a different tree: a filename containing a newline can make two trees hash identically, and symlinks, empty directories and executable bits inside a directory aren't covered. Use file subjects, such as an archive of the directory, for anything that matters.

License

Apache-2.0.

Metadata

Release files for asexec 0.3.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asexec 0.3.20
File Size Uploaded Provenance Actions
asexec-0.3.20.tar.gz 56.3 kB With provenance Details for asexec-0.3.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for asexec 0.3.20
File Interpreter ABI Platform Actions
asexec-0.3.20-py3-none-any.whl Python 3 none any Details for asexec-0.3.20-py3-none-any.whl

Total release size: 111.5 kB

Release files / asexec-0.3.20.tar.gz

Download URL asexec-0.3.20.tar.gz
Size 56.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e03be807b8454db512f5bdb8e169402185dc9fb9732f4150b68413ef1e266358
BLAKE2b-256 checksum
How to use checksums
9d99c617a01ae1b987a9625d43f2993c8c8201bcfe7b3590a12aedf8a5cc0c52
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 Nov 18, 2026.

Transparency log

Release files / asexec-0.3.20-py3-none-any.whl

Download URL asexec-0.3.20-py3-none-any.whl
Size 55.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd8859d52c0d58b5422b8aebae1d87ffb00d2f47bf915af3e2217f3a237256a3
BLAKE2b-256 checksum
How to use checksums
1724f0488bd8b6b3c1266ecee5e7ef1752d4405bcfb70296ceb10977eb4ba07e
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 Nov 18, 2026.

Transparency log

Security for asexec 0.3.20

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for asexec-0.3.20.tar.gz

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 Nov 18, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page