Skip to content

fix(source-control): read the Dependabot policy from standards_repository alone - #18780

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/dependabot-policy-standards-repository
Nov 24, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/dependabot-policy-standards-repository

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #18777

Summary

A repository could only move its Dependabot policy read to the standards repository by also setting trusted_actors_source: standards, which widens the trusted list the babysit lane adopts from. The owner accept of 2026-11-24 (owner words, verbatim: "/session-flow:go-with-recommendations"; items A1 and A3) splits the two: standards_repository alone moves the policy read, and trusted_actors_source: standards stays the owner-approved opt-in for the trusted list.

Fix

  • babysit_merge_policy.py: the YAML key parsing moves into _standards_keys and _standards_repo. opts_in_to_standards (the trusted list) keeps its rule; a new names_standards (the Dependabot policy) returns standards_repository whenever it is set, whatever trusted_actors_source says, and raises on a malformed one or on standards with none. reads_standards and synced_file take the chooser, cached per chooser; _dependabot_policy passes names_standards. The trusted-list readers (trusted_listing, babysit_verify_evidence.py, babysit_merge_skip.py, check-ready-holds.sh) are unchanged.
  • A repository with neither key reads both .github/standards/ copies as before. An invalid trusted_actors_source still fails both reads.
  • Schema descriptions of trusted_actors_source and standards_repository, reference/config-resolution.md and merge.md describe the split. The trusted_actors_source description and config-resolution.md add the A1 rule: setting standards widens which pull requests the babysit lane adopts and merges unattended, so a repository beyond claude-code-plugins and pr-pipeline-sandbox sets it only with an owner-decisions row approving that repository.
  • Changelog fragment (minor).

Verification

  • python3 -m unittest discover over plugins/source-control/skills/babysit-prs/scripts/tests: 4721 tests, OK (20 skipped), 247 s.
  • New cases: the policy is read from standards with only standards_repository (and with trusted_actors_source: repository), not from the copy; an unresolved standards main fails it; standards_repository: nope or a list value fails the policy read closed (the update is not eligible) with or without trusted_actors_source: repository; the trusted list (merge policy, verify-evidence, skip key) still comes from the copy with only standards_repository.
  • check-ready-holds.test.sh: all pass, including two new cases (only standards_repository set reads the copy, never the standards list).
  • scripts/check-org-repo-tokens.sh --check, scripts/check-convention-yaml.sh (21 files validate), scripts/check-changelog-fragments.sh --check-required origin/main, node scripts/sync-credential-legs.mjs --check: pass.
  • scripts/run-ruff.sh check on the changed Python: pass.

Related

Refs: owner accept 2026-11-24, items A1 and A3. Follow-up outside this PR: each dependabot-policy target sets standards_repository: melodic-software/standards so its copy can be deleted in F2.

🤖 Generated with Claude Code

…tory alone

The babysit merge gate now reads components/dependabot-policy/policy.json
from the repository standards_repository names whenever that key is set,
whatever trusted_actors_source says. The trusted-actors list still moves
only with trusted_actors_source: standards. A malformed standards_repository
fails the policy read closed. Docs state that setting standards widens what
the lane merges unattended and needs an owner-decisions row outside
claude-code-plugins and pr-pipeline-sandbox.

Closes #18777

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 24, 2026 14:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 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-24T14:16:41.526114Z 889dc5d 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.

@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: 889dc5d2dd

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

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 77da4e299a256ed8ae2c21d48763786fd206fece: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no security issues found

I read every hunk of the 3 files changed since 889dc5d2dd0c4484913ff780ffb92feabee80f8c. This lane already reviewed an earlier head, so this review reports only CRITICAL and IMPORTANT findings.

What changed. The push rewords one sentence in three places:

  • the trusted_actors_source description in plugins/source-control/schemas/source-control.schema.json
  • plugins/source-control/reference/config-resolution.md
  • the changelog fragment

