Skip to content

build: add a Makefile exposing the verify/check/ci gate triad over the npm scripts (ADR-0044) #120

Closed

Description

@bketelsen

Problem

ADR-0044 (accepted 2026-08-24) requires every enrolled repository, whatever its language, to expose make verify, make check, and make ci at its root as the only entry points CI, workers, reviewers, and the organization gate invoke. core has the npm scripts (package.json: verify = check:docs + check:organization + check:scripts + test; check = verify) but no Makefile; .github/workflows/ci.yml's docs-gate job runs npm run check directly. On 2026-08-24 a reviewer of core#118 ran make verify here, got No rule to make target 'verify', and returned a false block — the incident ADR-0044 cites. scripts/check-fleet-conventions.mjs will require the Makefile targets for every repository once its Node branch is removed (separate item, after this lands).

Change

  1. Add Makefile at the root:
    • verify: → npm run verify (credential-free, non-mutating — ADR-0043's contract; must leave git status --porcelain empty).
    • check: → npm run check.
    • ci: → npm run check (ADR-0022's gate; identical here — nothing in core's check needs a credential or network). check:fleet stays its own CI job and is not part of ci (network-dependent, per core#118).
    • .PHONY: verify check ci; SHELL := /usr/bin/env bash. No other targets — the npm scripts remain the implementation.
  2. .github/workflows/ci.yml: the docs-gate job's gate step runs make ci instead of npm run check (one line; keep npm ci, SHA pins, permissions: {}, persist-credentials: false, and the fleet-conventions job's npm run check:fleet unchanged; job names stay — they are the ruleset's required contexts).
  3. AGENTS.md "Code conventions": the npm run check line states that make verify / make check / make ci are the entry points automation uses and wrap those scripts (ADR-0044).
  4. .agents/skills/frostyard-onboard-repo/SKILL.md step 2 (audit): the surfaces bullet gains "a root Makefile with verify, check, and ci targets (ADR-0044) — for a Node repository, targets that wrap its npm scripts".

Acceptance criteria

  • On the PR's own docs-gate job log, make ci runs and the job is green on the PR head; fleet-conventions and scaffold-e2e stay green.
  • grep -cE '^(verify|check|ci):' Makefile prints 3; grep -c 'run: make ci' .github/workflows/ci.yml prints 1; grep -c 'run: npm run check$' .github/workflows/ci.yml prints 0.
  • On a clean checkout, make verify exits 0 and git status --porcelain is empty afterwards (paste both in the PR).
  • node scripts/check-docs.mjs green (the skill edit is a docs surface).

Constraints

Makefile, one workflow line, one AGENTS.md line, one skill bullet. No scripts/**, organization/**, or package.json script changes. .github/workflows/** is review-required at high risk (policies/agent-governance.json): declare the tier as high and expect a human to mark ready.

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