Skip to content

web: release check report preview in the playground, from flow check's own template - #56

Merged
pwngh merged 1 commit into
mainfrom
playground-report
Dec 2, 2026
Merged

pwngh merged 1 commit into
mainfrom
playground-report

Conversation

@pwngh

@pwngh pwngh commented Dec 2, 2026

Copy link
Copy Markdown
Owner

flow check now decides a release verdict and writes a report (#53), but nobody could see one without recorded sessions and a model key. The playground now previews the report for a synthetic check of 200 sessions, filled from the same template flow check uses.

  • web/lib/report.js ports flowd/check/verdict.py (decide) and report.py (fields, render_markdown), including Python's format(x, 'g') rounding. The template is not copied: the build reads bindings/python/flowd/check/report_template.md.
  • conformance/report/sample.json is the synthetic check, and sample.md is what Python renders for it. verify.js holds the JavaScript to it, and tests/check/test_report_sample.py holds Python to it.
  • A "release check" card renders the report: counts and reason codes only, labeled as synthetic. layout_check.mjs now also checks the page at phone width with the report open.

Proof: verify.js passes, including the sample and eight format(x, 'g') vectors from Python (ties, exponents, subnormals). A scratch differential run of 400 random checks, with varied margins, coverage, cap stops, tool calls and model names, renders byte-identical Markdown in Python and JavaScript. The Python check tests pass (9). layout_check.mjs, browser_check.mjs and check_keys.js pass. The rendered card was inspected in Chromium.

Reviewed with sol-loop: 2 rounds with gpt-6.2-sol. Sol verdict: approved

@pwngh
pwngh force-pushed the playground-report branch from dd198a6 to 31bd0d8 Compare December 2, 2026 08:56
@pwngh
pwngh merged commit 6b8d983 into main Dec 2, 2026
18 checks passed
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