Repository navigation
ci: fail shipped plugin content that names an organization repository - #17570
Conversation
scripts/check-org-repo-tokens.sh scans tracked text under plugins/ for an <org>/<repo> token. A Pointer:, Basis: or As of line, a link into this repository's own pages and the marketplace install command are citations; every other token needs a counted entry with a reason in scripts/org-repo-tokens-allow.tsv, seeded from main. Wired into the lint-repo hygiene gates. Refs: #17208 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
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. |
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: PR #17570, incremental (f18a7ef..ac1d185)I found no security issues. I read the whole of the one change since the last review, in What changed. The "repository path" bullet is rewrapped and now says two more things about
The PR description lists the same allowance and the same exclusions as the script, which this lane reviewed at the earlier head. The edit only records them in the docs. Instruction-surface lens. The edit deletes, narrows or softens no standing rule and changes no enforcement. It describes what the existing gate leaves out, and that makes the doc more accurate, not less safe. The file is not on the trusted-path list. Trust controls and manifests. This change touches no trust control, token scope, kill switch, merge hold or plugin manifest. PR context. The description matches the change and contains no embedded instructions. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, f18a7ef → ac1d185): no findingsThis review covers only what changed since The earlier finding is fixed. The bullet now matches what the gate does:
The owner resolved the settled thread on these lines, and I ran nothing. The author's verification claims are unverified. Closing issue: none. The PR only says Loosened checks: none. The edit is documentation and it makes the stated coverage narrower, not wider. Loosened-check verdict: fail (the default, since the prompt has no Spend: none. Verifier dropped 0 of 0 candidates. |
Refs: #17208 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
Refs: #17208
Summary
#17208's third done-when item: a CI check that fails a pull request adding this organization's repository path to shipped plugin content outside the allowed citation shapes (#17208).
Fix
scripts/check-org-repo-tokens.shscans tracked text files underplugins/for an<org>/<repo>token or an<org>.github.io/<repo>URL. Not scanned: each plugin'sCHANGELOG.mdand.claude-plugin/plugin.json(publisher metadata), test files (*.test.*,test_*.py) andevals/,tests/,test/,fixtures/directories.docs/plugin-philosophy.md"Design boundary" and the Remove organization-specific dependencies from shipped plugins #17208 plan: a line carryingPointer:,Basis:orAs of; a link into this repository's own pages (github.com/<org>/claude-code-plugins/blob|tree|issues|pull|...); themarketplace addinstall command.scripts/org-repo-tokens-allow.tsv(path, token, count, reason). A file with more occurrences than its entry allows fails; an entry above the current count prints a notice to lower it and does not fail.$id/$refidentifiers (58), another organization repository named in prose or an example (20), this marketplace's own repository as install, issue target or example (19), the git-hooksentries.jsondefault remote (11), links to other organization repositories cited for a reader (9).org-repo-tokenshygiene gate inpr-require-checks.yml(lint-repo job, besideloop-lane-floor-drift), with itscheck-affected-gates.txtrow andcheck-script-contract.test.shregistry row.docs/plugin-philosophy.mdlists it as the repository-path extension of the org-agnosticism classes.Verification
scripts/check-org-repo-tokens.shon this branch: clean.scripts/check-org-repo-tokens.test.sh: PASS=17 FAIL=0 (clean tree; an organization pages URL fails; citation shapes and excluded files pass; an unexcused token fails with path, token and line on stderr only; a raw own-repo fetch is not a citation; counted entries; a count overrun; the lower-it notice; malformed and missing allow file and a non-repository root exit 2).scripts/check-affected-gates.test.sh6/0,scripts/check-docs-only-gate.test.sh88/0,scripts/check-docs-only-gate.sh --checkclean,scripts/check-script-contract.test.sh68 pass, 2 fail oncheck-html-assets.shonly because this worktree has nonode_modules(htmlhint missing).scripts/check-affected.sh: 16 passed.Remaining
What #17208 still needs after this PR:
do-not-mergeon an owner question about its default.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd