Skip to content

Read the Dependabot policy only from standards, never the synced copy #18982

Done

Description

@kyle-sexton

Goal

No reader in this repository depends on the synced Dependabot policy copy (.github/standards/dependabot-policy/policy.json). Every reader takes the policy from the melodic-software/standards default branch, so standards can drop dependabot-policy from its sync manifest and then delete the copies in every repository (order: readers first, then the manifest, then the deletions).

Readers still able to fall back to the copy on main (d5969b5):

  • .github/scripts/pr-unblock/dispatch.mjs:858: policyPath(env, env.DEPENDABOT_POLICY ?? .base/${POLICY_PATH}) reads the base's copy when the run has no standards checkout. The workflow passes STANDARDS_DIR (pr-unblock-dispatch.yml:301), so the default only acts when that is missing. These lane files are byte-copied into melodic-software/pr-pipeline-sandbox, which picks the fix up at its next resync.
  • plugins/source-control/skills/babysit-prs/scripts/babysit_merge_policy.py:5935-5950: _dependabot_policy calls synced_file, which reads standards only when the team YAML sets standards_repository and otherwise reads the repository's copy.

pr-unblock.yml:3513 (review-dependency select) already passes the standards checkout's policy, and review-dependency.mjs has no copy default.

Owner decision

  • Standards reach repositories by pointer, architecture docs/owner-decisions.md L415, 2026-11-24T18:10:41Z. Owner, verbatim: "Yeah, I feel like we're changing how our stuff syncs from standards, ideally just pointing to those files instead, versus having to sync copies where possible. [...] If any repository doesn't have its override, extension, or customizations, it would fall back to the organization standards." The row's decision, quoted exactly: "a synced copy stays only where a consumer cannot read a pointer, and each such copy names that reason."
  • Q295, L423, 2026-11-25T02:20Z, which "extends the 2026-11-24 18:10:41Z row on standards reaching repositories by pointer". Owner, verbatim: "What is the cleanest mechanism? If there isn't one.. I don't want hacky solutions - so we just keep them separate?" then "OK go w/ recommendations".
  • Dependabot policy source (A3), L397, 2026-11-24T13:59Z. Owner, verbatim: "/session-flow:go-with-recommendations". The row's decision: "A repository whose source-control config sets only standards_repository: <owner>/<repo> has the babysit lane read the Dependabot policy from that repository [...] Each dependabot-policy target then gets standards_repository: melodic-software/standards, so its copy can be deleted in F2."
  • CI reads standards configs from the standards download (Phase E), L386, 2026-11-24T02:50Z (9:50 PM EST on 11-23). Owner, verbatim: "/session-flow:go-with-recommendations". Decision: "(b)", "CI only: ci-workflows reads the typos and markdownlint configs from the standards download".

Rules

  • The policy is a gating file (cooldown floor, grouping, fastTrack, reviewOnly): no per-repository override of the rule.
  • An unreadable policy fails closed: every Dependabot pull request is tier review with dependabot-policy-unreadable, and nothing auto-merges.
  • The standards repository is never hardcoded: CI takes it from the standards checkout, the babysit lane from standards_repository in the target repository's docs/conventions/source-control.yaml.

Done when

  • dispatch.mjs reads the policy only from STANDARDS_DIR or DEPENDABOT_POLICY; with neither, the policy is unreadable. POLICY_PATH (the copy path) is gone from dependency-classify.mjs.
  • _dependabot_policy reads only the standards repository standards_repository names; with none named it returns no policy, and the repository's copy is never read. babysit_dependabot.POLICY_PATH is gone.
  • Tests cover the standards read path and the fail-closed case, each failing on main.
  • config-resolution.md, the standards_repository schema description and the pr-pipeline README's "Review-only dependencies" say no reader takes the copy.

Activity

  1. added
    session-owned
    on Nov 25, 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

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions