# Execution ledger — plan: docs/superpowers/plans/2026-11-08-inline-css-5.0.0.md Branch: release/5.0.0. Started 2026-11-09. Implementation authorized by the maintainer; publishing, merging and pushing remain separate. Ruling: work on a dedicated branch in the existing checkout rather than move the uncommitted planning/measurement documents into another worktree — preserve the shared workspace and existing artifacts; no concurrent implementers. Pre-flight: Tasks 3–4 supply bounded policy-enforcing loaders to Task 7; all loader consumers must migrate together. Tasks 5–6 change css-rules' return shape; update root and parser tests together. Task 1a supplies protection to three separately published consumers, so use a published workspace dependency. Extraction metadata is additive; keep callbacks compatible. The original test fixtures compare exact CSS serialization; revise expectations only for explained semantic corrections, with browser checks for shorthand behavior. ## Status - Task 1: in progress — regressions first; dependency audit and engine compatibility are release/install checks, not source-text unit tests. - Other tasks: pending. - Resource limits: provisional; public-corpus observations do not establish production compatibility. ## Implementation and rulings - Task 1: complete — regression commit 99b3803, with 22 observed failures plus one passing control. Issues 2 and 7 use real audit/install checks rather than tests that merely assert manifest text. - Tasks 1a, 3, 5–8: implementation complete — shared literal template helper, canonical/origin/IP policy, direct streaming loaders, ordered extraction/media retention, numeric cascade records, callback/error handling and retained-selector guards. Additional regressions were added before correcting independent-review findings. - Task 2: complete — maintained compatible dependencies, clean install, zero reported advisories in production and development, Node floor applied consistently, deterministic local-server fixtures, and updated CI matrix. Patched glob/minimatch overrides were validated with the coverage runner. - Task 4: loader implementation and enforcement checks complete. Representative consumer production-profile validation and concurrency tuning remain a stable-release gate; no such profiles were supplied. All seven public templates and eight derived local-load cases passed replay on 5.0.0-rc.1; measurements are saved separately. - Task 9: local RC artifacts and no-lockfile packed-install checks complete. Changesets demonstrably excludes the root package; root version and internal ranges were synchronized explicitly. Changesets initially generated rc.0; all candidate metadata/changelogs were advanced consistently to rc.1 for this staged release. New-package prerelease state starts at 0.0.0 so its first major becomes 1.0.0. - Task 10: migration/release documentation and local staging complete. Real npm publication, registry dist-tag verification, remote CI, and stable promotion remain pending external authorization/data; none was attempted. Ruling: retain selector cleanup's existing edited-element scope — global cleanup was a separately deferred B21 behavior change. Empty retained CSS does not trigger the B14 conflict, but it does not cause previously unmatched elements to be edited. Ruling: getHrefContent resolves an absolute destination without requiring an absolute base — preserves the documented relative-base/absolute-link combination while still authorizing the final resource. Ruling: classify nth-check's recognized invalid-nth errors narrowly and propagate unrelated inline-CSS/internal errors — preserve supported skip behavior without restoring the broad catch. Ruling: explicitly isolate Axios from application-wide defaults — a failing credential-leak regression demonstrated that axios.create alone inherited unrelated Authorization headers; the loader now constructs an explicit HTTP adapter client. Ruling: reject unpermitted file authorities and lexical escapes before target realpath I/O, then enforce canonical containment — avoids remote file authorities on Windows while preserving trusted configured-root aliases (including macOS /var vs /private/var) through an internal symbol. Ruling: Changesets rejects custom --tag in prerelease mode — companions publish through the existing rc prerelease state with no custom tag, and the separately versioned root publishes under next. The publisher guards prerelease state and never runs during release:check. Ruling: preserve the project's existing warning-level lint thresholds — validation/orchestration complexity and mandated callback parameter counts are recorded warnings, not ignored errors; no global lint suppression was added. Independent review: three concrete findings were reproduced and fixed; a follow-up caught the Changesets custom-tag incompatibility, which received a failing orchestration regression and a corrected no-custom-tag command. No real publish command was executed during tests. ## Final local verification - `npm run release:check`: PASS, **162 tests**, all standalone packed entry points load, ten tarballs resolve through a clean local registry consumer, and both audit reports contain **zero advisories**. The command performs no publication. - `npm run coverage`: PASS (150 tests at that earlier verification point), 95.79% statements / 86.20% branches; confirms compatibility of the patched glob/minimatch test-tool overrides. Additional review/boundary regressions bring the final suite to 162. - Node 24 and Node 26 focused regression suites: PASS. Exact floor Node 22.12.0: full suite and packed install PASS. Node 22.11.0 strict consumer installation: rejected with EBADENGINE as expected. - Lint: zero errors, 18 recorded warnings (complexity, depth, and mandated argument counts). `git diff --check`: PASS. - `npm run release:preview`: workspaces invoke Changesets with no custom tag (prestate rc), then root npm publish uses next; preview does not execute either operation. Publication orchestration regression invokes an npm shim, not the registry. - The consumed release-five Changeset is recorded in prerelease state. A subsequent `changeset status` reports no *unconsumed* Changesets; this is not a missing candidate version plan and is not a reason to invent an empty release. Candidate manifests/changelogs and real packed dependency resolution are the staging evidence. - Removed the unused legacy pseudo/selector-removal helpers after migration, including the dead reference to the removed slick dependency. Remaining: production workload/RC feedback, remote Linux/Windows CI after authorized push, actual RC registry installation after authorized publish, and separate stable promotion. Numeric defaults remain provisional. No automatic claim of stable-release readiness is made. ## CI follow-up (2026-11-10) The first remote runs passed every Linux job but failed four linked-file regressions on Windows. Root normalization used legacy `fs.realpathSync`, whereas targets used native `fs.promises.realpath`; Windows temporary-directory aliases could therefore compare as different roots. A local controlled alias regression reproduced the denial, then passed after switching the root to `fs.realpathSync.native`. Canonical containment and outside-root rejection remain enforced. Windows also ran only the root suites because `packages/**/test` depended on Unix shell expansion. A no-shell Mocha discovery regression reproduced the omitted workspace suites. Explicit quoted file globs now make Mocha collect the same suites on both platforms. CRLF-only differences were reproduced with copied fixtures and normalized only in CSS fixture assertions; runtime output was not changed for those differences. Local `npm run release:check`: PASS, **164 tests**, zero advisories in both audits, all ten packed entry points and no-lockfile consumer resolution pass. Remote CI confirmation follows the pushed fix. The restored Windows suites confirmed the runtime fix and then exposed a test expecting `RUNNER~1` instead of the native `runneradmin` spelling. The expected path now uses the native API too. The packed-consumer runner was also checked for opaque Node arguments: a direct reproduction showed shell interpretation breaking the inline Node program. Shell execution is now limited to the Windows npm.cmd launcher; Node processes receive their original argument array. Local packed-install checks pass for all ten packages after this correction. Latest remote results are available on PR #159. ## Internal-helper revision (2026-11-15) Maintainer direction supersedes the original new-package architecture. Shared source moved to `internal/`, generated copies are ignored and included in existing tarballs via build/prepack hooks, and both helper workspaces/dependencies/version records were removed. Runtime ipaddr.js dependencies now belong to existing policy consumers. Versioned global symbols preserve root aliases and loading context across copies. A clean packed-consumer regression first failed because the old helper names resolved; after revision it verifies eight existing artifacts, missing helper names, and a shared aggregate byte budget. No new npm package names or publication rights are needed. Internal-helper local verification: clean npm ci, release:check with 164 passing tests, zero production/development advisories, eight tarballs, old helper names unresolvable, and shared aggregate-budget enforcement all pass. Normal href-content prepack includes its generated policy file. Independent read-only review found no blockers. Lint has zero errors and 19 warnings, including the new build dispatch function. Remote CI confirmation is required for this revision. ## Lint cleanup (2026-11-16) Removed all 19 lint warnings by extracting validation, template scanning, resource loading, media serialization and packaging operations. Internal cascade operations take context objects; public loader/callback argument positions remain unchanged. ESLint rules and thresholds are unchanged, with no suppressions. Verification: `npm run release:check` passed on Node 22.12.0: zero lint errors/warnings, 164 passing regression/browser tests, zero full-tree or production dependency advisories, and eight packed tarballs installed through the temporary registry with standalone entry-point and consumer smoke checks passing. Independent read-only review found no blockers, with 37 targeted tests and differential media/policy checks passing. `git diff --check` passed. Remote CI confirmation follows the push to PR #159.