Skip to content

fix(docs): drop the non-reproducible overview PNG from regeneration - #489

Merged
d-oit merged 1 commit into
mainfrom
fix/deterministic-overview-png
Nov 5, 2026
Merged

d-oit merged 1 commit into
mainfrom
fix/deterministic-overview-png

Conversation

@d-oit

@d-oit d-oit commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #487. Its first Update Overview Diagram run opened PR #488 with a diff touching only the PNG — the SVG and Excalidraw output were byte-identical, so the diagram content was already correct.

Root cause: PNG export rasterises through the local font stack, so an unchanged diagram produces different bytes on a runner than on a developer machine. I confirmed the export is deterministic within an environment (two local runs are identical) but not across environments.

Why that was pure churn: nothing embeds the PNG. README.md and docs/src/architecture.md both reference overview.svg.

So the PNG is removed from the tracked tree and from the automated path:

  • Update Overview Diagram no longer generates or commits it
  • scripts/sync-architecture.sh no longer mirrors it
  • --png-out still works for an ad hoc raster preview; the skill documents why it shouldn't be committed

I also closed #488 and deleted its branch.

Verification

  • bash scripts/sync-architecture.sh now produces zero diff — previously it churned the PNG
  • ./scripts/quality-gates.sh — 19/19 pass
  • tests/overview_diagram_test.sh — still passes (it checks the Excalidraw stats, not the PNG)

The Update Overview Diagram workflow opened a spurious pull request on its
first run after merging #487. The diff touched only the PNG: the SVG and
Excalidraw output were byte-identical, so the diagram content was already
correct.

PNG export rasterises through the local font stack, so an unchanged diagram
produces different bytes on a runner than on a developer machine. Nothing
embeds the PNG -- README.md and docs/src/architecture.md both reference
overview.svg -- so the binary was pure churn: every automated run would have
proposed a new one.

The PNG is removed from the tracked tree and from the automated path.
'--png-out' still works for an ad hoc raster preview; the skill documents why
it should not be committed.

Verified: regenerating locally now produces no diff at all, and PR #488 is
closed with its branch deleted.
@codacy-production

Copy link
Copy Markdown
Contributor

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@d-oit
d-oit merged commit 6099c9a into main Nov 5, 2026
25 checks passed
@d-oit
d-oit deleted the fix/deterministic-overview-png branch November 5, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant