Repository navigation
docs(benchmarks): name where seven error-benchmark mistakes live, fix three stale statements - #863
Merged
Merged
Conversation
… three stale statements Seven catalogue titles did not say whether the mistake is in server code or in browser code, or which kind of event it means. m60 read as a Citry server event handler but is a browser-side Vue method that handles a child component's event. The ids, descriptions, ports and settings are unchanged. The published 2026-11-16 report and docs_site/data/error_prevention.json carry the new titles. Also correct the development-mode note in the Citry framework.toml, say on the Benchmarks page that citry.Secret values are refused, and update two stale references in docs/design/issue_207_proposals.md. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
What this changes
The error-benchmark catalogue names each mistake in a short title, and some
titles did not say where the mistake lives. m60 ("Handler declares arguments
the event does not send") reads as a Citry server event handler, but the case
is a browser-side Vue method that handles a child component's
hideevent."Event" and "handler" can each mean a server event or a browser component
event, and "template" and "state" were unclear in the same way.
This PR rewords seven titles and fixes three inaccurate statements. It leaves
everything the benchmark scores untouched: no
id,description,category,port or setting changes. The m61 follow-up (a FastAPI check in
citry check) is filed as #862.Merge this after the 1.3.0 release. It changes the Benchmarks page text
and the published report, which are not part of the release candidate.
Title changes
The new titles use the same words across the set: "server handler" for code
that answers a request from the browser, "child's event" or "child
component's event" for an event a child sends to its parent in the browser,
and "browser event" (already in m31) for a DOM event such as a click.
I read all 63 entries and the Citry port of each. The other 56 titles already
say well enough where the mistake lives (for example "browser-side
component", "browser event", "server handler name", "CSS variable"), so they
stay. Two titles use words that fit only some frameworks, and I checked them
against all twelve ports: m13 and m39 say "server handler", which is true
for every ported framework (Django views, FastHTML routes, Next.js server
actions, Nuxt API routes, ReactPy and Reflex handlers, and so on). m38 says
"displayed value" because the read is in a view in some frameworks and in the
template in others.
Where the titles are copied, all in sync now:
benchmarks/errors/catalogue.toml, the source.benchmarks/errors/results/2026-11-16/(results.json,matrix.md,report.html): the published report that the docs data comes from. Onlythe seven title strings change, in exactly seven lines per file.
report.htmlis drawn again by the runner's ownhtml_report.write, whichfirst reproduced the committed file byte for byte from the unchanged
results.json.matrix.mdis edited row by row.docs_site/data/error_prevention.json, regenerated withpython -m docs_site.scripts.error_benchmark_data(it needs only thestandard library). The diff is the same seven lines.
docs/design/error_prevention_benchmark_plan.md, which copies five of thetitles in its tables and TOML blocks.
docs_site/content/about/benchmarks.md: the bullet for m60 under "The 4mistakes Citry misses" now matches its new title.
Left alone on purpose:
docs_site/versions/*(archived pages for releasedversions) and
benchmarks/errors/results/2026-10-21/(the older run, kept asthat run's record under the titles it was published with).
Decision for you: editing the published 2026-11-16 report by hand. I did
not rerun the runner's
reportstep, because the run folder it reads(
.benchmarks/errors/runs/...) is not stored in the repository and I foundno copy on this machine, so the title strings were the only way to keep the report, the docs data and the catalogue in step. The
report's
inputs_treestill names the inputs the run scored, and a titlecannot change a result (the catalogue's "freeze before a published run"
rule exists so that a change to a mistake cannot be chosen after seeing the
result; ids, descriptions and ports are untouched). If you would rather keep
the report exactly as the run wrote it, drop the three files under
results/2026-11-16/; the next run's report carries the new titles anyway.The docs data would then need the script run from a copy of
results.jsonwith the titles changed.
Three inaccurate statements
benchmarks/errors/frameworks/citry/framework.tomlsaidmode="development""changes only how translations are loaded".Development mode also asks a visitor to reload an out-of-date page, warns
when two elements share an
id, and, since feat(check): typed emits, citry.Secret, development-only page checks, CSS class rules (#207) #242, runs the browser checkfor server and browser rendering different content
(
packages/py/citry/citry/_vue/serialization.pynear line 1494). Thecomment now says so and that the app keeps the default
productionmode. The setting did not change, and
notesis not part of the runner'scache key, so stored results stay valid.
that Citry refuses a value wrapped in
Secret, and that the benchmark'ssecret is a plain string, which Citry cannot tell from other text.
docs/design/issue_207_proposals.mdhad two stale references. Row 6 saidthe benchmark app serves its pages from hand-written ASGI code, so m45,
m48 and m61 stay unreported. It is a FastAPI app now:
citry checkwarnsabout m45 and m48, and m61 is reported only at runtime. Section 12c cited
server_render.rs:3011-3014, lines that now hold unrelated code. The codeit meant (the
component()arm that gives up on any prop other thancitry-idandkey) is atserver_render.rs:3635-3637.One edit beyond the three: the page's m14 bullet said Citry shows "no error".
With the corrected comment that reads as a contradiction, so it now adds that
Citry's development mode can warn about this in the browser console and that
the benchmark runs in production mode.
For you to decide
checks, so with
mode="development"the Citry cells for m14 (andpossibly m57) may differ from the published ones. Design note 12c in
issue_207_proposals.mdrecords that m14 warns on a 1280px window indevelopment mode; I did not run the benchmark app that way. I did not
change the setting or rerun anything. Whether to measure development mode
is your call.
Review and checks
An independent prose pass and cold read, and a separate technical review,
ran on the draft. Changes from them: m29 and m38 got new wording (the first
version said "component" where FastHTML and the Alpine ports have none, and
"page text" where half the ports read the field in a view); the development
mode note names the reload prompt; the page's m14 bullet says "can warn";
the
server_render.rsrange is the tight one.Docs, benchmark data and comments only: no
crates/orpackages/codechanged, so no package changelog entry, no versioning question, and no new
value reaches the browser.
tomllibreadscatalogue.toml(63 mistakes)and
framework.toml; the catalogue titles equal the titles inresults.jsonanderror_prevention.jsonfor all 63 mistakes. I did notbuild the docs site or run the benchmark: the worktree is a sparse checkout
and disk was tight.
🤖 Generated with Claude Code