Skip to content

feat(source-control): read the trusted list and Dependabot policy from standards for opted-in repos - #18732

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-18698-45332089428-1
Nov 24, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-18698-45332089428-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #18698

Summary

Opened by the work-resolve-issue lane. The run's own summary:

trusted_listing (used by lane adoption and the issue-status setters) and _dependabot_policy now read through one helper, _list_text, which reads trusted_actors_source from the repository's docs/conventions/source-control.yaml at the same ref. With the value standards, both readers read components/trusted-actors/trusted-actors.json and components/dependabot-policy/policy.json from melodic-software/standards, at the commit standards main names on its first read in a process; each file is read once a process. With no file, no key, or the value repository, they read the repository copies at that ref as before. Any other value, or a non-scalar one, raises PolicyReadError, so trusted_actors returns nothing and the lane adopts nothing. Choices of means: the opt-in parse follows _team_loop_merge (the shared reader, a line regex, and yaml_records for a quoted or indented non-scalar key); the reads go through the existing _file_at contents-API seam; the standards commit comes from GET repos/melodic-software/standards/commits/main and is checked against SHA_RE.

Not verified

  • The Python test suites (test_babysit_merge_policy.py and the other babysit-prs suites) were not run: this lane cannot run python or a test runner. Left to the PR's CI.
  • Tidy did not run every pass: the ai-slop fix pass (pass 5) was skipped because its detect.sh and digest-guard.sh scripts cannot run under this lane's Bash rules; a manual read of the changelog fragment found no AI-writing tells. Passes 1 to 4 ran and made no edits.
  • The verify step (build and tests) was not run here: there is no build for these Python scripts, and tests are left to the PR's CI.
  • The repository root shows untracked sandbox mount-point artifacts (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc). This run did not create them and they are not part of the change; leave them out of the patch.

Fix

  • plugins/source-control/skills/babysit-prs/scripts/babysit_merge_policy.py: adds the TRUSTED_SOURCE_KEY, TRUSTED_SOURCES, STANDARDS_REPO and standards path constants, the trusted_actors_source opt-in reader (cached per repository and ref), _standards_file (main resolved once a process, each file…
  • plugins/source-control/skills/babysit-prs/scripts/tests/test_babysit_merge_policy.py: new TrustedActorsSource class covering the opt-in, the unset and repository cases, unknown and non-scalar values (including a quoted key), failed reads of the team YAML, of standards main and of each standards…
  • .changes/source-control/work-resolve-issue-issue-18698-45332089428-1-88711084.md: minor changelog fragment for the source-control plugin

Verification

The runner ran each check from the base copy against 1e3b32a:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 4 fragments valid
  • check-changed-skills: babysit-prs PASS, 0 errors, 4 existing warnings unrelated to this change
  • check-affected: 17 passed, 10 skipped (typos not installed, comment-hygiene fetch blocked by the sandbox network, size-check script absent, and checks that run code from the checked tree); ruff on the two changed .py files passed
  • fresh-context review subagent over the whole diff: no confirmed bugs; it traced each new test against GhFake and found no existing test the change breaks; its one suspected edge case (a quoted or indented non-scalar key falling back to repository) is fixed and covered by a new test case
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/45332089428

Left out: the items under Not verified.

Related

#18698

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 6cbfca1d04111995f7510857e875eb99d84719d5: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

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

Scope: this review covers only what changed since 1e3b32aadcd1227a3429c17e3350b0afc54327b5. That is one file, scripts/org-repo-tokens-allow.tsv, and I read its whole change. This lane reviewed an earlier head of this pull request (blocking only: yes), so only CRITICAL and IMPORTANT findings would be reported.

What changed: the edit is to the allowlist the org-repository-token check reads. That check decides which files may name another repository in the publishing organization.

  • Entry added: plugins/source-control/skills/babysit-prs/scripts/babysit_merge_policy.py may name melodic-software/standards once. This matches the hardcoded STANDARDS_REPO constant the PR adds, which the prior review already checked: it is fixed in code, and no PR input can point it elsewhere.
  • Entries removed: reference-edges.sh and babysit_gh.py are dropped.
  • Counts adjusted: create.md goes from 5 to 4 and container-lifecycle.md from 2 to 1. These look like the counts catching up with the base branch.

Trust-control check:

  • The file is not on the trusted-path list, and it is not one of the controls this lane guards: the trusted-trigger check, the lane token scope, the kill switch, the broker signer, merge holds, or the .github/actions/ gates.
  • The check it feeds is a hygiene check on repository-name references. It does not decide who is trusted or what a token may do.
  • Nothing here gives any actor, token scope or untrusted text a path to a leak, a compromise or a charge.

Instruction surface: no standing instruction is deleted or softened.

Spend: none.

Prior findings: the only earlier post is a summary comment with no line anchor, and it reported 0 findings. Nothing carries forward.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 6cbfca1d04111995f7510857e875eb99d84719d5: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings (incremental, blocking only)

Scope. This review covers only what changed since 1e3b32aa. That is one file, scripts/org-repo-tokens-allow.tsv, and I read its whole change in the incremental diff. An earlier head was already reviewed, so this lane posts only blocking findings.

What the change does. It updates the counted exceptions that scripts/check-org-repo-tokens.sh reads. I checked each edited entry against the head tree using the script's own counting rules. The script removes links into this repository (github.com/<org>/claude-code-plugins/(blob|tree|issues|…)/) before counting, and it skips lines that contain Pointer:, Basis: or As of.

  • New entry: babysit_merge_policy.py, melodic-software/standards, count 1. The only match is STANDARDS_REPO = "melodic-software/standards" at L161. This is the constant this PR adds. The claude-code-plugins links at L939 and L1037 are an issue link and a blob link, so the script removes them and they need no entry. The count matches.
  • Removed entry: babysit_gh.py. Its only match is an issue link at L597, which the script removes, so no entry is needed.
  • Removed entry: map-landscape/scripts/reference-edges.sh. There is no organization token left under map-landscape/scripts/, so no entry is needed.
  • Lowered entries: pull-request/reference/create.md (5→4) and decompose/context/container-lifecycle.md (2→1). Grep finds 4 raw links in create.md (L236, L285, L420, L545) and 1 in container-lifecycle.md (L36). Both match the new counts. These counts can only go down without failing the check, which follows the file's own rule: "Lower a count when an occurrence goes."

Closing issue #18698. This push touches only the allowlist, not the code behind the done-when criteria. I checked those criteria at 1e3b32aa and found them met and tested. That code is unchanged.

Not verified.

  • I did not run the check script or the tests because this lane has no shell. The counts above come from Grep over the head tree.
  • I did not read the whole of create.md L545 (Grep omitted the long line). I counted it as a raw link from its match, consistent with the entry's stated reason.

Loosened checks. Lowering or removing an allowlist count tightens the check. The one new entry allows one token that the PR introduces and gives a reason. Nothing in this push lets the check accept a token it rejected before. The prompt has no loosened_check_verdict: or loosened_check_patterns: line, so I used fail and no consumer entries. It has no loosened_check_decision_record: line, so I did not check the citation requirement.
Loosened checks would be marked: fail (default; no resolver in this lane); patterns: 0

Prior findings. The only earlier post is the summary comment on 1e3b32aa, which had no findings, so nothing carries over.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 6cbfca1d04111995f7510857e875eb99d84719d5. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped fix-ci on this pull request: the lane could fix a failing check only by weakening a required check, and the head has no fresh fixer round left (it ran one, or an earlier lane stop already spent its same-head retry), so a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/fix-ci status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=18732 -f activity=fix-ci

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 24, 2026
…merge_policy

check-org-repo-tokens failed on STANDARDS_REPO = "melodic-software/standards"
(babysit_merge_policy.py:161). Issue #18698 fixes that repository as the
source the trusted list and Dependabot policy are read from when the team
YAML sets trusted_actors_source: standards, and no setting in that YAML names
a standards repository, so a counted allow entry is the fix the check
documents for it.

Also lower or remove four entries the check reported above their current
counts: reference-edges.sh and babysit_gh.py (now 0), create.md (5 to 4),
container-lifecycle.md (2 to 1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 24, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 6cbfca1d04111995f7510857e875eb99d84719d5, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=HIGH demote=true head=6cbfca1d04111995f7510857e875eb99d84719d5 rubric=10.10.3 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit c6314b3 Nov 24, 2026
88 of 89 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-18698-45332089428-1 branch November 24, 2026 07:54
kyle-sexton added a commit that referenced this pull request Nov 24, 2026
Main landed #18732 (part 1 of this spec, split off as #18698), a parallel
standards reader with the standards repository fixed in code. Keep this
branch's reader, which names the repository in config, and drop main's
trusted_actors_source, _standards_file and _list_text with their test class.
The test cases main's class had that this branch lacked (a mixed-case value,
an empty value, a block list and a quoted key) move into this branch's
subtests; the quoted key exposed a fallback to the repository copy, now
refused as a non-scalar value.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit c6314b35cf086964e70a76f04c41a78e29532ab7; later checks count it verified from this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(source-control): read the trusted list and Dependabot policy from standards for opted-in repos - part 1 of 6

1 participant