Skip to content

feat(review): link, don't restate a value another doc already holds - #112

Merged
pasrom merged 1 commit into
mainfrom
feat/review-link-dont-restate
Nov 27, 2026
Merged

pasrom merged 1 commit into
mainfrom
feat/review-link-dont-restate

Conversation

@pasrom

@pasrom pasrom commented Nov 27, 2026

Copy link
Copy Markdown
Owner

A value, part number, pin assignment or limit that already has a home (the brain's CONVENTIONS section on where facts live, a source outside the brain, or the accepted doc on the item) tends to be restated in several docs, where copies can drift apart. This adds a review rule for it.

Changes (skills/km/reference/review-and-pr.md)

  • New sub-bullets in step 3, "link, don't restate":
    • Finding the home: by precedence, searched with km search, item names and identifiers first, then values. Shared resources and cited files are read directly. A home that cannot be read is reported as "not compared" and never blocks.
    • Two figures for the same item, quantity and condition that disagree: blocking, as "the two disagree, one must change" with both file and line.
    • A matching restated figure: a non-blocking request to link it. Customer-audience docs are exempt from the request.
    • A retold page without supersedes:, translates:, sources:, related: or a link: blocking.
    • Records of a moment (decision, transcript, a dated state report): may quote the figures they were based on. artifact and verbatim-block get no link request but keep the disagreement check.
    • Each such finding ends with (origin: ...): firmware, datasheet, measurement, customer document, other or unknown, so restatements can be counted by where their home is.
  • Contradictions bullet: it now searches with km search and points records of a moment to the rule.
  • Step 4: the blocking and non-blocking lists are updated. A matching restated figure is always reported.
  • SKILL.md: unchanged.

Eval: new case review-restated-value

  • Fixture: an accepted home doc with 3.5 A and 85 °C, a note in review that repeats 3.5 A correctly and gives 95 °C, and a decision quoting 3.2 A from an old offer.
  • Graders:
    • the disagreement is blocking and both files are named;
    • the match is a non-blocking link request;
    • the decision is not blocked for its figure;
    • the home is cited with file and line;
    • the origin tag is present;
    • km search ran;
    • the reference file was read.
Case With plugin Without plugin Runs each
review-restated-value 0.95 0.48 3
review-restated-value, after a grader fix 1.00 3
review-doc 1.00 3
pr 1.00 3
  • Where the lift comes from: the method graders, not the content graders. The base model already flags the disagreement, asks to link the match and leaves the decision alone, helped by the fixture's "never duplicate content" convention. The rule adds the use of km search and file:line citations of the home, the origin tag, and the reference read. So the content graders guard against regressions, and the method graders show the lift.
  • The one failing "with" run: the reply was correct, but the judge took a blocking finding about another claim that mentions 3.5 A as blocking the match. The grader now says such a finding does not count. The rerun of 3 scored 1.00.

Tests

All smoke suites pass, and skill_smoke holds SKILL.md at 11992 bytes.

Review

One serial reviewer pass. Its 16 findings are fixed:

  • the dated-note exemption, which covered every doc;
  • the home precedence;
  • artifact and verbatim-block;
  • the unreadable home;
  • the retold-page definition;
  • the step 4 wording;
  • the origin tag format;
  • the grader criteria;
  • the README.

The review checklist now finds the home of each value, part number, pin assignment or limit a doc states (the place CONVENTIONS.md names, else the source outside the brain, else the accepted doc on the item) with km search on the item's name, then its values. Two figures for the same item that disagree are blocking, a matching unlinked one is a non-blocking request to link it, a retold page without a link is blocking, and a decision or transcript may quote the figures it was based on. Each such finding carries an origin tag. The eval case review-restated-value covers the disagreeing, the matching and the decision case.
@pasrom
pasrom merged commit d7e20fc into main Nov 27, 2026
5 checks passed
@pasrom pasrom mentioned this pull request Nov 27, 2026
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