Skip to content

Promote Develop to Main: Auto-Mode Allow-Rule Spelling for pr_review.py Calls - #4237

Merged
ptr727 merged 2 commits into
mainfrom
develop
Nov 16, 2026
Merged

ptr727 merged 2 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Summary

Promotes develop to main. It carries two changes:

  • #4234: pr-review-conduct "Expected review loop" now gives, in one place, the exact spelling a pr_review.py call needs to match the host-safety kit's allow rule under Claude Code's auto mode. Without it, the auto-mode classifier judges the call and refuses it. drive-pr, merge-and-release, repo-worktree, backlog-burndown, and the kit's README point to that one place instead of restating it. The cd <hub-checkout> && prefix is claimed only inside the session's working directories, and drive-pr's harness-refusal routes name the remedies for a hub checkout that sits outside them.
  • #4235: clears the registry's standup-pending note on homeassistant-vantage-diagnostics, which a post-promotion audit flagged as describing closed work.

Closes #4206

🤖 Generated with Claude Code

ptr727 and others added 2 commits November 16, 2026 14:30
…4235)

## Summary

Clears the `Standup pending` drift note on the
`homeassistant-vantage-diagnostics` registry entry. That repository's
standup pull request merged to `develop`, the work was promoted to
`main`, and release `0.1.3` was published.

A post-promotion audit (`spec/audit.py
homeassistant-vantage-diagnostics`, run 2026-11-16T22:10:36Z, hub
`a22da65e`) flagged the note as describing closed work. The audit's
other two findings need no note:

- The carried `backlog-burndown` skill trailed the hub. It has been
re-carried on the repository's `develop`, and it reaches `main` at the
repository's next promotion.
- The About description did not match the README tagline. It has been
set from the tagline.

`driftNotes` is optional in `registry/repos.schema.json`, and
`spec/validate.py` passes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Chores**
* Updated repository metadata. No changes to application behavior or
user-facing features.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
…Mode (#4234)

## Summary

Auto mode refused dispatched workers' `scripts/pr_review.py merge` calls
although the host-safety kit allow-lists the command. The cause is the
command's shape, not a missing rule. A narrow `permissions.allow` rule
decides a call before the classifier runs, but only when the command
text matches it. Each refused call broke the match in one of these ways:

- a leading environment assignment, such as a uv cache variable
- a flag added between `uv run` and the script
- a script named by an absolute path or a shell variable
- a compound part that neither a rule nor the read-only check passes

The classifier then applied its default "Merge Without Review" rule.
#4206's comment records the diagnosis and its sources.

The maintainer chose to fix the invocation shape, with no new allow
rules and no wider classifier policy.

- **`pr-review-conduct` "Expected review loop"** now states the spelling
once, scoped to Claude Code. A call goes on its own, spelled as printed,
optionally after `cd <hub-checkout> && `. The spelling is owed on the
first call. A refused call is reported as a refused write, never
re-spelled. A merge that an executor's uv cache variable keeps unmatched
goes to the maintainer.
- **`drive-pr`** step 4 and its cleanup line, **`merge-and-release`**'s
cleanup, and **`repo-worktree`** "Listing and Cleanup" point there.
- **`backlog-burndown`**: the worker brief quotes step 4's `merge`
spelling and that paragraph, and the orchestrator's cleanup points
there.
- **`host-setup/agent-safety/claude/README.md`** explains why only the
exact text matches.

**The `cd <hub-checkout> &&` prefix is claimed only inside the session's
working directories.** The docs list `cd` in the read-only set, but they
do not say how auto mode treats a `cd` outside those directories. This
host's transcripts hold 63 merge or cleanup calls in the exact spelling
behind such a `cd`, and none was refused. Most likely each ran inside a
working directory. A seat whose hub checkout sits elsewhere reports a
refused merge to the maintainer. drive-pr's harness-refusal routes now
name that case and its remedies.

**This touches `host-setup/agent-safety/`, so it merges only after the
maintainer reads the diff.**

## Local review

Recorded `frontier` passes ran before each push. Their findings were
fixed, and none stays open.

- The first push answered two rounds, of 7 and then 5 findings. They
covered the rule being stated at five sites that disagreed, claims
beyond the documented matching behavior, and no route after a refusal.
- The third pass left one `introduced` finding: the uv-cache sentences
lacked the "On Claude Code" scope. The next push fixed it, along with a
grammar slip found by the pass after that.
- After the hosted review, later pushes fixed two grammar threads and a
markdownlint MD038 failure. They also scoped the `cd` claim and updated
drive-pr's harness-refusal routes. The last pass was clean.

Closes on promotion: #4206

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings November 16, 2026 22:39
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 31 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 6e05308 and 8d0504f.

Files ignored due to path filters: 15

  • .claude-plugin/fleet-skills/.source-digests/backlog-burndown is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/drive-pr is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/merge-and-release is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/pr-review-conduct is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/repo-worktree is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/drive-pr/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/merge-and-release/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/backlog-burndown/SKILL.md is excluded by !.github/skills/**
  • .github/skills/drive-pr/SKILL.md is excluded by !.github/skills/**
  • .github/skills/merge-and-release/SKILL.md is excluded by !.github/skills/**
  • .github/skills/pr-review-conduct/SKILL.md is excluded by !.github/skills/**
  • .github/skills/repo-worktree/SKILL.md is excluded by !.github/skills/**
Files selected for processing: 7

  • .agents/skills/backlog-burndown/SKILL.md
  • .agents/skills/drive-pr/SKILL.md
  • .agents/skills/merge-and-release/SKILL.md
  • .agents/skills/pr-review-conduct/SKILL.md
  • .agents/skills/repo-worktree/SKILL.md
  • host-setup/agent-safety/claude/README.md
  • registry/repos.json
  • 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

Copilot AI left a comment

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.

🔵 Needs a closer look

The change alters Claude Code host-safety allow-rule behavior and relies on provider runtime semantics that require maintainer validation on an installed host.

No open issues 🎉

What changed in this PR

Promotes develop to main with fleet-wide guidance for Claude Code auto-mode command matching and removes an obsolete registry note.

Changes:

  • Documents the required pr_review.py invocation shape for the Claude Code host-safety allow rule.
  • Propagates the guidance across canonical, GitHub, and Claude skill distributions and updates source digests.
  • Removes the completed standup-pending note for homeassistant-vantage-diagnostics.
File Description
registry/​repos.json Removes the obsolete standup-pending drift note for homeassistant-vantage-diagnostics.
host-setup/​agent-safety/​claude/​README.md Documents Claude Code auto-mode command matching and host-safety allow-rule behavior.
.github/​skills/​repo-worktree/​SKILL.md Updates cleanup guidance to reference the canonical invocation rules.
.github/​skills/​pr-review-conduct/​SKILL.md Defines the canonical pr_review.py invocation guidance.
.github/​skills/​merge-and-release/​SKILL.md Applies the command-spelling guidance to release cleanup operations.
.github/​skills/​drive-pr/​SKILL.md Applies the invocation guidance to merge and cleanup routes.
.github/​skills/​backlog-burndown/​SKILL.md Adds invocation guidance for backlog workers and cleanup orchestration.
.claude-plugin/​fleet-skills/​skills/​repo-worktree/​SKILL.md Provides the generated Claude distribution of the worktree guidance.
.claude-plugin/​fleet-skills/​skills/​pr-review-conduct/​SKILL.md Provides the generated Claude distribution of the review-loop guidance.
.claude-plugin/​fleet-skills/​skills/​merge-and-release/​SKILL.md Provides the generated Claude distribution of release cleanup guidance.
.claude-plugin/​fleet-skills/​skills/​drive-pr/​SKILL.md Provides the generated Claude distribution of drive and cleanup guidance.
.claude-plugin/​fleet-skills/​skills/​backlog-burndown/​SKILL.md Provides the generated Claude distribution of worker and orchestration guidance.
.claude-plugin/​fleet-skills/​.source-digests/​repo-worktree Updates the generated source digest for the worktree skill.
.claude-plugin/​fleet-skills/​.source-digests/​pr-review-conduct Updates the generated source digest for the review-conduct skill.
.claude-plugin/​fleet-skills/​.source-digests/​merge-and-release Updates the generated source digest for the merge-and-release skill.
.claude-plugin/​fleet-skills/​.source-digests/​drive-pr Updates the generated source digest for the drive-pr skill.
.claude-plugin/​fleet-skills/​.source-digests/​backlog-burndown Updates the generated source digest for the backlog-burndown skill.
.agents/​skills/​repo-worktree/​SKILL.md Updates the canonical worktree cleanup invocation guidance.
.agents/​skills/​pr-review-conduct/​SKILL.md Defines the canonical source for command matching and refusal handling.
.agents/​skills/​merge-and-release/​SKILL.md Updates the canonical release cleanup invocation guidance.
.agents/​skills/​drive-pr/​SKILL.md Updates the canonical merge and cleanup handling guidance.
.agents/​skills/​backlog-burndown/​SKILL.md Updates the canonical worker and orchestrator invocation guidance.

Review effort: Lite

@codecov

codecov Bot commented Nov 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.11%. Comparing base (a22da65) to head (8d0504f).
⚠️ Report is 505 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4237   +/-   ##
=======================================
  Coverage   78.11%   78.11%           
=======================================
  Files          42       42           
  Lines       15360    15360           
=======================================
  Hits        11999    11999           
  Misses       3361     3361           
Flag Coverage Δ
python-3.13 78.11% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727

ptr727 commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

Declined with evidence. The verdict headline says this change alters Claude Code host-safety allow-rule behavior and needs validation on an installed host. Neither part holds. (1) It alters no allow rule: git diff --name-only origin/main origin/develop -- host-setup/ lists only host-setup/agent-safety/claude/README.md, +11 lines of prose, and no kit code or settings file changes. #4234 states the maintainer chose to fix the invocation shape with no new allow rules. (2) It was validated on an installed host: #4234's own develop merge ran pr_review.py merge in exactly the documented spelling under auto mode with the kit installed and met no classifier prompt, and the merge and release this promotion owes will run the same way.

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.

Let a Dispatched Worker's develop Merge Run Under Auto Mode

2 participants