feat(visualizer): offline HTML proof-status report (VOKF-8 / M1) - #4
Merged
Conversation
`@verifiable-okf/visualizer` turns a bundle (or a single concept) into a single self-contained, OFFLINE HTML report with per-concept verified / unverified / failed badges and expandable reason codes, issuer, and content_hash. - render.ts: renderReport() — fully inlined CSS + a tiny expand script; no backend, no CDN, no external resources, and no network calls / data exfil (asserted in tests). HTML-escapes all content. - visualize.ts: collectConcepts() + verify each + render. - cli.ts: `vokf-visualize <dir|concept.md> [-o report.html]`. Tests (5): all three badges render; no external (CDN) refs; no fetch/XHR/form; HTML injection escaped; the fixtures tree verifies with the expected per-concept statuses. Full suite green (canon 28 + signer 7 + verifier 22 + visualizer 5 = 62). Co-Authored-By: Claude Opus 4.8 (1M context) <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.
M1 —
@verifiable-okf/visualizer(VOKF-8)A bundle → a single self-contained, offline HTML report with per-concept verified / unverified / failed badges.
Implements
renderReport()— fully inlined CSS + a tiny expand-on-load script. No backend, no CDN, no external resources, no network calls / data exfil (asserted in tests). All content HTML-escaped.visualize()— collect.mdconcepts (recursively) → verify each → render; declaredcontent_hashsurfaced per concept.vokf-visualize <dir|concept.md> [-o report.html]CLI.DoD(VOKF-8)
次(M1 残り)
🤖 Generated with Claude Code