Skip to content

Tool-version inputs carry a second authority when the caller already pins the tool (biome, tsc, ruff) #377

Closed

Description

@kyle-sexton

What

.github/actions/biome/action.yml carries a version input default, and a
caller that pins @biomejs/biome in its own package.json carries a second,
Dependabot-maintained pin. Those are two authorities for one fact, and only one
of them updates itself.

That is what produced #375: the action sat at 2.5.4 while
melodic-software/claude-code-plugins' package.json moved to 2.5.6 under
Dependabot. Bumping closed today's gap and re-opens it the next time Dependabot
moves a consumer.

The same shape applies to tsc (typescript in a caller's package.json) and
to ruff for a caller carrying a requirements pin — #372 measured all three
layers.

The alternative

Resolve the version from the caller's own manifest when it has one, falling back
to the reviewed default when it does not. melodic-software/dotfiles already runs
this shape for ruff: its CI derives the spec from the fleet inventory at run
time (check.sh --uv-tool-spec ruff) and installs that, so one pin is read by
CI and developers both and drift is structurally impossible rather than merely
detectable.

What to decide, not assume

  • Does deriving weaken the reviewed-pin posture? The current default is a
    reviewed version; a caller's package.json is whatever Dependabot last
    opened. Deriving means this action runs a version this repository never
    reviewed. For an advisory lane that is fine; biome ci runs with
    --error-on-warnings, so it is not advisory.
  • Which manifest wins when a caller has several? A monorepo with a root
    pin and a package-level pin has no single answer.
  • Does the fallback stay a hard pin? A caller with no manifest still needs
    a reviewed default, so this adds a branch rather than removing the pin.
  • Is the drift actually worth the branch? The existing
    tool-version-drift-check.yml already surfaces this as an advisory rolling
    issue ([Maintenance] Tool-version drift #218). If the operator absorbs those promptly, a second mechanism buys
    little.

Related

Activity

  1. added
    needs-triage
    on Aug 8, 2026
  2. kyle-sexton commented on Aug 11, 2026

    @kyle-sexton
    MemberAuthor

    Frontier consensus (Fable + Sol) — implement now

    Short menu considered:

    1. Keep two authorities; extend cross-repo drift scanning.
    2. Derive from caller manifest for biome only; reviewed default as fallback.
    3. Derive for biome + tsc in one PR; ruff untouched.
    4. Derive and delete the reviewed default (caller pin mandatory).

    Verdict: Option 2 now (biome first). Same-session follow-through may apply the identical contract to tsc without filing a new issue. Ruff stays fleet-led (dotfiles inventory) and is out of scope.

    Resolution order (biome)

    1. Explicit non-empty version: input from the caller (highest).
    2. Exact X.Y.Z pin for @biomejs/biome in the caller's root package.json (devDependencies then dependencies).
    3. Reviewed action default / fallback-version (lowest).

    Agreed rules

    • Exact SemVer only. Ranges / aliases / conflicting declarations fail closed with an actionable error (biome runs --error-on-warnings; this is not an advisory lane).
    • No lockfile parsing.
    • Do not require caller pin == fallback; caller pin wins.
    • Keep tool-version-drift-check biome row; it monitors the fallback default only (absorb prose updated accordingly).
    • Pin-less callers and this repo's fixture lanes keep using the reviewed fallback.

    Acceptance criteria

    • Resolver + tests for: exact pin wins, absent → fallback, range/conflict → fail, explicit input wins.
    • Logs resolved version + source (input / package.json / fallback).
    • ci-workflows own biome fixture lane stays green.
    • No new GitHub issues; tsc may follow in-session with the same contract.

    Agents: Claude Fable + GPT 5.6 Sol. Disagreement on scope (tsc now vs later) and range handling (warn-fallback vs fail) resolved by taking the narrower shippable intersection: biome-only + fail-closed ranges.

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-triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions