Skip to content

docs(skills): give each parallel reviewer its own lens, and merge their findings in one ledger - #286

Open
schiller-manuel wants to merge 2 commits into
docs/review-triggersfrom
docs/review-lenses
Open

schiller-manuel wants to merge 2 commits into
docs/review-triggersfrom
docs/review-lenses

Conversation

@schiller-manuel

@schiller-manuel schiller-manuel commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #265 (docs/review-triggers). It edits the step 10 that #265 adds to oracles-design, so its base is that branch. Once #265 merges, retarget this PR to main.

A downstream project ran three subagents with oracles-review on the same task, as the skills suggest. They reported 52 items, and 19 of them were duplicates across reviewers: all three reported a stale law block, holes in the grammar, some dead code, and a changed result set. The overlap was useful as confirmation, but it doubled the evaluator's work on the ledger.

What changed

  • oracles-review, new section "With one lens" (before §1). This is the one home of the three lenses. Each lens names the sections a reviewer starts from and the work that lens adds:

    • Enforcement (§1, §3): does the oracle enforce its law? Write wrong implementations of the owned code by hand, the ones a plausible bug would produce and the gap check would not, and run the oracle on each. Check each law's calibration.
    • The law (§1, §4): is it the right law? Follow each authority to its source, and read the source of the real callers to see what they rely on.
    • The evidence (§2): did each production change carry the evidence of oracles-design step 7? Replay the oracle on the parent of every commit that changes production, and on the commit itself.

    A reviewer works through its lens's sections first, then the rest of the skill, reports anything else it finds too, and names its lens at the top of the report.

  • oracles-design step 10, item 1 (from docs(skills): trigger the independent review where work ends #265): give each reviewer a different lens from oracles-review ("With one lens"), by name. The definitions are not repeated here.

  • oracles-explore step 6: the review offer now says "each with its own lens" and still points to design step 10, so explore repeats nothing either.

  • oracles-evaluate-review §1: how to merge several reviews into one ledger. IDs are prefixed by reviewer, and every raw item is kept. The first report of a claim is the one judged, the others are marked duplicate with a link, and the first item records which reviewers reported it. That count is confirmation and can order the work, but it is not evidence, so §5 still decides whether the claim is true. This fits the existing rules: "Do not merge overlapping items. Cross-reference them", the duplicate disposition, and the totals check in §7.

Evidence

Docs only, no behavior change, so there is no changeset.

Field evidence. The downstream project ran a second review round with one lens per reviewer, as this PR describes, on the same kind of task:

Round Reviewers Items Duplicates across reviewers
1, same prompt for all 3 52 19
2, one lens each 3 30 about 2

Each lens also found a regression that the other two missed, and all three had passed the oracle, the gap check and the ordinary tests:

  • enforcement: a kept class reads a name that the change removed;
  • the law: a transform that rebuilds a declarator around its own id leaves a dangling read;
  • the evidence: a workflow that should change nothing removes a rest cycle.

In the repository.

  • Before (origin/docs/review-triggers, 03cf95a): git grep -i lens -- packages/oracles/skills finds nothing, and neither does git grep 'With several reviewers'. Step 10 starts "a few subagents" with the same brief and no division of the work, oracles-review says nothing about a reviewer with a narrower brief, and §1 of oracles-evaluate-review has no rule for several reviews.
  • After (this branch, 49661b4): git grep -n -i lens -- packages/oracles/skills finds the definitions only in oracles-review 21 to 40, and references to them in design 687 and explore 670.
  • pnpm run build, lint:check and format:check pass at the root.

Overlap

I checked the branch with git merge-tree against every open PR that touches the SKILL.md of oracles-design, oracles-explore, oracles-review or oracles-evaluate-review, and it merges cleanly with all of them: #70, #212 to #215, #217, #220 to #222, #226, #227, #230, #231, #234 to #236, #239, #241, #247 to #253, #255 to #257, #262 to #264, #267 to #272, #274, #276, #277, #280, #285, #287, #294, #299, #301 and #302.

Limits

  • The three lenses split the review's work. They do not keep reviewers out of each other's areas, so some duplicates will remain, and they are useful as confirmation.
  • With fewer than three reviewers, the text does not say which lens to drop.
  • The field evidence is one project and one pair of rounds. Round 2 ran after fix rounds, on a later state of the work, so the two rounds are not a controlled comparison.

For approval

  • The lenses are defined once, in oracles-review, and assigned by name from design step 10. Is oracles-review the right home, or should the definitions stay in design step 10, with oracles-review only saying how to work with one?

🤖 Generated with Claude Code

…ir findings in one ledger

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f0320984-76d2-45ab-b861-de8907214592

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@changeset-bot

changeset-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 49661b4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-25T12:46:58.750613Z 3341a84 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/TanStack/oracles/@tanstack/eslint-plugin-oracles@286
npm i https://pkg.pr.new/TanStack/oracles/@tanstack/oracles@286

commit: 49661b4

…m from explore

The three lenses now live in one place, a "With one lens" section of
oracles-review, which says how a reviewer given a lens works: it starts
from its lens's sections and still reports anything else it finds.
oracles-design step 10 assigns them by name, and oracles-explore step 6
points to step 10 when it starts reviewers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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