Skip to content

chore(dependabot): revisit @anthropic-ai/claude-code cooldown exclusion under supply-chain threat model #953

Closed as not planned

Description

@kyle-sexton

Lane: work-2. Source: security-review SUGGESTION (high confidence, non-blocking) on PR #948.

Triggering example: #948 adds a cooldown: default-days: 7 to the root npm dependabot block and exclude: ["@anthropic-ai/claude-code"] so that dep keeps tracking the latest Claude Code release immediately (preserving the pre-existing "dependency intentionally tracks the latest Claude Code release" intent, and satisfying zizmor's dependabot-cooldown audit which ignores exclude).

Observed: because @anthropic-ai/claude-code is excluded from the 7-day cooldown, a compromised upstream publish would surface as an immediate Dependabot PR with no ecosystem settle window. Unlike the first-party melodic-software/* exclusion (direct commit visibility), this is a third-party npm package where a compromised publish is harder to detect before review.

Expected / options to weigh: keep the exclude (freshness — current behavior, all Dependabot PRs still gated on human review + CI) vs remove it (subject Claude Code to the same 7-day supply-chain settle as everything else, at the cost of delayed CC updates). Deliberate tradeoff; revisit if the threat model changes.

Category: improvement (security-posture watch-item).

Activity

  1. added
    needs-triage
    needs-human
    and removed
    needs-triage
    on Jul 22, 2026
  2. kyle-sexton commented on Jul 22, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI (decide lane — decision-brief pass).

    Problem

    PR #948 excluded @anthropic-ai/claude-code from the root npm block's 7-day Dependabot cooldown, so a compromised upstream npm publish would surface as a day-0 Dependabot PR with no ecosystem-settle window — unlike the first-party melodic-software/* exclusion, this is a third-party package the org doesn't control. The live question is whether to keep the exclude (freshness — track latest Claude Code immediately) or remove it (subject Claude Code to the same 7-day supply-chain settle as every other locked dependency).

    What the config does today

    Source: .github/dependabot.yml @ origin/main (post-#948). Root npm block, lines 43–58:

      - package-ecosystem: npm          # line 43
        directory: /                    # line 44
        schedule:
          interval: daily               # line 50
        cooldown:                       # line 52
          default-days: 7               # line 56
          exclude:                      # line 57
            - "@anthropic-ai/claude-code"   # line 58
    • The other dep in this block, @biomejs/biome, does wait the 7-day settle (this is the behavior change ci(security): enforce zizmor findings via fail-on-findings (#510 Phase 0+1) #948 introduced). @anthropic-ai/claude-code alone is excluded → it keeps updating day-0 on its daily schedule.
    • First-party precedent (different ecosystem): the melodic-software/* exclusion lives in the github-actions block, lines 24–29 (exclude: ["melodic-software/*"]) — first-party refs the org can inspect at the commit level. The Claude Code case is npm and third-party; the analogy is weaker (no direct commit visibility).

    Are Dependabot PRs actually gated on human review + CI? Partially — flag. Enforcement is via org rulesets (melodic-software, ids 17988999 / 17989001 / 19388547), not legacy branch protection. They require: a PR (squash-only), required checks ci-status, pr-title / pr-title, and security-review / security-review, thread-resolution, signatures, linear history. But required_approving_review_count: 0 — no approving review is forced; the only thing between a bump and main is required checks + a manual merge click (no auto-merge is configured per the file header). Against this threat that gate is thin: security-review inspects the diff (a lockfile version/hash bump), not the package's runtime contents, and ci-status executes the dependency (it's a CI-only executable) — so CI running a bad version is the exposure, not a filter.

    External facts (cited; unverified flagged)

    • Dependabot cooldown delays PR creation. A new version "is not considered for a version update until N days after its release." Keys: default-days, semver-major/minor/patch-days, include, exclude (each up to 150 entries, wildcards supported); exclude takes precedence and makes listed packages skip the wait entirely. exclude is the correct key here. Source: GitHub Dependabot options reference. Verified.
    • No per-package day count exists. Day windows (default-days, semver-*-days) are block-wide; the only per-package lever is the binary include/exclude. So Claude Code's only reachable states are excluded (0 days) or the block's ≥7 days — there is no "2-day cooldown for CC only." Verified (docs).
    • zizmor dependabot-cooldown audit flags any block whose default-days is below the configured floor (default 7) and requires an explicit cooldown block; its published docs do not address exclude. Empirically, ci(security): enforce zizmor findings via fail-on-findings (#510 Phase 0+1) #948 confirmed zizmor --persona=regular . returns clean (exit 0) with default-days: 7 + the exclude present — i.e., the audit reads block-level default-days and is blind to exclude. Exclude-blindness: empirically confirmed in ci(security): enforce zizmor findings via fail-on-findings (#510 Phase 0+1) #948, not documented by zizmor (flagged). Note ci(security): enforce zizmor findings via fail-on-findings (#510 Phase 0+1) #948 also made this gate enforced (fail-on-severity: low) — dropping the block below 7 now red-lines ci-status. Source: zizmor audits.

    Options

    • A — Keep the exclude (status quo). CC updates day-0. Pros: preserves the documented deliberate intent (CI-compat executable tracking latest CC on a daily schedule); low likelihood of compromise for a reputable, high-visibility, provenance-backed publisher; one-line reversal if the threat model shifts. Cons: no settle window; and the merge gate is genuinely weak against a compromised 0-day publish (0 forced approvals; security-review sees only the diff; ci-status executes the dep). Reversibility: trivial (one line).
    • B — Remove the exclude. CC gets the same 7-day cooldown as Biome. Pros: restores the primary defense (a pre-advisory settle window) for a third-party dep lacking first-party commit visibility; uniform, security-forward posture. Cons: delays CC updates up to 7 days, reversing an explicitly documented intent. Reversibility: trivial (one line).
    • C — Shorter-but-nonzero cooldown for CC only. Not supported. Cooldown day counts are block-wide and the only per-package lever is binary include/exclude; additionally, lowering the block below 7 re-trips the now-enforced zizmor gate. The choice is a true binary: {0 days | ≥7 days}.
    • Orthogonal (not a substitute for the above): the real weakness surfaced is the merge gate itself — 0 required approvals + no auto-merge. Requiring ≥1 approving review on Dependabot PRs (org-ruleset change, reversible) hardens every dependency bump regardless of the exclude decision, and is arguably higher-leverage than the exclude toggle. Worth pairing with whichever option is chosen.

    Recommendation

    RECOMMENDED — A (keep the exclude), paired with the orthogonal hardening — but an honestly close call the operator owns.

    Rationale, grounded on its own legs (not on "review will catch it," which this brief shows it won't): reversing an explicitly documented, deliberate freshness decision — for a reputable, high-visibility, low-probability-of-compromise publisher — is not warranted by a low-likelihood threat when the reversal is a one-liner the moment the threat model changes. The freshness has stated value (CI-compat executable tracking latest CC daily).

    Be honest: this is a security-posture / risk-tolerance judgment, and B is genuinely competitive. The 7-day cooldown is the actual primary defense against a compromised 0-day publish, and a security-forward operator who weights that pre-advisory window over freshness should pick B without hesitation. Whichever is chosen, the higher-leverage move is the orthogonal hardening (require ≥1 approval on Dependabot PRs) — it protects all dependency bumps, not just this one, and does more than the exclude toggle alone. Note "security-advisory updates bypass cooldown anyway" is neutral between A and B (advisory handling is identical either way); cooldown's whole value is the pre-advisory window.

    RECOMMENDED: A (keep the exclude) — low-probability threat + documented freshness intent + one-line reversibility make status quo defensible, though B (7-day settle) is a close, legitimately security-forward alternative; pair either with requiring ≥1 approval on Dependabot PRs.

  3. kyle-sexton commented on Aug 13, 2026

    @kyle-sexton
    MemberAuthor

    Frontier disposition (drain session)

    Ruling: Close as not planned.

    Deliberate tradeoff: @anthropic-ai/claude-code cooldown exclusion preserves freshness; all Dependabot PRs remain human-reviewed + CI-gated. No change warranted under current threat model.

    Re-open trigger: If the supply-chain threat model changes or a compromised upstream publish surfaces through this path.

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

    needs-human

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions