Skip to content

docs(source-control): point links and comments at docs/contracts - #11186

Merged
kyle-sexton merged 9 commits into
mainfrom
docs/7537-c-source-control
Oct 30, 2026
Merged

kyle-sexton merged 9 commits into
mainfrom
docs/7537-c-source-control

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #7537

Summary

Points the source-control plugin's links and comment paths to the plugin-author contracts at docs/contracts/<name>/ instead of docs/conventions/<name>/. Main has moved the contracts and left a stub with every section heading at each old path.

Fix

  • One commit rewrites 32 files in plugins/source-control/, with a changelog fragment.
  • The branch merges main twice: at 3ec5bf2827, then at eb4beb8000.
    • The first merge conflicted in skills/pull-request/reference/ci-ci.md and create.md, where main reworded the untrusted-content and pr-body-convention sentences. The resolution keeps main's text and points those references at docs/contracts/.
    • The second merge was clean.
  • Main added no other old-path references in this scope, so there is no extra rewrite commit.
  • Left unchanged on purpose:
    • the docs/conventions/instruction-exception-register/** and docs/conventions/untrusted-content/** gate patterns in skills/babysit-prs/scripts/babysit_risk.py, together with their tests. test_merge_holds_sync.py holds these patterns equal to .github/scripts/pr-merge/merge-holds.mjs, .github/trust-path-hold.json and the review workflows, all outside this scope. Adding the docs/contracts/ paths to that gate is a security-gate change that belongs in its own PR across all of those files.
    • CHANGELOG.md history, and context/recommendation-basis.md, which the shared-libs PR rewrites.

Verification

  • scripts/check-affected.sh --tests --base eb4beb8000: 15 passed and 1 failed, tests, on deny-rules.test.mjs with spawnSync git ENOBUFS. That was main's bug, which fix(ci): give the deny-rules test's ls-files call a 64 MiB buffer #11161 fixed; the branch merges main after it, and the pre-push hook re-runs the selected suites.
  • lychee --offline with lychee.toml over the 23 changed Markdown files: 0 errors.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 6 commits October 28, 2026 21:47
…ontracts

Rewrites links and comment paths to the plugin-author contracts from
docs/conventions/<name>/ to docs/contracts/<name>/ (#7537) in 32 files
across 1 plugin(s). The old paths keep a stub with every section heading,
so installed plugin versions keep resolving.

Refs: #7537

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ntrol

# Conflicts:
#	plugins/source-control/skills/pull-request/reference/ci-ci.md
#	plugins/source-control/skills/pull-request/reference/create.md
…ntrol

# Conflicts:
#	plugins/source-control/skills/babysit-prs/scripts/babysit_verify_evidence.py
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 30, 2026 07:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-30T07:18:07.227099Z e3e33a3 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

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of 92849383fabc600682bbf7a7d100c6a8f0ac9f4a: no file of this pull request changed since the review of 8c7bbcc.

No security issues found in this pull request.

I read the full diff. Every hunk replaces docs/conventions/<name> with docs/contracts/<name> in a Markdown link, a comment, a docstring or an eval's expected_output string. The only other file is the changelog fragment.

  • Trusted paths: babysit_risk.py and babysit_verify_evidence.py match the trusted-path globs. In both, only comment and docstring lines change (the loop-lane links). No executable code, hold pattern, constant or list changes. The merge-hold gate patterns (docs/conventions/instruction-exception-register/** and docs/conventions/untrusted-content/**) are untouched, so no hold is weakened or widened.
  • Instruction surfaces: The SKILL.md and reference files change only link targets. No rule is deleted, narrowed or softened, so the instruction-exception register has nothing to check.
  • Plugin manifests: No plugin.json or marketplace.json change, so there are no manifest <field> lines.
  • Embedded instructions: The PR context file holds no embedded instructions.

Note for the owner, not a finding in this diff: the PR description says the hold patterns in babysit_risk.py stay on the old docs/conventions/ paths on purpose. Main has already moved the contracts to docs/contracts/. Until a follow-up adds the docs/contracts/ paths to the gate files named in the description, edits to docs/contracts/untrusted-content/** or docs/contracts/instruction-exception-register/** may not trip those path holds. This diff does not cause that, and the PR description already scopes the follow-up. I did not check whether other gates cover those paths.

critical-findings: 0

Spend: no change here draws on credit or can start a charge.

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of 92849383fabc600682bbf7a7d100c6a8f0ac9f4a: no file of this pull request changed since the review of 8c7bbcc.

Review of #11186: point source-control links and comments at docs/contracts/

I read the whole diff (35 files) and the PR context. I did not run any commands or tests. This session has no shell, so the lychee and check-affected results in the PR body are author-claimed and unverified by me.

What the change does. It rewrites only link targets and comment paths from docs/conventions/<name>/ to docs/contracts/<name>/. It does not touch logic, config keys, or the gate pattern lists in babysit_risk.py and babysit_review_evidence.py. I used Glob to confirm that every target the diff names exists as docs/contracts/<name>/README.md. Those targets are hook-budget, hook-telemetry, pr-body-convention, commit-convention, untrusted-content, loop-lane, hook-config-delivery, recommendation-basis, permission-rule-hygiene, upstream-drift, pre-pr-ordering, plugin-reconfiguration, workspace-environment, windows-path-emit, retired-conventions and shell-test-helpers. The anchors the diff uses (#basis-label, #grounding-bar, #the-rungs, #when-work-stops-for-the-owner) could not be checked from here. The PR says the old paths keep a stub with every section heading, and the new README files are the real targets.

Trusted-path files (babysit_risk.py, babysit_verify_evidence.py, and the docs/ and CLAUDE.md-adjacent text). Their changes are comment and docstring text only. No pattern, condition, or constant changed. Keeping the docs/conventions/instruction-exception-register/** and untrusted-content/** gate patterns unchanged is correct and fits the test_merge_holds_sync.py equality tests. The PR defers a gate change that adds docs/contracts/ to its own PR, which is the right call.

Closing issue #7537. The PR says Refs, not Closes. The issue's criteria (classify every entry, move, rewrite references, update the AGENTS.md paragraph and the index) are for the sibling PRs; the shared-libs PR closes it. This PR does not need to meet them.

Spend. None. This is a documentation and link change with a patch changelog fragment (bump: patch), which is the right level.

Manifest. No plugin.json or marketplace.json change, so there are no manifest lines.

Finding (advisory): old-path references remain inside the stated scope

The PR says "Main added no other old-path references in this scope", but a grep of plugins/source-control (excluding CHANGELOG.md) still finds links and comment paths that name a moved contract at its old path. They are the same kind of reference this PR rewrites:

Nothing breaks. The stubs keep the old paths resolving, and this is why none of these is a blocking finding. But the PR's goal is to point the plugin's references at the new location, and these three lines are still on the old one. Rewriting them in this PR is small and does not touch a gate. context/recommendation-basis.md:5 also still names the old path. The PR body says that file is left for the shared-libs PR, so I did not count it.

The other remaining old-path hits are deliberate or not references to a moved folder: the gate patterns and their tests, and docs/conventions/workspace-environment.md, which is a top-level file that stays under the owner's classification rule.

@kyle-sexton

Copy link
Copy Markdown
Member Author

claude-review's advisory finding (old-path references left in scope): INCORRECT for this PR. Each line belongs to a sibling C-split PR, because the file is a generated or synced copy that this PR cannot edit without drifting from its source:

Line Disposition Basis
README.md:633 plugin-options-docs PR The line sits in the README's generated options section; the plugin-options-docs PR reruns the generator for every plugin README.
lib/check-retirements.sh:14, :55 shared-libs PR scripts/shared-copies.txt lists the file as a synced copy of the root lib/check-retirements.sh; the shared-libs PR rewrites the source and every copy.
context/recommendation-basis.md:5 shared-libs PR Stated in the body.

The same holds for skills/babysit-loop/scripts/operator-options.mjs. This PR's head e3e33a3 had rewritten its contract pointer, and check-catalog failed with "DRIFT: plugins/source-control/skills/babysit-loop/scripts/operator-options.mjs differs from the copy lib/plugin-options.mjs generates". The next push reverts that rewrite, and the shared-libs PR carries it from lib/plugin-options.mjs.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 8c7bbccc26ef6f64b06f155c54e25e9e10a713d8. What it wrote, as data:

What it wrote (29 lines)
Summary: Issue #7537 asks for the plugin-author contracts to move from docs/conventions/ to
  docs/contracts/ and for every reference to be rewritten. This PR is one slice of that work: it
  rewrites links and comments in plugins/source-control. The rewrites themselves look correct;
  consumer settings paths such as docs/conventions/source-control.yaml are left alone, as they
  should be. The blocker is the body's closing keyword. It says "Refs: #7537", but the Related
  section contains "(last, closes #7537)". GitHub reads that as a closing keyword, and the spec
  tooling has already recorded this PR as one that closes #7537. Judged against the whole issue, the
  diff falls short. The PR body itself names old-path references left for sibling PRs
  (README.md:633, lib/check-retirements.sh, context/recommendation-basis.md, operator-options.mjs),
  and other plugins remain. Merging would close #7537 early.
- PR body (Related section): the phrase "shared-libs (last, closes #7537)" is a GitHub closing
  keyword, so this PR would close #7537 on merge and is being judged as a full delivery. Reword it
  without a closing keyword, for example "shared-libs (the last PR, which will close the issue)".
  That leaves "Refs: #7537" as the only link, so this PR counts as a partial delivery. The body
  already names the delivered part (source-control plugin references) and the remaining work
  (sibling C-split PRs, gate patterns), so this rewording is the only change needed.
- plugins/source-control/skills/babysit-prs/scripts/babysit_risk.py: the gate patterns
  `docs/conventions/untrusted-content/**` and `docs/conventions/instruction-exception-register/**`
  are deliberately left unchanged. If main has already moved those contracts to docs/contracts/, an
  edit at the new path no longer matches this merge hold. That is outside this PR's scope, but the
  follow-up security-gate PR the body mentions (covering merge-holds.mjs, trust-path-hold.json and
  the review workflows) should be filed and tracked so the hold is not left weakened.
- plugins/source-control/reference/config-resolution.md, skills/babysit-loop/SKILL.md,
  skills/pull-request/reference/create.md: these rewrite links into commit-convention/, loop-lane/
  and pr-body-convention/, folders the 2026-10-22 decision left to a per-folder call in the move PR.
  I could not check from the diff that main moved those folders; the links depend on it.
- Issue #7537 is held at needs-human with "Built attended (the move touches AGENTS.md)". This PR
  does not touch AGENTS.md, so the hold does not appear to apply to this slice. Noted for a person
  to confirm.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass at a new commit removes the label.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Oct 30, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 30, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

pr-verify passed head 9284938 (run https://github.com/melodic-software/claude-code-plugins/actions/runs/41032946954, artifact pr-verify-11186-92849383fabc600682bbf7a7d100c6a8f0ac9f4a-pass-notes). The pr-feedback-dispatch job that removes pr-verify-failed on a pass ran at 09:24Z while the kill switch was on and skipped, so the label is removed here as that job would have.

@kyle-sexton kyle-sexton removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Oct 30, 2026
@kyle-sexton
kyle-sexton enabled auto-merge October 30, 2026 09:40
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit cea0458 Oct 30, 2026
64 checks passed
@kyle-sexton
kyle-sexton deleted the docs/7537-c-source-control branch October 30, 2026 09:48
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.

1 participant