Repository navigation
feat(review): read org standards and REVIEW.md from the standards repository - #18969
Conversation
…ository Standards contract 1.2.0 adds an org layer: the team layer of the repository docs/conventions/source-control.yaml names in standards_repository, read from its main (STANDARDS_DIR in CI, else a cached shallow clone) beneath the team layer. Review criteria compose the org REVIEW.md with the repository's appended, or the repository's alone behind a first-line <!-- review-base: replace --> marker. lib/org-standards.sh implements both, shared into review, planning and improvement; the pr-review-main lane composes REVIEW.md from its standards checkout. Closes #18968 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e3148dcf43
ℹ️ 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".
…in spokes
Register scripts/org-standards.sh in the cross-plugin source registry under
its sync-shared-copies.sh check, and replace ${CLAUDE_PLUGIN_ROOT} in the
quality-gate criteria and self spokes with the <plugin-root> placeholder
SKILL.md "Spoke paths" renders.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-security-review reviewed Security review: PR #18969, incremental (d880fe0 → 4d39731)I found no security issues in this push. This lane already reviewed an earlier head, so the review was blocking only. I read every hunk of all 4 files in What I checked
The change only narrows when cached reviews are reused. Spend: a change on the standards repository now triggers fresh review runs instead of reusing a cached verdict. That uses prepaid or subscription review credit and bills nothing. No plugin manifest changed, so there are no manifest lines. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): standards commit bound to cached main-run verdictsThis review covers only the changes since The incremental change looks correct.
I ran nothing; none of this is executed or confirmed by me. Blocking finding still open (restated from the previous round; the file is unchanged since then):
Loosened checks. No check is loosened in this increment.
No plugin manifest changes and no embedded instructions in the inputs. Spend: this change can make main-run reviews run again when the org standards commit moves, which spends more prepaid review runs; nothing is billed. Verifier dropped 0 of 0 candidates. |
write-verdict.mjs records the run's standards commit (download-standards' one SHA per run) as standards_sha, required and SHA-checked. The judged-head step counts a verdict only when its standards_sha equals the commit this run resolved; a verdict from another standards commit, or with none, does not count, so an org-layer change reviews the head again. The subscription and fallback legs are re-rendered by scripts/sync-credential-legs.mjs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
## Summary
Publish the team-layer index that standards contract 1.2.0 reads as the
org layer. Until now `org-standards.sh index` exited 5 against this
repository, because it had no index. That blocks retiring the
`engineering-standards` and `filing-guide` copies (owner decision Q296,
L1).
## Fix
- `.claude/standards.yaml` sets `standards_dir: standards`. That is the
directory holding the docs, so every row resolves relative to the index.
- `standards/README.md` becomes the index. It gains the
`standards-contract: 1.2.0` front matter and a `## Standards index`
table of the eleven files the two components sync, as
`engineering/<file>.md` and `process/<file>.md`.
- "How this is consumed" now names the one runtime read: the org layer.
- The component README no longer says skills never fetch remote
standards.
- The sync manifest and
`components/engineering-standards/standards-index.md` are unchanged.
Consumers flatten the files into `docs/standards/`, so their synced
index must keep the bare file names until the components retire.
Why this layout:
- `org-standards.sh` reads the index from a fixed name,
`<standards_dir>/README.md`. See `lib/org-standards.sh:76-78` on
claude-code-plugins main: `dir=$(yaml_value
"$org/.claude/standards.yaml" standards_dir)` and
`index="$org/${dir:-docs/standards}"; index="${index%/}/README.md"`.
- The contract resolves each `File` relative to `<standards_dir>` first,
then from the repository root
(`docs/contracts/standards/README.md:90-92`).
- The eleven docs sit in two directories, `standards/engineering/` and
`standards/process/`. `standards/` is the nearest directory that holds
both, and its `README.md` already documents how the directory is
consumed.
- `components/engineering-standards/` can't be the index directory. Its
`README.md` is the component record, and the docs aren't there.
## Verification
- `STANDARDS_DIR=<worktree> bash lib/org-standards.sh index`
(claude-code-plugins main) prints `standards/README.md` and exits 0.
- Every `File` in the table exists under `standards/`: all eleven
checked.
- lefthook pre-commit passes: markdownlint, editorconfig, typos,
gitleaks and the remote lanes.
## Related
-
[claude-code-plugins#18969](melodic-software/claude-code-plugins#18969):
standards contract 1.2.0, the org layer.
-
[ci-workflows#1221](melodic-software/ci-workflows#1221):
pr-review-cli composes `REVIEW.md` over the org's.
- Retiring the `engineering-standards` and `filing-guide` components is
a later change. Once it lands, this index is the only one.
Refs: melodic-software/claude-code-plugins#18968
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5 <[email protected]>
…1135) No related issue: owner decisions Q296 and Q297 (architecture docs/owner-decisions.md L424-425) authorize this retirement directly. ## Summary Stops syncing three components whose readers now use the org layer read from this repository's `main`: - `engineering-standards` and `filing-guide` (the `docs/standards/` docs), now read through the org standards index at `standards/README.md`; - `review-instructions` (`REVIEW.md`), now composed by the review lanes as the org base beneath a repository's own `REVIEW.md`. This is the manifest step of the retirement procedure (`distribution/README.md` Lifecycle "Retire" row, `docs/component-lifecycle.md` "Retirement"): upstream ownership goes first, and deselection never deletes. Each target deletes its copies later in its own pull request. ## Fix - `distribution/sync-manifest.yml`: removes the three component entries, the `requires: filing-guide` edge on `engineering-standards`, every target's `managed` entry for them, and medley's `locally-owned` `review-instructions`. Comments that named them are updated. The managed-files guard resolves destinations at run time, so it holds no static path list to prune. - Deletes `components/engineering-standards/` (`standards-index.md`, which duplicated the index rows now in `standards/README.md`, and its README). `standards/README.md`'s index points into `standards/engineering/` and `standards/process/`, not into that directory, so no link dangles. - `distribution/README.md`: removes the obsolete "Review-instructions reconciliation (medley)" section and rewrites the root-files paragraph that named `review-instructions`. - `components/code-review-rules/README.md`: the default pointer line is now the canonical URL form; a repository that keeps its own `REVIEW.md` links it in-repo as its additions. The check script already enforces exactly that split (URL when there is no root `REVIEW.md`), so it is unchanged. - `standards/README.md`, `AGENTS.md`, `components/pr-convention-policy/` (README, including the `filing-guide` admission-evidence block, and the `contract-docs.mjs` header comment), `components/issue-body-contract/README.md`, `distribution/REVIEW-CREDENTIAL.md`, `standards/review/README.md`: wording that described the synced copies. - `distribution/sync-manifest.test.sh`: the three per-component assertions become "no component named X exists (retired)" assertions, beside the existing `agent-orientation` one. ## Verification - `distribution/sync-manifest.sh validate`: `Manifest valid: 47 components, 19 targets`. - `bash distribution/sync-manifest.test.sh`: exit 0, all 326 assertions pass, including the four retired-component assertions. - `code-review-rules.test.sh` passes; `code-review-rules.sh file` passes on this repository's `AGENTS.md`. - `npm run lint:contract-docs` and `npm run test:contract-docs` pass. - markdownlint: 0 issues across the 8 changed docs. `lychee --offline`: 0 errors. The pre-commit hooks (typos, gitleaks, shellcheck and the rest) pass. ## Loosened checks `distribution/sync-manifest.test.sh` removes four assertions. The reason for each is the same: the components are retired under owner decisions Q296 (L1) and Q297 (L2), melodic-software/architecture `docs/owner-decisions.md` L424-425, owner words "OK go w/ recommendations". An assertion about which targets a retired component reaches has nothing left to check. - `REVIEW.md reaches every enrolled ci-workflows-reviewable target, public and private alike` (the exact 13-target list for `review-instructions`): replaced by `no component named review-instructions exists (retired)`. Review lanes now read `REVIEW.md` from this repository's `main` as the org base. - `medley locally-owns review-instructions rather than whole-file-managing it`: replaced by the same `review-instructions` retired assertion. With the component gone, medley's `REVIEW.md` is its own file and no ownership label applies. - `medley's managed list does not also claim review-instructions`: replaced by the same retired assertion. A target that listed `review-instructions` again would also fail `sync-manifest.sh validate` as an unknown component. - The standalone `no component named agent-orientation exists (retired)`: not loosened. It moved into the retired-component loop, which still asserts it under the same name (`PASS: [157]` in the local run). Each retired assertion fails if the name reappears. On the real manifest, the loop's expression `[.components | keys[] | select(. == strenv(COMPONENT))] | length` counts 0 for all four names. On a copy with each name re-added under `components`, it counts 1, so `assert_eq ... '0'` fails. ## Related - Owner decisions Q296 (L1) and Q297 (L2) in melodic-software/architecture `docs/owner-decisions.md` L424-425, owner words "OK go w/ recommendations". Q297 holds only while no repository uses GitHub's managed Code Review service. - Readers moved first: melodic-software/claude-code-plugins#18969 (standards contract and review lanes read from standards main), #1134 (org index at `standards/README.md` via `.claude/standards.yaml`), melodic-software/ci-workflows#1221 and melodic-software/ci-workflows#1222 (the CLI and hosted review lanes compose the base). This PR should merge after #1221 and #1222. - Next: one deletion PR per target, removing its `docs/standards/` copies and `REVIEW.md` and fixing the readers that link them. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
Closes #18968
Summary
Standards contract 1.2.0 adds an org layer, so a repository can read the organization's engineering standards, filing guide and
REVIEW.mdfrom melodic-software/standards main instead of a synced copy (owner decisions L1, Q296, and L2, Q297; owner words at line 423, verbatim: "OK go w/ recommendations").Fix
docs/contracts/standards/README.md, 1.2.0): an Org layer section and a "Review criteria:REVIEW.md" section. The org layer is the team layer of the repositorystandards_repositorynames indocs/conventions/source-control.yaml, read at itsmain; it sits beneath the team layer, which adds to it or replaces an org file by name. A repository without the key resolves exactly as before.REVIEW.mdin effect: the org file, then the repository's appended (a byte-identical synced copy adds nothing, so today's copies keep working). A repositoryREVIEW.mdwhose first non-blank line is<!-- review-base: replace -->is the whole criteria.lib/org-standards.sh(dir,index,review):STANDARDS_DIRin CI, else a depth-1 clone cached under the user cache directory and refreshed hourly; a failed refresh keeps the cache with a notice. Shared into review, planning and improvement.REVIEW CRITERIA:/ORG STANDARDS:prompt line from a shell-less lane, else the repository file as before), the three reviewer agents, quality-gate's criteria and self modes, the pr-review-main lane (composesstandards/REVIEW.mdfrom its standards checkout and copies the checkout's criteria and prose toorg/;REVIEW.mdanddocs/standardsbecomecopy-if-present), the issue house style, the ecosystem-resolution record table (1.1.2) andAGENTS.md.Claude Code Reviewcheck run on sampled PR heads (this repository chore(release): release 1 plugins #18952, medley docs(docs-hygiene): hedge audit-derivability fork contrast as contested #2443, dotfiles guardrails: block-hook-bypass message overstates enforcement scope (writes inside an invoked script are not inspected) #1802); no Copilot code review rule in thebaseortrust-rootorg rulesets.Verification
bash lib/org-standards.test.sh: 22 pass, covering default (no repository file: org only), extend (appended), complete override (marker: repository only), identical copy, no opt-in,STANDARDS_DIR, cache TTL and refresh, failed refresh, clone failure, andindex.node --test .github/scripts/pr-review-main/workflow.test.mjs: 49 pass; the copy-step test runs the step's script for extend, override and default.scripts/check-standards-contract-bump.sh origin/main: pass.scripts/sync-shared-copies.sh --checkandnode scripts/sync-credential-legs.mjs --check: clean.scripts/validate-plugins.sh --only "review planning improvement ...": valid.shellcheckandscripts/check-vocabulary.pyon changed files: clean.Related
pr-review-cli.ymlstages the composed criteria for the hosted and fleet review lanes once this merges; then standards adds its org index and retires theengineering-standards,filing-guideandreview-instructionscomponents; then per-target deletions.🤖 Generated with Claude Code