Evidence Ledger¶
Agents record every decision in an append-only ledger.
| Field | Meaning |
|---|---|
| Message | Digest of the request |
| Sender, route | Who asked for what |
| Decision, reasons, rules | What was decided and why |
| Facts | Verified credentials and identity state |
| Policy | Digest of the policy in force |
| Previous | Digest of the previous record |
Properties¶
- Chained. Removing or changing a record breaks the chain.
- Signed. References are signed with the keys in force at that time.
- Published. References go to a relay and to watchers. Truncation is noticed.
- Guarded. Database triggers refuse updates and deletions.
Read and verify¶
curl http://127.0.0.1:18480/v1/evidence/<said> -H "Authorization: Bearer $ADMIN_TOKEN"
curl http://watcher-0:8080/v1/evidence/<aid>
node.evidence.verify()
verify checks the whole chain and raises EvidenceError if it is damaged. The digest of the record is part of every reply, so the requester can ask for it later.