Skip to content

Keep Tilde Expansion and Probe Arguments in the Quoted Copy-and-Run Placeholders - #4358

Merged
ptr727 merged 1 commit into
developfrom
burndown/r4-promotion-fixes-2
Nov 23, 2026
Merged

ptr727 merged 1 commit into
developfrom
burndown/r4-promotion-fixes-2

Conversation

@ptr727

@ptr727 ptr727 commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the five previously-missed Copilot findings on promotion PR #4356 (review key fb86dd4d035b), plus two local-pass findings. All five Copilot findings are wrong-behavior defects that the paste-safe quoting in #4353 and #4357 introduced. Each quoted a placeholder whole although its documented value opens ~, or although it stands for several arguments.

The fix applies GOVERNANCE.md "Copy-and-Run Commands" as written. Where the value opens ~, the quotes wrap the placeholder alone and the tilde sits outside them. Where the value is a command and its arguments, it replaces the quotes, and the text now says so.

Copilot findings from #4356:

  • .agents/skills/drive-pr/SKILL.md:127 and the cleanup invocation at :186. --checkout "<base-clone>" becomes --checkout ~/repos/"<Repo>", and the prose names ~/repos/<Repo> as the primary clone.
  • .agents/skills/repo-worktree/SKILL.md:256 and the sweep command at :286. The same change. The class sweep also fixed the standalone-clone fence at :144, git -C "<base-clone>" remote get-url origin, which predates Gate Unquoted Placeholders in Copy-and-Run Commands #4353 and had the same defect.
  • .agents/skills/resync-a-repo/SKILL.md:52. The same change, with the prose naming ~/repos/<Repo> as that repository's primary clone.
  • .agents/skills/session-handoff/SKILL.md:220 and :224. "<worktrees>" and "<clone>" become ~/repos/worktrees/ProjectTemplate-hub-"<unique>", the fleet worktree directory repo-worktree names. The class sweep also fixed the same "<clone>" read in step 4 at :300.
  • AGENTS.md:55, "Bound every probe". setsid --wait timeout "<n>" "<probe>" now says that the probe's command and its own arguments replace the quotes, so each stays a word of its own.

Local-pass findings:

Closes on promotion: none

Pre-existing findings, not filed

The same "<base-clone>" form, with a documented ~/repos/<Repo> value, sits in files this pull request does not touch. The local pass raised them as one root cause, and they are reported to the orchestrator rather than edited here. Each is a pre-existing correctness defect, a literal tilde reaching cleanup --checkout:

  • .agents/skills/backlog-burndown/SKILL.md:469
  • .agents/skills/merge-and-release/SKILL.md:226 and :244
  • .agents/skills/pr-review-conduct/SKILL.md:402
  • .agents/skills/audit-a-repo/SKILL.md:48, as "<hub-base-clone>"

Verification

  • python3 scripts/prose_lint.py <each edited Markdown file> --check paste-safe passes.
  • python3 scripts/prose_lint.py . --diff "$(git merge-base origin/develop HEAD)" passes.
  • uv run --no-project --script scripts/build_dist.py --check reports the generated trees current.
  • The OPERATIONS.md "Local Verification" block (ruff, ruff format, mypy, the unittest suites, repo_gate.py, and the prose runs) was run in full.
  • In bash, ~/repos/"X" and ~/repos/worktrees/ProjectTemplate-hub-"abc" both expand the tilde.

🤖 Generated with Claude Code

…laceholders

The paste-safe quoting wrapped placeholders whose documented value opens
`~` whole, so a substituted `~/repos/...` reached git or pr_review.py as
a literal tilde. Spell those paths with the tilde outside the quotes, per
GOVERNANCE.md "Copy-and-Run Commands". The probe command in AGENTS.md now
says its command and arguments replace the quotes. AUDIT.md section 6
names the interaction-limit check group, and a repo_gate.py docstring is
rewrapped to the line limit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings November 23, 2026 03:34
@ptr727

ptr727 commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

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

@coderabbitai

coderabbitai Bot commented Nov 23, 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 3 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 ffbcb5d and 0f88e0d.

Files ignored due to path filters: 12

  • .claude-plugin/fleet-skills/.source-digests/drive-pr 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/.source-digests/resync-a-repo is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/session-handoff 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/repo-worktree/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/resync-a-repo/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/session-handoff/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/drive-pr/SKILL.md is excluded by !.github/skills/**
  • .github/skills/repo-worktree/SKILL.md is excluded by !.github/skills/**
  • .github/skills/resync-a-repo/SKILL.md is excluded by !.github/skills/**
  • .github/skills/session-handoff/SKILL.md is excluded by !.github/skills/**
Files selected for processing: 7

  • .agents/skills/drive-pr/SKILL.md
  • .agents/skills/repo-worktree/SKILL.md
  • .agents/skills/resync-a-repo/SKILL.md
  • .agents/skills/session-handoff/SKILL.md
  • .github/actions/repo-gate/repo_gate.py
  • AGENTS.md
  • AUDIT.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.

🟢 Approval recommended

The changes consistently update placeholder handling and synchronized skill documentation, while the remaining edits are limited to documentation, generated copies, digests, and formatting.

No open issues 🎉

What changed in this PR

This pull request updates copy-and-run documentation to preserve tilde expansion and correctly handle placeholders representing multiple arguments, while synchronizing generated skill distributions. It also documents interaction-limit coverage and reformats a Python docstring.

Changes:

  • Moves tilde expansion outside quoted repository and worktree placeholders.
  • Clarifies that probe placeholders include the command and its arguments.
  • Updates audit documentation and reflows the workflow-input checker docstring.
  • Regenerates Claude and Copilot skill copies and source digests.
  • Four moderate findings remain regarding hard-coded clone paths that break the documented non-migrated layout.
File Description
AUDIT.md Documents public-repository interaction-limit coverage in the audit instructions.
AGENTS.md Clarifies that probe placeholders replace the surrounding quotes and may include multiple arguments.
.github/​skills/​session-handoff/​SKILL.md Updates the generated session-handoff skill with paste-safe clone and worktree paths.
.github/​skills/​resync-a-repo/​SKILL.md Updates the generated resync skill with paste-safe repository cleanup paths.
.github/​skills/​repo-worktree/​SKILL.md Updates the generated repo-worktree skill with paste-safe clone, cleanup, and sweep examples.
.github/​skills/​drive-pr/​SKILL.md Updates the generated drive-pr skill with paste-safe merge and cleanup paths.
.github/​actions/​repo-gate/​repo_gate.py Rewraps the check_workflow_inputs docstring without changing behavior.
.claude-plugin/​fleet-skills/​skills/​session-handoff/​SKILL.md Updates the generated Claude session-handoff skill with paste-safe clone and worktree paths.
.claude-plugin/​fleet-skills/​skills/​resync-a-repo/​SKILL.md Updates the generated Claude resync skill with paste-safe repository cleanup paths.
.claude-plugin/​fleet-skills/​skills/​repo-worktree/​SKILL.md Updates the generated Claude repo-worktree skill with paste-safe clone, cleanup, and sweep examples.
.claude-plugin/​fleet-skills/​skills/​drive-pr/​SKILL.md Updates the generated Claude drive-pr skill with paste-safe merge and cleanup paths.
.claude-plugin/​fleet-skills/​.source-digests/​session-handoff Refreshes the source digest for the generated session-handoff skill.
.claude-plugin/​fleet-skills/​.source-digests/​resync-a-repo Refreshes the source digest for the generated resync skill.
.claude-plugin/​fleet-skills/​.source-digests/​repo-worktree Refreshes the source digest for the generated repo-worktree skill.
.claude-plugin/​fleet-skills/​.source-digests/​drive-pr Refreshes the source digest for the generated drive-pr skill.
.agents/​skills/​session-handoff/​SKILL.md Updates the canonical session-handoff skill with paste-safe clone and worktree paths.
.agents/​skills/​resync-a-repo/​SKILL.md Updates the canonical resync skill with a paste-safe repository cleanup path.
.agents/​skills/​repo-worktree/​SKILL.md Updates the canonical repo-worktree skill with paste-safe clone, cleanup, and sweep examples.
.agents/​skills/​drive-pr/​SKILL.md Updates the canonical drive-pr skill with paste-safe merge and cleanup paths.

Review effort: Lite

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.32%. Comparing base (ffbcb5d) to head (0f88e0d).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4358   +/-   ##
========================================
  Coverage    79.32%   79.32%           
========================================
  Files           45       45           
  Lines        15997    15997           
========================================
  Hits         12689    12689           
  Misses        3308     3308           
Flag Coverage Δ
python-3.13 79.32% <ø> (ø)

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

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 23, 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 b386e9b into develop Nov 23, 2026
15 checks passed
@ptr727
ptr727 deleted the burndown/r4-promotion-fixes-2 branch November 23, 2026 03:52
ptr727 added a commit that referenced this pull request Nov 23, 2026
…lders (#4359)

## Summary

Sibling sweep of #4358 for #4356. #4358 kept the tilde outside the
quotes in the primary-clone placeholder (`--checkout ~/repos/"<Repo>"`),
so a reader's `~/repos/...` value expands. This applies the same form at
the remaining sites in `backlog-burndown`, `merge-and-release` (two
commands) and `pr-review-conduct`, and names `~/repos/<Repo>` as the
primary clone where the prose named the placeholder. Generated skill
trees are rebuilt.

`audit-a-repo` gets `--checkout ~/repos/ProjectTemplate`, naming it the
hub's primary clone, the fleet layout `repo-worktree` names as
`~/repos/<Repo>` (maintainer's decision via the orchestrator).

Closes on promotion: none

## Verification

- Full unit suite passes.
- `build_dist.py --check`, `prose_lint.py --check paste-safe` and the
diff-scoped prose gate pass on every edited file.

## Local review findings

- Declined: a fixed `~/repos/<Repo>` path can clean the wrong clone on a
machine whose primary clone lives elsewhere (audit-a-repo,
backlog-burndown, merge-and-release, five commands). It is the form the
maintainer decided in #4358 and the already merged sibling sites use, so
this PR spells it the same way.
- Declined: a shell that does not expand `~` in a native-command
argument passes it literally and the command refuses with BAD_CHECKOUT,
deleting nothing. Same reason.
- Declined: `<Repo>` in the `pr-review-conduct` sentence is not defined
beside the command. The sentence names the command as repo-worktree's
post-merge cleanup, whose own text defines it. A wording remark on the
decided form.

🤖 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

* **Documentation**
* Updated repository cleanup instructions to use the primary clone path
instead of placeholder paths.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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