Skip to content

ux(language): judge each golden on its own in check-user-text (#10697) - #11372

Merged
EffortlessSteven merged 3 commits into
mainfrom
claude/user-text-durable
Oct 31, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
claude/user-text-durable

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Governing issue or accepted claim: #10697
Acceptance delta (one sentence): check-user-text bounds the worst single human.txt golden instead of a repository-wide sum, so landing goldens in parallel can no longer turn main red on a shared counter.

Summary

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.
  • Independent subagent review: no correctness findings; stale header and glossary wording fixed in a9a327b.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YVdGzVXfTdEngZHi6cL6Lm

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
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 148 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 9e518dc8-04a5-4f58-8895-ed8e553f2090
Commits

Reviewing files that changed from the base of the PR and between f3d8abc and 02f02ff.

Files selected for processing: 3
  • docs/USER_TEXT_GLOSSARY.md
  • policy/user-text-baseline.toml
  • xtask/src/policy/user_text.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Copy link
Copy Markdown
Member Author

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 --ratchet rewrite header (render_baseline) and the glossary's "Baseline ceilings" wording now describe golden-human as a per-file maximum. By design, total jargon growth across goldens is not bounded, each golden is; a single golden regressing past its ceiling still fails on its own PR.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

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

Copy link
Copy Markdown
Member Author

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 Ripr Rust Small Result still failed on ELIGIBILITY_RESULT: failure. The eligibility step requires EXPECTED_REQUEST == $GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT, so a "re-run failed jobs" attempt can never produce a green Result (admission is not re-run). The only way to a green Result after an infra loss is to cycle the merge-ready label for a fresh run. I did that just now; no newer run existed for this head.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready was requested, but this PR conflicts with main (head a9a327bf), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

Copy link
Copy Markdown
Member Author

Reconciling the contract: #11372 deliberately bounds the worst single human.txt golden (a per-file peak). It does not give a PR-relative no-growth guarantee: a new golden with one banned-term line passes while another golden already holds two, and total growth across goldens is unbounded by this metric. That is the documented trade-off (the shared repository-wide total made every landing golden race on one number and turned main red three times today). A stricter relative check needs immutable side-specific base/head inputs, conservative missing-input handling and failed-ratchet controls; it is tracked as the follow-up on #11374, to be built on top of this one canonical scanner rather than as a competing writer. No ceiling waiver and no settings change here; the existing baseline file and ratchet remain the single policy surface.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@EffortlessSteven
EffortlessSteven merged commit 018a7d8 into main Oct 31, 2026
53 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/user-text-durable branch October 31, 2026 07:03
EffortlessSteven pushed a commit that referenced this pull request Oct 31, 2026
…-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
EffortlessSteven added a commit that referenced this pull request Oct 31, 2026
Include the landed #11372 user-text prerequisite and #11428 public-guide correction before requesting qualification. Preserve the original 30-file Kani feature delta and all prior proof subjects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants