• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

datatug / datatug-core / 41797766718
100%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 08:13AM UTC
Jobs 1
Files 311
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Nov 2026 08:12AM UTC coverage: 100.0%. Remained the same
41797766718

push

github

web-flow
feat(audit/integrity): tamper-evident audit integrity core for Perimeter (#448)

Adds `pkg/audit/integrity`, the pure, standard-library-only integrity core of the Perimeter audit log. It follows backstage `spec/features/perimeter` §19.2 and §19.4, and the architecture's §12.

What it provides:
- canonical, versioned event encoding;
- per-field salted commitments, so a field can be redacted from an export, or erased in the store, and the export still verifies;
- RFC 9162 Merkle trees with O(log n) proofs, with domain-separated leaf, node, root and statement hashes;
- 5-minute windows in canonical leaf order (`at`, then `id`);
- linked window roots, each signed once and carrying its expiry. `Seal` refuses expiry earlier than the window end plus the 90-day floor from the spec;
- signed tombstones and legal holds; a release must match its placement;
- pseudonymous actor references;
- `VerifyExport` / `VerifyErasure`, which name the first broken window, event and field. The report has two verdicts: Complete (every leaf present) and Disclosed (no field hidden).

Signing is behind a `Signer` / `Verifier` interface. Ed25519 is built in; the KMS signer belongs to the backend.

No new module dependency; it only adds files. Coverage 100%. It has seeded property tests (random exports, 9 kinds of tampering) and fuzz targets. vet and golangci-lint are clean.

Reviewed independently over four rounds. Probes that attacked holds, erasure, ordering, expiry and labels were turned into tests. The final review approves this head.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Source commits:

- c471cfc7ecfe feat(audit/integrity): pure audit integrity core for Perimeter (§19.4)
  Versioned canonical event encoding with per-field salted HMAC-SHA-256
  commitments, RFC 9162 Merkle windows chained by previous root, inclusion
  proofs, Signer/Verifier interface with signed root, expiry, tombstone and
  legal-hold statements, export verification with one error... (continued)

953 of 953 new or added lines in 10 files covered. (100.0%)

38811 of 38811 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41797766718.1 04 Nov 2026 08:13AM UTC 311
100.0
GitHub Action Run
Source Files on build 41797766718
  • Tree
  • List 311
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 917687db on github
  • Prev Build on main (#41795025682)
  • Next Build on main (#41819570927)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc