Skip to content

feat: group Dependabot updates and sync skills once a day (ADR-0075) - #219

Merged
bketelsen merged 2 commits into
mainfrom
lucilla/batch-routine-prs
Nov 7, 2026
Merged

bketelsen merged 2 commits into
mainfrom
lucilla/batch-routine-prs

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two sources make most routine pull requests in frostyard: ungrouped Dependabot updates (1 PR for each dependency; 215 of 1229 PRs from 2026-10-07 to 2026-11-06) and the skills sync (13 push-triggered runs on 2 days in the same window, each one force-pushing every open sync PR and restarting its CI). The merge-lane replay in #218 showed that a faster merge path saves less than 1 minute a day: the number of PRs is the cost. New ADR-0075 amends ADR-0071 item 13 and ADR-0026 in part.

  1. Dependabot groups (row B13). Each .github/dependabot.yml entry has 1 group with patterns: ["*"], as lodge, frostmail, frostnotes and porter do. A group with no applies-to covers version updates only, so security updates stay 1 PR each. The spec gives the read-only check; ungroupedEntries in test/repository-baseline.test.mjs implements it, with fixtures, and holds core's own dependabot.yml (grouped here) to it.
  2. Skills sync once a day. sync-skills.yml drops the push trigger and runs at 23 5 * * * (05:23 UTC: 00:23 or 01:23 in New York) plus workflow_dispatch for an urgent sync.
  3. No push of a current sync branch. scripts/lib/skills-sync-repo.sh already updated an open sync PR instead of opening a second one (it lists open PRs on the head branch first). But each run makes a new commit (new timestamp, new SHA), so a daily run would force-push an unchanged open sync PR every day. The script now reads the remote chore/sync-core-skills (ls-remote --exit-code, then a depth-1 fetch) and skips the push when its tree and parent equal the new commit's. A changed tree or a moved default branch still force-pushes; a current branch with no open PR still gets a PR.

Docs: the spec row, docs/design/skills-sync-operations.md, docs/design/shared-skills.md, docs/org-adrs.md, the onboard skill's "next sync run" line, and link-only "Amended in part by" lines in ADR-0026 and ADR-0071 (ADR-0033).

Follow-up, outside this PR: the other repositories get their grouping PRs from their owners; the conformance sweep files the remaining gaps as baseline-B13.

Risk tier

Risk tier: 3 — risk:high. Matched risk paths and why the change is safe:

  • .github/workflows/sync-skills.yml (workflow-and-permissions): only the triggers change (the push block goes, the cron goes from weekly to daily). permissions: {}, the pinned checkout, persist-credentials: false, the concurrency group and the token mapping are unchanged. Fewer runs, never more writes per run.
  • scripts/lib/skills-sync-repo.sh (workflow-and-permissions): adds 2 read operations (ls-remote, fetch) through the same credential helper; the token is never in a URL or argument. The only new behavior is skipping a push. Any ls-remote status other than 0 or 2, or a failed fetch, fails that repository as before. The PR list/create logic is unchanged.

Docs housekeeping

  • New docs started from their category's TEMPLATE.md
  • Every new doc indexed in docs/README.md
  • Cross-links added in both directions (ADR ↔ design ↔ spec ↔ plan)
  • New significant decision recorded as an ADR first, in this PR
  • New/edited ADRs are fact-only
  • Conformance aliases (ADR-0029) untouched

Verification

  • make ci: 420 tests pass, docs gate ok
  • node --test .agents/skills/frostyard-docs-site/tests/*.test.mjs green
  • Workflow: no action changed; permissions: {}, persist-credentials: false kept
  • With scripts/lib/skills-sync-repo.sh reverted to main, 2 new tests in test/sync-skills.test.mjs fail ("an open sync PR with no change in core or in the consumer: the run pushes nothing", "a current sync branch with no open PR gets a new PR and no push"); with the change, all 22 pass.

Review

  • Coder: github-copilot/claude-opus-5.5. Cross-review: openai/gpt-6.1-sol, base b40d872d.
  • Head 1ac6ec73: Not ready, 2 blocking points in ungroupedEntries: (1) a specific group beside a catch-all passed, which makes 2 PRs; (2) an item that starts with a standalone - was skipped, so an ungrouped entry passed. Fixed in bbe56f63: exactly 1 group, standalone items read, and the check fails closed with (unparsed) updates. Guards: the pip, bundler and composer fixtures and the fail-closed test (they fail with the old function), and 1 line in .memory/corrections.jsonl.
  • Head bbe56f63 (re-review 1): Ready, blocking none.
  • Revert test (scratch worktree at the head, scripts/lib/skills-sync-repo.sh and .github/dependabot.yml from the base, tests kept): node --test test/sync-skills.test.mjs test/repository-baseline.test.mjs fails 3 tests on assertions: "an open sync PR with no change in core or in the consumer: the run pushes nothing", "a current sync branch with no open PR gets a new PR and no push", "B13: core's Dependabot configuration groups every entry (ADR-0075)".
  • ungroupedEntries at bbe56f63 returns [] for the current dependabot.yml of lodge, frostmail, frostnotes and porter. make ci at bbe56f63: 421 pass.

Baseline row B13 now requires 1 group with patterns ["*"] for each
Dependabot entry; security updates stay ungrouped. The skills sync runs
once a day at 05:23 UTC and on dispatch, with no push trigger, and does
not push a sync branch that already holds the same tree on the same
parent. The replay in core#218 shows that the number of pull requests,
not merge time, is the cost.
@github-actions github-actions Bot added the risk:high Touches a path in .github/risk-paths.json label Nov 7, 2026
A catch-all group beside a specific group makes 2 version-update PRs,
and an item that starts with a standalone '-' was skipped, so the check
passed on an ungrouped entry. ungroupedEntries now requires exactly 1
group, reads standalone items, and reports a file it cannot read.
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 7, 2026
@bketelsen
bketelsen merged commit bb30b9c into main Nov 7, 2026
5 checks passed
@bketelsen
bketelsen deleted the lucilla/batch-routine-prs branch November 7, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge risk:high Touches a path in .github/risk-paths.json

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants