Skip to content

fix(lint): scrub real bench values from test fixtures; add the generic topology guard - #393

Merged
VijitSingh97 merged 2 commits into
mainfrom
fix/topology-scrub-and-guard
Aug 22, 2026
Merged

fix(lint): scrub real bench values from test fixtures; add the generic topology guard#393
VijitSingh97 merged 2 commits into
mainfrom
fix/topology-scrub-and-guard

Conversation

@VijitSingh97

Copy link
Copy Markdown
Contributor

The sibling repo's leak audit and generic topology guard never reached this one; a scan found a handful of real local-setup values sitting in the public tree as test fixtures — one globally-routable IPv6 literal, one real hostname (used as both a bad-input fixture and a pool-url fixture), and real home-directory paths. Classes only here, deliberately; each value was swapped for a same-class placeholder (the RFC 3849 documentation prefix, generic host/role names) with every touched assertion updated in step. History still holds the old values — reported to the operator separately; no history rewrite.

The guard: scripts/lint-topology-classes.sh, ported from the sibling repo and re-tuned to this tree (generic role homes, the api_allow_from help-example /24, this product's own .local placeholder). Five generic classes, per-class value allowlists, --self-test fixtures for every failure mode, and the empty-enumeration refusal. Wired as lint-topology under make lint, which CI already invokes — no workflow change needed. The script teaches nothing about any real setup: every pattern is a class.

What was RUN:

  • Full suite on the branch (rebased on main with test: pin the missing-wrmsr case's PATH so the host's real wrmsr cannot leak in #392): 1766 passed, 0 failed — the fixture swaps are behavior-neutral.
  • make lint end-to-end: clean, guard included; the guard's --self-test passes.
  • Wiring mutation, run and reverted: planting a real-looking home path in a tracked doc turns make lint red.
  • Scan of every tracked file: clean after the swaps.

…c topology guard

The public tree carried a handful of real local-setup values as test fixtures
— a globally-routable IPv6 literal, a real hostname (as a bad-input and a
pool-url fixture), and real home paths — each swapped for a same-class
placeholder (RFC 3849 documentation prefix, generic host/role names), with
every touched assertion updated in step. The suite proves the swaps are
behavior-neutral.

scripts/lint-topology-classes.sh (ported from the sibling repo, allowlists
re-tuned to this tree: generic role homes, the api_allow_from help-example
/24, this product's own .local placeholder) wires into make lint as
lint-topology, self-test first. The guard teaches nothing about any real
setup — every pattern is a class.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QXdRGcURkgbuoo5hUG8rmB
The CLI-name comment, the bot-mention self-test fixture, and the exempt-path
list still described the sibling repo; this tree has no compose file or build
templates to exempt.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QXdRGcURkgbuoo5hUG8rmB
@VijitSingh97
VijitSingh97 merged commit 2a5420b into main Aug 22, 2026
9 checks passed
@VijitSingh97
VijitSingh97 deleted the fix/topology-scrub-and-guard branch August 22, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant