Follow-up: guard public/og.png against drifting from scripts/og-card.html
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 62/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- build-system, ci-cd, documentation
Research direction
Start with scripts/og-card.html, scripts/render-og-card.mjs, package.json, and .agents/bin/README.md; inspect the existing .agents/bin/test flow and CI test job. Choose and document the Chrome execution path, then verify that check:og-card re-renders to a temporary path and compares its sha256 with public/og.png, with the specified behavior when Chrome is unavailable.
Written by the indexing model from the issue text.
Description
Context
PR #31 (batch AWC C, issue #14) makes the Open Graph card reproducible: scripts/og-card.html plus scripts/render-og-card.mjs regenerate public/og.png byte-for-byte (verified by sha256 in the PR).
Problem
Nothing enforces that relationship. A future edit to the HTML without re-rendering, or a hand-edited PNG, ships silently.
Proposed fix
Add a check:og-card step that re-renders to a temp path and compares sha256 with the committed PNG. It needs Chrome on the runner (CHROME_BIN), so either install Chromium in the CI test job or keep it local-only in .agents/bin/test with a clear skip when Chrome is absent. Wire it into package.json and document it in .agents/bin/README.md.
Source: PR #31 lane and independent check. Related: #14.
- Dominant language
- Astro
- Stars
- 0
- Forks
- 0
- Avg merge
- 18h 20m
- Merged PRs (30d)
- 24
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from shakacode/agent-workflows-com
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
shakacode/agent-workflows-com#36 · 1 comment ·
All issues in shakacode/agent-workflows-com
Similar issues
-
Needs Design Priority: Wishlist
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
elementary/flatpak-platform#253 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
objectionary/hone-maven-plugin#1060 ·
-
0.kind: build failure
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Update Vish to 1.1.5 Openpackage-update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
oSoWoSo/vOid_Community_repOsitory#144 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100