The old text said a repository other than claude-code-plugins and pr-pipeline-sandbox may set standards only when an owner-decisions row approves it. The new text says to set it only where the repository's owner has approved it through their own approval process.

What I checked

  • Trust controls. The push changes no code, so no control changed:
    • opts_in_to_standards, names_standards, the trusted-trigger check and the merge holds are all the same as at the head I reviewed last.
    • The schema's enum and default ("repository") are unchanged. Only the description string changed.
    • Who is trusted and what a token may do are not widened.
  • Instruction-surface lens. The sentence is advice in reference docs and a schema description. It is not a standing instruction to an agent, and no mechanism ever enforced it, so rewording it removes no guardrail. What setting standards does is still stated: it widens which pull requests the lane adopts and merges unattended. Only the wording of the approval step changed. Even read as softening an approval step, a person-approval hold falls under the owner's throughput-phase exemption. I did not consult the protected-class register (docs/contracts/instruction-exception-register/README.md), because this lens raised no candidate.
  • PR context. It has no embedded instructions aimed at this lane. Its Fix section still describes the older "owner-decisions row" wording. That is a description mismatch, not a security issue.
  • Spend. The push adds none.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 77da4e299a256ed8ae2c21d48763786fd206fece: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): no findings

This lane already reviewed head 889dc5d2, so I reviewed only the push since then and reported only blocking findings. I read every hunk of the 3 files in scope:

  • .changes/source-control/fix-dependabot-policy-standards-repository-f0a81f0d.md
  • plugins/source-control/reference/config-resolution.md
  • plugins/source-control/schemas/source-control.schema.json

What changed. The push only rewords the A1 opt-in sentence, the same way in all three files. The old text was: "a repository beyond claude-code-plugins and pr-pipeline-sandbox sets it only with an owner-decisions row approving that repository". The new text says to set trusted_actors_source: standards only "where the repository's owner has approved that through their own approval process". The changelog fragment, the reference doc and the schema description now agree with each other. No code changed.

Closing issue #18777, last criterion ("config-resolution.md and the trusted_actors_source schema description state the A1 opt-in rule in one or two sentences"): I judge it met.

  • Both files still say in one sentence that standards widens what the babysit lane adopts and merges unattended, and that it needs the owner's approval.
  • What the new text drops is detail specific to this org: the two exempt repository names and the owner-decisions row as the form the approval takes.
  • That fits a marketplace plugin that ships to repositories in other orgs. Elsewhere the plugin already treats the owner-decisions record as something each repository configures (for example diff_risk.py: "no owner-decisions record is set").
  • If the owner wants the owner-decisions row named in the plugin docs, that is the author's call, and it does not block this change.
  • The PR description's Fix section still quotes the old wording, so it no longer matches the docs. That is PR text, not code.

Other checks.

  • Loosened checks: the wrapper wrote no verdict, pattern or decision-record lines, so I used fail with no consumer patterns and did not check the citation requirement. Loosened checks would be marked: fail (default, no settings lines supplied); patterns: 0.
  • Plugin manifests: no plugin.json or marketplace.json changed in this push. The schema change is a description string only: no userConfig default or options changed.
  • Verification: I had no shell and ran no tests or checks. The PR's verification results are the author's claims and I did not confirm them.
  • Embedded text: none in the PR context or the prior findings that tries to direct this lane.
  • Prior findings: this lane's one earlier post is a summary with no findings, so nothing carries over.

Verifier dropped 0 of 0 candidates.

…ors_source docs

The shipped reference, schema description and changelog fragment named this
organization's repositories and its owner-decisions record as the approval
for trusted_actors_source: standards. Plugins ship to any consumer, so they
now say only that the repository's owner approves it through their own
process.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit b09704c Nov 24, 2026
58 checks passed
@kyle-sexton
kyle-sexton deleted the fix/dependabot-policy-standards-repository branch November 24, 2026 15:11
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 24, 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.

Read the Dependabot policy from standards_repository without the trusted-list opt-in

1 participant