"""Compose diagnostic paired GitHerald posters from exact source-run JPEGs. The published-status strip and public page are embedded from the real local UI captures. No interface element is invented. The text describes the fictional fixture and visible publish action, and the output remains a review study. """ from __future__ import annotations import base64 from pathlib import Path ROOT = Path(__file__).resolve().parent.parent def jpeg_uri(path: Path) -> str: return "data:image/jpeg;base64," + base64.b64encode(path.read_bytes()).decode() def render(theme: str) -> None: dark = theme == "dark" bg = "#151b25" if dark else "#f6f2e9" ink = "#f6f3ed" if dark else "#25252b" soft = "#b9c0cd" if dark else "#5c606a" card = "#242c39" if dark else "#fffefa" rule = "#596170" if dark else "#d4cbbd" band = "#e5a177" if dark else "#263441" band_ink = "#211b19" if dark else "#fff7ec" review = jpeg_uri(ROOT / "raw" / f"githerald-published-{theme}.jpg") public = jpeg_uri(ROOT / "raw" / f"githerald-public-{theme}.jpg") svg = f''' GitHerald fictional local publish study — {theme} Real source-run published status and public changelog from a hand-authored fictional SQLite fixture. No GitHub OAuth or LLM call. GitHerald SOURCE-RUN / 25 SEP 2026 A RELEASE NOTE, REVIEWED Draft. Publish. Read. The actual local publish action moved a hand-authored draft into the public changelog. 01 REVIEW UI 02 PUBLISH ACTION 03 LOCAL PUBLIC PAGE 01 / VISIBLE PUBLISHED STATE 02 / ACTUAL LOCAL PUBLIC CHANGELOG FICTIONAL LOCAL FIXTURE NO GITHUB OAUTH · NO LLM RUN ''' (ROOT / f"poster-study-{theme}.svg").write_text(svg) for mode in ("light", "dark"): render(mode)