Repository navigation
feat(fleet): check baseline row B13 in the organization gate (ADR-0092) - #289
Merged
Merged
Conversation
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.
5 tasks
bketelsen
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm run check:fleet(CI's requiredfleet-conventionsjob) now checks baseline row B13 on each repository's default branch: the Dependabot schedule isinterval: monthlyonly, each ecosystem has exactly 1 entry, each entry has exactly 1["*"]group with nogroup-byand noapplies-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.ungroupedEntriesandentryGapslive). The row's rule does not change.scripts/lib/dependabot.mjs(new):MANIFESTS,missingEcosystems,ungroupedEntriesandentryGapsare moved here fromtest/repository-baseline.test.mjsunchanged (byte-identical except thatMANIFESTSis now exported). The newdependabotGaps(files, text)joins their results and lists(unparsed) updatesonce.scripts/lib/fleet-conventions.mjs:checkRepositoryfetches.github/dependabot.yml(a missing file givesB13: .github/dependabot.yml missing). It then readsgit/trees/HEAD?recursive=1and keeps theblobpaths. A failed request, a non-OK status, an unreadable listing ortruncated: truefails the repository, so the check fails closed. Each gap becomes aB13: …part.test/repository-baseline.test.mjsimports and re-exports the 3 readers. All its B13 tests are unchanged and still hold core's own file to them.AGENTS.md(check:fleetbullet),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 requiredfleet-conventionsjob). There is no workflow, permission or risk-path change. No path of.github/risk-paths.jsonat the base matches:scripts/lib/fleet-conventions.mjs,scripts/lib/dependabot.mjsandscripts/check-fleet-conventions.mjstake the default L3.scripts/lib/risk-paths.mjsis not touched.Docs housekeeping
TEMPLATE.mddocs/README.mdVerification
make cigreen locally (includesnode scripts/check-docs.mjs): 1098 tests, 1098 pass, 0 fail.ungroupedEntriesis a line reader. It moved unchanged, and its existing input-shape tests intest/repository-baseline.test.mjsstay as they were. The new code reads YAML only through these readers.node scripts/check-fleet-conventions.mjs(the 7fleet_state: enableddeclarations):node scripts/check-fleet-conventions.mjs frostyard/caddyscopeprintsFAIL frostyard/caddyscope: … B13: .github/dependabot.yml missing(caddyscope has no Dependabot file, as ADR-0089's context records). lodge, chairlift, repogen and snosi printok.test/fleet-conventions.test.mjsgo throughcheckFleetConventionsand compare the exact failures for these cases: a weekly entry, a second group, 2 entries for 1 ecosystem,group-by,go.modwith nogomodentry, nogithub-actionsentry, 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 ofdependabotGaps.checkDependabotcall incheckRepositoryand rannode --test test/fleet-conventions.test.mjs. Result: 85 tests, 68 pass, 17 fail, each on an assertion. The failing tests area conformant Go repository and a conformant Node repository pass(tree URL assertion), the 8B13 rejects …cases,B13 reports a missing Dependabot file without fetching the tree, the 6B13 fails closed …cases andB13 checks only blobs and requests raw contents and a JSON tree.Coder: the code and tests were written by
openai/gpt-6.2-sol; the ADR and docs byanthropic/claude-opus-5-5.Cross-review
anthropic/claude-sonnet-5-5(spawned with this model; its report names itselfclaude-opus-5-5). Coder of the code and tests:openai/gpt-6.2-sol.f99acfddee0a5466990b72e6292a5b1642444a25, headc2a8b03b7debeaef53cf158eaecb7488a2e2c676, all 14 changed files.MANIFESTSexport, and that every brief path fails closed.package-ecosystemgives a falseno entryinmissingEcosystems; 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.yamlcounts as missing, as the row names.yml.