Skip to content

docs(contracts): move the registry-named contract folders to docs/contracts - #11056

Merged
kyle-sexton merged 4 commits into
mainfrom
docs/7537-b1-moves-registered
Oct 29, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
docs/7537-b1-moves-registered

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #7537

Summary

Part B1, layer 2 of 5, of the #7537 split, stacked on docs/7537-b1-moves. It moves the seven contract folders that a registry names by README path: enforcement-ladder, hook-observability, hook-precision, pr-scope-budget, pre-pr-ordering, seam-phrasing and standards. It repoints those registries in the same change, so their checks stay green.

Merge order. #10952 is re-split into five stacked layers so each review diff stays under pr-review-main's 300 KB cap (MAX_DIFF_BYTES, measured with #10969's write-diff.py):

  1. M docs/7537-b1-moves: 38 folders' pure moves (collapsed to rename lines) and the TEMPORARY link-check entries.
  2. M2 docs/7537-b1-moves-registered: the 7 folders a registry names by README path, with those registries and the synced copies.
  3. M3 docs/7537-b1-moves-lane: rendered-views and the two lane-source folders, plus every lane-source reference edit.
  4. R docs/7537-b1-refs: the remaining reference rewrites.
  5. B2 docs/7537-b2-stubs-v2: docs(contracts): leave stubs at the moved contracts' old paths #10957's stubs.

Merge in that order: M, M2, M3, R, then B2. Each layer targets the branch below it. main squash-merges, so after a layer lands, retarget the next layer to main and merge main into it; until then its diff still carries the landed layer and is over the cap.

Fix

  • git mv of the seven folders (12 files), unchanged apart from the standards schema's $id, which now names its new path. check-standards-contract-bump.sh requires a version bump for a schema edit made after the move, but not for one made with it.
  • Registries that fail without the move: the conformance dimension owners (dim-9, 11, 23, 24), scripts/shared-copies.txt, scripts/cross-plugin-source-registry.txt, and these folders' em-dash allowlist entries.
  • The 11 generated plugin copies of the standards, enforcement-ladder and pr-scope-budget contracts, re-synced because each names its canonical source, with docs(contracts): move plugin-author contracts to docs/contracts #10952's patch fragment for each of the nine carrying plugins.

Per-folder call (carried from #10952): standards/ moves because discipline, improvement, planning and review read it; it is a plugin contract under the owner's rule (#7537 (comment)).

Verification

  • Review diff as write-diff.py builds it: 235,896 bytes (under the cap, so printed whole), no line over 1,800 bytes. No lane source, so pr-review-main does not run on this layer.
  • sync-shared-copies.sh --check, check-standards-contract-bump.sh, conformance, em-dash, cross-plugin drift and changelog checks pass against layer 1. The selected shell suites passed or were skipped, and the node suites pass (resolve-config's own node_modules installed). The Python suites pass apart from test_reader_findings.py::…non_literal_stays_partial, which fails the same way on the main checkout at d5d8ff15.

Related

Draft: a stacked layer of the #7537 B1 re-split; it goes through /source-control:pull-request ready in merge order, after the layer below lands and main is merged in.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VQb9Q3ucKDVyHvpcU5cfU8

kyle-sexton and others added 2 commits October 29, 2026 13:11
…acts

Move 38 plugin-author contract folders from docs/conventions to
docs/contracts unchanged, and repoint their em-dash allowlist entries.
Readers already try docs/contracts first. The folders a registry names
by README path, and the two lane-source folders, move in the next parts
of the stack so this change's review diff collapses every move.

The TEMPORARY (#7537) .lycheeignore entries skip local links into the
moved folders until the old-path stubs land, and relative links inside
the moved folders until the later moves and the reference rewrites land.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VQb9Q3ucKDVyHvpcU5cfU8
…tracts

Move seven plugin-author contract folders that a registry names by
README path (enforcement-ladder, hook-observability, hook-precision,
pr-scope-budget, pre-pr-ordering, seam-phrasing, standards) from
docs/conventions to docs/contracts unchanged, and repoint those
registries: the conformance dimension owners, the shared-copies and
cross-plugin source registries, and the em-dash allowlist entries.
Resync the eleven shared copies, which name their canonical source,
with a patch fragment for each of the nine carrying plugins, and point
the standards schema $id at its new path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VQb9Q3ucKDVyHvpcU5cfU8
…gistered

# Conflicts:
#	scripts/em-dash-purged-paths.txt
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 29, 2026 23:22
@kyle-sexton
kyle-sexton enabled auto-merge October 29, 2026 23:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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-29T23:25:06.024288Z 561ab72 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.

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

Copy link
Copy Markdown
Contributor

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

No security issues found. critical-findings: 0

I read the whole diff (36 files). It is a docs-only relocation of seven contract folders from docs/conventions/ to docs/contracts/. The change consists of:

  • 12 pure renames, plus one edit to the $id URL in standards.schema.json, which is a documentation identifier.
  • 11 generated plugin copies, where only the "GENERATED from …" header comment changed.
  • Path updates in docs/conformance-dimensions.md, scripts/shared-copies.txt, scripts/cross-plugin-source-registry.txt and scripts/em-dash-purged-paths.txt.
  • 9 .changes/* patch fragments.

Trust-control and trusted-path check:

  • No trusted-path file is touched. That covers the trusted-actor list, CODEOWNERS, .gitmodules, the .github/ actions, workflows and scripts, docs/conventions/pr-pipeline.yaml, docs/standards/**, the instruction-exception register and untrusted-content docs, and the babysit scripts.
  • No instruction file was deleted, narrowed or softened. Every removed line has a matching added line that differs only in the folder path. The conformance-dimension owner rows keep their anchors (#Conformance).
  • scripts/shared-copies.txt is a canonical-to-copy mapping used by sync-shared-copies.sh. The new sources are in-repo paths, and the copy destinations are unchanged. The sync script's own code is not in the diff, so I did not look for path-handling issues there.
  • The em-dash allowlist edits only repoint the entries for the moved folders. They do not add a new exemption pattern.
  • No plugin.json or marketplace.json is touched, so there are no manifest items (manifest <field>) to report.

The change does not spend anything and does not touch billing, so no hold applies.

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read all 36 changed files in .claude-lane/pr.diff. I ran no tests, so I confirmed nothing by running it.

  • Moves: The seven folders (12 files) are pure renames at 100% similarity. The one exception is standards.schema.json, where only $id changes, to the new path.
  • Registry repoints: The conformance dimensions (dim-9, 11, 23, 24), scripts/shared-copies.txt, scripts/cross-plugin-source-registry.txt and scripts/em-dash-purged-paths.txt all point at the new paths consistently. I found no stale or missed entries among them.
  • Generated copies: All 11 copies change only their GENERATED from ... header. That matches the 11 shared-copies.txt rows.
  • Changelog fragments: There are 9 bump: patch fragments, one for each carrying plugin: architecture, code-tidying, corrections, coupling, harness-config, improvement, planning, review and session-flow. That count and the patch level fit a header-only change to the copies.
  • Leftover old paths: scripts/affected-tests-live.sh, scripts/check-standards-contract-bump.sh and its test, and two scripts/check-silent-skips.sh comments still name the old docs/conventions/<name> paths. The first two fall back from the new path, and the PR says the remaining reference rewrites land in layer R.
  • Plugin manifests: No plugin.json or marketplace.json changed, so there are no manifest lines to report.
  • Closing issues: The PR says Refs: #7537 and closes nothing, so there are no acceptance criteria to check.
  • Embedded instructions: The PR body contains none.
  • Skip gate: The PR body calls it a draft. The wrapper still asked for a review, and the diff touches trusted-path globs, so I reviewed it fully.
  • Cost: None. This is a docs and registry move and spends no prepaid credits.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 561ab729b1

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

| dim-23 | Every guardrails hook fix pins its over-fire as a stay-quiet test case | docs/conventions/hook-precision/README.md#Conformance | judgment: for each hook under `plugins/guardrails/hooks/`, does its co-located test carry a stay-quiet case for each over-fire fix? (applies to `guardrails`) | judgment | no | plugin |
| dim-24 | No plugin states a pre-PR step order that conflicts with the canonical one | docs/conventions/pre-pr-ordering/README.md#Conformance | judgment: does any surface in this plugin list pre-PR steps, and if so does it cite the sequence instead of re-listing it in another order? | judgment | no | plugin |
| dim-23 | Every guardrails hook fix pins its over-fire as a stay-quiet test case | docs/contracts/hook-precision/README.md#Conformance | judgment: for each hook under `plugins/guardrails/hooks/`, does its co-located test carry a stay-quiet case for each over-fire fix? (applies to `guardrails`) | judgment | no | plugin |
| dim-24 | No plugin states a pre-PR step order that conflicts with the canonical one | docs/contracts/pre-pr-ordering/README.md#Conformance | judgment: does any surface in this plugin list pre-PR steps, and if so does it cite the sequence instead of re-listing it in another order? | judgment | no | plugin |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Migrate active references before moving the contract paths

This move leaves active consumers pointed at paths it deletes: docs/plugin-philosophy.md still links all seven moved contracts under docs/conventions/, and the /source-control:pull-request ready flow still instructs users to read docs/conventions/pre-pr-ordering/README.md. Those references no longer resolve at this commit, so the flow loses its canonical ordering source. Update the remaining links and repository path guidance, or retain compatibility stubs. The root guidance still places marketplace plugin contracts under docs/conventions/.

AGENTS.md reference: AGENTS.md:L109-L110

Useful? React with 👍 / 👎.

Merged via the queue into main with commit 2de0fb5 Oct 29, 2026
81 of 95 checks passed
@kyle-sexton
kyle-sexton deleted the docs/7537-b1-moves-registered branch October 29, 2026 23:30
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