Repository navigation
Conversation
Renders the 16 shapes success.md.j2 can take through GitHub's own /markdown endpoint, light and dark side by side, so a spacing or sanitiser regression is visible before it reaches a real PR. Parked work from the gates-first comment redesign: the harness is what would have caught the 16px mark scale error that shipped instead. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.

Query Doctor — 6 successful checks
More details via MCP → get_ci_run({ runId: "01a13112-74da-7ee5-b5d0-6a5349a7caed" }) · view run · docs
3 queries read against main on assumed statistics of 10,000,000 rows per table. Sync production stats for costs measured against your real data.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parked work, opened as a draft so it is not lost. It is not finished and should not be merged as-is.
Goal
A change to the PR comment template should be visible before it reaches a real pull request. Today the only way to see
success.md.j2rendered is to push a branch, wait for a CI run, and read the comment GitHub stored. Three analyzer PRs in the gates-first round (#210, #211, #213) were layout fixes found that way, after shipping.What
node --import tsx tools/comment-preview/preview.tswritestools/comment-preview/out/index.html: the 16 shapes the comment can take, each rendered twice, light theme beside dark. It needs an authenticatedghand no database, no CI run and no network beyond GitHub.The shapes are a clean run, a cost regression with and without table growth, a new query with an index recommendation, schema drift, every gate firing at once, 12 regressions, one of everything, assumed statistics, no baseline, comparison unavailable, comparison branch unset, two ingest failures, untested data access, and the modeled-tables notice.
How
preview.tsreadssrc/reporters/github/success.md.j2and renders it with the same nunjucks configurationGithubReporteruses, becausetrimBlocksandlstripBlocksdecide most of the whitespace this tool exists to show. It posts each result toPOST /markdownthroughgh api, so the HTML is GitHub's own: constructs the sanitiser strips (style=, inline<svg>) are stripped here too, and the spacing comes from GitHub's stylesheet rather than an approximation of it.fixtures.tsholds view models, which is the limit worth knowing: they arebuildViewModeloutput, so a defect inbuildViewModelitself does not show up in the preview. Only the template is under test.github-markdown-light.cssandgithub-markdown-dark.cssare vendored fromgithub-markdown-css.Unfinished
npm run preview. No such script exists inpackage.json.out/is gitignored rather than committed, so the rendered page has to be generated to be read.Tests
None, by design at this stage. I ran the harness against the current template on 2026-10-12: it renders all 16 fixtures and writes the page.
tsc --noEmithas not been run overtools/, which is outside the shippedsrc/tree.🤖 Generated with Claude Code