Skip to content

feat(fleet): check baseline row B13 in the organization gate (ADR-0092) - #289

Merged
bketelsen merged 1 commit into
mainfrom
lucilla/b13-fleet-gate
Nov 30, 2026
Merged

bketelsen merged 1 commit into
mainfrom
lucilla/b13-fleet-gate

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

npm run check:fleet (CI's required fleet-conventions job) now checks baseline row B13 on each repository's default branch: the Dependabot schedule is interval: monthly only, each ecosystem has exactly 1 entry, each entry has exactly 1 ["*"] group with no group-by and no applies-to: security-updates, and every ecosystem with a manifest in the tree has an entry. Until now only the weekly sweep checked other repositories, so drift showed up to 1 week late.

  • New ADR-0092: it amends ADR-0071 in part (who finds a B13 gap, and the "ecosystems present" reason in its alternatives), and ADR-0075 and ADR-0089 in part (where ungroupedEntries and entryGaps live). The row's rule does not change.
  • scripts/lib/dependabot.mjs (new): MANIFESTS, missingEcosystems, ungroupedEntries and entryGaps are moved here from test/repository-baseline.test.mjs unchanged (byte-identical except that MANIFESTS is now exported). The new dependabotGaps(files, text) joins their results and lists (unparsed) updates once.
  • scripts/lib/fleet-conventions.mjs: checkRepository fetches .github/dependabot.yml (a missing file gives B13: .github/dependabot.yml missing). It then reads git/trees/HEAD?recursive=1 and keeps the blob paths. A failed request, a non-OK status, an unreadable listing or truncated: true fails the repository, so the check fails closed. Each gap becomes a B13: … part.
  • test/repository-baseline.test.mjs imports and re-exports the 3 readers. All its B13 tests are unchanged and still hold core's own file to them.
  • Docs: the spec intro and row B13's check column, AGENTS.md (check:fleet bullet), docs/org-adrs.md, docs/design/quality-loop.md, the ADR index, and "Amended in part by" link lines in ADR-0071, ADR-0075 and ADR-0089 (link-only, ADR-0033).

Risk tier

Risk tier: 2. This adds a new ADR and a new check to the organization gate (check:fleet, the required fleet-conventions job). There is no workflow, permission or risk-path change. No path of .github/risk-paths.json at the base matches: scripts/lib/fleet-conventions.mjs, scripts/lib/dependabot.mjs and scripts/check-fleet-conventions.mjs take the default L3. scripts/lib/risk-paths.mjs is not touched.

Docs housekeeping

  • New docs started from their category's TEMPLATE.md
  • Every new doc indexed in docs/README.md
  • Cross-links added in both directions (ADR ↔ design ↔ spec ↔ plan)
  • New significant decision recorded as an ADR first, in this PR
  • New/edited ADRs are fact-only (context, decision, consequences)
  • Conformance aliases (ADR-0029) untouched

Verification

  • make ci green locally (includes node scripts/check-docs.mjs): 1098 tests, 1098 pass, 0 fail.
  • Script reads YAML by hand? ungroupedEntries is a line reader. It moved unchanged, and its existing input-shape tests in test/repository-baseline.test.mjs stay as they were. The new code reads YAML only through these readers.
  • Live gate, run locally with a token on 2026-11-30 ~04:00 UTC, node scripts/check-fleet-conventions.mjs (the 7 fleet_state: enabled declarations):
    ok frostyard/clix
    ok frostyard/core
    ok frostyard/firn
    ok frostyard/frostmarks
    ok frostyard/hearth
    ok frostyard/std
    ok frostyard/updex
    7 repositories checked, 32 workflow files read
    
    As a negative control on live data, node scripts/check-fleet-conventions.mjs frostyard/caddyscope prints FAIL frostyard/caddyscope: … B13: .github/dependabot.yml missing (caddyscope has no Dependabot file, as ADR-0089's context records). lodge, chairlift, repogen and snosi print ok.
  • New tests in test/fleet-conventions.test.mjs go through checkFleetConventions and compare the exact failures for these cases: a weekly entry, a second group, 2 entries for 1 ecosystem, group-by, go.mod with no gomod entry, no github-actions entry, an empty file, invalid YAML, a missing file (no tree request), a truncated tree, tree status 500 and 404, a non-JSON tree body, a tree body without an array, a tree request that throws, blob-only paths and the request headers. There are also unit tests of dependabotGaps.
  • Revert test: in a scratch worktree at c2a8b03, I disabled only the checkDependabot call in checkRepository and ran node --test test/fleet-conventions.test.mjs. Result: 85 tests, 68 pass, 17 fail, each on an assertion. The failing tests are a conformant Go repository and a conformant Node repository pass (tree URL assertion), the 8 B13 rejects … cases, B13 reports a missing Dependabot file without fetching the tree, the 6 B13 fails closed … cases and B13 checks only blobs and requests raw contents and a JSON tree.
  • Not covered: the gate reads the contents and the tree in 2 requests, not at 1 pinned commit, so a push between them can mix 2 commits. A repository over GitHub's recursive-tree limit fails closed. No such repository is enabled.

Coder: the code and tests were written by openai/gpt-6.2-sol; the ADR and docs by anthropic/claude-opus-5-5.

Cross-review

  • Reviewer: anthropic/claude-sonnet-5-5 (spawned with this model; its report names itself claude-opus-5-5). Coder of the code and tests: openai/gpt-6.2-sol.
  • Reviewed: base f99acfddee0a5466990b72e6292a5b1642444a25, head c2a8b03b7debeaef53cf158eaecb7488a2e2c676, all 14 changed files.
  • Verdict: Ready, Blocking: none. The reviewer confirmed that the move is byte-identical apart from the MANIFESTS export, and that every brief path fails closed.
  • 5 low, non-blocking findings are filed as fleet gate B13: low follow-ups from the #289 cross-review #290 with acceptance criteria, so this PR keeps its reviewed head. They are: a comment after package-ecosystem gives a false no entry in missingEcosystems; an empty tree listing should fail closed; 3 small text fixes. 2 informational notes need no change: fixture manifests count, as in the spec row, and .github/dependabot.yaml counts as missing, as the row names .yml.

Move the row B13 readers (missingEcosystems, ungroupedEntries, entryGaps)
from test/repository-baseline.test.mjs to scripts/lib/dependabot.mjs with
their results unchanged, and run them from npm run check:fleet on each
repository's default branch: .github/dependabot.yml and the recursive git
tree. A missing file is a gap; a tree that cannot be read in full fails
the repository. ADR-0092 amends ADR-0071, ADR-0075 and ADR-0089 in part.
@github-actions github-actions Bot added the level:L3 Skim label Nov 30, 2026
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 30, 2026
@bketelsen
bketelsen added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 933bef4 Nov 30, 2026
6 checks passed
@bketelsen
bketelsen deleted the lucilla/b13-fleet-gate branch November 30, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L3 Skim ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants