Skip to content

[ENG-22470] Dependabot coverage, 5-day cooldown and guarded patch/minor auto-merge - #331

Merged
william-antoline-boon merged 5 commits into
boonfrom
william/eng-22470-dependabot-auto-merge
Nov 10, 2026
Merged

william-antoline-boon merged 5 commits into
boonfrom
william/eng-22470-dependabot-auto-merge

Conversation

@william-antoline-boon

@william-antoline-boon william-antoline-boon commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Dependabot runs in openclaw, but its alerts don't turn into merged fixes. On 2026-11-08 there were 4 open alerts (3 critical: tinypool ×2, @a2ui/web_core; 1 high: zod), the oldest from 2026-10-05.

  • Nothing merged them. Every Dependabot PR waited for a human, and most were closed.
  • The cooldown was 2 days, shorter than the window in which hijacked npm releases (chalk/debug, Shai-Hulud) usually get pulled.
  • Overrides blocked fixes. Dependabot never rewrites the pnpm-workspace.yaml overrides, so a bump of a package pinned there goes nowhere.
  • Coverage had gaps. dependabot.yml pointed at a Swift directory that no longer exists (apps/shared/MoltbotKit) and missed apps/shared/OpenClawKit, apps/macos-mlx-tts (Swift) and scripts/docs-i18n (Go).
  • Nothing in CI noticed any of this.

Linear: ENG-22470, split from ENG-22137 (epic ENG-22136). This ports getboon/boon#16124 to openclaw.

Why This Change Was Made

It follows boon's design, which is already merged and running in boon. Where openclaw differs, the change says so below.

  • .github/dependabot.yml uses boon's layout:
    • Every entry runs Monday 06:00 UTC.
    • Cooldown is 5 days, 14 for majors. GitHub Actions and Docker get no separate major cooldown, because Dependabot supports only default-days there.
    • open-pull-requests-limit is 7 per entry.
    • Each entry gets one grouped PR for minor/patch updates (split into production and development for npm) and one grouped PR for security updates. Majors open one PR each.
    • The stale Swift path is fixed and the missing directories are added.
    • The npm registries block is removed. It used a Dependabot secret that doesn't exist, and every package comes from the public registry anyway.
  • pnpm-workspace.yaml
    • minimumReleaseAge goes from 2880 to 7200 (5 days), matching the cooldown.
    • Override audit. I removed every override, re-resolved, and compared:
      • 5 overrides were dead: nothing in the tree depends on @grpc/grpc-js, basic-ftp, yauzl, request or request-promise. They are dropped.
      • None pins a version with an open alert. The new --alerts check confirms this.
      • The others are either still needed (a fresh resolve lands below the pin) or deliberate compatibility pins. They are kept.
  • Alerts
    • @a2ui/lit goes from 0.10.0 to 0.10.3, which brings @a2ui/web_core 0.10.7 and fixes GHSA-72qq-p3r5-f7wq.
      • 0.10.4 is marked deprecated upstream as "breaking", so it's skipped.
      • From 0.10.0 to 0.10.3 the v0_8 entry point and its types are the same. The only additions are optional divider properties.
      • The committed a2ui.bundle.js doesn't contain the vulnerable openUrl path.
    • A tinypool: 2.2.0 override fixes GHSA-5gmw-xhrv-c9v3 and GHSA-85c8-ppgw-ccpr. tinypool is dev-only, pulled in by [email protected], which pins exactly 2.1.0.
    • The zod alert (fix(deps): remove duplicate simple-git/proxy-addr/source-map-js override keys #285) stays open with a recorded reason (comment next to the zod@4 override). The advisory covers every 3.x, there is no patched 3.x, and every a2ui release still requires zod ^3.25.76.
  • scripts/dependabot/ (bash, with bats tests in test/dependabot/, as in boon):
    • verify-dependabot-coverage: boon's rules, plus Swift (Package.resolved/Package.swift) and Gradle (settings.gradle*).
      • npm-shrinkwrap.json is skipped in a pnpm repo, since it's generated from pnpm-lock.yaml.
      • The ban on major cooldowns also covers Docker.
      • New --alerts flag: it reports any pnpm override that pins a version inside an open Dependabot alert's vulnerable range.
      • Against the old config it reports 11 violations.
    • dependabot-merge-decision: boon's rules (kill switch, verified Dependabot commits, patch/minor only, dependency files only, no GitHub Actions bumps, allowlisted sources). openclaw adds:
      • It refuses pnpm-workspace.yaml. That file holds allowBuilds (which packages may run install scripts), the overrides and minimumReleaseAge.
      • It refuses Dockerfiles and Gradle settings and wrapper files.
      • It understands pnpm, Swift, Gradle, package.json and Gemfile sources. A source on an added line passes only if it's allowlisted or the same diff removes it, as when a Swift package keeps its git URL. For example, a package.json dependency switched to git+…, file:, a URL or user/repo is refused, and so is a gem switched to git:, github: or path:.
      • It refuses any new direct dependency in package.json, go.mod, libs.versions.toml, build.gradle*, Gemfile, requirements.txt or pyproject.toml, which the ticket requires. A version-catalog entry is identified by its alias and its module, so an alias can't be pointed at another artifact.
      • A commit counts as Dependabot's only if it's authored by dependabot[bot], committed by web-flow and verified.
      • Replaying real past Dependabot PRs build(deps): bump markdown-it from 14.2.0 to 14.3.1 in /packages/markdown-core #258, build(deps): bump @modelcontextprotocol/sdk from 1.29.0 to 1.31.0 #268 and build(deps): bump music-metadata from 11.12.3 to 11.16.0 #275 through it gives merge.
    • dependabot-stale-approvals is unchanged from boon apart from paths and comments.
    • dependabot-digest-message matches boon, except that a PR with an outstanding "changes requested" review is listed under Needs a human.
  • Workflows
    • dependabot-auto-merge.yml is boon's workflow, with these changes:
      • It runs on GitHub-hosted runners.
      • It checks out the base SHA.
      • The app token is limited to contents and pull-requests write (zizmor flagged it).
    • dependabot-digest.yml is boon's weekly Slack thread in #engineering-alerts. It adds an overrides job that runs the --alerts check with the Gandalf app token, because GITHUB_TOKEN can't read Dependabot alerts.
    • dependabot-scripts.yml runs bats test/dependabot/, including the coverage check against the real config, whenever any dependency file kind changes.
    • ci.yml gets a ci-gate job. boon has no required checks today, so GitHub auto-merge would merge on approval alone, even with red CI. ci-gate gives the ruleset one stable check to require. It fails if any CI job failed or was cancelled.
  • CODEOWNERS: @jerhinesmith and @insomnius, the same owners as boon. They're listed last, so they take over dependabot.yml from the upstream secops team, which doesn't exist in getboon.
  • Verified, unchanged:
    • CI already installs with --frozen-lockfile (.github/actions/setup-node-env).
    • pnpm runs install scripts only for packages listed in allowBuilds.

User Impact

  • Before setup: nothing changes for engineers until the admin steps below are done. Auto-merge stays off until DEPENDABOT_AUTOMERGE=on. Until then, the weekly thread lists every PR for on-call, as in boon's trial.
  • After setup:
    • Patch/minor bumps of existing dependencies merge after Gandalf the White approves and ci-gate passes.
    • Majors, GitHub Actions bumps, new dependencies and new sources stay for a human.
  • Kill switch (one step): set the repo variable DEPENDABOT_AUTOMERGE to off.
    • New PRs never get auto-merge.
    • The kill-switch-sweep job turns off auto-merge on PRs that already have it queued within 15 minutes. Running the workflow by hand does it immediately.
    • The sweep only runs while the variable is set to something other than on, so it costs nothing during the trial.
  • Security fixes younger than 5 days: Dependabot ignores pnpm's minimumReleaseAge, so such a PR fails the frozen install in CI. Add the exact name@version to minimumReleaseAgeExclude, with the GHSA id and a remove-after date. The steps are in pnpm-workspace.yaml. Because that touches pnpm-workspace.yaml, the PR goes to a human.

Admin steps (not done in this PR)

  1. Org secrets. Share GANDALF_APP_ID, GANDALF_PRIVATE_KEY and SLACK_API_TOKEN with getboon/openclaw. openclaw has no Actions secrets today.
  2. Gandalf app permissions. On openclaw it needs:
    • Pull requests: write
    • Contents: write
    • Dependabot alerts: read (for the overrides job)
  3. boon ruleset (17038141)
    • Add ci-gate as a required status check.
    • Let the Gandalf app's approval satisfy the review rule. Today it requires an engineering team member, which a bot can't be.
    • Let the Gandalf app dismiss reviews. Dismissal is restricted to the engineering team. Without this, the stale-approval step fails, and the job leaves auto-merge off: safe, but nothing merges.
    • Note: once ci-gate is required, a PR that changes only CHANGELOG.md gets no CI run, because ci.yml ignores that path.
  4. After a 1–2 week trial: set DEPENDABOT_AUTOMERGE=on.

Evidence

  • bats test/dependabot/: 115/115 pass (bash 3.2 on macOS, yq 4.45.4). CI runs them on ubuntu-24.04, which ships yq 4.54.1, in dependabot-scripts.yml.
  • Fresh-context review. No high-severity findings. The 5 low ones are fixed, each with a test:
    • go.mod // indirect lines no longer count as new dependencies;
    • a jq error in the checker can no longer pass silently;
    • +++ /dev/null and tab-suffixed diff headers are handled;
    • pnpm directory: sources are blocked;
    • override keys containing >= are parsed correctly.
  • cubic review: 36 findings, all resolved.
    • Fixed: the source and new-dependency gaps above; the web-flow committer check; the one-step kill switch; the digest's handling of "changes requested"; secops staying an owner of dependabot.yml; the 3-day release-age floor for pnpm; the semver-cooldown floor; Python and Gradle coverage; ticket references removed from comments.
    • Declined, with reasons in each thread: requiring Gandalf's approval before auto-merge is enabled, a 5/14-day floor inside the checker (a separate test pins those values instead), regenerating the a2ui bundle in this PR, and switching the workflow's branch to main.
  • scripts/dependabot/verify-dependabot-coverage: OK on the new config. On the old config: 11 violations (4 uncovered directories, 7 cooldowns under 3 days).
  • verify-dependabot-coverage --alerts <live open alerts>: OK.
  • Replay of real Dependabot PRs build(deps): bump markdown-it from 14.2.0 to 14.3.1 in /packages/markdown-core #258, build(deps): bump @modelcontextprotocol/sdk from 1.29.0 to 1.31.0 #268 and build(deps): bump music-metadata from 11.12.3 to 11.16.0 #275 through dependabot-merge-decision: merge for each.
  • actionlint 1.7.11 (with shellcheck): clean on all new workflows and ci.yml. zizmor 1.32.0: no findings on the new workflows. node scripts/check-workflows.mjs: passes. shellcheck scripts/dependabot/*: clean.
  • oxfmt --check on the changed YAML: clean.
  • node scripts/generate-npm-shrinkwrap.mjs --check: root shrinkwrap is current.
  • pnpm install --lockfile-only: the lockfile diff touches only @a2ui/*, @lit-labs/signals, tinypool and the dropped overrides, plus a re-worded upstream deprecated message.
  • Not yet proven: the live flow. That needs the admin steps, a Monday run, and a first auto-merged PR.

🤖 Generated with Claude Code

… 5 days

- @a2ui/lit 0.10.0 -> 0.10.3 pulls @a2ui/web_core 0.10.7, fixing
  GHSA-72qq-p3r5-f7wq (critical). 0.10.4 is deprecated upstream as breaking.
- Override tinypool to 2.2.0 (dev-only, via oxfmt 0.52.0's exact 2.1.0 pin),
  fixing GHSA-5gmw-xhrv-c9v3 and GHSA-85c8-ppgw-ccpr (critical).
- Record why the zod 3 alert stays open: no patched 3.x exists and every
  a2ui release still requires zod ^3.25.76.
- Drop overrides for packages no longer in the tree (@grpc/grpc-js,
  basic-ftp, yauzl, request, request-promise).
- minimumReleaseAge 2880 -> 7200, matching the Dependabot cooldown.

Refs ENG-22470.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… auto-merge

Port of getboon/boon#16124 to openclaw.

- dependabot.yml: weekly Monday 06:00 UTC, 5-day cooldown (14 for majors
  where supported), minor/patch + security groups, PR limit 7; fix the stale
  MoltbotKit path and cover OpenClawKit, macos-mlx-tts and docs-i18n.
- scripts/dependabot (bats-tested): coverage checker (+ --alerts check for
  pnpm overrides pinning a vulnerable version), merge decision, stale
  approval dismissal, weekly digest text.
- dependabot-auto-merge.yml: enables GitHub auto-merge only for verified,
  patch/minor, dependency-file-only bumps with no new source or dependency;
  gated by the DEPENDABOT_AUTOMERGE kill switch, Gandalf approval and CI.
- dependabot-digest.yml: one weekly Slack thread plus an overrides check.
- ci.yml: ci-gate job, one stable check for the boon ruleset to require.

Refs ENG-22470.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/canvas/package.json
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: dc4f5abf19b260ce4eca172f81a8c336301a73c6
  • Trusted actor: @william-antoline-boon
  • Trusted role: pull request author; repository admin

Security review is still recommended before merge when the dependency graph change is intentional.

@cubic-dev-ai cubic-dev-ai 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.

cubic analysis

All reported issues were addressed across 18 files

Linked issue analysis

Linked issue: ENG-22470: Dependabot coverage, cooldown and patch/minor auto-merge: openclaw

Status Acceptance criteria Notes
✅ Cover every dependency manifest and lockfile The coverage checker maps dependency files to update entries, and the new workflow tests it against the repository.
⚠️ Resolve alerts or record why they remain open The PR updates @a2ui/lit and tinypool and records why zod remains vulnerable; live Dependabot PR creation is unproven.
⚠️ Auto-merge eligible patch and minor updates The workflow gates patch/minor merges on approval and CI, but required admin setup and live operation remain outstanding.
✅ Use five-day cooldowns and fourteen for majors The PR updates Dependabot cooldowns to five days and majors to fourteen, and raises pnpm minimumReleaseAge to 7200.
✅ Keep new dependencies and sources out of auto-merge The merge-decision script rejects new direct dependencies and unapproved package sources, with tests for those checks.
✅ Install from the lockfile and restrict install scripts The PR reports frozen-lockfile CI installs and pnpm allowBuilds restrictions are already in place.
✅ Document a one-step auto-merge kill switch The workflow documents disabling auto-merge by changing DEPENDABOT_AUTOMERGE from on.

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread .github/CODEOWNERS Resolved
Comment thread .github/dependabot.yml Resolved
src/docker-image-digests.test.ts reads the root docker entry by
`directory: "/"`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- merge decision: refuse package.json specifiers that point at git, URLs,
  files or GitHub shorthands; identify a version-catalog entry by alias and
  module; detect new direct dependencies in Gemfile, requirements.txt and
  pyproject.toml.
- auto-merge workflow: require committer web-flow on every commit; a
  scheduled/dispatchable sweep clears queued auto-merge while the kill switch
  is "off", so the switch is one step.
- digest: an outstanding changes request lists the PR under "Needs a
  human"; list up to 1000 PRs.
- coverage checker: semver cooldowns may not undercut default-days; pnpm
  minimumReleaseAge must be >= 3 days; unparseable alert ranges are reported;
  pyproject.toml with dependencies and Gradle build files outside a covered
  project root need entries.
- CODEOWNERS keeps the secops owner on dependabot.yml; the scripts workflow
  also runs for Gradle and Python manifests; document how a security fix
  younger than minimumReleaseAge gets through; drop ticket references from
  comments.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 15 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

…le keys

- A gem line with git:/github:/path:/source: (either hash syntax) is a new
  package source unless the same diff removes it.
- Version-catalog module/id/group/name are read only as inline-table keys,
  so an alias ending in "id" (uuid = "9.0.0") keeps a stable key on bumps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@boon-hermes-bot boon-hermes-bot 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.

Code Review Summary

Verdict: Approved ✅ (0 issues, 0 warnings)

PR: #331 — [ENG-22470] Dependabot coverage, 5-day cooldown and guarded patch/minor auto-merge
Author: @william-antoline-boon
Files changed: 18 (+2849 -140)

✅ Looks Good

  • Coverage & Cooldowns: .github/dependabot.yml covers all active manifests (including Swift Kit, MLX TTS, Swabble, and Go docs-i18n), enforces 5-day default / 14-day major cooldowns, and eliminates invalid registry configurations.
  • Supply-Chain Guardrails: scripts/dependabot/dependabot-merge-decision thoroughly restricts auto-merge to verified Dependabot commits, patch/minor updates, dependency-only files, allowlisted source registries, and forbids new direct dependencies.
  • Pnpm & Overrides Audit: Cleaned up dead overrides, raised minimumReleaseAge to 7200, resolved @a2ui/lit and tinypool alerts, and documented the rationale for the open zod 3 advisory.
  • CI Gate & Automated Tests: Added ci-gate to stabilize required status checks, plus 115 comprehensive Bats tests in test/dependabot/ that verify coverage rules, stale approval dismissals, and merge decisions. All CI checks pass.
  • Review Feedback Addressed: All prior feedback from automated checks and cubic review has been cleanly resolved.

Reviewed by Hermes Agent

@william-antoline-boon
william-antoline-boon merged commit b28c2d2 into boon Nov 10, 2026
136 of 138 checks passed
@william-antoline-boon
william-antoline-boon deleted the william/eng-22470-dependabot-auto-merge branch November 10, 2026 17:03
convyusboy added a commit that referenced this pull request Nov 11, 2026
* chore(release): bump version 2026.6.35-boon.5 -> 2026.6.35-boon.6

Cuts the fork release for the PRs merged to boon after the
v2026.6.35-boon.5 tag:

- #330 (ENG-21047): MEMORY.md/USER.md now resolve per sender identity
  under identities/<senderId>/ instead of always at the shared
  workspace root, so a multi-user Boon Agent box can no longer leak
  one employee's identity, preferences, or conversation history into a
  different employee's private chat. Single-user deployments are
  byte-for-byte unchanged.
- #331 (ENG-22470): Dependabot coverage, cooldown, and guarded
  auto-merge CI hardening. No shipped runtime change.

Bump the root package.json and npm-shrinkwrap.json, all 136 bundled
plugin manifests (scripts/sync-plugin-versions.ts), and the version
string in every extension npm-shrinkwrap.json via a literal
find-and-replace (no dependency content changed by this bump; a full
scripts/generate-npm-shrinkwrap.mjs --all regeneration was skipped per
the known registry-re-resolution risk on a pure version bump). Add the
2026.6.35-boon.6 CHANGELOG.md section. No source or dependency change
beyond the merged PRs above.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs(changelog): precisely describe the #330 identity-segment encoding

Addresses cubic review feedback on PR #332: the boon.6 release note
described the identity directory with the raw sender ID and didn't
mention the empty/whitespace fallback or the encoding's case-collision
behavior on case-insensitive filesystems (macOS default, Windows).

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants