Repository navigation
Add a committed supply-chain audit and runner lint; close npx registry-fallback paths - #2714
Merged
Merged
Conversation
chalin
marked this pull request as ready for review
August 12, 2026 11:45
Prove from the committed manifests, locks, .npmrc, and workflows alone that the hardening invariants (docsy#2700, docsy#2702, docsy#2712) still hold: registry + integrity coverage, non-registry allowlist, campaign IOC denylist, install-script inventory with a lock-matching allowScripts pin, locked script-free install commands, and credential-isolated workflow installs. Wired into test:full via _test:full:post.
A bare `npx BIN` on an unpopulated tree falls back to the public registry package named BIN and executes it. Live near-miss (2026-08-10): _gen-chroma-style.sh runs `npx hugo` and redirects stdout into a generated .scss; the registry owns an unrelated package named `hugo`. - Package scripts invoke dependency bins directly (node_modules/.bin is on PATH under npm run). - Shell scripts default HUGO to the repo-installed bin: fails loud when the tree is unpopulated. - The fixture-site harness spawns `npx --no-install hugo`, matching the smoke test's documented pattern. - The lock-audit test grows a no-bare-npx guard over package scripts and shell scripts (red-proven against the pre-fix tree).
- Bounds install-flag matching, so --ignore-scripts=false no longer passes - Extends the workflow npm denylist: real aliases, flags before the subcommand, non-npm package managers - Recurses the bare-npx scan and widens it to .mjs (comment filter gains //); tightens the --no-install lookahead to the exact flag - Fails on stepless jobs instead of silently skipping them - Red-first: 8 mutations, one per new check, each proven red
- Call-site comments keep their site-specific clause plus a pointer - Trims the denylist comment clause that restated its regex
- Splits the accreted _test:full:post into semantic scripts: _test:fix-clean (fixers-produce-no-diff bracket) and test:repo (offline repo suites, one node --test invocation), composed by _test:full:common, the tail both CI legs share - Guards test:repo wiring in the lock audit: node --test silently skips a stale path when other arguments match, so each argument must resolve - Collapses the per-suite maintainer-notes rows into test:repo and adds the missing lock-audit coverage
- Pins install:safe and install:theme-deps exactly: prefix/flag matching accepted an appended unsafe install on a script CI trusts by name - Requires exactly one assignment per .npmrc policy key: npm takes the last duplicate, so a later =false won a presence check - Workflow steps: quoted option values can't shield an npm subcommand; non-checkout uses: must be SHA-pinned marketplace actions (local composite actions would run unaudited code); backslash continuations splice before scanning, in scripts and run steps alike - IOC check reads pkg.name (npm aliases), integrity wants a full sha512 payload, and the test:repo wiring guard counts only .test.mjs files - Red-first: 10 mutations, one per new check, each proven red
- Forbids pre/post lifecycle siblings of the pinned install scripts: npm
hooks would run unreviewed code inside the exact-pinned chain
- Extends the npx guard to the JS spawn-arg form and denies npm exec in
package scripts and script files; scans quote-stripped variants, in
scripts and workflow run steps alike ("npm" ci runs npm)
- Workflow jobs run container- and service-free (mutable images escape
the action-pin invariant), and env at any scope leaves NPM_CONFIG_*
and HUGO untouched
- Asserts the single @docsy:registry pin with the other .npmrc keys
- IOC check now tries both identities (lock key and pkg.name): a spoofed
name field can't clear the key-derived one
- Wiring guard requires regular files: a directory can end in .test.mjs
- Refreshes the unreleased-changelog script names this branch retired
- Red-first: 11 mutations, one per new check, each proven red
chalin
force-pushed
the
chalin-m24-lock-audit-2026-0810
branch
from
August 12, 2026 21:20
8905fd9 to
39066d8
Compare
- npm-exec denial tolerates options before the subcommand, matching the workflow denylist's prelude - Script scan gains docsy.dev/scripts and docsy.dev/tests (executed by audited npm scripts, previously unread) and the .js/.cjs/.mts/.pl extensions - JS spawn guards: a spawned npx needs the literal --no-install array (a variable args array can't prove it); a spawned npm must not reach the exec engine; both cover all scanned JS extensions - Alternate package runners (yarn/pnpm/bunx/corepack) denied in package scripts and script files, not just workflows - Run steps can't write GITHUB_ENV: it poisons later steps' env past the map-level checks (GITHUB_PATH stays legal: the lychee install uses it) - Documents the text-level-guard limits at the pattern home - Red-first: 7 mutations, one per new check, each proven red
- One shared npm option prelude (quoted values covered) for the exec and workflow denylists: the two had diverged, and the script-side copy let a quoted value shield the subcommand - Alt-runner denial uses word boundaries and one shared pattern: bare `yarn` (an unlocked install) and every `bun` form now red, in package scripts, script files, and workflows alike (bunx was missing from the workflow side too) - Spawned npm requires a literal args array that doesn't reach the exec engine, matching the npx guard's variable-args stance - Pins GITHUB_PATH writes to the one reviewed lychee line: entries prepend to PATH, so a second writer could shadow npm itself - Excludes this file from its own scan: an audit can't police its own source, and self-scanning forced the patterns into self-dodging shapes (the round's two confirmed bypasses were exactly that weakening) - Red-first: 7 mutations, one per new check, each proven red
- Uses safe-practice consumer resolution; an audit ban on consumer hooks preserves equivalence with permissive Docsy installs - Validates the local Hugo binary before smoke-site setup, surfacing lazy-install failures at the boundary
chalin
force-pushed
the
chalin-m24-lock-audit-2026-0810
branch
from
August 13, 2026 00:26
85b5c1e to
6caf04d
Compare
- Separates the exact one-attempt rebuild from a three-attempt 0/2/5-second backoff policy - Pins the complete retry chain in the lock audit; exhaustion stays fail-loud
Moves the Bash control flow out of package.json so npm's Windows cmd shell cannot split the bash -c program at single quotes.
- Renames the retry helper for the hugo-extended package and makes it directly executable on Unix - Adds a fourth attempt after 10 seconds; behavior tests pin success and exhaustion paths - Keeps the npm wrapper's explicit bash invocation for Windows cmd portability
- Rejects Hugo installer controls before any retry and verifies the pinned extended binary after a successful rebuild - Audits workflow shell templates and Netlify Hugo controls; expands the JS npm-exec guard to option-prefixed arrays - Makes retry tests assert the exact npm argument vectors rather than attempt counts alone
- Consolidates retry policy, unsafe HUGO_* rejection, and the exact targeted rebuild into one module that runs npm's JS CLI (npm_execpath) via Node -- no command shell on any platform, closing the Windows cmd concern that forced the Bash wrapper - Drops _check:hugo and its files: the locked postinstall already checksum-verifies and executes the binary; the CLI-based check could lazily install Hugo outside the retry policy, and smoke ran it twice - Retry tests drive the exported policy in-memory instead of staging fake npm/sleep executables on PATH
- Adds an end-to-end test spawning the real helper with a fake npm_execpath recorder, asserting the exact rebuild argv -- closes adversarial round 9's false-clean paths (no-op default run, disabled entry block), each proven red by mutation - Compares realpaths on both sides of the entry check so a symlinked invocation can't silently exit 0 without rebuilding - Fails fast when npm_execpath is absent instead of sleeping through the full backoff - Lock audit imports UNSAFE_HUGO_ENV from the helper (one home); the unit test's literal list stays as the content pin - test.yaml: Windows run step becomes a literal block, immune to prettier refolding
chalin
force-pushed
the
chalin-m24-lock-audit-2026-0810
branch
from
August 13, 2026 12:50
1ce079f to
4de5b73
Compare
chalin
force-pushed
the
chalin-m24-lock-audit-2026-0810
branch
from
August 13, 2026 12:52
4de5b73 to
9e2df01
Compare
- Double-quotes the test:repo and test:lychee globs: cmd.exe passes single quotes through literally, and node's runner silently skips a non-matching pattern riding with matching ones -- Windows CI ran 16 of 146 tests, the Hugo helper suite among the skipped (adversarial round 10, High) - Hardens the resolve-check to reject single-quoted arguments instead of stripping them POSIX-style (proven red against the old script) - Drops the isMain try/catch (an entry-time realpath throw now crashes loud instead of exiting 0) and the execPath test seam (the unit test asserts process.execPath directly)
- Runs the locked Hugo CLI through Node instead of the platform-specific npx shim - Requires cmd-safe wildcard quoting and audits Hugo environment keys case-insensitively
- Uses the existing package.json reference label without breaking code-styled link text - Adds the lean docsy#2714 entry to the unreleased maintainer changelog
From the DRY/lean + comments review (report in tmp/): the script-shell audit comment points at .npmrc's rationale instead of restating it, the second drive-letter tar comment points at the first, and the unit-test denylist copy states its content-pin role.
The double quotes were transitional cmd.exe armor; with script-shell=bash pinned and audited, scripts never meet cmd. The audit drops the single-quote rejection but keeps the load-bearing half: wildcards must be quoted (either kind), since bash without globstar would pre-expand ** as *, silently dropping top-level test files (proven red on an unquoted glob).
Review conclusion (senior-security-advisor pass, evidence from npm 11's libnpmexec source and probes): the runner guards defend against the careless bare-npx habit, not deliberate evasion -- text-level scans can never win the latter, so hardening them against it bought complexity without safety. Demoted to an explicitly-labeled lint and simplified accordingly. - One sanctioned dynamic-resolution form: `npx --no -- BIN`. npx-cli.js rewrites the legacy --no-install to --yes=false, npm exec --no sets the same flag: all three are one code path (refusal thrown before any download), so the shortest form wins; npm exec/x stays denied outright rather than flag-parsed for safety - Drops the option-prelude machinery and quote-stripped double scans; known false negatives (npm -s exec, interpolation) are review's job, per the lint header - Migrates the smoke consumer-wiring check and the gen-favicons docs to the canonical form; mutation-proven red: bare npx in a shell script, bare npx in a manifest script, and the legacy --no-install spawn shape
One file held three kinds of check with different epistemics; each now has a home whose name predicts its content: - tests/supply-chain-audit.test.mjs (rename): the structural invariants proved from committed artifacts -- locks, IOCs, install-script inventory, npmrc keys, git-dep pins, install-chain pins, workflow audit - tests/runner-lint.test.mjs: the sanctioned-runner-forms text scan, whose lint-not-boundary header now labels a whole file; the deny-pattern self-scan exclusion covers both definition files - tests/test-wiring.test.mjs: the suite-wiring guard (test:repo args resolve), which was never a supply-chain check -- and the natural home for the planned reporter-based test-count floor Pure move: zero assertion changes, same 146-test count; the wiring guard itself proved red mid-migration on the stale test:repo name. File references in scripts, docs, and the changelog updated.
Comments/lean/dashes pass: cuts wiring narration that package.json already documents, tightens the wiring-guard header, and reworks six em-dash constructs to the marks their sentences wanted (colon, semicolon, parentheses).
Adversarial round 11 (Grok, tmp/adversarial-review-lock-audit-r11-grok-2026-08-13.md): - High: the demoted lint used --no with a word boundary, blessing every --no-* config negation (--no-fund still registry-installs and executes; reproduced live). The lookahead now accepts exactly `npx --no -- BIN`, whitespace-tolerant; the --package allowance is dropped with the repo having no use for it. Mutation matrix: 12 shapes, including the round's double-space false-red, all correct; --no-fund in a manifest proven red - Medium: the split left each guard file independently droppable from test:repo with everything green. The wiring guard now derives membership from tests/*.test.mjs, with smoke as the one named deliberate exclusion; drop-a-guard proven red (and the check immediately caught smoke as unwired-by-design, forcing the exclusion to be explicit)
Adversarial round 12 (GPT-5.6 Sol, tmp/adversarial-review-lock-audit-r12-sol-2026-08-13.md), each proven red first: - JS spawn check requires the literal vector [--no, --, ...]: a later --yes silently overrode a first-element --no (reproduced against a local registry) - Scans Node 24-executable TypeScript (.ts, .cts) in both the text and JS-API passes - Exact-pins the two Netlify build command chains: TOML was an unscanned execution entry point - Cross-pins the wiring guard from the supply-chain audit, closing the self-drop hole; refusal tokens are line-local (horizontal whitespace), so a later shell command cannot clean an earlier npx
- Anchors on every standalone npx token and classifies its neighbors (owner-suggested shape), instead of a whitespace-anchored lookahead: quoted invocations ("npx" BIN) and a bare trailing npx no longer slip the script-side scan, and failures now show the offending snippet
- Quote-wrapped tokens in JS files defer to the JS vector check, which owns string-literal safety
- Readmits --package in exactly one order, npx --no --package=PKG -- BIN, in both the shell suffix and the JS vector (refusal proven live: --no still cancels a missing --package install); other orders and the space form stay red
- 24-shape matrix all correct; file-level red proofs: quoted npx, bare npx alone; --package form proven green
Dashes/comments/lean/DRY pass over the three review-round commits: paired-dash parentheticals become parentheses or semicolons, and the lint header stops restating the sanctioned form that its suffix comment explains.
globSync returns platform separators, so the round-11 membership check compared tests\\foo against the manifest's tests/foo on Windows -- and its smoke exclusion missed for the same reason.
The suite arg list named five tests/*.test.mjs files individually only because smoke.test.mjs had to stay out. Rename the manually-run, network-bound smoke harness to smoke.mjs (precedent: tests/site-equivalence/full-vs-shared.mjs), and the five names collapse into one 'tests/*.test.mjs' glob: new guards auto-join, and unwiring one now requires a visible file move or deletion instead of a string edit. The wiring guard's membership check becomes a coverage check: the union of files the test:repo arguments resolve must equal a recursive scan of the suite roots (tests/, scripts/, theme/scripts/), with tests/lychee/ the one named exclusion (its own suite, test:lychee). This is strictly stronger: it also closes the round-12 residual where a guard moved into a subdirectory silently left the suite. The audit cross-pin retargets from the wiring guard's filename to the glob that now carries it. Proven red three ways before trusting green: a dropped glob argument, a guard moved into a subdirectory, and the tests glob removed (audit cross-pin). Suite composition is unchanged: 146 tests, 145 pass, 1 skip.
Adversarial round 13: the coverage check is existence-relative (a deleted file drops out of both sides), so deleting the wiring guard itself stayed green while its glob kept the cross-pin satisfied -- a regression from the explicit-arg era, where a dangling arg went red. Coverage alone cannot encode "this file must exist". Restore named anchors for exactly the guards that implement the guarding: the audit asserts the wiring guard exists (plus the glob that wires it in); the wiring guard asserts the audit and runner-lint files exist. Everything else stays glob-derived. Deleting any other test file remains diff-visible only, deliberately: no check can tell a legitimate deletion from a malicious one; suite-shrinkage detection is the recorded count-floor follow-up. Also build the coverage resolved-set from the per-arg loop's isFile-filtered matches (a directory named *.test.mjs no longer counts as covered) and scope the assert message honestly to the suite roots. Proven red both ways: wiring file deleted -> audit fails on "the suite-wiring guard exists"; audit deleted -> wiring fails on "structural guard ... exists". Suite unchanged: 146 tests, 145 pass, 1 skip.
Review-round tags ("adversarial round N") and similar process references
point at records that don't exist in the repo: the rounds live in
gitignored notes, so for any other reader they are dangling provenance
that git history already owns. Keep each comment's rationale clause;
drop the tags, one narrative variant (mermaid-version), an
unresolvable "round-3 review" qualifier beside a resolvable PR ref, and
two facts the tags were masking as duplicated (the --no-fund negation
note, homed beside the regex it justifies; the deletion-residual note,
homed in the anchor comment above it).
Adversarial round 14 reproduced two structural holes in the glob-derived suite. Critical: removing 'tests/*.test.mjs' from test:repo silently dropped all five tests-root guards while the suite stayed green -- the audit's glob cross-pin rode the very glob it pinned, so the check that should object was unwired with its subject (a regression of the round-12 fix; the round-13 red-proof was false, having run the audit standalone instead of through test:repo). High: pair-deleting the two structural guards stayed green -- each anchor lived inside the wire it defends. One fix for both: scripts/suite-anchor.test.mjs rides the scripts glob and pins, from outside the tests root, the tests glob's presence in test:repo and the three structural guards' existence; the audit anchors it and the wiring guard back. Red-proven through the full suite this time: both reproduced attacks now fail on the anchor's assertions. Also from the round: - Screen NODE_OPTIONS in workflow env (env-injectable code execution in every Node process); screen Netlify [build.environment] keys like the workflow env, and exact-pin NPM_FLAGS, which is what constrains the Netlify auto-install to resolution only. - Pin the full .npmrc assignment set instead of spot-checking four keys (an unpinned node-options or ignore-scripts line rode green), and pin workspace .npmrc absence (--prefix/-C runs read the target directory's file as project config). - Deny npm audit/link/ln and the isntal alias in workflow run steps (audit fix and link install; isntal was the one uncovered install-alias spelling). - Allow whitespace before the comma in the JS npx spawn vector check, matching the sibling npm checks. - isFile-filter the coverage scan side, so a directory named *.test.mjs no longer false-reds the wiring guard. Suite grows by the anchor: 147 tests, 146 pass, 1 skip.
From the review-branch pass: - _gen-chroma-style.sh anchors its HUGO default to the script dir like make-site.sh, instead of a cwd-relative path that breaks when invoked from outside the repo root. - README notes the Bash script-shell pin beside the clone recipe: a Windows contributor without Git Bash's bash on PATH now hard-fails on every npm script, and nothing contributor-facing said so. - The rebuild helper documents why canonical-name env lookups suffice: process.env access is case-insensitive on Windows (the same folding the installer sees), and empty string matches the installer's own falsy handling -- no code change needed. - Coverage scan reads Dirent entries (withFileTypes) instead of re-stat-ing each name, and a directory named *.test.mjs no longer false-reds the wiring guard.
chalin
added a commit
to chalin/opentelemetry.io
that referenced
this pull request
Aug 14, 2026
Ported and adapted from docsy/docsy#2714's audit, hardened through two adversarial review rounds (findings and their red-first closures recorded on the PR): - Proves the install-hardening invariants from committed files alone, fast and offline: lock registry+integrity with URL-bound identities, reviewed git-pin allowlist, npm-worm IOC denylist, allowScripts <-> lock hasInstallScript coverage both ways, .npmrc exact settings, engines floors (devEngines forbidden), the exact-pinned install-script closure with an all-pairs hook screen, and netlify.toml's whole build surface (parsed with smol-toml, new devDependency) as an allowlist - Lives under scripts/ so the existing test:local-tools glob runs it
chalin
added a commit
to chalin/opentelemetry.io
that referenced
this pull request
Aug 14, 2026
Ported and adapted from docsy/docsy#2714's audit, hardened through two adversarial review rounds (findings and their red-first closures recorded on the PR): - Proves the install-hardening invariants from committed files alone, fast and offline: lock registry+integrity with URL-bound identities, reviewed git-pin allowlist, npm-worm IOC denylist, allowScripts <-> lock hasInstallScript coverage both ways, .npmrc exact settings, engines floors (devEngines forbidden), the exact-pinned install-script closure with an all-pairs hook screen, and netlify.toml's whole build surface (parsed with smol-toml, new devDependency) as an allowlist - Lives under scripts/ so the existing test:local-tools glob runs it
chalin
added a commit
to chalin/opentelemetry.io
that referenced
this pull request
Aug 14, 2026
Ported and adapted from docsy/docsy#2714's audit, hardened through two adversarial review rounds (findings and their red-first closures recorded on the PR): - Proves the install-hardening invariants from committed files alone, fast and offline: lock registry+integrity with URL-bound identities, reviewed git-pin allowlist, npm-worm IOC denylist, allowScripts <-> lock hasInstallScript coverage both ways, .npmrc exact settings, engines floors (devEngines forbidden), the exact-pinned install-script closure with an all-pairs hook screen, and netlify.toml's whole build surface (parsed with smol-toml, new devDependency) as an allowlist - Lives under scripts/ so the existing test:local-tools glob runs it
chalin
added a commit
to chalin/opentelemetry.io
that referenced
this pull request
Aug 14, 2026
Ported and adapted from docsy/docsy#2714's audit, hardened through two adversarial review rounds (findings and their red-first closures recorded on the PR): - Proves the install-hardening invariants from committed files alone, fast and offline: lock registry+integrity with URL-bound identities, reviewed git-pin allowlist, npm-worm IOC denylist, allowScripts <-> lock hasInstallScript coverage both ways, .npmrc exact settings, engines floors (devEngines forbidden), the exact-pinned install-script closure with an all-pairs hook screen, and netlify.toml's whole build surface (parsed with smol-toml, new devDependency) as an allowlist - Lives under scripts/ so the existing test:local-tools glob runs it
chalin
added a commit
to chalin/opentelemetry.io
that referenced
this pull request
Aug 14, 2026
Ported and adapted from docsy/docsy#2714's audit, hardened through two adversarial review rounds (findings and their red-first closures recorded on the PR): - Proves the install-hardening invariants from committed files alone, fast and offline: lock registry+integrity with URL-bound identities, reviewed git-pin allowlist, npm-worm IOC denylist, allowScripts <-> lock hasInstallScript coverage both ways, .npmrc exact settings, engines floors (devEngines forbidden), the exact-pinned install-script closure with an all-pairs hook screen, and netlify.toml's whole build surface (parsed with smol-toml, new devDependency) as an allowlist - Lives under scripts/ so the existing test:local-tools glob runs it
chalin
added a commit
to chalin/opentelemetry.io
that referenced
this pull request
Aug 14, 2026
Ported and adapted from docsy/docsy#2714's audit, hardened through two adversarial review rounds (findings and their red-first closures recorded on the PR): - Proves the install-hardening invariants from committed files alone, fast and offline: lock registry+integrity with URL-bound identities, reviewed git-pin allowlist, npm-worm IOC denylist, allowScripts <-> lock hasInstallScript coverage both ways, .npmrc exact settings, engines floors (devEngines forbidden), the exact-pinned install-script closure with an all-pairs hook screen, and netlify.toml's whole build surface (parsed with smol-toml, new devDependency) as an allowlist - Lives under scripts/ so the existing test:local-tools glob runs it
chalin
added a commit
to chalin/opentelemetry.io
that referenced
this pull request
Aug 18, 2026
Ported and adapted from docsy/docsy#2714's audit, hardened through two adversarial review rounds (findings and their red-first closures recorded on the PR): - Proves the install-hardening invariants from committed files alone, fast and offline: lock registry+integrity with URL-bound identities, reviewed git-pin allowlist, npm-worm IOC denylist, allowScripts <-> lock hasInstallScript coverage both ways, .npmrc exact settings, engines floors (devEngines forbidden), the exact-pinned install-script closure with an all-pairs hook screen, and netlify.toml's whole build surface (parsed with smol-toml, new devDependency) as an allowlist - Lives under scripts/ so the existing test:local-tools glob runs it
chalin
added a commit
to chalin/opentelemetry.io
that referenced
this pull request
Aug 18, 2026
Ported and adapted from docsy/docsy#2714's audit, hardened through two adversarial review rounds (findings and their red-first closures recorded on the PR): - Proves the install-hardening invariants from committed files alone, fast and offline: lock registry+integrity with URL-bound identities, reviewed git-pin allowlist, npm-worm IOC denylist, allowScripts <-> lock hasInstallScript coverage both ways, .npmrc exact settings, engines floors (devEngines forbidden), the exact-pinned install-script closure with an all-pairs hook screen, and netlify.toml's whole build surface (parsed with smol-toml, new devDependency) as an allowlist - Lives under scripts/ so the existing test:local-tools glob runs it
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.
tests/supply-chain-audit.test.mjs): regenerates the hardening invariants offline from committed artifacts alone, so future integrity claims come from CI instead of ad hoc audit runs:allowScriptspin that tracks the locked hugo-extended version;npx BINon an unpopulated tree falls back to the public registry and executes whatever package holds that name (in CI, without prompting):HUGOto the repo-installed binary;npx --no [--package=PKG] -- BIN, enforced bytests/runner-lint.test.mjs(a lint at the careless-mistake standard, not a security boundary);tests/test-wiring.test.mjsproves thetest:repoglobs cover every repo test file.scripts/rebuild-hugo-extended.mjs): the one reviewed lifecycle exception runs through a single Node helper: bounded backoff retries for the transient binary-download failures seen in CI, unsafeHUGO_*installer controls rejected, and no command shell on any platform.script-shell=bashis pinned in the committed.npmrc(audited), ending the sh/cmd.exe quoting divergence that had Windows CI silently running 16 of 146 tests;test:repoconsolidates the offline suites and now runs fully on both CI platforms.