Skip to content

fix(instruction-placement): acknowledge every cutover path-detection row on main - #10569

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/9771-cutover-pathdet-ack
Oct 28, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/9771-cutover-pathdet-ack

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Closes #9771

Summary

Cutover condition 4 ("no repository locates a path by the existence of CLAUDE.md") was [UNMET] on main: 73 path-detection rows had no reviewed acknowledgement, and 5 existing rows no longer matched their source lines. This PR acknowledges each row with a reviewed reason and drops the stale ones, so condition 4 reports [MET].

Fix

  • 73 rows added to .claude/cutover-pathdet-ack.txt under a section for cutover: acknowledge or fix every unacknowledged CLAUDE.md path-detection row #9771. They cover generated copies of lib/resolve-convention-home.sh and lib/setup-apply.mjs, fixture writes and symlinks in temporary trees, test assertions, eval and probe prose, and three real existence checks that already work with no CLAUDE.md.
  • No row needed a code change. Each real check already falls back to AGENTS.md: plugins/testing/skills/setup/scripts/setup.sh defaults to AGENTS.md (covered by setup.test.sh), remove-shims.sh counts 0 shims with no CLAUDE.md (covered by remove-shims.test.sh), and lib/resolve-convention-home.sh reads AGENTS.md first.
  • 5 stale rows removed: 4 vendored if [[ -f "$ROOT/CLAUDE.md" ]] lines that became [[ -f ... ]] && CLAUDE_FILE=..., and the nested-agents-check fixture symlink, which gained an MSYS= prefix. Their current lines are among the new rows.
  • The issue lane could not make this edit, because it treats .claude/ as sensitive. The owner approved this approach in an attended session, and that session made the .claude/ edit with its Edit tool.

Verification

  • bash plugins/instruction-placement/skills/migrate/scripts/cutover-check.sh --skip-canary --repo . on this branch, rebased onto current main, prints [MET] 136 path-detection row(s), every one acknowledged with a reviewed reason for condition 4.
  • The overall verdict stays NOT MET only because of condition 3, which is a separate slice of [Maintenance] Run /instruction-placement:migrate cutover-check #4281.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_0144XNKvN1T32ur41zrz3oaW

kyle-sexton and others added 2 commits October 27, 2026 20:56
…row on main

Re-ran cutover-check.sh on current main: 73 rows were unacknowledged.
None locates a project path by CLAUDE.md's existence, so each gets a
reviewed row; none needed a code change, because every real existence
check already falls back to AGENTS.md. Removed 5 stale rows whose
source lines changed (four vendored resolve-convention-home.sh copies
and the nested-agents-check fixture symlink). Condition 4 now reports
[MET] with 136 rows, all acknowledged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0144XNKvN1T32ur41zrz3oaW
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 28, 2026 03:45
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T03:47:25.908440Z a251b85 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed a251b8516f36bdb66664477a1f842ddd3d64666b: 0 finding(s), 0 as inline comments.

No security issues found in this pull request.

The pull request changes one file, .claude/cutover-pathdet-ack.txt. It is a tab-separated acknowledgement list read by cutover-check.sh for the CLAUDE.md-to-AGENTS.md cutover. The diff removes 5 stale rows and adds 73 rows with reasons.

  • Trust controls: none of the changed lines is a trusted-actor list, token scope, kill switch, merge hold, workflow, CODEOWNERS or .gitmodules. The file matches no TRUSTED PATHS glob.
  • What the file gates: it only decides whether the migration check reports condition 4 as [MET]. It is not an authorization, merge-gate or secret-handling input. The worst effect of a wrong row is a migration check that reports [MET] too early, which is a correctness concern for the cutover and not a security one.
  • Instruction surface: the diff does not delete or soften any standing instruction (CLAUDE.md, AGENTS.md, rules, skill or hook). I did not read the instruction exception register.
  • Row content: every added row is plain text data.
    • The rows quote source lines that are fixture writes and symlinks in temporary trees, test assertions, or prose.
    • Three rows cover real existence checks: setup.sh, remove-shims.sh and inventory.py. Their reasons say each falls back to AGENTS.md when CLAUDE.md is absent. I did not read those scripts, so I did not check that claim.
    • The row for finding-ids.test.sh quotes a test line that links $H/.ssh/config into a CLAUDE.md. It runs in a temporary home directory the test builds, and the diff changes only the acknowledgement text.
  • Manifests: no plugin.json or marketplace.json changed.
  • PR context: the description and issue comment contain no embedded directives. The PR text says the .claude/ edit was made in an attended owner session; I did not verify that, and it doesn't change the result.

Spend: none. The change adds a list of acknowledgements and costs nothing to run.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed a251b8516f36bdb66664477a1f842ddd3d64666b: 0 finding(s), 0 as inline comments.

No findings. I found nothing to block in this change to .claude/cutover-pathdet-ack.txt. It removes 5 stale rows and adds 73 reviewed rows under a #9771 section.

  • Closing issue cutover: acknowledge or fix every unacknowledged CLAUDE.md path-detection row #9771. This diff alone does not show that two acceptance criteria are met:
    • "cutover-check.sh ... | grep -c UNACKNOWLEDGED prints 0". I could not run it, so the PR's [MET] 136 path-detection row(s) is author-claimed and unverified by me. The rows are matched on exact path and source line, and a later change to a source line would unmatch its row again.
    • "ci-status is green on the PR head". I could not read check status from here.
  • Third-column criterion. Every added row I read has a non-empty reason column.
  • "Never acknowledge a real detector." I read the source of the real existence checks that were acknowledged, since the issue named them as suspects.
    • plugins/testing/skills/setup/scripts/setup.sh:339-348 only picks which instruction file to name in a printed paste line. Its default is AGENTS.md when no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md exists, which matches the comment at lines 336-337 about which file Claude Code loads. The row reason says "with no CLAUDE.md it prints AGENTS.md", which is true for the root CLAUDE.md case. Two sibling branches (.claude/CLAUDE.md, CLAUDE.local.md) would also change the output, but they are not what these rows cover.
    • lib/resolve-convention-home.sh:417 collects CLAUDE.md only as a second candidate after AGENTS.md. With no CLAUDE.md, CLAUDE_FILE stays empty and CLAUDE_STATE stays none, as the row says.
    • plugins/harness-ops/skills/inventory/scripts/inventory.py:5900 checks the OS managed-policy directory, not a project path.
      Given these, I think the "no code change needed" claim holds, so the issue's "each changed detector has a no-CLAUDE.md test" criterion has nothing to apply to.
  • Stale rows. Removing the 4 vendored if [[ -f "$ROOT/CLAUDE.md" ]] rows and the old nested-agents-check symlink row is consistent with the current source. The matching current lines are among the added rows.
  • Spend. The change spends nothing and has no cost implications.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 8f79a63 Oct 28, 2026
92 checks passed
@kyle-sexton
kyle-sexton deleted the fix/9771-cutover-pathdet-ack branch October 28, 2026 04:12
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.

cutover: acknowledge or fix every unacknowledged CLAUDE.md path-detection row

1 participant