Skip to content

chore(ui): enforce Solid 2 lint rules - #168376

Merged
steipete merged 5 commits into
mainfrom
solid2/p1-02b
Oct 10, 2026
Merged

steipete merged 5 commits into
mainfrom
solid2/p1-02b

Conversation

@steipete

@steipete steipete commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

UI TSX can compile while losing prop reactivity or retaining removed Solid APIs and JSX syntax. The normal lint pipeline needs Solid 2 checks before more components migrate.

User Impact

No runtime behavior changes. Contributors get Solid-specific diagnostics for ui/**/*.tsx; other source files retain their existing lint rules.

Release-note context: internal migration tooling only.

Why This Change Was Made

Enable the complete eslint-plugin-solid v2 preset through oxlint JS plugins, including prop destructuring, reactivity, removed APIs, obsolete namespaces, split effects, and the remaining v2 checks. Existing lint tests that relocate the root configuration now share a fixture helper that also links its eagerly loaded JS plugin; their assertions are unchanged.

The private tools/solid-lint workspace pins the plugin's tooling to TypeScript 5.9.3 because its transitive @typescript-eslint dependencies require TypeScript below 6.1. The root keeps TypeScript 7.1 for the repository's existing checker and source graph. All existing lockfile importers match the merged main baseline.

Use exact [email protected]: 0.18.1 does not satisfy the seven-day cooldown until 2026-10-11 01:10 UTC. No cooldown exemptions or dependency overrides were added. The toolchain prerequisite is already on main via #168305.

Evidence

  • pnpm test test/scripts/oxlint-solid.test.ts --maxWorkers=1: passed on 5d80d56e6edb1 after merging current main, 2.15 s wall time / 0.73 s test time. The corpus checks expected errors, valid Solid 2 code, and exclusion outside the UI scope through the real oxlint wrapper.
  • Baseline config accepts the invalid corpus; the candidate reports all six expected diagnostics. All 32 preset rule settings match the published v2 preset.
  • Targeted type-aware lint, formatting, and git diff --check: passed.
  • Codex autoreview through P2: clean.
  • Earlier Testbox fixture proof: 1.91 s wall time / 0.36 CI test seconds on afafc0703a5ee; run 38035404978. Its full-lint capsule reported 13 known capsule-related line-cap failures and was stopped. No line budgets, rules, or baselines were weakened. PR CI is the authoritative full-lint proof for this refreshed head.

CI follow-up

All six lint jobs passed on 5d80d56e6edb1 in CI run 38043404277: check-lint, check-lint-core-1, check-lint-core-2, and check-lint-extensions-1/2/3.

That run exposed relocated-config failures in existing test workspaces, which did not contain the newly configured plugin. The fixture repair was reproduced against the failing setup and verified locally:

  • pnpm test test/scripts/oxlint-config.test.ts test/scripts/ci-changed-lint.test.ts test/scripts/lint-status.test.ts test/scripts/oxlint-solid.test.ts --maxWorkers=1: 41 passed, 66.79 s wall time. Individual test times: 23.51 s, 10.71 s, 26.95 s, and 1.05 s respectively.
  • pnpm test test/scripts/changed-lanes.test.ts --maxWorkers=1 -t 'fails real changed-check lint': both affected cases passed, 34.60 s wall time / 27.06 s test time. Other cases were excluded by this focused invocation.
  • Targeted type-aware lint and fresh Codex autoreview through P2 passed for the fixture repair.

The initial duplicate-scan failure was missing target coverage for tools/solid-lint/index.mjs; the existing scan now includes tools, with no weakened thresholds or exclusions. pnpm dup:check:coverage failed before the fix and passes after it. Reported clone pairs were informational.

The release fixture failure is inherited: full main CI 38041823802, at db6449d3f6091740dbddcf02fdc0e34dc94ca424, fails the same eight release-publish-draft.test.ts cases because its synthetic .release-harness omits scripts/lib/managed-cleanup-handoff.mts, imported by tsx-cli-shim.mjs. These source files are unchanged between that main run, the PR, and current main. Recent successful main push runs select only security checks and do not prove this test passes. The inherited-failure landing path will preserve that qualification while requiring completed exact-head checks and ClawSweeper review.

Landing evidence on final head

Run 38046092057 tested 365cd7f61e688edb96d136953a31a549a5b62531. All 71 jobs are terminal; none were cancelled. All six lint jobs, the duplicate guard, and the affected lint-fixture lanes passed. ClawSweeper completed its review of this head with no code findings.

Three remaining failures are retained under the native inherited-failure procedure:

  • release-publish-draft.test.ts: the same eight missing-harness-import failures occur in full main run 38041823802.
  • run-tsgo.test.ts: the same SIGTERM-during-spawn watchdog case times out in that full main run.
  • control-ui-public-session-refresh.test.ts(51,19): TS2345 passes a module-scope string | undefined match result to runInNewContext. This test, its renderer, and the typecheck configuration are byte-identical between protected-main parent f6765f73c339efb8631d45a11daee48cea3989d1 and the actual tested merge f3f2281652bca4364684ea47a7346986318a3d90; root TypeScript and existing lock importers are unchanged by this PR. This resolves ClawSweeper's requested type-failure attribution.

The native landing record retains the exact checkout, source hashes, main/PR failure logs, all job outcomes, and CI aggregate attribution. No failed checks are described as passing.

Load the upstream v2 Solid rules through oxlint for UI TSX. Isolate the plugin tooling on TypeScript 5.9.3 without changing the repository compiler. Add positive, negative, and out-of-scope fixture proof.
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Oct 10, 2026
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 365cd7f61e688edb96d136953a31a549a5b62531
  • Maintainer: @steipete
  • Repository role: admin

These dependency graph changes were made:

  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • tools/solid-lint/package.json

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR adds upstream Solid 2 lint rules for UI TSX and makes isolated lint fixtures resolve the plugin.

Example: A UI component destructures its name prop with const { name } = props.

  • Before: The existing lint configuration accepts the Solid-specific reactivity mistake.
  • After: Oxlint reports Solid diagnostics, including a reactivity warning.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused upstream-rule integration with meaningful fixture coverage and no established code defect; behavioral evidence is harness-based.
Proof confidence 🦐 gold shrimp (3/6) Maintainer-authored internal tooling is outside the external-contributor proof gate; supplied fixture results exercise the real oxlint wrapper, and exact-head lint CI succeeds.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Contributors can introduce Solid reactivity mistakes and removed APIs that ordinary compilation does not reject.
Reason: The maintainer-directed migration needs these checks, and the patch keeps enforcement within the existing tooling boundary.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: it provides useful, maintainer-directed Solid migration tooling, and no introduced defect was established.

Priority: P3
Reviewed head: 365cd7f61e688edb96d136953a31a549a5b62531

Before merge

  • Complete next step - Inspect check-test-types-core-4 diagnostics, repair any diff-caused error, or establish unchanged failing inputs and matching baseline evidence.

Findings

None.

Agent review details

How this fits together

The repository lint pipeline passes UI TSX through oxlint, which loads the Solid plugin from a private workspace and emits contributor diagnostics.

flowchart LR
  A[UI TSX source] --> B[Repository lint wrapper]
  B --> C[Oxlint configuration]
  C --> D[Private Solid lint workspace]
  D --> E[Upstream Solid 2 rules]
  E --> F[Contributor diagnostics]
Loading

Technical review

Best possible solution:

Retain the upstream Solid preset at the existing lint boundary and resolve the remaining CI attribution before landing.

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

This is internal lint enforcement; the supplied corpus exercises invalid, valid, and out-of-scope inputs, and no target code was executed during this review.

Is this the best way to solve the issue?

Using the upstream preset through the existing oxlint owner avoids a competing lint pipeline, while the private workspace preserves the repository compiler version.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Copied root lint configurations keeps the original intent (2ac40de: Existing binary-backed policy tests validate repository lint behavior in isolated workspaces; supplying the configured plugin preserves that purpose.)
  • Package fallback lint fixture keeps the original intent (fb1ca63: Bound package fallback type graphs while preserving project selection and diagnostics; the fixture repair leaves those assertions intact.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 79bc937 adds ui/AGENTS.md:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 79bc937909ab; files: ui/AGENTS.md)
  • Vincent Koc: Raw commit fb1ca63 adds test/scripts/oxlint-config.test.ts:837 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fb1ca633ecce; files: test/scripts/oxlint-config.test.ts)

PR surface

Source +39, Tests +71, Docs +1, Config +12, Other +558. Total +681 across 15 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 2 39 0 +39
Tests 6 78 7 +71
Docs 1 1 0 +1
Config 2 12 0 +12
Generated 0 0 0 0
Other 4 560 2 +558
Total 15 690 9 +681

Labels

Label changes:

  • add P3: Developer lint tooling supports the planned UI migration without changing shipped runtime behavior.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • remove P2: Current review triage priority is P3, so this older priority label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P3: Developer lint tooling supports the planned UI migration without changing shipped runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-10T10:06:01.604Z sha 5d80d56 :: needs changes before merge. :: [P2] [P2] Supply the plugin to existing copied-config lint fixtures
  • reviewed 2026-10-10T10:27:46.609Z sha 42e010d :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T10:34:57.477Z sha 42e010d :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T11:05:04.338Z sha 365cd7f :: needs changes before merge. :: none

Reviewed October 10, 2026, 7:11 AM ET / 11:11 UTC (Revision 5).

@clawsweeper clawsweeper Bot added 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 rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 10, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P2 Normal backlog priority with limited blast radius. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 10, 2026
@steipete
steipete merged commit a18a8a8 into main Oct 10, 2026
139 of 144 checks passed
@steipete
steipete deleted the solid2/p1-02b branch October 10, 2026 11:25
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

steipete added a commit that referenced this pull request Oct 10, 2026
…th fixtures

check-dependencies has been red on hourly main. Its three Knip scripts
failed for separate reasons:

- deadcode:full (production pass) reported
  canUseProfileAsProviderEntryApiKey. #168552 made
  src/plugin-sdk/plugin-test-runtime.ts, a production root, lazily load
  isolated-completion.adapter.test-support.ts. That fixture passes the
  model-auth and prepared-model-runtime namespaces to vi.spyOn. In Knip
  6.32.2, any opaque import (here the lazy loaders in the media-understanding
  runner and config model validation) counts every export of a module as
  used, unless every namespace importer references only the bare namespace
  (is-referenced.js hasOnlyNsRefs). The spies flip that, so the facade's
  dead re-exports surfaced, and deadcode:exports reported nine
  "exports in used namespace" findings for test seams and the lazy-loaded
  isProviderAuthError.
- deadcode:exports' script scan reported the default export of
  tools/solid-lint/index.mjs, which Oxlint loads by path through
  .oxlintrc.json jsPlugins (#168376).
- deadcode:unused-files' full-tree scan reported six files that are only
  loaded by path: scripts/control-ui-parity/{vitest.config,capture-suite,
  fixtures,scenarios}.ts (`pnpm ui:parity`, #168597),
  src/proxy-capture/child-transport.process.test-support.ts
  (resolveRuntimeWorkerUrl in proxy-owner.test.ts, #168459) and
  test/e2e/qa-lab/runtime/codex-isolated-app-server.fixture.mjs (spawned by
  the Codex adapter test, #168552).

Changes:

- Make canUseProfileAsProviderEntryApiKey module-private and drop four other
  model-auth facade re-exports with no consumers anywhere (EnvApiKeyResult,
  ProviderEntryApiKeyBindingResolution, ProviderCredentialPrecedence,
  resolveAwsSdkEnvVarName). Their owners keep their real consumers.
- Ignore only nsExports in the production scan for model-auth.ts,
  model-auth-runtime.ts, model-auth-runtime-shared.ts and
  prepared-model-runtime.ts. Each has a verified opaque lazy importer; plain
  unused exports stay reported, and the full-tree scan still audits every
  export against its test consumers. plugin-test-runtime stays a production
  root: un-rooting it surfaced 24 false positives, because extension tests
  import it through the openclaw/plugin-sdk alias.
- Register the solid-lint default export as Oxlint-consumed, matching
  oxlint-boundary-guards.mjs.
- Add full-tree entries for the six by-path files. No files are deleted.

Proof: deadcode:full, deadcode:unused-files and deadcode:exports all exit 0
on the final tree; the model-auth focused tests pass.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
* chore(ui): enable Solid 2 alongside Lit

* chore(ui): enforce Solid 2 lint rules

Load the upstream v2 Solid rules through oxlint for UI TSX. Isolate the plugin tooling on TypeScript 5.9.3 without changing the repository compiler. Add positive, negative, and out-of-scope fixture proof.

* test(lint): include Solid tooling in isolated config fixtures

* fix(lint): include tooling workspaces in duplicate scan coverage
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
…th fixtures

check-dependencies has been red on hourly main. Its three Knip scripts
failed for separate reasons:

- deadcode:full (production pass) reported
  canUseProfileAsProviderEntryApiKey. openclaw#168552 made
  src/plugin-sdk/plugin-test-runtime.ts, a production root, lazily load
  isolated-completion.adapter.test-support.ts. That fixture passes the
  model-auth and prepared-model-runtime namespaces to vi.spyOn. In Knip
  6.32.2, any opaque import (here the lazy loaders in the media-understanding
  runner and config model validation) counts every export of a module as
  used, unless every namespace importer references only the bare namespace
  (is-referenced.js hasOnlyNsRefs). The spies flip that, so the facade's
  dead re-exports surfaced, and deadcode:exports reported nine
  "exports in used namespace" findings for test seams and the lazy-loaded
  isProviderAuthError.
- deadcode:exports' script scan reported the default export of
  tools/solid-lint/index.mjs, which Oxlint loads by path through
  .oxlintrc.json jsPlugins (openclaw#168376).
- deadcode:unused-files' full-tree scan reported six files that are only
  loaded by path: scripts/control-ui-parity/{vitest.config,capture-suite,
  fixtures,scenarios}.ts (`pnpm ui:parity`, openclaw#168597),
  src/proxy-capture/child-transport.process.test-support.ts
  (resolveRuntimeWorkerUrl in proxy-owner.test.ts, openclaw#168459) and
  test/e2e/qa-lab/runtime/codex-isolated-app-server.fixture.mjs (spawned by
  the Codex adapter test, openclaw#168552).

Changes:

- Make canUseProfileAsProviderEntryApiKey module-private and drop four other
  model-auth facade re-exports with no consumers anywhere (EnvApiKeyResult,
  ProviderEntryApiKeyBindingResolution, ProviderCredentialPrecedence,
  resolveAwsSdkEnvVarName). Their owners keep their real consumers.
- Ignore only nsExports in the production scan for model-auth.ts,
  model-auth-runtime.ts, model-auth-runtime-shared.ts and
  prepared-model-runtime.ts. Each has a verified opaque lazy importer; plain
  unused exports stay reported, and the full-tree scan still audits every
  export against its test consumers. plugin-test-runtime stays a production
  root: un-rooting it surfaced 24 false positives, because extension tests
  import it through the openclaw/plugin-sdk alias.
- Register the solid-lint default export as Oxlint-consumed, matching
  oxlint-boundary-guards.mjs.
- Add full-tree entries for the six by-path files. No files are deleted.

Proof: deadcode:full, deadcode:unused-files and deadcode:exports all exit 0
on the final tree; the model-auth focused tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui dependencies-changed PR changes dependency-related files P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant