Repository navigation
ux(language): judge each golden on its own in check-user-text (#10697) - #11372
Conversation
The golden-human ceiling now bounds the worst single human.txt instead of a repository-wide total, so landing goldens no longer race on one number and turn main red. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzVXfTdEngZHi6cL6Lm
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 41 minutes. View limit details
|
…ssary (#10697) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzVXfTdEngZHi6cL6Lm
|
Independent review addressed in a9a327b: ceilings are now the exact measured per-golden maxima (discriminator 10, seam 3, state token 5, admitted/delegatable/probe 1); the Generated by Claude Code |
|
Contract reconciliation needed before using #11372 as the #11374 unblocker. At head a9a327b, tree 486ce25d08eacecec84b3478bed6b185e064c292, the production scanner/evaluator accepts adding a new golden with one discriminator line when another golden already has two. A new no-growth negative fails with 'new banned output passed'; the candidate's per-file-max test passes. This is intentional under its documented peak-per-file contract, but does not satisfy #11374's stated PR-relative no-growth acceptance. Total growth across goldens remains unbounded by that metric. Please reconcile the policy choice with the existing #10697 owner and keep one canonical implementation. I recommend preserving an explicit no-new-regression contract rather than treating a change of denominator as equivalent proof. Any relative alternative still needs immutable side-specific base/head inputs, conservative missing-input handling, composition attribution, inherited-health disclosure and failed-ratchet controls. No blanket ceiling waiver or competing writer was started. Also correct #11374's queue premise: current root AGENTS names native merge-queue qualification as the accepted destination, with activation unverified; a stale 'no routine queue' statement is not authority to disable installed qualification. Neither text-count approach replaces actual composition checks or authorizes settings changes. |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- scan_goldens now creates an independent Counts for each golden and merges only the larger per-term count, preserving the intended per-file boundary.
Verification questions
- Confirm the new regression test covers three files at the ceiling and a fourth file exceeding it, but does not directly assert ratchet or exact-term aggregation behavior.
- Confirm the new test proves a single term's per-file maximum but does not verify maximum selection when multiple terms or heterogeneous file counts are present.
- Confirm the PR's exact-ceiling claim is not fully established by the supplied diff because ratchet generation and live-surface aggregation are not shown to preserve the new semantics.
Refuted
- The change might make unrelated golden regressions pass because a smaller file overwrites a larger prior file.; refuted because: The merge condition only replaces the stored count when the new file count is greater, preserving the observed maximum.
- The baseline reduction weakens enforcement of existing live-surface or golden content.; refuted because: Live-surface rows are unchanged, and golden-human rows are explicitly per-file ceilings; the focused test demonstrates rejection of a file exceeding its ceiling.
- Lowering the baseline ceilings could weaken live-output enforcement.; refuted because: The changed TOML rows are specifically golden-human ceilings. The diff does not alter live-surface rows, and the implementation continues to use separate surface keys.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- Independent sensor support is incomplete because ripr failed and the always-on cargo-test receipt is still scheduled for the late phase.
|
Contract decision (recorded so the PRs stop waiting on each other): #11372 lands as the unblocker with its per-file-max contract, because judging each golden on its own removes the cross-PR drift that is currently reddening every PR. The no-growth / PR-relative requirement of #11374 is not dropped; it stays with #11384 (delta against the merge-base), which should land as the second layer and may then tighten or retire the per-file ceilings. Neither PR should wait for the other; if #11384 later proves strictly stronger, replace the ceiling mechanism there with immutable side-specific base/head inputs as the review asked. Rationale: a green, deterministic main is the precondition for every other 0.11 PR; a weaker-but-stable gate plus a stronger follow-up beats a stronger gate that is not yet green. Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzVXfTdEngZHi6cL6Lm
|
CI note for head a9a327b: attempt 1 lost test shard 4 to a runner shutdown (infra). Someone re-ran failed jobs and all shards passed, but Generated by Claude Code |
|
|
|
Reconciling the contract: #11372 deliberately bounds the worst single Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The generated baseline header contains the grammatical error “landing goldens never races”; the policy file itself uses the correct singular “never raises.”.
- xtask/src/policy/user_text.rs:305 — The generated baseline header is ungrammatical: “landing goldens never races” mixes singular and plural. Keep this generator text aligned with the manually maintained baseline wording.
Verification questions
- Confirm the regression test proves per-file maximum selection and rejection above a ceiling, but not multi-term or heterogeneous-file aggregation.
- Confirm the new test exercises aggregation and ceiling behavior for one term, but does not establish independence across different terms or heterogeneous per-file counts.
- Confirm the new test proves the per-file maximum and over-ceiling failure, but does not directly cover heterogeneous terms or --ratchet output semantics.
Refuted
- A smaller golden could overwrite a larger earlier golden and weaken enforcement.; refuted because: The merge is a maximum: an entry is replaced only when the newly observed line count is greater.
- The PR body claims small headroom over measured maxima, while the committed ceilings equal the measured maxima exactly and the test uses a synthetic exact-ceiling baseline.
- The change may preserve a shared repository total or allow a smaller later golden to overwrite a larger earlier one.; refuted because: The scanner now aggregates independent per-file counts by retaining the maximum; the seeded thread explicitly records the per-file-max contract as intentional.
- The ceiling reduction could silently weaken live-surface enforcement.; refuted because: Only golden-human rows changed in this diff; live-surface rows and their aggregation path are unchanged.
Parked follow-ups
- The per-file-max contract does not bound repository-wide jargon growth or provide PR-relative no-growth attribution; the seeded thread records this responsibility in follow-up #11384.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
…-delta-gate Keeps #11372's per-file-max golden ceilings and its committed-baseline test; the delta gate and event binding sit on top. Baseline header, glossary and render_baseline header reconciled. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLUh82CsN5o9LMZnmZm
Requested by Steven · project thread
Governing issue or accepted claim: #10697
Acceptance delta (one sentence):
check-user-textbounds the worst singlehuman.txtgolden instead of a repository-wide sum, so landing goldens in parallel can no longer turn main red on a shared counter.Summary
check-user-textrepeatedly (after ux(language): plain-language glossary and check-user-text lint (#10697) #11307, ux(language): fix user-text baseline drift and ratchet rewrite (#10697) #11321, feat(python): credit a boundary input bound once to a test-local literal (#10707) #11304, fix(check): incomplete analysis no longer headlines "checked no changed behavior" #11361) because every landing golden raised one shared total.scan_goldensnow keeps, per term, the single golden with the most lines; thegolden-humanceiling is a per-file maximum. A new golden that exceeds it fails on its own PR; goldens in parallel PRs no longer conflict on the baseline.policy/user-text-baseline.toml: golden-human rows become per-file ceilings set to the exact measured worst files (discriminator 10, seam 3, state token 5, admitted 1, delegatable 1, probe 1). Live-surface ceilings are unchanged.--ratchetheader anddocs/USER_TEXT_GLOSSARY.mdupdated to say so.golden_ceiling_bounds_the_worst_single_file_not_the_sum.Claim boundary
The lint bounds each golden's jargon, not the repository total. A new golden within the per-file peak passes however many are added. The PR-relative no-growth check is tracked as the follow-up on #11374 / #11384 and should be built on this scanner.
Proof
cargo xtask check-user-text: pass.cargo test -p xtask --bin xtask user_text: 14 passed.cargo xtask check-no-panic-family: pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01YVdGzVXfTdEngZHi6cL6Lm