Repository navigation
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.