Repository navigation
Releases
AGE v0.1.2
Use this release. @ageprotocol/cli 0.1.1 cannot be installed, and is deprecated.
0.1.1 declared its dependency on @ageprotocol/receipts as workspace:*, which only a pnpm workspace understands. npm refuses it with EUNSUPPORTEDPROTOCOL.
It happened because 0.1.1 switched publishing from pnpm to npm to get provenance. pnpm publish rewrites workspace:* to a real version and npm publish does not. The release workflow did not catch it, because it verified one artifact and published another: it packed with pnpm and published the directory with npm.
The workflow now packs once, installs those exact tarballs with npm the way a user would, verifies a receipt through them, and publishes those same bytes. It also refuses any tarball still declaring a workspace: dependency. Both checks were confirmed to stop a tarball built the way 0.1.1 was.
No code changed. Everything described in the 0.1.1 notes applies: agectl emit, verify --repo recomputing a commit's counts, and npm provenance. @ageprotocol/receipts 0.1.1 was correct and is unchanged.
npx @ageprotocol/cli emit --task "Fix the login redirect" --out receipt.json
npx @ageprotocol/cli verify receipt.json --repo .
AGE v0.1.1
agectl emit: receipts for real work
Commit something, then:
npx @ageprotocol/cli emit --task "Fix the login redirect" --out receipt.json
npx @ageprotocol/cli verify receipt.json --repo .
emit reads the commit and signs a receipt describing it with the identity on this machine. Every value comes from git and nothing is estimated: the commit, its subject, its parents, when it was authored and when it was committed, and what it changed. A prompt is recorded as a digest, never as text.
It refuses rather than guessing. In a shallow clone, the default for CI checkouts, git cannot see a commit's parent and would report every file in the repository as changed, so emit stops and says to fetch the rest.
verify --repo checks the counts instead of repeating them
Given a repository, verify now recomputes everything a receipt claims about a commit, so a perfectly signed receipt that misstates what the commit changed fails:
✗ Commit binding the repository disagrees: files_changed says 42, repository says 1
FAILED
Without --repo, the counts are reported as unchecked rather than silently blessed.
How emit was tested
Three adversarial review rounds tried to make it state something untrue, against real repositories. They found twelve ways, all fixed before this release, and severity fell each round:
- The committer date recorded under the name
authored_at, wrong on any rebased branch. - A token in the origin remote copied into the signed receipt, where it could never have been redacted without destroying the signature.
- A shallow clone signing a one-line change as 300 files.
- A replace ref attributing another commit's content to a real hash.
GIT_DIRredirecting both emit and the verifier to a different repository.- A password containing
@surviving credential stripping. - A repository encoding setting corrupting a signed subject.
The test suite itself was found catching only four of ten reintroduced defects; it now catches all of them, and three tests drive real git.
Provenance
Both packages in this release carry an npm provenance attestation tying them to the workflow run that built them. 0.1.0 does not: pnpm publish ignored --provenance without a word. @ageprotocol/receipts 0.1.1 contains no code change and exists to carry that attestation.
The protocol is unchanged and remains frozen at v0.1.
AGE Protocol v0.1.0
AGE is the trust and verification layer for work performed by AI agents.
An agent does something real. It changes a repository, runs a job, spends money. AGE turns that into a receipt, a small signed record of what happened, that anyone can verify without asking us.
Verify one yourself
npx @ageprotocol/cli verify receipt.json --jwks age-jwks.json
A real receipt, its registry keys, the daily root and an inclusion proof are committed in docs/protocol/. Change one byte and it fails.
What is in this release
@ageprotocol/receipts, the format: RFC 8785 canonical JSON, Ed25519 keys and RFC 7638 thumbprints, receipts, registry attestations, and RFC 6962 daily roots.@ageprotocol/cli, theagectlcommand, withverifyandidentity.docs/protocol/README.md, the normative specification, complete enough to implement from.docs/protocol/verify.py, a second verifier in another language with its own canonicalizer, sharing no code with the first.docs/protocol/golden-v0.1.json, the interop vector that freezes the format.
The design, in three lines
The agent is the primary signer and embeds its own public key, so an identity is self-certifying and exists before any registry hears about it. A registry countersigns a sequence and a time; it cannot mint an identity and cannot revoke one. Roles a verifier does not know are reported and never judged, so runtime and hardware signers can be added without breaking anything written against v0.1.
Don't trust AGE. Verify AGE.
Six review rounds gated this release. The last ran 142,273 generated cases across three corpora and found zero disagreements between the two implementations, zero exceptions, and zero false positives, with every verified receipt also accepted by a third verifier written independently from the specification.
Earlier rounds found and closed real defects: a forged registry entry that read as verified, a Merkle walk that silently rejected correct proofs in trees above 2^32 leaves, unbounded recursion, a publish path that would have shipped no code, and eleven rules that existed in one implementation and not the other.
The format is frozen. Changing it breaks the vector, on purpose.
Both packages are built and published by the workflow in this repository, which runs the full suite and verifies a receipt from the packed tarballs before publishing.
Correction: these packages carry no npm provenance attestation, despite the workflow passing --provenance. pnpm publish does not implement provenance and ignored the flag silently. A published version cannot gain an attestation afterwards, so this is fixed in the next patch release, which publishes through npm publish --provenance.