Skip to content

feat(devtools): verify-manifests internal consistency lint #491

Closed

Description

@Sinity

Parent

Part of #401. Verifiability-coherence track. Sibling to #429.

Problem

The docs/plans/*.yaml manifests are now load-bearing for verification (topology-target.yaml, migrations.yaml, file-size-budgets.yaml, test-ownership.yaml, and the cross-cut tags inside topology-target.yaml). Each is consumed by a lint that gates devtools verify --quick. But nothing verifies the manifests themselves.

Concrete rot vectors observed or possible today:

  • Stale issue refs. Manifest entries cite owning issues by number (owner: "#414", until: "#403", issue: "#413"). When an issue closes, no lint flags exceptions or migrations whose owning issue is gone — a closed sunset never triggers cleanup.
  • Target collisions across issues. Two cells in topology-target.yaml can declare the same target: path. verify-topology flags this as a conflict, but only if both rows are present. A target that collides with the kernel-rule path (polylogue/__init__.py etc.) is not flagged.
  • Cross-cut vocabulary drift. cross_cut: { layer: read | write | both } is a controlled vocabulary, but verify-cross-cuts does not assert that values are drawn from the declared enum. A typo (layer: reads) silently passes.
  • Untagged structural cells. verify-cross-cuts is clean today partly because most cells have no cross_cut: block. The lint cannot demand coverage without a coverage manifest (covered separately by feat(devtools): evidence-driven structural specification — cross-cut manifest, witness, dashboard #432, but the underlying check belongs here).
  • Path divergence. must_vanish_paths in migrations.yaml may reference a path that no longer exists; the migration reports complete for the wrong reason (file moved, not retired).
  • Owner mismatches. A cell with owner: "#414" whose target: does not begin with the path refactor: rationalize product ownership and package boundary #414 declares it owns slips through.

Target

Add devtools verify-manifests and run it in verify --quick. The lint reads every docs/plans/*.yaml and checks:

Universal (all manifests)

  1. Every cited issue (owner:, until:, issue:) exists. Use gh api repos/:owner/:repo/issues/:n or a cached map.
  2. Closed issues are flagged with [warn] for owner:/issue: (work is "owned" by something complete) and [block] for until: (sunset never fired).
  3. Every path in any manifest exists in the realized tree (or is declared by a must_vanish_paths migration entry, in which case it is expected not to exist post-completion).

topology-target.yaml

  1. No two cells declare the same non-TBD target: path.
  2. No cell's target: collides with a kernel-rule path unless the cell has owner: kernel.
  3. Cross-cut tag values come from the declared enums (layer ∈ {read, write, both}, lifecycle ∈ {runtime, model, both}, api ∈ {sync, async, none}, surface ∈ <known-set>).
  4. Cells under a package matching *_runtime.py, *_models.py, facade*, or sync* must declare the corresponding cross-cut tag (escalation strictness controlled per feat(devtools): evidence-driven structural specification — cross-cut manifest, witness, dashboard #432).

migrations.yaml

  1. must_vanish_paths resolve to either an existing path (migration not yet complete) or a confirmed-deleted path (migration complete) — but not to a path renamed elsewhere in the tree (that's an aliasing bug).
  2. must_vanish_cli_commands correspond to actual CLI commands found in the proof catalog or the rendered CLI reference.
  3. must_vanish_devtools_commands correspond to actual devtools commands in the catalog.

file-size-budgets.yaml

  1. Every exceptions[*].path exists in the realized tree.
  2. Every per-package ceiling key resolves to a directory that exists.

test-ownership.yaml

  1. Every untested[*].path and shared[*].path exists.
  2. No untested: entry has a corresponding test that imports it (justification is stale).

Why this matters

  • The manifests are the source of truth for the verification system. If they rot silently, every lint downstream is producing confident-looking output against drifted inputs.
  • This is the meta-meta gap: verifying the verifiers' inputs. Not having it means a contributor closing an issue can leave behind orphaned manifest entries that no lint will ever surface.

Acceptance (executable)

devtools verify-manifests           # exits 0; reports [info] for stale-issue warnings
devtools verify-manifests --strict  # treats stale-issue warnings as blocking

Wire verify-manifests into devtools verify --quick.

Related

Cross-reference: holistic assurance umbrella

Filed 2026-04-27. This issue is part of the holistic assurance coverage map (#506) which restructures verifiability work around four tracks (stop lying / coverage map / routing-proof-pack / product confidence) and introduces an Oracle primitive (#507), declarative coverage manifests (#508 assurance-domains, #509 oracle-quality), and operator-facing proof packs (#510).

Read in conjunction with #506 to see how this issue fits into the broader confidence model.

Activity

  1. added
    type:feat
    theme:verifiability
    area:devtools
    on Apr 26, 2026
  2. Sinity commented on Apr 29, 2026

    @Sinity
    OwnerAuthor

    Implemented: #478 test fixes, Oracle primitive, suppressions scaffolding, manifest consistency lint, and Track B coverage manifests.

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

    area:devtoolstheme:verifiabilitytype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions