Skip to content

Add CI check to keep Person/WebSite JSON-LD in sync#1

Merged
JasonColapietro merged 1 commit into
mainfrom
audit/fixes-20260708-Suede-AI.github.io
Jul 8, 2026
Merged

Add CI check to keep Person/WebSite JSON-LD in sync#1
JasonColapietro merged 1 commit into
mainfrom
audit/fixes-20260708-Suede-AI.github.io

Conversation

@JasonColapietro

Copy link
Copy Markdown
Collaborator

Summary

  • index.html and book.html hand-duplicate the same Person and WebSite JSON-LD nodes with no shared source, so a fix to one can silently miss the other (as happened with commit e06f678).
  • Adds scripts/check-schema-sync.mjs (dependency-free) which extracts the @graph from both files and fails if the Person/WebSite nodes differ.
  • Adds .github/workflows/schema-sync-check.yml to run the script on push/PR to main.

No content in index.html or book.html was changed.

Test plan

  • node scripts/check-schema-sync.mjs passes against current index.html/book.html
  • Verified the script exits non-zero and reports the mismatch when a Person node field is intentionally drifted in a scratch copy

index.html and book.html hand-duplicate the same Person and WebSite
JSON-LD nodes with no shared source. Add a script and workflow that
fail CI if the two files' nodes drift apart.
@JasonColapietro JasonColapietro merged commit b468365 into main Jul 8, 2026
1 check passed
@JasonColapietro JasonColapietro deleted the audit/fixes-20260708-Suede-AI.github.io branch July 8, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant