Repository navigation
feat: export ledgers in the IETF Agent Audit Trail draft -11 format - #5
Merged
Merged
Conversation
Adds am export-aat / am verify-aat and to_aat/export_aat/verify_aat. Targets draft-sharif-agent-audit-trail-11 (2026-11-21), an individual Internet-Draft, and records that revision in every exported record. Includes an RFC 8785 canonicaliser for the section 6.1 prev_hash chain. Refuses ledgers whose native chain fails verification. Fields the native ledger lacks are filled with documented defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Aq8kkjQte1m3idCZFj8t8E
The table said provenance-mirror proves origin; the org profile and its own verdicts say byte markers are unauthenticated hints (PROVENANCE-UNVERIFIED). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Aq8kkjQte1m3idCZFj8t8E
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by 범후연이 · project thread
What
actmirror/aat.pyand CLI commandsam export-aat/am verify-aat(API:to_aat,export_aat,verify_aat).action_detail.export_profile.draft).prev_hash = hex(SHA-256(JCS(prev record minus "batch"))),nullon genesis, JSON Lines output (§10.1). Includes an RFC 8785 canonicaliser (ECMAScript number formatting, UTF-16 key order).seal,prev_seal,sig) is preserved underaction_detail.action_mirrorfor cross-checking.verify_chain— re-chaining would hide tampering.Limits (also in README / README_KO)
principal(agent itself, self-asserted),agent_version0.0.0,trust_levelL0,record_phasepost_execution,outcomefrompayload.exitif an int, elsesuccess(= recorded, not verified).record_id/session_idare UUIDv4-formatted but derived from seals (reproducible), not random.tool_call;peer_witness→decision. The Ed25519sigis not emitted as an AATsignature.verify-aatchecks fields, enums, chain, linkage, session, timestamps; not signatures, trust-level rules or §8 records; it can't detect removal of the last record.Also
Testing
pytest -q: 86 passed (58 existing + 28 new intests/test_aat.py), Linux / Python 3.11 only — the Windows and 3.10/3.12 jobs will run in CI.examples/demo_family.pystill runs.Generated by Claude Code