Skip to content

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

Description

@kyle-sexton

Context

Owner accept of 2026-11-24 (owner words, verbatim: "/session-flow:go-with-recommendations", accepting the hub session's recommendations), items A1 and A3:

  • A3: split the standards opt-in. A repository whose docs/conventions/source-control.yaml sets only standards_repository: <owner>/<repo> has the babysit lane read the Dependabot policy (components/dependabot-policy/policy.json) from that repository; trusted_actors_source: standards stays the separate, owner-approved opt-in for the trusted-actors list. Each dependabot-policy target can then set standards_repository: melodic-software/standards so its .github/standards/ copy can be deleted (F2).
  • A1: no new hold path for trusted_actors_source: standards; a repository beyond claude-code-plugins and pr-pipeline-sandbox sets it only with an owner-decisions row approving that repository.

Today _dependabot_policy (babysit_merge_policy.py) reads through synced_file, which reads standards only when trusted_actors_source: standards is set, so a repository cannot move its policy read without also widening its trusted list.

Proposed work

  • babysit_merge_policy.py: the Dependabot policy read uses standards_repository whenever it is set, whatever trusted_actors_source says; the trusted-list readers (merge policy, babysit_verify_evidence.py, babysit_merge_skip.py, check-ready-holds.sh) stay gated on trusted_actors_source: standards plus a valid standards_repository.
  • Schema descriptions of both keys, reference/config-resolution.md and merge.md say so; the trusted_actors_source description and config-resolution.md carry the A1 rule.
  • Tests and a changelog fragment.

Acceptance criteria

  • With only standards_repository set, the merge gate reads the Dependabot policy from that repository and not the copy.
  • With only standards_repository set, every trusted-list reader still reads the .github/standards/ copy.
  • A standards_repository that is not an owner/repo pair, without trusted_actors_source: standards, fails the policy read closed (no Dependabot merge).
  • A repository with neither key reads both copies as before.
  • config-resolution.md and the trusted_actors_source schema description state the A1 opt-in rule in one or two sentences.

References

  • plugins/source-control/skills/babysit-prs/scripts/babysit_merge_policy.py (opts_in_to_standards, reads_standards, synced_file, _dependabot_policy)
  • plugins/source-control/reference/config-resolution.md

Activity

  1. added
    session-owned
    on Nov 24, 2026
  2. added theissue type on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    session-owned

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions