Overview
The example writes nine audit entries for two agents, reads them back with the
TypeScript SDK and prints a report:
- Two agents, two grants.
data-reader and notifier are registered and
authorized for the same user.
- Known activity. Six successful entries, two failures for actions outside
the granted scopes, and one blocked entry.
- Timeline. Both agents’ entries, merged and sorted by time.
- Slices. Each agent on its own, then only
email:send with its metadata.
- Summary. Outcome percentages, entries per agent, and action counts.
- Hash chain. The developer’s unfiltered entries are walked to confirm that
each
prevHash matches the previous entry’s hash. The chain is kept per
developer, which is why the check does not filter by agent.
Prerequisites
- Node.js 24 LTS
- Docker with Compose
Run
From the repository root, start the local stack:
Then, in another terminal:
Sample output
Configuration
Source code
See examples/audit-dashboard/src/index.ts.
Ownership
Grantex is owned by Orchestrum Technologies LLP. Inventor and owner: Sanjeev Kumar. Ownership contact: sanjeev@orchestrum.in or mishra.sanjeev@gmail.com.Last modified on October 21, 2026