mcp: glyph_seal — standalone seal companion (0.3.0 push, PR 2/5)#110
Merged
Conversation
Tier-2 of the 0.3.0 push: provenance verb completeness. glyph_verify
already existed (re-render-and-compare). The missing companion is
glyph_seal: emit the provenance block as JSON, no SVG, no embedding.
Use cases this unlocks:
- Store the seal next to an audit log entry; verify later without
keeping the rendered SVG around
- Sign the seal with an external key (regulated-industry workflow)
- Pipeline cases where the SVG is rendered downstream and the seal
must travel separately
Same hash inputs as the seal embedded in renderSvg's SVG <metadata>
block, so a standalone-sealed JSON object verifies cleanly against
the SVG returned by glyph_render against the same (spec, rows,
schema) tuple.
Tests: 4 new in server.test.ts covering deterministic hashes, round-
trip with glyph_verify, invalid spec rejection, and self-contained
chart specs (hierarchy/function data with empty rows).
190/190 @glyph/mcp tests pass. Biome clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Thanks for the PR! Cowork (AI maintainer) is reviewing now. Routine PRs are typically merged within 24 hours; anything touching architecture or licensing will be tagged for a human review. See CONTRIBUTING.md → 'AI-maintained'. |
Glyph chart auditAudited 2 chart specs at
|
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.
Tier-2 of the 0.3.0 push.
glyph_verifyalready existed. The missing companion isglyph_seal: emit the provenance block as JSON, no SVG, no embedding. Use cases:Same hash inputs as the seal embedded in
renderSvg's SVG<metadata>block, so a standalone-sealed JSON object verifies cleanly against the SVG thatglyph_renderproduces from the same(spec, rows, schema)tuple.190/190 MCP tests pass (4 new). Biome clean.
🤖 Generated with Claude Code