Skip to content

star lint validates packages-manifest.yaml: a lint.manifest command over internal/manifest, in lint.all, with a design doc and user docs that do not exist yet #838

Open

Description

@David-Noble-at-work

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:

  1. Collects every packages-manifest.yaml and .json under --path (internal/manifest.IsManifestFile).
  2. Validates each through internal/manifest.Validate — the same validator writ deploy and lore apply 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 way Markdown reports frontmatter.
  3. Applies the manifest contract as ruled, so the lint and the planner cannot disagree:
  4. Runs in make check through lint.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.md and 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.md gains
    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.md teaches the format, and a
    generated reference page does not replace that: it gains a "Validate" section, star lint manifest --path <repo>.

Evidence of completion

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

  1. David-Noble-at-work commented on Sep 28, 2026

    @David-Noble-at-work
    ContributorAuthor

    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 strictly
    worse: OpenJS.NodeJS.LTS installs 24.19.0 and Homebrew's node@24 installs 24.21.0, so switching
    today 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:

    Platform Today LTS route Note
    Windows winget OpenJS.NodeJS 26.7.0 OpenJS.NodeJS.LTS a different package, so uninstall and reinstall, not an upgrade
    Darwin Homebrew node 26.9.0 (stable 26.10.0) node@24 keg-only: not on PATH without an explicit link
    Linux NodeSource setup_26.x, 26.10.0 NodeSource setup_lts.x a generic LTS endpoint; once pointed there it follows LTS forever and never needs touching again

    Why 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 reconcile that can say
    whether 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.manifest in lint.all is 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.

  2. David-Noble-at-work commented on Oct 25, 2026

    @David-Noble-at-work
    ContributorAuthor

    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.manifest checks the order and reports an entry out of place, so the rule is enforced rather than remembered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions