Repository navigation
fix(visual): separate browser scheme from GitHub theme in README probe - #186
Conversation
andy-zen-dev
left a comment
There was a problem hiding this comment.
APPROVE — independent exact-head review of 6b3f046c796fec4561bcdd1a645b1ff04ba6cf65.
Read the current AGENTS.md/CONTRIBUTING.md and all four changed files, including the full read-only browser probe, manual GitHub-rendered acceptance procedure, Node VM test harness, and changelog. The probe retains the full-SHA GitHub-rendered-page and missing-Markdown guards, distinguishes matchMedia('(prefers-color-scheme: dark)') from optional documentElement theme attributes, preserves query-string stripping for image paths, and explicitly does not claim inferred effective appearance or WCAG acceptance. The new tests exercise forced-site-theme/browser-preference disagreement and absent metadata; the visual receipt remains NOT RUN pending actual browser/manual checks.
Exact-head GitHub Actions: 6/6 success (Python 3.11, Python 3.14, Windows Python 3.14, both Action self-tests, Lint). I did not independently run the complete local five-command gate or perform a rendered-GitHub/manual accessibility walkthrough. Within this bounded probe/docs change, no merge-blocking defect found. Approval does not claim real-page visual or accessibility acceptance.
Reader problem
The GitHub-rendered README probe reported
prefersDarkas though it established the site's effective appearance. GitHub permits a manually selected light/dark theme independent of system preference. This can make the recorded media preference disagree with the actual page and chosen artwork.Bounded correction
prefersDarkexplicitly as the browser'sprefers-color-schemediagnostic, not a GitHub theme verdict.githubAppearanceobservations from the page'sdata-color-mode,data-light-themeanddata-dark-themeattributes. They may be absent or change; no undocumented API stability is claimed.pictureSelectionsrather than infer the theme from the OS.Source: GitHub theme settings, inspected 2026-10-28. Related: #16.
Verification and limits
node --checkon the revised JavaScript: PASS locally.Only BeautifulRepo public reader-facing code/docs/tests are changed. No private controls, releases, settings or external repositories are modified. Merge requires later-run acceptance and actual provider gates.