Skip to content

[2026.9.36] fix(plugins): validate preserved scoped npm overrides - #187471

Merged
RomneyDa merged 1 commit into
extended-stable/2026.9.33from
tideclaw/es936-plugin-override-test-20261029
Oct 29, 2026
Merged

RomneyDa merged 1 commit into
extended-stable/2026.9.33from
tideclaw/es936-plugin-override-test-20261029

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Related: #187287

What Problem This Solves

Fixes the extended-stable plugin-install validation failure introduced when exact-parent dependency overrides started being preserved in npm form.

User Impact

No production behavior changes. The 2026.9.36 validation candidate can retain the intended scoped dependency policy without a stale test rejecting it.

Why This Change Was Made

The fixture’s [email protected]>ip policy correctly becomes a nested npm override. Expect both that rule and its managed ownership key on the first install. Preserve the existing full-equality checks that require unsupported aliases to be removed on retry; do not broaden the policy or relax assertions.

Evidence

  • Reproduced the original failure on base 92d0ad59874e396c061e5b58d916278eb2c31b54 with the focused normalization/retry test; it failed solely on the newly preserved nested rule.
  • The same focused test passes after the two-line expectation correction (1 passed, 124 intentionally filtered out), using Node 26.12.1 and Vitest 5.0.5.
  • The four scoped override contract cases pass (fresh/upgrade shipped policy and exact-parent normalization with/without aliases).
  • Scoped formatting, Oxlint (0 warnings/errors), and git diff --check pass.
  • Independent OpenClaw/GPT-6.1 Sol source review found no P0-P2 findings; this is narrative review, not canonical helper status. Reviewed patch SHA-256: 5996142620ecc1661de9eb43ea45ced27d6c637dffb6b07e84106c3787904f37.
  • Local dependencies were borrowed read-only from prepared checkouts; this is focused regression proof, not exact-lockfile full release qualification. No broad suite was run. Hosted candidate qualification remains separate.

Align extended-stable installer coverage with the exact-parent override normalization from #187287. Keep strict first-install ownership and alias-free retry assertions.

Co-authored-by: RomneyDa <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@RomneyDa
RomneyDa marked this pull request as ready for review October 29, 2026 07:42
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

The PR adds the preserved nested npm override and its ownership key to an existing installer test.

Example: Validate the fixture rule [email protected]>ip = npm:[email protected].

  • Before: The first-install equality assertion rejects the correctly translated nested override.
  • After: The assertion accepts the nested override and ownership key while still requiring unsupported aliases to disappear on retry.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A correct, minimal test repair supported by source inspection, reported before-and-after focused validation, and successful exact-head checks.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only correction changes no shipped behavior; its reported focused validation exercises the installer with mocked npm commands.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Extended-stable validation rejects the intentionally preserved scoped dependency rule.
Reason: The maintainer-authored correction aligns an existing installer-boundary test with an already merged contract without relaxing its assertions.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it correctly repairs stale extended-stable test expectations without changing production behavior or weakening retry assertions. No actionable defect was found.

Priority: P3
Reviewed head: 8fc218daa0b6f7b46956764cf22dfcb4f0bbbec3

Before merge

None.

Findings

None.

Agent review details

How this fits together

The plugin installer reads workspace dependency overrides, translates supported rules into managed npm manifests, and retries without aliases when npm rejects them; this PR updates its existing test oracle.

flowchart TD
A[Workspace override policy] --> B[Override normalization]
B --> C[Managed npm manifest]
C --> D[Plugin npm install]
D --> E[Alias compatibility retry]
C --> F[Installer test assertions]
E --> F
Loading

Technical review

Best possible solution:

Land the focused expectation correction on extended-stable while retaining the existing normalization owner and strict retry assertions.

Do we have a high-confidence way to reproduce the issue?

The base normalizer emits the nested rule and sorted ownership key, but the original full-equality assertions omit both; the author also reports a failing-base and passing-head focused run, which this read-only review did not rerun.

Is this the best way to solve the issue?

The two expectations are the smallest complete correction because production already implements the intended translation and the retry assertions continue to require alias removal.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against cdff9b02c81b.

Provenance checked

  • Exact-parent override expectations keeps the original intent (a768c14: Preserve narrowly scoped dependency policy by translating exact-parent pnpm selectors into nested npm overrides.)
  • Alias compatibility retry assertions keeps the original intent (ea42a46: Preserve compatible overrides while removing only syntax rejected by the host npm parser.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduced diff adds only the nested werift-ice override expectation and its managed ownership key; the complete alias-free retry equality assertions remain unchanged. (src/plugins/install.npm-spec.test.ts:3258, 8fc218daa0b6)
  • Existing extended-stable production contract: The merged prerequisite [2026.9.36] fix(security): scope patched MSAL to affected credential consumers #187287 translates exact-parent child selectors into nested npm overrides and omits alias-valued rules when alias compatibility fallback is requested. (src/infra/npm-managed-root-overrides.ts:48, a768c148057e)
  • Current main has a different normalization contract: Current main filters parent-child selectors rather than translating exact-parent rules, and its corresponding installer test expects their omission; this extended-stable correction must be judged against its actual base. (src/infra/npm-managed-root.ts:146, cdff9b02c81b)
  • Contributor validation and discussion: The full PR body reports the focused test failing on the base solely because of the preserved nested rule and passing after this correction, plus four passing scoped-override cases; discussion adds no contrary behavior report. (8fc218daa0b6)
  • Exact-head checks and merge state: Paginated check results contain no failing or pending checks; the CI gate and changed-node checks succeeded, and GitHub reports the reviewed head cleanly mergeable. (8fc218daa0b6)
  • Feature-history routing and local limit: Path history identifies prior override normalization, compatibility retry, ownership, and infrastructure refactor contributors; historical blob inspection and blame encountered unavailable objects, so no unsupported line-introduction attribution is made. (src/infra/npm-managed-root.ts, cdff9b02c81b)

PR surface

Tests +2. Total +2 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 2 0 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 0 +2

Labels

Label changes:

  • add P3: This is a focused test-oracle correction with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused test-oracle correction with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 29, 2026, 3:57 AM ET / 07:57 UTC.

@RomneyDa
RomneyDa merged commit 25eb8bb into extended-stable/2026.9.33 Oct 29, 2026
176 checks passed
@RomneyDa
RomneyDa deleted the tideclaw/es936-plugin-override-test-20261029 branch October 29, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants