Repository navigation
Detect and Report a One-Off, and Let a Rollback Reopen on Promotion - #4346
Conversation
State in "Design Before Code" that a one-off is detected and reported, never corrected by code, with its reason. Add the Reopens on promotion line an undo of a fix carries, so the promotion leaves out the issue it names, in "Operational Repositories", branching-and-release-model, and backlog-burndown's promotion assembly. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Limit backlog-burndown's Reopens reading to an operational-model repository, and let a freeze-time amendment drop a Fixes line a rollback takes out of the range. Name a one-off a defect, not a state. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Warning Review limit reachedYou'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 45 minutes. View limit details
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. |
…hadowed Install Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The change still has unresolved moderate issues that leave installation behavior and per-issue promotion state ambiguous, along with documentation gaps for rollback evidence and trigger handling.
8 open issues
Define whether installation continues after a conflicting copy is found · New Make the last applicable promotion line control each issue · New Trigger freeze re-reads on rollbacks and other develop changes · New Define the final promotion state per issue · New Make the last applicable promotion line control each issue · New Clarify and separate the Closes requirement from the Reopens sentence · New Require rollback notes to identify the specific fix being reversed · New Require rollback notes to identify the specific fix being reversed · New
What changed in this PR
This PR updates fleet governance and skill guidance for one-off detection, rollback reopening, and operational promotion handling, while regenerating distributed skill outputs and source digests.
Changes:
- Adds detect-and-report guidance for one-off host and repository defects.
- Defines
Reopens on promotion:handling for rollback changes. - Updates backlog promotion workflows and host-tool guidance.
- Rebuilds the generated GitHub and Claude skill distributions.
| File | Description |
|---|---|
| GOVERNANCE.md | Adds governance rules for detecting one-off corrections and reopening issues when rollback changes are promoted. |
| .github/skills/fleet-code-review/SKILL.md | Carries the generated one-off governance guidance into the GitHub review skill. |
| .github/skills/branching-and-release-model/SKILL.md | Carries rollback reopening guidance into the generated GitHub branching skill. |
| .github/skills/backlog-burndown/SKILL.md | Carries promotion assembly, worker-brief, and freeze-amendment updates into the generated GitHub backlog skill. |
| .github/skills/add-host-tool/SKILL.md | Carries detect-and-report guidance for conflicting host-tool copies into the generated GitHub skill. |
| .claude-plugin/fleet-skills/skills/fleet-code-review/SKILL.md | Regenerates the Claude fleet review skill with the one-off governance guidance. |
| .claude-plugin/fleet-skills/skills/branching-and-release-model/SKILL.md | Regenerates the Claude branching skill with rollback reopening guidance. |
| .claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md | Regenerates the Claude backlog skill with promotion and freeze workflow updates. |
| .claude-plugin/fleet-skills/skills/add-host-tool/SKILL.md | Regenerates the Claude host-tool skill with conflicting-copy reporting guidance. |
| .claude-plugin/fleet-skills/.source-digests/fleet-code-review | Updates the source digest for the generated fleet review skill. |
| .claude-plugin/fleet-skills/.source-digests/branching-and-release-model | Updates the source digest for the generated branching skill. |
| .claude-plugin/fleet-skills/.source-digests/backlog-burndown | Updates the source digest for the generated backlog skill. |
| .claude-plugin/fleet-skills/.source-digests/add-host-tool | Updates the source digest for the generated host-tool skill. |
| .agents/skills/fleet-code-review/SKILL.md | Updates the canonical fleet review skill with the one-off governance rule. |
| .agents/skills/branching-and-release-model/SKILL.md | Updates the canonical branching skill with rollback reopening behavior. |
| .agents/skills/backlog-burndown/SKILL.md | Updates the canonical backlog skill for promotion assembly, worker briefs, and freeze amendments. |
| .agents/skills/add-host-tool/SKILL.md | Updates the canonical host-tool skill to report conflicting copies for manual remediation. |
Review effort: Lite
…ns Line Takes Out Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
… to the Maintainer Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4346 +/- ##
========================================
Coverage 79.55% 79.55%
========================================
Files 45 45
Lines 15923 15923
========================================
Hits 12667 12667
Misses 3256 3256
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
|
/review |
Action not completed
|
…afe Commands, and Workflow Input Check (#4368) Promotes the eleven pull requests that landed on develop since the last promotion. - #4348: Say where a reviewer's clean pass leaves its record. `pr-review-conduct` "Silence is not evidence" now states that a clean pass can leave an empty-bodied review or, for CodeRabbit, only a summary comment line. - #4351: Count a CodeRabbit clean pass its summary alone records. `side_answered` and `side_rounds` read the summary comment, so `wait` stops re-requesting a head CodeRabbit already passed. - #4346: Detect and report a one-off rather than correct it by code, and let a rollback carry a `Reopens on promotion:` line (operational repositories). `add-host-tool` now reports a shadowing copy instead of removing it. - #4349: Declare a `publicInteraction` policy per repository in the registry and apply and check it from `repo-config/configure.sh` (GitHub interaction limit, Discussions off by default). - #4352: The PowerShell install stops on a refusal, a tool with no Microsoft feed fails alone while the run continues, and an unmanaged `gh` or `op` in install mode says `--upgrade` moves it. - #4353: Copy-and-run commands in Markdown are paste-safe, with a new "Copy-and-Run Commands" rule, a generated include in `comment-and-doc-style`, and a default `paste-safe` prose gate rule. - #4350: Register every Claude Code hook the host-safety kit installs in exec form on all platforms, and rewrite shell-form registrations. This edits the agent's own guard. - #4354: A new repo-gate check, `workflow-inputs`, compares each reusable-workflow call's `with:` keys against the callee at the caller's pin. - #4357: Quote the remaining paste-safe commands in the repo-config docs and update the stale PowerShell feed comment, the fix for the promotion's own lint failure and Copilot thread. - #4358: Keep the tilde outside the quotes in the base-clone placeholders and keep the probe executable and arguments as separate tokens, the fix for the five Copilot findings on this promotion, plus the AUDIT.md interaction-check coverage and the repo-gate docstring wrap. - #4359: Keep the tilde outside the quotes in the remaining base-clone placeholders, the sibling sweep of the same defect. ## Owed by the maintainer before rollout From #4349: - Run the live `repo-config/configure.sh apply` on each repository. Until it runs, `configure.sh check` and the audit flag the public repositories. - Confirm that Copilot, CodeRabbit, Qodo and Dependabot still work under the interaction limit. - Update other repositories' README links to Discussions, since Discussions go off by default. From #4353: it changed carried text, so a fleet resync is owed. ## Local-pass findings Class and disposition for the four findings the recorded local pass raised on the earlier head: - `host-setup/linux/install-tools.sh` removal code (`powershell_remove_non_apt`, `remove_unowned_command`, `op_remove_download`, docker and shadow removals) against the one-off rule, class `introduced`: tracked by #4347, not this pull request. - `Reopens on promotion:` exists for operational repositories only, class `introduced`: declined under the maintainer's answer on #4175, which places the rule in "Operational Repositories". - `AUDIT.md` does not list the interaction-limit check, class `introduced`: fixed in #4358. - `repo_gate.py` `check_workflow_inputs` docstring lines over the line length, class `introduced`: fixed in #4358. Fixes #4170 Fixes #4175 Fixes #4329 Fixes #4172 Fixes #4124 Fixes #2596 Fixes #4040 Fixes #2822 Fixes #3896 Supersedes #4356 because of the `.github/workflows/validate-task.yml` Dependabot conflict (the `astral-sh/setup-uv` pin bump on main beside the `if:` condition #4354 changed on develop), resolved from develop's side as a strict superset of main's. The merged tree equals develop's. This also carries #4365, #4366 and #4367, the fixes for findings raised on #4356; none of them closes an issue. ## Findings on this promotion's head Local pass over the whole `main` diff (four findings) and the Copilot round (two threads): - `configure.sh` `publicInteraction` lookup matches the registry name exactly while apply's guard matches case-insensitively, class `introduced` (#4349): declined with evidence. A name differing only in letter case makes `spec/resolve_description.py` exit 1 at `configure.sh` line 331, before `cmd_apply` or any `gh api --method` call, so no limit is written on the wrong value. Checked by running the lookup on sample JSON, and no write is reachable. - The ungrammatical `hook the host keeps of its own` phrase (Copilot thread), class `introduced` (#4350): fixed in #4369 into develop. - Copilot's README Discussions thread: declined with evidence, the canonical-link list names a link when present and does not require it, and #4349 turned Discussions off. - `Reopens on promotion:` scoped to operational repositories, class `introduced`: declined under the maintainer's answer on #4175, which places the rule in "Operational Repositories". - `add-host-tool` detect-and-report against the installer's removal code, class `introduced` (#4352 and #4346): tracked by #4347, not this pull request. - The interaction-limit precondition is not enforced by `apply`: tracked by #4364. 🤖 Generated with [Claude Code](https://claude.com/claude-code)


Summary
GOVERNANCE.md"Design Before Code" gains the rule that a one-off is detected and reported, never corrected by code, with its reason (State That a One-Off Is Detected and Reported, Never Corrected by Code #4210). Thefleet-code-reviewinclude region is regenerated from it.add-host-toolnow detects a shadowing or conflicting copy and reports the command that removes it by hand, rather than removing it, to match that rule. It skips that install until the copy is gone, since the shadowing copy would keep answering on PATH. No installer code changes here.maincarries aReopens on promotion:line, and the promotion takes no closing keyword for an issue it names, per the maintainer's answer on Decide How a Promotion Treats the Closes-on-Promotion Line of a Fix Reverted Later in Its Range #4175. This lands inGOVERNANCE.md"Operational Repositories" and thebranching-and-release-modelskill.backlog-burndownreads the line on an operational-model repository in its worker brief and its promotion-body assembly. Its freeze-time amendment stays add-only, and aReopens on promotion:line landing during the freeze that names an issue the body holds aFixesline for goes to the maintainer..github/skills/and.claude-plugin/output is rebuilt withscripts/build_dist.py, and--checkpasses.Closes on promotion: #4175
#4210 stays open. Its rule and its candidate list are done here. Its remaining item is #4158 implemented as detect-and-report, which is separate open work.
Out of scope
A rollback of a fix already on
main, or of one whose issue was already closed by hand, is not ruled here. The maintainer's answer on #4175 covers a fix undone within its own promotion range while its issue is open. Whether an already-closed issue is reopened is a question for the maintainer.One-off correction code found, candidates for removal
#4210 asks the implementing change to list existing one-off correction code as candidates rather than blockers. None is changed here.
host-setup/linux/install-tools.shremove_unowned_command: deletes a downloaded, package-unownedrgoropcopy that answers on PATH ahead of the apt package.host-setup/linux/install-tools.shtool_unshadow: deletes unowneduv,uvx, oropcopies that shadow the managed copy.host-setup/linux/install-tools.shremove_stale: deletes a superseded apt repository file.host-setup/linux/install-tools.shpowershell_remove_non_apt: removes a non-aptpwshinstall before the apt package is installed.host-setup/linux/install-tools.shsudoers drop-in step: deletes older sudoers files superseded by the current one.host-setup/windows/install-tools.ps1python app-execution-alias block: deletes the Microsoft Store python alias stubs once the managed interpreter exists.host-setup/windows/install-tools.ps1-Reinstallbranch: uninstalls a winget copy in the wrong scope or package. It runs only on request, so it is a weaker candidate.Local pass findings and their outcomes
backlog-burndownfreeze paragraph, the add-and-strip loop and two garbled phrases (pass on 4df3170): fixed by removing the text they sat on. Class:introduced.backlog-burndownfreeze paragraph, a hand-addedFixesline stripped, and a stale-range race (pass on 0c78924): fixed in ad312ad by restoring develop's add-only amendment. The one new case, a freeze-timeReopens on promotion:line naming an issue the body closes, goes to the maintainer. He is always present for an operational promotion in this skill, since an away run promotes nothing there and an attended run confirms each one with him. Class:introduced.add-host-toolline 28, the skip's stated reason was not the hazard: fixed in ad312ad. Class:introduced.GOVERNANCE.md"Operational Repositories", an issue closed by hand or at an earlier promotion stays closed when its fix is rolled back: left as is. The maintainer ruled on Decide How a Promotion Treats the Closes-on-Promotion Line of a Fix Reverted Later in Its Range #4175 that the rollback's author reopens it by hand, with no new rule. Class:introduced.add-host-toollines 28-29, whether a skipped install counts as a failure: left as is, as part of the installer conversion Convert the Installers' One-Off Correction Code to Detect and Report #4347 tracks. Class:introduced.GOVERNANCE.md"Operational Repositories",branching-and-release-model,backlog-burndown, theReopens on promotion:line is operational-only though a release-model repository can also see an unmarked rollback: declined. The maintainer's answer on Decide How a Promotion Treats the Closes-on-Promotion Line of a Fix Reverted Later in Its Range #4175 places the rule in "Operational Repositories". Class:introduced.Dropped findings
backlog-burndownfreeze paragraph: the two uses of "that line" could be read as different lines. Wording,style.add-host-toolline 29: "conflicting package-managed copy" is not defined, a term the base text already used. Wording,style.Pre-existing findings, not filed
.agents/skills/merge-and-release/SKILL.mdstep 2 closing-set check: it flags closures the body does not state, and never re-derives the set on the pinned head. So a rollback landing after the last re-read leaves aFixesline it takes out. Class:pre-existing.Verification
python3 scripts/prose_lint.py --diff <merge-base>: clean.uv run --no-project --script scripts/build_dist.py --check: current.uv run --no-project --script spec/validate.py: OK.test_build_dist,test_claude_md_sync,test_carry,test_audit,test_canonical_review,test_release_guards: OK.🤖 Generated with Claude Code