Repository navigation
Description
Lane 3 of NobleFactor/noblefactor-engprod#232, the lint tooling schedule. Waits on #932: this issue models its reporting on Markdown's frontmatter issues, and #932 changes that shape.
in the wrong shape (#796), one naming a winget moniker (#818), and one in a form the planner refuses (#813).
What star lint offers today
Seven extension commands, each a Starlark script over the lint provider:
| Command | What it checks | Provider method |
|---|---|---|
lint.go |
go mod tidy drift, then golangci-lint (--path, --golangci-config, --skip_mod_tidy) |
Go(paths, config, skipModTidy) |
lint.go-style |
the Go style guidelines, pluggable rules, --fix |
(Starlark rules) |
lint.shell |
shellcheck and shfmt (--severity, --indent) |
Shell(files, severity, indent) |
lint.markdown |
markdownlint-cli2 and the guide frontmatter check, --fix |
Markdown(files, fix) |
lint.copyright |
SPDX and copyright headers, --fix |
(Starlark) |
lint.tools |
the required tools are installed | EnsureTools() |
lint.all |
every configured linter over --path |
— |
lint.markdown is the precedent for what this issue asks: a structural validator (frontmatter) runs beside an
external linter, reports its issues in the same result, and fails the command with the others. make check runs the
lint commands through star (lint-go.star is what the quality gate calls).
Nothing lints packages-manifest.yaml. The only check in the tree is TestCheckedInManifests_AreValid
(internal/manifest/checked_in_test.go), which validates this repository's own Home/*/packages-manifest.yaml
at test time — it cannot see the Personal or ops repositories, and it did not exist when the five bad manifests
shipped.
Ruled (USER, 2026-09-05): the linter is embedded in star — and all linters should be embedded in star. A lint is a provider method compiled into the star binary, not a subprocess around an external tool; the extension command over it is embedded too. Today lint.go, lint.shell, and lint.markdown shell out (golangci-lint, shellcheck/shfmt, markdownlint-cli2); that is the debt this ruling names, and lint.manifest is built embedded from the start: internal/manifest.Validate behind a provider method, no external process.
We also enumerate every star extension and ensure that every one that should be embedded is embedded; the inventory lives on #837 (2026-09-05).
The extension
A lint.manifest command, and membership in lint.all:
- Collects every
packages-manifest.yamland.jsonunder--path(internal/manifest.IsManifestFile). - Validates each through
internal/manifest.Validate— the same validatorwrit deployandloreapply at
plan time, so a manifest that lints clean is one the planner accepts. Surfaced to Starlark as a provider method,
Manifest(files) (ManifestResult, error), reporting per-file issues the wayMarkdownreports frontmatter. - Applies the manifest contract as ruled, so the lint and the planner cannot disagree:
- a missing
packageskey, an empty file, andpackages: []are all valid and mean no packages (A zero-byte packages-manifest.yaml is refused as 'missing required field: packages'; a missing key, an empty file, and packages: [] must all mean no packages #820); - every accepted spelling of
name— bare,manager:name, and the canonical purl form once pkg.Resource rejects the canonical purl form its doc promises: "pkg:winget/Vim/Vim?scope=machine" fails as unknown package manager "pkg" #813 lands; - for a winget entry, the name is an id (
Publisher.Name), not a moniker (The team layer's Windows packages-manifest.yaml names pwsh, a winget moniker, where the driver needs the id Microsoft.PowerShell #818) — the one manager-specific
rule, because the driver cannot recover from it.
- a missing
- Runs in
make checkthroughlint.all, in this repository and, through the base layer's portable tooling
(Thread:Ops:PortableTooling), in every repository that carries a manifest.
Where the docs go
Neither exists today, so this issue creates the places:
- Design:
docs/architecture/3.5.17-lint-provider.mdand its.status.md, the next number in the per-provider
series (3.5.16 is ui). It records the provider's methods, the extension commands over them, and the rule that a
validator the planner applies is also a linter the author can run.docs/architecture/star-extensions.mdgains
the command. - User docs:
docs/cli/star/lint/manifest.md, generated. Corrected 2026-09-23: this issue was written
on 2026-09-05 saying star had no generated CLI reference and deferring to devlore-docs generates pages for lore and writ only; star and devlore-test have no CLI reference #787. devlore-docs generates pages for lore and writ only; star and devlore-test have no CLI reference #787 closed 2026-09-21 and
docs/cli/star/lint/now carries a page per command —all,copyright,go,go-style,markdown,
shell,tools. The command's page is generated with it, not deferred. - The guide still gains its section.
docs/guides/writ/packages-manifest.mdteaches the format, and a
generated reference page does not replace that: it gains a "Validate" section,star lint manifest --path <repo>.
Evidence of completion
-
lint.manifestexists, is inlint.all, andmake checkruns it - the provider method
Manifestvalidates throughinternal/manifest.Validate; a manifest the planner refuses
is a manifest the lint refuses, with the same message - the empty forms of A zero-byte packages-manifest.yaml is refused as 'missing required field: packages'; a missing key, an empty file, and packages: [] must all mean no packages #820 lint clean; a winget moniker is reported as such
- unit tests over the provider method; a functional test runs the command against fixtures of every form
-
docs/architecture/3.5.17-lint-provider.mdand status file exist and describe every lint command -
docs/guides/writ/packages-manifest.mdhas the Validate section -
docs/cli/star/lint/manifest.mdis generated alongside its siblings
Related
#796, #813, #818, #820 (the manifests that motivated it); #814 (manifests must combine, which the lint does not judge);
#787 (star's CLI reference, closed 2026-09-21); #932 (lint.markdown's frontmatter check, the precedent this
issue copies — land it first so the shape copied is the settled one); Thread:Ops:PortableTooling (where
lint.all reaches the other repositories).
Activity
David-Noble-at-work commentedon Sep 28, 2026
Node moves to LTS through this manifest, not by hand
Ruled 2026-09-28. Recording it here because this issue is what stands between the decision and being
able to write it down.
The decision. All three machines move to their platform's LTS channel, declared in
packages-manifest.yaml, rather than installed and upgraded by hand on each box.The date is 2026-10-28, when Node 26 enters LTS (
nodejs/Release). Doing it before then is strictlyworse:
OpenJS.NodeJS.LTSinstalls 24.19.0 and Homebrew'snode@24installs 24.21.0, so switchingtoday downgrades two working machines that would be upgraded again a month later. On 2026-10-28 the
LTS channel becomes 26 and the switch costs no version change at all. Node 24 "Krypton" drops to
Maintenance eight days earlier, on 2026-10-20.
What each platform needs, measured 2026-09-28:
OpenJS.NodeJS26.7.0OpenJS.NodeJS.LTSnode26.9.0 (stable 26.10.0)node@24setup_26.x, 26.10.0setup_lts.xWhy a declaration rather than three commands. The three feeds do not agree and cannot be made to:
winget's newest is 26.7.0, Homebrew's is 26.10.0, NodeSource's is 26.10.0. Running every update command
on every machine today still leaves three versions. Node is package-managed everywhere -- nothing is
hand-downloaded, and npm cannot update Node at all -- so the only thing a manifest buys is the one thing
missing: a record of what these machines are supposed to have, and a
writ reconcilethat can saywhether they do.
Why this waits on #838
Three platform entries, each carrying a purl whose qualifiers matter -- a scope on Windows, a keg-only
formula on Darwin, a repository channel on Linux -- are exactly the shape of thing that is wrong in a
way nothing notices. #785 exists because every manifest in this repository is already written in a form
the loader cannot parse, and that survived because no gate reads a manifest.
lint.manifestinlint.allis what makes a Node declaration trustworthy rather than merely present.Until it exists, the declaration would be checked by whoever happened to run a deploy and notice.
David-Noble-at-work commentedon Oct 25, 2026
Ruled 2026-10-25 (#1179): a packages-manifest's entries are sorted by purl, and
docs/guides/writ/packages-manifest.md§ Format states it.lint.manifestchecks the order and reports an entry out of place, so the rule is enforced rather than remembered.