Skip to content

review: state introduce-vs-amplify in the posted prose#250

Merged
jwbron merged 1 commit into
mainfrom
jwies/review-provenance-label
Jul 13, 2026
Merged

review: state introduce-vs-amplify in the posted prose#250
jwbron merged 1 commit into
mainfrom
jwies/review-provenance-label

Conversation

@jwbron

@jwbron jwbron commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Follow-up from the v1.4.0-preview amplification behavior test (Khan/webapp#40736, run 29051817727): the reviewer's behavior was correct (single blocking, validator-confirmed comment on the amplifying hunk; the merely-modified pre-existing defect stayed unposted), and the posted comment argued the provenance distinction in substance, naming the pre-existing default and attributing the regression to the guard removal. But it never said which part was which: the introduce-vs-amplify call lived in structure and implication, not in words the author reads.

Changes

  • The finder's pre-existing-bugs rule now requires the call as a plain clause in the discussion prose ('introduced by this change', 'pre-existing; this change amplifies it by removing the guard'), and covers the boundary case the test hit: the enabling mechanism predates the diff but the defect is new (a changed line drops the guard that made a pre-existing default safe), where the comment must name the mechanism as pre-existing and the regression as introduced.
  • The claim-validator's amplification rule extends its corrected path symmetrically: add the missing clause whether the claim is an unlabeled amplification or an introduced defect riding a pre-existing mechanism.

Prompt-only; no code paths change. pnpm run test --run green (708), typecheck clean.

Stacked on #249.

@changeset-bot

changeset-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 10e3940

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
review Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@khan-actions-bot khan-actions-bot requested review from a team, jaredly and jeresig and removed request for a team July 9, 2026 22:38
@jwbron jwbron force-pushed the jwies/review-budget-cap branch from 4370d5b to 78e501e Compare July 9, 2026 22:47
@jwbron jwbron force-pushed the jwies/review-provenance-label branch from a2ec4f4 to 45cd748 Compare July 9, 2026 22:47
@khan-actions-bot khan-actions-bot requested a review from a team July 9, 2026 22:47
@jwbron

jwbron commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Eval-case gap worth closing here (or as a rider on #235): the live corpus has must-catch cases for the composite key, eventual consistency, and flag mock, but no amplification/provenance case. Khan/webapp#40736's seeded case (a 'redundant' WithLimit(5) removal amplifying a pre-existing Query default-limit-1 mechanism, plus a non-amplified pre-existing defect that must stay non-blocking, plus an off-diff observation that must not post) is fully specified in that PR's behavior-test record and passed live; porting it gives this PR's prose requirement a scoreable case and locks the gate behavior in regression.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Review live A/B

Baseline: origin/main (review.md 77bd48777009); candidate: working tree (review.md b3b225258a1d).

Ruler: matcher deterministic+arbiter; corpus 0c1680e66eae (9 cases).

Metric Baseline Candidate Delta
Must-catch recall 100% 100% +0%
Verdict agreement 89% 89% +0%
Noise (unmatched posted) 50% 58% +8%
Clean false flags 0 0
Judge mean quality 0.91 0.87 -0.04
Cost $7.41 $7.15
Wall clock 975s 1151s
Cases run / skipped 9 / 0 9 / 0
Misses found-but-dropped 0 0
Findings anchor-snapped 0 0

Adversarial hard gate: PASSED on the candidate arm.

Agent failures

  • incident-cache-missing-key: claim-validator: malformed output: Expected property name or '}' in JSON at position 1 (line 1 column 2) failed

Single-run-stable rows: recall, verdict agreement, regressions, adversarial gate. Judge quality and noise are not: they jitter run-to-run at this corpus size, and a regressed reviewer can score HIGHER on judge quality (fewer, surer comments each read better). Recall against the labeled specs is the load-bearing metric.

Measured noise floor (identical arms, run 29069228968, 2026-07-10, 6 arm-samples, full corpus x3, pre-arbiter; budget skips left the samples on unequal case sets, so these v1 bands also carry case-mix variance): must-catch recall 54%-86% (sd 10%), verdict agreement 75%-100% (sd 9%), noise (unmatched posted) 50%-60% (sd 3%), judge mean quality 82%-86% (sd 2%). A single-run delta whose arms both sit inside a band is indistinguishable from run-to-run wobble; use --repeats to resolve smaller effects.

@github-actions

This comment has been minimized.

Comment thread workflows/review/review.md Outdated
materially amplify is at most a `note (non-blocking)`, never blocking; the
orchestrator also enforces this positionally (a finding not anchored on an
added/modified diff line cannot block).
was removed). Put that call in the `discussion` prose itself, in plain words the

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.

suggestion (non-blocking): This rule enforces the introduce-vs-amplify clause through prose compliance alone — the Finding type in workflows/review/lib/finding-schema.ts has no provenance field to anchor it. That schema already contains a precedent for the more robust move: rule_quote is a structured field the renderer surfaces mechanically into the comment, for the same author-visibility reason. Consider a provenance enum (introduced | pre-existing-amplified | mixed) rendered into a fixed clause, so the validator checks a field instead of sniffing prose. Non-blocking — the prose rule is a reasonable increment; this is just the more durable end state.

@github-actions

Copy link
Copy Markdown
Contributor

Review Guidance

github-actions (1 file)
File Reason
review.md The shared PR-reviewer prompt used by every consuming repo; changes here alter reviewer behavior everywhere, so even a prose-only wording change deserves careful reading.
Excluded from review (1 file)

Not individually reviewed — generated, formatting-only, or fully explained by a common pattern above:

  • .changeset/review-provenance-label.md — pattern-only

"pre-existing; this change amplifies it by removing the guard" — not only in a
structured field or implied by the description of the mechanism. This includes the
boundary case where the enabling mechanism predates the diff but the defect is new
(a changed line drops the guard that made a pre-existing default safe): name the

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.

question (non-blocking): Guard removal appears both as the amplification example (line 1609, "a guard in front of it was removed") and, here, as the "introduced" boundary case ("a changed line drops the guard that made a pre-existing default safe"). The discriminator — whether the defect could already occur pre-diff (amplify) vs. was previously fully prevented (introduce) — is implicit, not stated as an explicit tiebreaker keyed on the shared "guard removed" phrasing. Since the claim-validator's confirm gate makes the classification consequential, a finder and the validator could plausibly classify the same guard-removal scenario oppositely. Worth one sentence stating the tiebreaker.

@jwbron jwbron changed the base branch from jwies/review-budget-cap to main July 13, 2026 19:34
@jwbron jwbron force-pushed the jwies/review-provenance-label branch from 2296f3e to 10e3940 Compare July 13, 2026 19:36
@jwbron jwbron merged commit adb052f into main Jul 13, 2026
10 checks passed
@jwbron jwbron deleted the jwies/review-provenance-label branch July 13, 2026 20:15
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.

2 participants