feat(tools): render the WCM social card from the shared template - #71
Merged
Merged
Conversation
tools/render-og-card.py rendered only the agentrust-io.com card. It now holds named cards in one template, and `wcm --out PATH` renders the Weight Custody Manifest card that the WCM docs site commits as docs/assets/og.png. The chain row underlines the card's own step. The /wcm/ redirect stub points its Open Graph tags at that card, 1200x630, instead of the 1731x909 launch image that still read agentrust.io. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013aK3gVWzNdcM3hZ2o2awK2
wcm/redirect.test.js keeps the stub's og:image on an image this directory serves. The new card is copied to wcm/og.png (byte-identical to wcm.agentrust-io.com/assets/og.png) and the test now checks for it, while og-launch.png stays for cached shares. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013aK3gVWzNdcM3hZ2o2awK2
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.
The WCM social card was the last one outside the AgenTrust card family: a 1731x909 cream illustration reading "Release · Attest · Revoke" with the wordmark "agentrust.io", a domain the project does not use.
Changes
tools/render-og-card.pynow holds named cards in one HTML template.python tools/render-og-card.pystill writesog.pngfor agentrust-io.com, and re-rendering it here produced a byte-identical file.python tools/render-og-card.py wcm --out PATHrenders the WCM card: "An AgenTrust open specification", "Weight Custody Manifest", "Release model weights only to an attested runtime.", and the chain row with 01 Weights underlined. Long titles step down to 84px so they stay on one line.docs/assets/og.png, in a companion PR there, because that site serves its own card.wcm/index.html, the redirect stub, now pointsog:imageandtwitter:imageathttps://agentrust-io.com/wcm/og.png, 1200x630 with a new alt.wcm/og.pngis a copy of the card weight-custody-manifest serves, byte-identical towcm.agentrust-io.com/assets/og.png, becausewcm/redirect.test.jsrequires the stub's card to be served from its own directory.wcm/og-launch.pngstays, so shares cached against it still resolve, and the test now checks for both files.Checked
og.pngis unchanged in git; the WCM card renders as PNG image data, 1200 x 630.Generated with Claude Code
https://claude.ai/code/session_013aK3gVWzNdcM3hZ2o2awK2