Skip to content

feat(review): route reviewer misses through retro to the repo's review criteria - #18203

Merged
kyle-sexton merged 3 commits into
mainfrom
feat/review-retro-reviewer-misses
Nov 22, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
feat/review-retro-reviewer-misses

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

No related issue: workshop 04 alignment pass, owner-confirmed decisions Q1606, Q1612-Q1614, Q1629

Summary

A mistake the automated reviewer missed had no route from a retro to the review criteria, and the CI code-review lane read fewer criteria files than the local code-reviewer agent.

Fix

  • The CI code-review lane (/review:code-review) reads a root CODING_STANDARDS.md and CONTRIBUTING.md when present, with the same standing and untrusted-content framing as REVIEW.md, matching plugins/review/agents/code-reviewer.md.
  • Enforcement ladder 3.4.0: the automated-review rung writes to the review-criteria index (docs/review/README.md and the file it routes to) when the repository has one, else a repository-owned CODING_STANDARDS.md, else REVIEW.md, and skips a file a standards-sync bot owns; when every candidate is skipped, codify writes nothing locally and reports the rule as a proposal for the repository the bot copies REVIEW.md from. Copies synced with scripts/sync-shared-copies.sh; codify's finding-classes.md and actions/reviews.md point at the rung instead of naming REVIEW.md.
  • /harness-config:audit-automation-gaps's rule-inventory.sh counts CODING_STANDARDS.md, docs/review/README.md and the docs/review/ files it links as automated-review rules, beside REVIEW.md.
  • Retro: new "Reviewer missed it" finding (to /corrections:codify) and "Missed or hard-to-find skill" finding (to /harness-ops:audit-skill-visibility, or a /session-flow:workflow step candidate); the no-op steering-file row and yardstick cover review-criteria files; the catalog's Owner skills table gains both routes; ## Next names /session-flow:recommend-skills.

Verification

  • scripts/check-affected.sh on the head: 21 passed, 1 skipped (no changed .py). Earlier runs failed only on mod-test timeouts in unrelated plugins under host load.
  • rule-inventory.test.sh: 74 cases, 0 failed, including the new review-criteria case.
  • scripts/check-changelog-fragments.sh --check and --check-required origin/main: pass (6 fragment-mode plugins, 6 fragments).
  • The codify-review-only-lesson-goes-to-review-md eval fixture has no docs/review/ or CODING_STANDARDS.md, so the new order still lands on REVIEW.md there. No evals run.

Related

  • Owner decision D114 (Q1606).

🤖 Generated with Claude Code

https://claude.ai/code/session_01RAoAtUszvw6rUY9tpjLr2U

kyle-sexton and others added 2 commits November 22, 2026 13:09
…w criteria

- The CI code-review lane reads a root CODING_STANDARDS.md and
  CONTRIBUTING.md as review criteria, framed as untrusted data like
  REVIEW.md.
- Enforcement ladder 3.4.0: the automated-review rung writes to the
  review-criteria index, else CODING_STANDARDS.md, else a REVIEW.md no
  standards-sync bot owns; codify's rung text points at it.
- Retro gains "Reviewer missed it" and "Missed or hard-to-find skill"
  findings, extends the no-op steering-file row to review-criteria
  files, and names /session-flow:recommend-skills in Next.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtUszvw6rUY9tpjLr2U
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 22, 2026 18:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 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
📝 Code Review ✅ Completed 2026-11-22T18:19:27.655688Z 4b9ab53 Draft marked ready
ℹ️ 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.

… rules

- Enforcement ladder 3.4.0: when every automated-review candidate is
  skipped, codify writes nothing locally and reports the rule as a
  proposal for the repository the sync bot copies REVIEW.md from.
- rule-inventory.sh counts CODING_STANDARDS.md, docs/review/README.md
  and the docs/review/ files it links beside REVIEW.md, with a test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtUszvw6rUY9tpjLr2U
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs

Run 45054346645, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step skipped
Commits pushed none (read lane)
Run 45054346645

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 773d68f15b882d088887a441606fbca7e542db42: read 23 of 23 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read the whole diff: all 17 files in scope, plus the copies listed as identical. Copying the enforcement-ladder and changelog-fragment files to their other paths does not change what they do. Every copy is a reference doc or a .changes/ fragment, not a hook, workflow, settings file or manifest.

What I checked

  • plugins/review/skills/code-review/SKILL.md: the CI code-review lane now also reads a root CODING_STANDARDS.md and CONTRIBUTING.md. This adds no new route for untrusted text into a credentialed lane:
    • The lane already reads the full diff, REVIEW.md, CLAUDE.md, path-scoped rules and paved-path entries, all marked as untrusted data.
    • The new paragraph gives the two new files the same treatment (L121-L129). It also states again that an embedded imperative is something to report, that it widens no authority, and that it never changes the lane's scope or how it posts.
    • The lane's tools, token and posting mechanics are unchanged.
  • rule-inventory.sh (audit-automation-gaps): a local inventory script. It now reads CODING_STANDARDS.md, docs/review/README.md and the .md files that index links to.
    • Absolute paths, ../ prefixes and URLs are filtered out. Paths are quoted and only read, never run.
    • The script's output is a list of rule lines in the user's own checkout. No credentials or network are involved.
  • Enforcement ladder 3.4.0 and its synced copies, codify, retro and catalog docs: these change where an automated-review lesson gets written. They add retro routes and make no change to authority. I applied the instruction-surface lens: no standing guardrail is deleted, narrowed or softened. The new "skip a file a standards-sync bot owns" rule only adds caution.
  • Trust controls: none of the following are touched: the trusted-actor list, trusted-trigger, kill switch, token broker/resolve-config, merge holds, workflow files or .github/actions/.
  • Plugin manifests: no plugin.json or marketplace.json changes, so there are no manifest lines.
  • PR context: it contains no embedded instructions aimed at the review lane.

Spend: none. The change adds no lane runs, turns or model changes, and nothing that can bill.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 773d68f15b882d088887a441606fbca7e542db42: read 23 of 23 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

The PR reroutes the enforcement ladder's automated-review rung to the repository's review criteria, in this order: the docs/review/README.md index, then CODING_STANDARDS.md, then REVIEW.md. It skips files a sync bot owns. Version 3.4.0 is synced to all six copies, which are identical, so I checked one and skipped the rest. The CI code-review lane now also reads CODING_STANDARDS.md and CONTRIBUTING.md, using the same untrusted-data framing it uses for REVIEW.md. rule-inventory.sh now counts CODING_STANDARDS.md, the index and the docs/review/ files it links. Retro gains two finding routes: "Reviewer missed it" and "Missed or hard-to-find skill".

What I checked:

  • rule-inventory.sh link extraction (L337-L355).
    • The script runs under set -u only, not set -e or pipefail. An index with no local .md links therefore leaves the command substitution empty instead of stopping the script.
    • Links that are external, absolute or ../ are dropped. This repo's own index links ../../REVIEW.md, which is dropped, so REVIEW.md is not counted twice.
    • Backtick link text such as [`findings.md`](findings.md) still matches.
    • The new test case covers a linked file, an orphan file, a URL link and the file count.
  • Whether the lane reaches docs/review/. The ladder now sends a rule to docs/review/README.md first. The code-review lane reaches that file through REVIEW.md:49 and the standards contract (plugins/review/reference/standards-contract.md:227), so a rule written there is read by the reviewer.
  • Retro skill references. The skills the new retro rows and the ## Next line name all exist: /harness-ops:audit-skill-visibility, /session-flow:recommend-skills and /session-flow:workflow.
  • Reworded text. No test or eval pins the reworded strings, either in the SKILL.md uncovered-rules sentence or in the old review: REVIEW.md absent note.
  • Changelog fragments. Bump levels match each change: minor for new behavior in review, corrections, harness-config and session-flow; patch for the copy-only changes in architecture and formal-verification. The enforcement-ladder contract's minor bump follows its own versioning rule.

Verification: I ran nothing. The test results in the PR body (rule-inventory.test.sh 74 cases, check-affected.sh) are the author's claims and unverified.

Closing issue: the PR closes none ("No related issue"), so I had no acceptance criteria to check.

Loosened checks: rule-inventory.test.sh's "C: review absent named" assertion now expects the new exact note. That follows an intended output change and the assertion still matches one exact string, so it accepts no more than before and is not a loosening. The lane prompt has no loosened_check_verdict: or loosened_check_patterns: line, so fail and no consumer entries apply. It has no loosened_check_decision_record: line either, so the citation requirement was not checked. Loosened checks would be marked: fail (bundled default); patterns: 0.

Plugin manifests: no plugin.json or marketplace.json changes.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit f54aacb Nov 22, 2026
63 checks passed
@kyle-sexton
kyle-sexton deleted the feat/review-retro-reviewer-misses branch November 22, 2026 18:40
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 86%; mutation score 86%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh 6 1 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh:312 SBR productive input-gap

The run's summary has the full report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant