Skip to content

Review-loop skills disagree with each other and stop short of decisions the loop needs #1164

Open

Description

@ptr727

The canonical-review gate added in #1148 forced the first whole-text read of the review-loop skills merged in #1109 and #1125, on the develop -> main promotion PR #1163. Eight units were read whole. The wrong-command and false-claim defects were fixed in that promotion's own feature PR. The items below are the ones that need a decision rather than a wording correction, so they are recorded here rather than guessed at.

The rules disagree with each other

  • When the class sweep is owed. agent-conduct binds it on the first occurrence ("A review flags an instance, so fix the class: sweep for the siblings before replying, because reviewers sample rather than enumerate"), and GOVERNANCE.md "Verification Discipline" says the same. pr-review-conduct outcome 5 makes it conditional on a finding that "keeps recurring". An agent holding only the five outcomes fixes the instance and replies.
  • What local-strict-review's pass binds. It says the pass runs "before the pull request opens" and, under outcome 1, "before any fix push". GOVERNANCE.md binds every push toward a pull request, and agent-conduct says "Every push toward a pull request owes one". A push answering outcome 4 or 5, a rebase, or a CI-only push is exempted in one place and not the other.

Rules that stop short of a decision

  • A terminal review decline versus the Merge Gate. pr-review-conduct says a decline "is terminal the other way. Nothing follows it", while the Merge Gate requires a review confirmed on the current head SHA, which a terminal decline can then never satisfy. pr_review.py exit 46 carries the missing route (proceed on the coverage other reviewers give); the skill carries none.
  • Who may resolve a declined thread. Outcome 2 says "Either shape closes the thread on its own evidence", while the loop's step 7 says "resolve what was addressed", and a decline is not addressed. Whether the agent may resolve its own evidence-backed decline is unstated, and it recurs every review round.
  • Which repository outcome 4 files in. "File the issue first, then reply with its link" names no repository. For a finding against carried content the fix belongs at the hub, so followed literally in a carrier the deferral is filed where the fix cannot land.

Completeness

  • agent-conduct "Before Claiming Done" lists 11 checks where the source section has about 20, and the dropped ones include two that fire at exactly that moment: "A workflow change is only fully exercised by CI" and "A test runner failing to spawn is not evidence that no test coverage applies here." The list reads as the complete claim-time set.
  • GOVERNANCE.md "Durable Knowledge and Self-Improvement" omits GOVERNANCE.md and .agents/skills/ from where a durable rule belongs, listing AGENTS.md, CODESTYLE.md, WORKFLOW.md and a committed backlog. AGENTS.md designates GOVERNANCE.md as the file holding rule text and forbids restating rules in AGENTS.md, so following this bullet literally puts a new cross-cutting rule where AGENTS.md says it must not go.
  • GOVERNANCE.md's upstream-proposal remedy names no upstream and no mechanism, and in the hub itself its precondition never holds, so the section's only remedy sentence is inert in the repository that owns it. Its own skill summary carries a stricter rule the section does not: search open and closed issues first, then update the matching issue or file a new one.

Permission surface

  • drive-pr's Drive Loop prescribes opening a pull request, squash-merging it, and deleting a remote branch, three outward-facing and hard-to-reverse writes, with no permission gate stated in that section. The authorization lives in a separate section of the same skill. A reader who reaches the loop directly is told to perform all three unconditionally.

Worked examples a carrier cannot check

GOVERNANCE.md "Durable Knowledge and Self-Improvement" is carried verbatim and grounds its three-condition test on gh-write-guard and the hub's .husky/pre-push. A carrier holds neither artifact and gets no pointer to either, so the reader who most needs the worked example is the one who cannot check it.

Method note

Every item above was found by reading one unit's whole current text rather than a diff of it, which is what #1138 predicted and what the gate in #1148 now forces at the promotion. The eight units are recorded in reports/canonical-review.json with their finding counts.

Activity

  1. ptr727 commented on Sep 1, 2026

    @ptr727
    OwnerAuthor

    One more from the verification pass over the fixed text, same category as the rest here.

    The gh-write-guard worked example claims decidability the hook itself declines. GOVERNANCE.md "Durable Knowledge and Self-Improvement" grounds its three-condition test on a worktree-isolation lapse, saying "is this command's target a primary checkout" is a plain directory comparison and so was promoted to a hook rule. host-setup/agent-safety/README.md says of that same requirement that the incident's own literal commands are deliberately exempt, and that "The concurrent-access hazard those commands still carried ... is not decidable from the command text alone, so it stays the prose rule's job." What was actually promoted is the blanket-add class, not the shape the worked example names. The section is carried verbatim, so every repository receives the example and none but the hub can check it against the hook.

  2. ptr727 commented on Sep 1, 2026

    @ptr727
    OwnerAuthor

    Two more from the second verification pass, both needing a decision rather than a wording fix.

    A suppressed finding has no verdict for outcomes 3 and 4. pr-review-conduct "Answering a suppressed finding" says to "give one bold verdict per finding (`Fixed in `, `Disproven`, or `No change needed`)", presented as exhaustive. Those three cover outcomes 1 and 2 only. A suppressed finding deferred behind a filed issue (outcome 4) or put to the maintainer (outcome 3) has no verdict to give, and, having no thread, no place to carry the issue link instead.

    local-strict-review's stated cross-checkout hazard is not the real one. "The Carried-Content Pass" says "Point an engine in one checkout at another checkout's tree and the second is measured with the first's unit model, while `record` stamps the ledger with a commit read from the second." Every command path resolves its root from the working directory (local_review.repo_root(), git rev-parse --show-toplevel); ROOT = Path(__file__) is used only for sys.path and two path constants. So the manifest, the tracked-file set and the ledger all come from the measured checkout. Pointed at a non-hub tree the engine refuses outright, exit 2, "this working tree holds no spec/files.json". The warning is worth keeping if there is a real hazard behind it, but as written it describes a mechanism the code does not have.

    Also worth recording: the manifest carries no .husky/ entry in trees or baseline, and parity.hooks checks only .husky/pre-commit / .pre-commit-config.yaml. Four carried units now say a repository has no pre-push hook "unless it adds one", which is accurate, but nothing in the fleet mechanism would ever carry one, so whether the pre-push gate is meant to reach downstream at all is an open question.

  3. ptr727 commented on Sep 1, 2026

    @ptr727
    OwnerAuthor

    One policy question raised on #1165, recorded here rather than decided there.

    Whether the agent should delete a remote feature branch at all. drive-pr's post-merge cleanup verifies the remote ref still matches the captured headRefOid, then deletes by name. That is a genuine time-of-check-to-time-of-use window: a concurrent push between the two operations would let the name-based delete remove a newer commit. The skill already names the trade and declines the atomic form, "Never --force-with-lease here, git-commit-conventions forbids it unconditionally, this plain verify-then-delete is the safety gate, not a compare-and-swap at delete time", and there is no other atomic option, since git push --delete matches by name and the REST ref delete takes no SHA precondition.

    So the choice is between keeping the narrow window with the verify in front of it, or stopping after the merge and leaving the remote branch for an explicit maintainer operation. The second is what a reviewer proposed. Either is defensible and it is a fleet policy call rather than a wording fix, which is why it is here.

  4. ptr727 commented on Sep 1, 2026

    @ptr727
    OwnerAuthor

    Two more in GOVERNANCE.md "Durable Knowledge and Self-Improvement", from a canonical pass over that unit's post-merge text on PR #1157. Both are in the same bullet your "Completeness" section already covers, so they belong here rather than in a new issue.

    The named fix cannot fix the named problem

    A skill's own trigger going unread by the session at all, by contrast, is a loading problem, fixed by getting the rule into context (the CLAUDE.md importing AGENTS.md), not by a hook.

    A CLAUDE.md that imports AGENTS.md loads the instruction files. It loads no Skill. A Skill's trigger goes unread when the machine's Skills install is missing or stale, which AGENTS.md states directly, "A rule that keeps needing to be restated is a sign the install is missing or stale, not that the rule does not exist", and which is fixed by running the hub's scripts/skills_install.py.

    A carrier whose skill never fires follows this sentence, confirms its CLAUDE.md import is present and correct, concludes the rule is loaded, and never touches the actual stale install, so the skill still never fires. The bullet is the fleet's own worked example of when prose beats a hook, and its counterexample points at the wrong remedy.

    "it was promoted" attaches to the lapse rather than the rule

    A worktree-isolation lapse met all three (...), so it was promoted to a gh-write-guard hook rule.

    The trailing "it" attaches to "A worktree-isolation lapse", the only available noun, but a lapse is not what a hook encodes. What was promoted is the worktree-isolation rule. The bullet's subject everywhere else is "a durable rule", so the one sentence a reader uses to calibrate the three conditions is the one where the promoted object is the failure rather than the rule, inviting the reading that a hook is built per incident rather than per rule.

    Already settled, for the record

    Your "Completeness" item about this bullet's list omitting GOVERNANCE.md is fixed on develop: #1163 wrote "GOVERNANCE.md for a cross-cutting rule, AGENTS.md, CODESTYLE.md, WORKFLOW.md, or a committed backlog the repository already keeps". PR #1157 hit the same omission independently and its merge kept your wording, which is the more precise of the two. The .agents/skills/ half of that item is untouched and is a model question rather than an omission, since the fleet's model is that GOVERNANCE.md holds rule text and Skills package it.

  5. added
    decision
    on Sep 5, 2026
  6. ptr727 commented on Sep 11, 2026

    @ptr727
    OwnerAuthor

    Answered by the maintainer on 2026-09-11, for item N only (the post-merge remote branch deletion): keep the verify-then-delete step. The drive confirms the remote branch tip still equals the merged head and only then deletes it, which is what this session did for #1547. Deletion does not become a separate maintainer operation. The decision label stays, since the issue's other sub-decisions are still open.

  7. ptr727 commented on Sep 15, 2026

    @ptr727
    OwnerAuthor

    Disposition (ptr727, 2026-09-15, put from the #1631 session's handoff): fold into the PR that lands #1631 decision item 1 (one local diff pass per push, the whole-unit canonical pass moved to a scheduled sweep), since that PR rewrites what the local pass binds. The other four disagreements listed here are settled in that PR's review, so this issue keeps the decision label until they are answered there.

  8. ptr727 commented on Sep 17, 2026

    @ptr727
    OwnerAuthor

    Answered in #1649, merged to develop as 91e0fd2, which is where the 2026-09-15 disposition on this issue sent the five review-loop disagreements.

    • When the class sweep is owed. Outcome 1 now carries it, owed on a finding's first instance, with outcome 5 retitled as the escalation reached after the sweep ran and the finding came back. pr-review-conduct and drive-pr both changed, and GOVERNANCE.md "Verification Discipline" was already the rule they route to.
    • What the local pass binds. Every push the loop makes, whatever finding it answers. A re-push of content a recorded pass already covers owes none, and rebasing onto a target that has moved retires the receipt although no file changed, since its key holds the fork point as well as the content. That last clause was itself a defect found during the drive: the first wording said a rebase keeps the receipt valid unconditionally, which the engine contradicts.
    • A terminal decline versus the Merge Gate. The item stays unsatisfied rather than waived, and goes to the maintainer with the other reviewers' coverage read and named, their permission under item 5 being what allows the merge. pr_review.py wait exit 46 is that state, 47 is the same account state reached from an earlier round, and 41 holding across several heads with no cause its body names reaches it the slower way. status exits 0 over a refusal and carries it as refusal= instead, so reading that exit code as the absence of one would falsely satisfy the item.
    • Who may resolve a declined thread. The agent resolves its own decline where the evidence is checkable by anyone, a command and its output, the code path, a quoted rule, a byte-identical diff, and never for an outcome 3 value call, whose thread stays open until the maintainer answers. This writes down the precedent set on the validate-task.yml's shell lint step: shfmt is documented fleet law but unenforced, and the *.sh glob misses extensionless scripts #950 chain and ends a lapse that recurred across four sessions because nothing mechanical settled it.
    • Which repository outcome 4 files in. The one where the fix has to land, which for carried content is the authoring repository rather than the carrier.

    Removing the decision label. The issue stays open for the items recorded in its later comments that #1649 did not reach, including the gh-write-guard worked example claiming decidability the hook declines, the suppressed-finding verdict vocabulary covering outcomes 1 and 2 only, and whether the fleet's pre-push gate is meant to reach downstream at all.

  9. removed
    decision
    on Sep 17, 2026
  10. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Decision triage split the undecided item out of this issue into #3743, which carries the decision label. Everything else here stays as ordinary work an agent can do without the maintainer.

  11. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Maintainer answer to the split decision #3743 (decision triage, 2026-11-01): Option 1: keep the pre-push local-review gate hub-only, and record that as the decision. Downstream merges stay gated by the published attestation.

  12. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Maintainer answer (backlog-burndown run, 2026-11-01): where the review-loop skills contradict each other (class-sweep timing, pass scope, decline versus the Merge Gate), pr-review-conduct is the authority. The other skills are brought into line with it. The hub-only pre-push gate answer recorded above, from #3743, still stands. This issue now counts as ordinary work and will be ranked in a later round.

  13. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-24): PR #4414 merged to develop at cec1025; branch and worktree cleaned up, so this claim holds no files. #1164 stays open for its GOVERNANCE.md items.

    Backlog burndown claim (away run 2026-11-24, round 3, refill): branch burndown/review-loop-skill-realign, issue #1164, its review-loop skill items only.

    Per the maintainer's answer of 2026-11-01: where the review-loop skills disagree, pr-review-conduct is the authority, and the others are brought into line with it.

    Predicted files:

    • .agents/skills/drive-pr/SKILL.md, "The Drive Loop": the steps that open the pull request, merge it, and delete the remote branch, tied to "What Invoking This Skill Authorizes" (the permission-surface item). The verify-then-delete step stays, per the answer of 2026-09-11.
    • .agents/skills/local-strict-review/SKILL.md, only where it still disagrees with pr-review-conduct on class-sweep timing, pass scope, or a decline versus the Merge Gate.
    • .agents/skills/pr-review-conduct/SKILL.md, the authority, edited only where an item needs its own text. drive-pr carries its outcomes section as a generated include.
    • The generated trees .github/skills/ and .claude-plugin/ follow from scripts/build_dist.py.

    Not in this claim: the GOVERNANCE.md "Durable Knowledge and Self-Improvement" items (the upstream-proposal remedy, the worked examples a carrier cannot check, the gh-write-guard decidability example, and the "it was promoted" antecedent). GOVERNANCE.md is held by the parked group on #1727, so those items wait for a later group. The pull request closes nothing, and this issue stays open for them.

    Any other group needing one of these files waits for this branch to merge.

  14. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    Item status (away-mode backlog burndown, 2026-11-24), re-checked against develop at a117294. Per the maintainer's 2026-11-01 answer, pr-review-conduct is the authority where the review-loop skills disagree.

    Fixed in #4414 (skill side, live until now)

    • Permission surface, drive-pr "The Drive Loop". "What Invoking This Skill Authorizes" named only the feature -> develop squash merge. It now also names opening each pull request and the verified remote branch delete cleanup runs after each feature -> develop merge, a peer's merge included. Step 4 now says its merge and remote branch delete run only on that go-ahead. The verify-then-delete step stays in the drive, per the 2026-09-11 answer.
    • Pass scope, local-strict-review "When to Run It". The list named only the opening push and a fix push, where pr-review-conduct "Expected review loop" binds every push the loop makes. The second moment now routes to that rule.

    Already true on develop, with evidence

    • When the class sweep is owed. pr-review-conduct outcome 1 reads "That sweep is owed the first time the finding is raised, not once it recurs" (around line 418). drive-pr "Disposing of Every Finding" carries that section as a generated include, and build_dist.py --check passes.
    • What the local pass binds. pr-review-conduct "Expected review loop" (line 360) reads "Run local-strict-review against the branch's current diff before every push this loop makes", and adds that rebasing onto a target that has moved retires the receipt. local-strict-review "Recording the Pass" says the same. Its "When to Run It" list was the one place still narrower, fixed above.
    • A terminal decline versus the Merge Gate. Merge Gate item 2 sends the unsatisfied item to the maintainer with the other reviewers' coverage read and named, and reads "Item 2 is never waived" (line 128).
    • Who may resolve a declined thread. Outcome 2 reads "the agent resolves such a thread itself rather than leaving it for the maintainer", where the evidence is checkable by anyone (line 434). Loop step 7 says the same.
    • Which repository outcome 4 files in. Outcome 4 reads "An issue goes in the repository where the fix has to land", the authoring repository for carried content (line 522).
    • agent-conduct "Before Claiming Done" completeness. agent-conduct carries GOVERNANCE.md "Verification Discipline" whole as a generated include (line 31). Both checks named here are in it: "A workflow change is only fully exercised by CI" and "A test runner failing to spawn is not evidence...".
    • Suppressed-finding verdicts. pr-review-conduct "Answering a suppressed finding" lists six verdicts: Fixed in <SHA>, Disproven, No change needed, Deferred to <issue>, Listed in the body, and Awaiting maintainer (line 574).
    • local-strict-review's cross-checkout hazard. "The Carried-Content Sweep" now says each command resolves the repository from the working directory. It says the unit model and manifest reader come from the script's own checkout, so run them in the tree being measured (line 150).
    • The CLAUDE.md named-fix sentence. GOVERNANCE.md "Durable Knowledge and Self-Improvement" now reads "the session loading AGENTS.md at start".
    • Whether the pre-push gate reaches downstream. The answer to Decide: Should the hub's .husky/pre-push local-review gate (scripts/local_review.py check) be carried to downstream fleet repositories, given four carried units say a repository has no pre-push hook "unle? #3743 keeps it hub-only. local-strict-review "Recording the Pass" reads "the hub's own .husky/pre-push hook being the only one today. A repository has none unless it adds one, since no manifest entry carries it." drive-pr step 2 reads "a repository has one only if it adds one". Two sentences still read "until one is carried to it": pr-review-conduct line 360 and local-strict-review line 180. They are conditional rather than false, so this change leaves them alone.
    • GOVERNANCE.md omitting itself from where a durable rule belongs. Settled earlier, per the 2026-09-01 comment above.

    Waiting on GOVERNANCE.md "Durable Knowledge and Self-Improvement"

    These stay open on this issue for a later change to that file.

    • The upstream-proposal remedy, which names no upstream and no mechanism and is inert in the hub.
    • The worked examples a carrier cannot check (gh-write-guard, the hub's .husky/pre-push).
    • The gh-write-guard decidability example. It may now be true, since the guard denies a mutating git operation against a primary checkout. That needs a re-check against the hook when the file is next edited.
    • The "it was promoted" antecedent, which attaches to the lapse rather than the rule.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions