Skip to content

fix(ci): use the subagent codec in state migration tests - #154014

Merged
RomneyDa merged 3 commits into
mainfrom
fix/changed-lanes-skip-ui-e2e-stylelint-20260920
Sep 20, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
fix/changed-lanes-skip-ui-e2e-stylelint-20260920

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

State migration tests import bindSubagentRunRecord from the SQLite store, which no longer exports it, preventing the existing identifier-repair tests from running successfully.

User Impact

Restores CI coverage for identifier normalization, completion ownership, collision refusal, and atomic legacy imports. There is no production behavior or schema change.

Why This Change Was Made

The fixture now imports the serializer directly from its existing codec owner and keeps readSubagentRun with the SQLite reader. All test bodies and assertions remain unchanged; no compatibility export is added.

The existing UI TypeScript stylelint scope is preserved. Main already corrected the companion-file expectation in #153982, so no lint exclusion is needed. The contributor's original codec correction and commit ancestry are retained.

Evidence

  • Running the existing migration test file on current-main code reproduced seven failures, each caused by bindSubagentRunRecord is not a function; two independent cases passed.
  • With the import correction, all nine cases pass using pnpm test src/state/openclaw-state-db-task-identifiers.test.ts --maxWorkers=1.
  • Candidate command wall time: 17.96 seconds, including compilation and setup; the nine reported test durations total 2.118 seconds. No new cases, timers, or fixture boots are introduced.
  • Independent P0–P2 review is clean; formatting and diff checks pass.
  • Exact-head CI passed for 97954e43761c9fba1b3b33cce85b44b7e56235fb, and the final required commit statuses are successful. Earlier installation API-rate-limit failures are retained as historical failures.

Before the existing author-enabled auto-merge completed, #153988 independently brought the identical codec correction onto main in 1c2bdf3e26532e71ae3fbb189b5bc58671f288f6. This PR then merged as d0b5c46fa7ee198a74d160f5e45548d78600589d with no net delta. Post-merge verification confirms both the migration test and full-scope lint planner match the reviewed source. No additional application of the fix is needed.

@clawsweeper

clawsweeper Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Sep 20, 2026
@RomneyDa
RomneyDa force-pushed the fix/changed-lanes-skip-ui-e2e-stylelint-20260920 branch from 6708dff to de5c75a Compare September 20, 2026 20:07
@RomneyDa RomneyDa changed the title fix(ci): skip UI e2e files in stylelint targets fix(ci): restore changed-lane and state test ownership Sep 20, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 4:14 PM ET / 20:14 UTC.

ClawSweeper review

What this changes

The PR excludes UI end-to-end fixtures from targeted Stylelint checks and updates a state migration test to import its record serializer from the codec owner.

Merge readiness

✅ Ready for maintainer review

Keep open: both repairs remain necessary on captured main, and the patch preserves existing test and lint contracts. No actionable introduced defect was found.

Priority: P2
Reviewed head: de5c75ae010c5254f79ba9045073baf7d4e45ea5

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with existing regression coverage, reported targeted validation, and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored internal tooling repair is exempt from external-contributor runtime proof; reported focused tests cover the changed planner and state fixture import.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored internal tooling repair is exempt from external-contributor runtime proof; reported focused tests cover the changed planner and state fixture import.
Evidence reviewed 8 items Pinned introduced change: The merge-base-to-head diff contains only the targeted Stylelint exclusion and test import correction; it changes no runtime storage, authorization, dependencies, or workflow permissions.
Existing lint contract: The existing companion-path case expects only the two CSS files in the Stylelint command; separate cases retain ordinary UI TypeScript, CSS, and public-theme coverage. The patch satisfies those expectations without weakening assertions.
Codec ownership: The codec exports bindSubagentRunRecord; the SQLite store imports it without exporting it. The test now consumes the same serialization owner directly, retaining all migration and collision assertions.
Findings None None.
Security None None.

How this fits together

Changed-file tooling turns modified paths into lint and typecheck commands. Separately, state migration tests use the subagent codec to prepare database fixtures and verify identifier repair.

flowchart TD
 A[Changed file paths] --> B[Check planner]
 B --> C[UI styles and Lit templates]
 B --> D[End-to-end fixtures excluded from Stylelint]
 C --> E[Targeted Stylelint]
 F[State migration tests] --> G[Subagent codec]
 G --> H[Database fixtures and repair assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -2, Other +3. Total +1 across 2 files.

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

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #154014
Summary: This PR consolidates the two validation repairs; the separate import-fix PR was explicitly closed in its favor.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Retain the narrow lint-target correction and direct codec import while preserving existing coverage and storage behavior.

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

Yes, from source: main's Stylelint selector contradicts the existing companion-path expectation, and the state test imports a symbol the store no longer exports. Tests were not executed during this read-only review.

Is this the best way to solve the issue?

Yes. Both edits repair the existing owners directly without restoring a retired export, weakening tests, or adding another implementation.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded repair of shared development checks, with no demonstrated urgent user-facing runtime failure.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored internal tooling repair is exempt from external-contributor runtime proof; reported focused tests cover the changed planner and state fixture import.

Label justifications:

  • P2: This is a bounded repair of shared development checks, with no demonstrated urgent user-facing runtime failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored internal tooling repair is exempt from external-contributor runtime proof; reported focused tests cover the changed planner and state fixture import.

Evidence

What I checked:

  • Pinned introduced change: The merge-base-to-head diff contains only the targeted Stylelint exclusion and test import correction; it changes no runtime storage, authorization, dependencies, or workflow permissions. (scripts/check-changed.mts:129, de5c75ae010c)
  • Existing lint contract: The existing companion-path case expects only the two CSS files in the Stylelint command; separate cases retain ordinary UI TypeScript, CSS, and public-theme coverage. The patch satisfies those expectations without weakening assertions. (test/scripts/changed-lanes.test.ts:2184, de5c75ae010c)
  • Codec ownership: The codec exports bindSubagentRunRecord; the SQLite store imports it without exporting it. The test now consumes the same serialization owner directly, retaining all migration and collision assertions. (src/agents/subagents/registry/subagent-registry.store.codec.ts:81, de5c75ae010c)
  • Still necessary on main: Comparing the two affected files with captured main yields exactly the proposed repairs: main still includes end-to-end fixtures in targeted Stylelint and retains the stale test import. (scripts/check-changed.mts:129, 476275081333)
  • Release check: The supplied latest release, v2026.9.5, also uses the Stylelint selector without the end-to-end exclusion; no shipped resolution of the central lint problem was established. (scripts/check-changed.mts:129, ec9c1a13db89)
  • Related work consolidated here: test(state): import subagent record codec from owner #154026 is closed unmerged; its author explicitly states that this PR combines both repairs so the base fix can pass independently. It is not an alternative landing candidate.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

Copy link
Copy Markdown
Contributor

Please keep the existing UI TypeScript lint scope and repair the selector test fixture instead. The failure at changed-lanes.test.ts:2276 is an exact-argument assertion mismatch, not a postcss-lit failure: the test named a nonexistent E2E file when introduced in c3552279b8d8, and 71fe55536b6e then added that file. The planner correctly started including it among existing UI TS targets.

I ran the repository's stylelint wrapper against both the existing chat-composer-focus.e2e.test.ts and a byte-exact copy of the new picker file from 71fe55536b6e; both passed. The full lint:ui:styles command and the Stylelint TS override already support these files.

A small test-only alternative is verified:

  • Replace the two speculative chat-composer-picker-layout.e2e.test.ts inputs in that table with the existing chat-composer-focus.e2e.test.ts fixture.
  • Include ui/src/e2e/chat-composer-focus.e2e.test.ts before the two CSS paths in the exact stylelintTargets expectation.

The missing-TS assertion fails before that expectation correction, and all 352 tests in changed-lanes.test.ts pass afterward. Independent review is clean. This preserves the exact assertion and current lint coverage without adding a production exclusion. The codec-import correction can remain as written. I have not opened a competing repair PR.

@steipete

Copy link
Copy Markdown
Contributor

Update from the landing side: main has been red on every PR merge ref for ~40 minutes, so I opened the codec-import half separately as #154060 (test-only, +2/−4, same change as yours) to get main green now. The changed-lanes half was already repaired on main by #153982 with the exact-assertion approach suggested above, so after both land this PR's remaining delta is only the check-changed.mts exclusion, which the comment above asks to drop. Feel free to rebase to that or close; credit for the import fix stays with you in #154060's body.

steipete added a commit that referenced this pull request Sep 20, 2026
Restore the identifier test after main moved the binder out of the SQLite
store. Retain the existing assertions and SQLite reader import.

Use the minimal import correction from #154014.

Co-authored-by: Dallin Romney <[email protected]>
@RomneyDa
RomneyDa enabled auto-merge (squash) September 20, 2026 20:34
Preserve the existing UI TypeScript stylelint scope and the corrected
selector expectation from main. Retain the direct codec import repair
without adding a compatibility export or changing migration assertions.

Co-authored-by: Dallin Romney <[email protected]>
@steipete steipete changed the title fix(ci): restore changed-lane and state test ownership fix(ci): use the subagent codec in state migration tests Sep 20, 2026
@RomneyDa
RomneyDa merged commit d0b5c46 into main Sep 20, 2026
102 of 103 checks passed
@RomneyDa
RomneyDa deleted the fix/changed-lanes-skip-ui-e2e-stylelint-20260920 branch September 20, 2026 20:58
steipete added a commit that referenced this pull request Sep 20, 2026
Preserve the reviewed activity projection patch and its measured source
bytes while including the corrected main selector expectation and the
reviewed codec import repair in #154014. Required CI must pass for this
integrated head before landing.
steipete added a commit that referenced this pull request Sep 20, 2026
* perf(ci): reduce Swift test build and fixture overhead

* test(ci): retain optimized Swift arguments in launcher proof

* test(state): import subagent record codec from its owner

Restore the identifier test after main moved the binder out of the SQLite
store. Retain the existing assertions and SQLite reader import.

Use the minimal import correction from #154014.

Co-authored-by: Dallin Romney <[email protected]>

---------

Co-authored-by: Dallin Romney <[email protected]>
github-actions Bot pushed a commit to KrillDD6869/openclaw that referenced this pull request Sep 20, 2026
* perf(ci): reduce Swift test build and fixture overhead

* test(ci): retain optimized Swift arguments in launcher proof

* test(state): import subagent record codec from its owner

Restore the identifier test after main moved the binder out of the SQLite
store. Retain the existing assertions and SQLite reader import.

Use the minimal import correction from openclaw/openclaw#154014.

Co-authored-by: Dallin Romney <[email protected]>

---------

Co-authored-by: Dallin Romney <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 21, 2026
* fix(ci): skip UI e2e files in stylelint targets

* test(state): import subagent record codec from owner
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 21, 2026
* perf(ci): reduce Swift test build and fixture overhead

* test(ci): retain optimized Swift arguments in launcher proof

* test(state): import subagent record codec from its owner

Restore the identifier test after main moved the binder out of the SQLite
store. Retain the existing assertions and SQLite reader import.

Use the minimal import correction from openclaw#154014.

Co-authored-by: Dallin Romney <[email protected]>

---------

Co-authored-by: Dallin Romney <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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