Skip to content

Detect and Report a One-Off, and Let a Rollback Reopen on Promotion - #4346

Merged
ptr727 merged 8 commits into
developfrom
burndown/r4-one-off-and-reopens
Nov 22, 2026
Merged

ptr727 merged 8 commits into
developfrom
burndown/r4-one-off-and-reopens

Conversation

@ptr727

@ptr727 ptr727 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

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). The fleet-code-review include region is regenerated from it.
  • add-host-tool now 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.
  • A change that undoes a fix not yet on main carries a Reopens 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 in GOVERNANCE.md "Operational Repositories" and the branching-and-release-model skill. backlog-burndown reads the line on an operational-model repository in its worker brief and its promotion-body assembly. Its freeze-time amendment stays add-only, and a Reopens on promotion: line landing during the freeze that names an issue the body holds a Fixes line for goes to the maintainer.
  • Generated .github/skills/ and .claude-plugin/ output is rebuilt with scripts/build_dist.py, and --check passes.

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.sh remove_unowned_command: deletes a downloaded, package-unowned rg or op copy that answers on PATH ahead of the apt package.
  • host-setup/linux/install-tools.sh tool_unshadow: deletes unowned uv, uvx, or op copies that shadow the managed copy.
  • host-setup/linux/install-tools.sh remove_stale: deletes a superseded apt repository file.
  • host-setup/linux/install-tools.sh powershell_remove_non_apt: removes a non-apt pwsh install before the apt package is installed.
  • host-setup/linux/install-tools.sh sudoers drop-in step: deletes older sudoers files superseded by the current one.
  • host-setup/windows/install-tools.ps1 python app-execution-alias block: deletes the Microsoft Store python alias stubs once the managed interpreter exists.
  • host-setup/windows/install-tools.ps1 -Reinstall branch: 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-burndown freeze paragraph, the add-and-strip loop and two garbled phrases (pass on 4df3170): fixed by removing the text they sat on. Class: introduced.
  • backlog-burndown freeze paragraph, a hand-added Fixes line 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-time Reopens 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-tool line 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-tool lines 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, the Reopens 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-burndown freeze paragraph: the two uses of "that line" could be read as different lines. Wording, style.
  • add-host-tool line 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.md step 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 a Fixes line 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.
  • Local strict review recorded on the pushed head.

🤖 Generated with Claude Code

ptr727 and others added 4 commits November 22, 2026 14:08
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]>
Copilot AI lite review requested due to automatic review settings November 22, 2026 22:20
@ptr727

ptr727 commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head c3479cdf22217c1d287530287a4819012689433a, the content this pull request carries at that commit against develop, and it recorded 6 findings.

@coderabbitai

coderabbitai Bot commented Nov 22, 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 45 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 01d88d6 and ad312ad.

Files ignored due to path filters: 12

  • .claude-plugin/fleet-skills/.source-digests/add-host-tool is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/backlog-burndown is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/branching-and-release-model is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/fleet-code-review is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/add-host-tool/SKILL.md 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/branching-and-release-model/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/fleet-code-review/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/add-host-tool/SKILL.md is excluded by !.github/skills/**
  • .github/skills/backlog-burndown/SKILL.md is excluded by !.github/skills/**
  • .github/skills/branching-and-release-model/SKILL.md is excluded by !.github/skills/**
  • .github/skills/fleet-code-review/SKILL.md is excluded by !.github/skills/**
Files selected for processing: 5

  • .agents/skills/add-host-tool/SKILL.md
  • .agents/skills/backlog-burndown/SKILL.md
  • .agents/skills/branching-and-release-model/SKILL.md
  • .agents/skills/fleet-code-review/SKILL.md
  • GOVERNANCE.md
  • 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.

🟡 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
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

Comment thread .agents/skills/add-host-tool/SKILL.md Resolved
Comment thread GOVERNANCE.md Resolved
Comment thread GOVERNANCE.md Resolved
@ptr727

ptr727 commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 4df31700bee4e1365c27665fd6f6b1c50aca633b, the content this pull request carries at that commit against develop, and it recorded 5 findings.

@ptr727

ptr727 commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 0c7892442a88a6da35331d409cb3a3ec9967dd50, the content this pull request carries at that commit against develop, and it recorded 4 findings.

@ptr727

ptr727 commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head ad312ad9767c3368648766e36847622f6af1eabb, the content this pull request carries at that commit against develop, and it recorded 2 findings.

@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.55%. Comparing base (01d88d6) to head (ad312ad).
⚠️ Report is 1 commits behind head on develop.

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           
Flag Coverage Δ
python-3.13 79.55% <ø> (ø)

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 22, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 22, 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 merged commit 45994bb into develop Nov 22, 2026
14 checks passed
@ptr727
ptr727 deleted the burndown/r4-one-off-and-reopens branch November 22, 2026 22:55
ptr727 added a commit that referenced this pull request Nov 23, 2026
…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)
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.

2 participants