Follow-up: guard public/og.png against drifting from scripts/og-card.html

Open
#37 0 comments 0 reactions 0 assignees View on GitHub

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

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from shakacode/agent-workflows-com

All issues in shakacode/agent-workflows-com

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.