Skip to content

ci(organization): require the Makefile gate triad in every repository and drop the Node branch (ADR-0044) #125

Closed

Description

@bketelsen

Problem

ADR-0044 (accepted 2026-08-24): "The organization gate checks presence the same way for every repository: Makefile with the three targets, plus mise.toml and mise.lock. No per-language branch." scripts/lib/fleet-conventions.mjs (core#118, 2026-08-25) still branches: a repository with go.mod is checked for Makefile targets, one with package.json and no go.mod for scripts.verify/scripts.check in package.json. Both Node repositories now carry the Makefile (core#121, snowcat#254, merged 2026-08-25), so the branch is dead weight that would let a Node repository drop its Makefile without failing the gate.

Change

  1. scripts/lib/fleet-conventions.mjs (and scripts/check-fleet-conventions.mjs if the branch lives there): for every fleet_state: "enabled" declaration require, at the default-branch head, mise.toml (with a [tools] table), a non-empty mise.lock, and a root Makefile whose targets include verify, check, and ci (^verify:, ^check:, ^ci:). Remove the go.mod / package.json detection and the scripts.verify/scripts.check check entirely. Still presence only — never read or compare a version.
  2. test/fleet-conventions.test.mjs: replace the "conformant Node repo passes via package.json scripts" case with "a repository with package.json but no Makefile fails naming Makefile"; keep the Go case, the missing-mise.lock case, the missing-verify: case, and the disabled-declaration case.
  3. docs/design/quality-loop.md Verify bullet: the sentence describing the check drops any per-language wording (it already links ADR-0044); AGENTS.md's check:fleet line likewise if it names package.json.

Acceptance criteria

  • On the PR's own fleet-conventions job log, ok frostyard/<name> appears for all seven enabled declarations and the job is green on the PR head (it is a required check).
  • grep -cE 'package\.json|go\.mod' scripts/lib/fleet-conventions.mjs scripts/check-fleet-conventions.mjs prints 0 for both files.
  • node --test test/fleet-conventions.test.mjs passes with the five cases above; npm run check (make ci) green.

Constraints

Scripts, tests, and the two doc sentences; no workflow, schema, or organization/** change. Risk tier 1.

Activity

  1. added
    snowcat
    on Aug 25, 2026
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

    snowcat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions