Repository navigation
feat(web): public Audit Trail CID verification page (/verify) - #49
Merged
Merged
Conversation
New /verify page: paste a CID anchored by the Audit Trail Node and independently confirm it instead of trusting a dashboard's rendering. Fetches the record through the existing /api/ipfs proxy (auto-retry for the 60-90s gateway propagation window), recomputes the sha-256 of any embedded record client-side with Web Crypto, and verifies an agent attestation's ed25519 signature server-side (/api/audit/verify-signature). Scoped as a single-CID lookup, not a public feed: anchors made for someone else's evidence are not meant for open browsing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eras256
approved these changes
Oct 29, 2026
Eras256
left a comment
Collaborator
There was a problem hiding this comment.
Verified this PR against the API before approving: 7 files from apps/web, byte-identical to the ones already tested in the private repo. No personal data or secrets, nothing caught by .gitignore unintentionally.
Approved.
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
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.
Adds
/verify: paste a CID anchored by the Audit Trail Node and check it yourself instead of trusting a dashboard./api/ipfsproxy, retrying for the 60-90s gateway propagation window.record, recomputessha256(JSON.stringify(record))in the browser and compares it tocontent_sha256. Hash-only anchors are shown as "nothing embedded to recompute", not as a mismatch.nirium-audit-v1:<content_sha256>server-side (/api/audit/verify-signature), accepting raw and SEP-53 encodings like the agent does.Ported from the private repo, scoped to these 7 files. The Navbar edit was applied surgically because this repo's import line already differs from the private one.
Test plan
tsc --noEmitclean andnext buildpassed,/verifyand the signature route both compiled🤖 Generated with Claude Code