Skip to content

feat(plugin-quality): read the standards repository from plugin-quality.yaml - #17521

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/17208-plugin-quality-standards-repo
Nov 19, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/17208-plugin-quality-standards-repo

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #17208

Summary

The plugin-quality auditor checked a component against a local checkout of one organization's standards repository (#17208).

Fix

  • New standards_repo key (owner/repo) in <home>/plugin-quality.yaml, added to schemas/plugin-quality.schema.json and reference/config.md. The auditor reads it from the audited repository; unset, no standards repository resolves and the Standards alignment section states the fallback.
  • This repository sets its own value in docs/conventions/plugin-quality.yaml.
  • A team key, not userConfig: the plugin's config surface is team-only with no personal override channel (plugins/plugin-quality/reference/config.md), and the standards repository is a property of the audited repository.
  • config-cascade contract rows and changelog entry; the standards-unresolved eval prompt drops the organization name. Fragment: plugin-quality minor.

Verification

  • plugin-quality shell suites: citation-contract-drift 12/0, context-zone 105/0, zones-inline-drift 11/0, packet-prune, packet-seal, collect-categories and collect-standards all passed.
  • scripts/check-convention-yaml.sh: 21 files parse and validate.

Remaining

What #17208 still needs after this PR, each carried by its own follow-up PR under Refs: #17208:

  • Classify every other organization-specific match in shipped content as runtime behavior, instruction, permitted citation or test fixture, and record the result on Remove organization-specific dependencies from shipped plugins #17208.
  • Make the remaining runtime and instruction matches read a documented, overridable value: the source-control trust and cost settings, including the DECISION_ROW owner-decisions link in plugins/source-control/skills/babysit-prs/scripts/babysit_merge_policy.py (open in fix(source-control)!: read the merge trust and cost settings from userConfig #17473); playbooks' repo-sweep issue target and fleet's converge_docs_url (branches pushed, PRs to follow); the git-hooks git_url shared by the plugins that install git hooks; and the guardrails lane App login.
  • Add the CI portability check (scripts/check-skill-portability.sh or its token classes) that fails when shipped content adds a new organization dependency outside the allowed citation shapes. It lands last.

Related

Plan item 9 of #17208.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd

…ty.yaml

The auditor checked a component against a local checkout of one
organization's standards repository. The repository is now the
standards_repo key (owner/repo) in the audited repo's
<home>/plugin-quality.yaml, validated by the plugin's schema; unset, no
standards repository resolves and the Standards alignment section states
the fallback. This repository sets its own value in
docs/conventions/plugin-quality.yaml.

A team key rather than userConfig: the plugin's config surface is
team-only with no personal override channel (reference/config.md), and
the standards repository is a property of the audited repository.

Refs: #17208

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 19, 2026 20:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T20:53:28.418860Z 3e22370 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

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44613059330

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/apply-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 46251a9
Run 44613059330

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 46251a9ce68f621a2b4378cb30bf3478a36343e9: read 8 of 8 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

This PR adds a standards_repo key (owner/repo) to the team file <home>/plugin-quality.yaml. It is meant to replace the auditor's hardcoded lookup of one organization's standards checkout. I read all 8 changed files in full.

  • Schema (plugins/plugin-quality/schemas/plugin-quality.schema.json): the new property has an owner/repo pattern, and additionalProperties: false still holds. The new docs/conventions/plugin-quality.yaml sets only standards_repo, so it validates against the schema.
  • Interaction with the verification reader: this repository did not have docs/conventions/plugin-quality.yaml before. I read plugins/plugin-quality/lib/read-verification.sh. It looks up only verification_skills.<skill> and verification, so a file holding just standards_repo resolves to light ("sets no level"), which is the same default as having no file. The extra key cannot change the verification level.
  • Auditor (plugins/plugin-quality/agents/auditor.md): the Standards repository step now names its source as the configured key. The fallback when nothing resolves is unchanged, and eval 26's prompt drops the organization name to match.
  • Docs: the config-cascade contract rows (Semantics and Implementers) and the changelog line agree with reference/config.md. The new key is read from the working tree, while verification is read from the default branch. That fits a key that only names a source the auditor compares against, and the rows describe the difference correctly.
  • Closing issue: the PR says Refs: #17208 and closes no issue. The PR context has no closing-issue section, so I checked no acceptance criteria.
  • Embedded text: the PR context contains no instructions directed at this review.
  • Loosened checks: the wrapper gave no loosened_check_verdict: or loosened_check_patterns: lines, so I used fail with no consumer entries. It gave no loosened_check_decision_record: line, so I did not check the citation requirement. No changed file loosens a check. Loosened-check verdict: fail (default, no wrapper lines); no loosened check found in the diff.
  • Manifests: no plugin.json or marketplace.json changes, so no manifest lines.
  • Verification: the suite results in the PR description were run by the author. I could not run them here, so they are unverified.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 46251a9ce68f621a2b4378cb30bf3478a36343e9: read 8 of 8 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17521 (head 46251a9)

I found no security issues in this pull request.

I read every hunk of all 8 changed files. None of them matches a trusted-path glob, and the diff touches no plugin manifest (plugin.json / marketplace.json), workflow, action, token request, merge hold or kill switch.

What changed:

  • A new team-only standards_repo key (owner/repo) lives in <home>/plugin-quality.yaml. Its schema pattern is ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$ (schema L15-L19). This repository sets its own value in docs/conventions/plugin-quality.yaml.
  • The plugin-quality auditor agent now reads that key from the audited repository (auditor.md L207-L210). Before, it fell back to a hard-coded organization standards checkout.

Trust-boundary checks:

  • Input source. The key comes from the audited repository's working tree. That is not a widening: the base text already used a standards repository "the audited repo declares".
  • No fetch. The value only picks which local checkout to cite. Nothing fetches or runs code from it.
  • No gate or credential. The key feeds the advisory Standards alignment section of an audit report. It reaches no gate, no token and no shell command. That is why reading it from the working tree, unlike verification, which is read from the default branch, opens no path to a leak, a compromise or a charge.
  • Instruction-surface lens. The auditor change replaces a hard-coded fallback with a configured value. The rule "when none resolves, state that fallback and infer nothing" stays. No protected-class rule is removed or softened.

Embedded text: the PR context file holds no text telling the lane to pass the PR, skip a check, drop a finding or post elsewhere.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 6ac7602 Nov 19, 2026
46 checks passed
@kyle-sexton
kyle-sexton deleted the fix/17208-plugin-quality-standards-repo branch November 19, 2026 22:21
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant