Skip to content

fix(ci): trust dependency approvers before graph compare - #123456

Merged
steipete merged 1 commit into
mainfrom
fix/dependency-guard-trusted-before-compare
Aug 14, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/dependency-guard-trusted-before-compare

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Dependency-heavy PRs from trusted maintainers can fail before the guard reaches its existing trusted-actor decision. The detector currently calls GitHub's dependency-graph compare endpoint first; large release version updates repeatedly exceeded the bounded 30-second API request timeout.

This blocked the immutable 2026.8.1-beta.2 source-signing candidate twice on the same 152 expected package/version files.

Why This Change Was Made

The existing exact-head trusted-state and trusted PR-author checks already make dependency graph changes informational for repository admins and configured security approvers. This change moves the unchanged dependency-graph comparison block after those trusted returns.

Untrusted PRs still perform the graph comparison. Their removal-only path, autoscrub behavior, exact-SHA manual authorization, and blocking behavior remain unchanged.

User Impact

Trusted maintainer release/version PRs no longer depend on a large dependency-graph compare request that cannot affect their authorization outcome. Contributor and untrusted dependency changes retain the same security checks and approval requirements.

Evidence

  • Release signing PR detector run 31767562911, attempts 1 and 2: both detected 152 dependency-related files, then timed out on the dependency-graph compare endpoint after 30 seconds.
  • Production diff is a pure block move: +21/-21.
  • Extended existing ordering contract: trusted actor recognition must precede dependency graph comparison and autoscrub.
  • node scripts/run-vitest.mjs test/scripts/dependency-guard-workflow.test.ts test/scripts/dependency-guard-script.test.ts: 45 tests passed.
  • node --check scripts/github/dependency-guard.mjs: passed.
  • git diff --check: passed.
  • Mandatory autoreview: clean.

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Aug 14, 2026
@steipete
steipete marked this pull request as ready for review August 14, 2026 03:49
@steipete
steipete requested a review from a team as a code owner August 14, 2026 03:49
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 14, 2026
@steipete
steipete merged commit 27c4433 into main Aug 14, 2026
183 checks passed
@steipete
steipete deleted the fix/dependency-guard-trusted-before-compare branch August 14, 2026 04:03
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 14, 2026
steipete added a commit that referenced this pull request Aug 26, 2026
Each theme's --bg is copied by hand into two places outside base.css, because
both have to paint before the app stylesheet is parsed: index.html's pre-paint
block, which fills the page during first paint, and the Appearance preview
chips, which are deliberately theme-invariant and so cannot read the live token.

Nothing tied those copies to the palette. Darkening Absolutely moved --bg and
left both behind; only a pre-paint assertion that happened to hardcode the old
value caught one of them. It is the same shape as the two defects review found
in the theme work — a hand-maintained list extended for new themes but not
exhaustively — and the third time is enough.

Derives the expected values from base.css and asserts both mirrors for every
palette (12 themed pre-paint rules plus the default), so a palette edit cannot
leave either copy stale. Verified by mutating each mirror:

  tide: pre-paint #123456 != --bg #10151b
  beacon: chip #abcdef != --bg #000000

Test-only; no production change.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
…#130444)

Each theme's --bg is copied by hand into two places outside base.css, because
both have to paint before the app stylesheet is parsed: index.html's pre-paint
block, which fills the page during first paint, and the Appearance preview
chips, which are deliberately theme-invariant and so cannot read the live token.

Nothing tied those copies to the palette. Darkening Absolutely moved --bg and
left both behind; only a pre-paint assertion that happened to hardcode the old
value caught one of them. It is the same shape as the two defects review found
in the theme work — a hand-maintained list extended for new themes but not
exhaustively — and the third time is enough.

Derives the expected values from base.css and asserts both mirrors for every
palette (12 themed pre-paint rules plus the default), so a palette edit cannot
leave either copy stale. Verified by mutating each mirror:

  tide: pre-paint openclaw#123456 != --bg #10151b
  beacon: chip #abcdef != --bg #000000

Test-only; no production change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant