Skip to content

refactor(test): separate worker declaration metadata from compilation - #144313

Merged
fuller-stack-dev merged 9 commits into
mainfrom
stack/update-v6-worker-metadata
Sep 11, 2026
Merged

fuller-stack-dev merged 9 commits into
mainfrom
stack/update-v6-worker-metadata

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Related: #143752

Scope

Layer 1 of the eight-PR update-recovery stack. This preserves Vincent Koc's worker-metadata refactor and includes the bounded repairs needed during maintainer qualification:

  • Move worker declarations into one metadata-only registry. Compilation, artifact verification, build configuration and test tooling consume that registry; the compiler hashes the new source input.
  • Preserve immutable plugin-metadata snapshots across module re-instantiation. Retained frozen Map/Set descriptors reuse the same mutation-rejection function; recursive traversal and nested freezing remain in place.
  • Make plain Control UI tooltip bodies and hover bridges pointer-transparent, while retaining interaction with rich tooltip content. The native-private implementation keeps the existing timing, Lit bindings and accessibility paths while fitting the existing startup budget.
  • Repair test setup and routing: OAuth capability/refresh mocks agree, the reset/yield Gateway fixture runs in its existing isolated project, exact routing inventories remain enforced, disposable Git fixtures disable automatic maintenance before deliberately deleting an object, and the Android approval fixture waits for its original failing read handler to enter before reconnect replaces that handler. None of these changes relaxes refusal assertions, test timeouts or CI budgets.

This PR does not implement interrupted-update recovery or terminal retirement. The top layer is #143917. Jason Sy's (@fuller-stack-dev) retirement extraction and linked-slot custody fixes remain in their later applicable layers.

User impact

Plain tooltip overlays no longer intercept clicks on nearby controls. Plugin metadata can be finalized again after a module graph is recreated without redefining frozen collection methods. Worker declaration values and compilation behavior are preserved.

Compatibility

No stored-data migration, schema bump, protocol change or configuration conversion is introduced. The declaration registry is moved unchanged; artifact manifest structure, artifact verification and storage paths are unchanged. Adding the registry to compiler inputs participates in the existing build-artifact invalidation mechanism, not a runtime data migration. Plugin snapshots and their mutation guards are process-local objects. Tooltip changes affect DOM interaction only. No new recovery authority or persistence layout is claimed.

Evidence and remaining gates

Current prepared head: 4a2c98fca8fbec3afc3b9e64b0e3c8cef5c9578e, tree f477574c2a0e830f15aaf083a2dfaaef4550cf16.

  • Independent scoped source review of the final Android test-only delta found no actionable issue. Its barrier pins original handler entry, not operation completion. The hosted extra read is recorded; its precise scheduling cause remains unproven.
  • Final-delta owner checks: all 26 approval-class tests and all 13 applicable changed-code gate stages passed. Production, timeouts, exact ordered requests, pending/locked states and terminal removal assertions are unchanged.
  • Prior tooltip/snapshot checks remain separately bound: 3 pointer controls, 45 lifecycle controls, 35 snapshot controls and the 32-stage gate passed on their saved sources. Startup comparison passed at 353,083 bytes against the unchanged 353,107-byte limit. No rich hover-bridge traversal claim is added.
  • Earlier metadata, auth, Gateway-isolation and Git-fixture evidence remains at its original scope. No completed proof was replayed for this publication.
  • Prior exact-head CI34554957089 is preserved. One bounded diagnostic attempt passed UI and Windows with unchanged limits, but exposed the Android fixture's extra read; its aggregate remained failed. No prior-head success transfers to this successor.
  • Successor exact-head CI: https://github.com/openclaw/openclaw/actions/runs/34558612772, triggered by ready-for-review rather than a duplicate manual dispatch. All required hosted/native landing gates remain required.

Draft-skipped jobs do not qualify this head. This PR does not claim whole-stack recovery, F2 completion, installed proof, or permission to release the installed HOLD. The later PRs land only after their predecessors.

Replay the reviewed first tooling layer on the current frozen main base. Keep package activation declarations reserved for the later owning layers; preserve the inherited main build graph and test coverage.
@vincentkoc vincentkoc self-assigned this Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 10, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 10, 2026, 11:36 PM ET / September 11, 2026, 03:36 UTC (Revision 12).

ClawSweeper review

What this changes

Separates test-worker declaration metadata from compilation, fixes plugin snapshot refreezing and tooltip click interception, and stabilizes supporting test fixtures.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this maintainer-owned PR remains useful, and no blocking introduced defect was found. The previous migration prerequisite is unsupported by the actual changes.

Priority: P3
Reviewed head: 4a2c98fca8fbec3afc3b9e64b0e3c8cef5c9578e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, bounded patch with focused regression coverage and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate, and no material authority change triggers additional proof. Reported tooltip pointer, snapshot refreezing, and Android synchronization checks remain supplemental, source-scoped evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate, and no material authority change triggers additional proof. Reported tooltip pointer, snapshot refreezing, and Android synchronization checks remain supplemental, source-scoped evidence.
Evidence reviewed 11 items Registry cutover preserves artifact contracts: The registry values move unchanged; compilation, verification, test tooling, and build configuration consume the new module. The compiler includes that module in input hashing while retaining the existing manifest structure and output paths.
Snapshot repair is process-local: A shared mutation-rejection function preserves descriptor identity across module instances. Recursive Map/Set traversal and freezing remain intact; no persisted schema, plugin API, or authorization decision changes.
Tooltip behavior and dependency boundary: The adapter directly imports Web Awesome’s tooltip and sets its pointer events according to rich content. Existing timing, reactive decorators, dismissal, and description paths remain; browser coverage checks plain body/bridge click-through and rich-link activation.
Findings None None.
Security None None.

How this fits together

Worker declarations tell OpenClaw’s build and test tools which subprocess modules to prepare. Supporting fixes preserve reusable plugin metadata and let Control UI users click controls beneath plain tooltips.

flowchart LR
  A[Worker declarations] --> B[Shared metadata registry]
  B --> C[Build and test tools]
  C --> D[Verified subprocess artifacts]
  E[Retained plugin metadata] --> F[Stable immutable snapshots]
  G[Tooltip content] --> H[Plain click-through or rich interaction]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +7, Tests +203, Other +6. Total +216 across 16 files.

View PR surface stats
Area Files Added Removed Net
Source 2 128 121 +7
Tests 9 214 11 +203
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 5 49 43 +6
Total 16 391 175 +216

Review metrics

Metric Value Why it matters
Net code growth Runtime +7 lines; tooling/test support +7; tests +202 Most growth is regression coverage; the small runtime increase supports stable snapshot guards and tooltip pointer handling.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/lib/vitest-worker-artifacts.mts, migration/backfill/repair: scripts/lib/vitest-worker-declarations.mts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep build metadata dependency-light and preserve existing runtime and UI contracts without introducing migration machinery.

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

Not applicable to the primary metadata refactor; supporting regression paths are identifiable from source and focused tests, but were not executed during this review.

Is this the best way to solve the issue?

Yes: the patch reuses existing owners, completes the declaration-import cutover, and preserves snapshot traversal and tooltip lifecycle behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is primarily tooling cleanup and bounded interaction/test reliability work without evidence of an urgent user-facing outage.
  • 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: The MEMBER-authored PR is exempt from the external-contributor proof gate, and no material authority change triggers additional proof. Reported tooltip pointer, snapshot refreezing, and Android synchronization checks remain supplemental, source-scoped evidence.

Evidence

What I checked:

  • Registry cutover preserves artifact contracts: The registry values move unchanged; compilation, verification, test tooling, and build configuration consume the new module. The compiler includes that module in input hashing while retaining the existing manifest structure and output paths. (scripts/lib/vitest-worker-compiler.mts:47, 4a2c98fca8fb)
  • Snapshot repair is process-local: A shared mutation-rejection function preserves descriptor identity across module instances. Recursive Map/Set traversal and freezing remain intact; no persisted schema, plugin API, or authorization decision changes. (src/plugins/plugin-metadata-snapshot.ts:64, 4a2c98fca8fb)
  • Tooltip behavior and dependency boundary: The adapter directly imports Web Awesome’s tooltip and sets its pointer events according to rich content. Existing timing, reactive decorators, dismissal, and description paths remain; browser coverage checks plain body/bridge click-through and rich-link activation. (ui/src/components/tooltip.ts:515, 4a2c98fca8fb)
  • Published tooltip implementation inspected: Inspected the published @awesome.me/webawesome 3.12.0 tooltip and popup chunks in memory from its npm tarball. Its popup body and hover bridge do not override inherited pointer-events. The npm package metadata identifies shoelace-style/webawesome as its repository; no dependency code was executed.
  • Latest revision preserves approval assertions: Since the previous reviewed head, only the Android fixture changed. It waits until the original failing reconciliation-read handler has entered before replacement; pending-state, ordered-request, and terminal-removal assertions remain unchanged. (apps/android/app/src/test/java/ai/openclaw/app/GatewayExecApprovalRuntimeTest.kt:610, 4a2c98fca8fb)
  • Current main has not absorbed the central changes: The central worker, snapshot, and tooltip owners are unchanged between the pinned base and fetched main. The extracted registry is also absent from fetched main and v2026.9.3; no merged replacement is established. (scripts/lib/vitest-worker-artifacts.mts, 008a95d8059d)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: 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.

History

Review history (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-11T00:14:55.520Z sha 4e174c8 :: blocked before merge. :: none
  • reviewed 2026-09-11T00:32:12.877Z sha 7cb3045 :: blocked before merge. :: none
  • reviewed 2026-09-11T00:40:07.867Z sha cbc3d0e :: blocked before merge. :: none
  • reviewed 2026-09-11T00:52:24.636Z sha 87b98bf :: blocked before merge. :: none
  • reviewed 2026-09-11T01:43:45.180Z sha 9837c86 :: blocked before merge. :: none
  • reviewed 2026-09-11T01:55:21.771Z sha 8f3755d :: blocked before merge. :: none
  • reviewed 2026-09-11T02:38:17.590Z sha d99c11f :: blocked before merge. :: none
  • reviewed 2026-09-11T02:49:06.084Z sha d99c11f :: blocked before merge. :: none

Pair synthetic OAuth refresh with capability discovery. Retain the Android test synchronization landed upstream in commit 1237e64. No production code or timeout changes.
@openclaw-barnacle openclaw-barnacle Bot added the app: android App: android label Sep 11, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the app: android App: android label Sep 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M and removed size: S labels Sep 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added the app: android App: android label Sep 11, 2026
@fuller-stack-dev
fuller-stack-dev marked this pull request as ready for review September 11, 2026 03:29
@fuller-stack-dev
fuller-stack-dev merged commit 7905e68 into main Sep 11, 2026
260 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the stack/update-v6-worker-metadata branch September 11, 2026 03:48
@fuller-stack-dev

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
…openclaw#144313)

* refactor(test): centralize worker declaration metadata

Replay the reviewed first tooling layer on the current frozen main base. Keep package activation declarations reserved for the later owning layers; preserve the inherited main build graph and test coverage.

* test: stabilize auth discovery and onboarding checks

Pair synthetic OAuth refresh with capability discovery. Retain the Android test synchronization landed upstream in commit a43c067. No production code or timeout changes.

* test: isolate yielded session reset runtime

* test: align isolated Gateway inventory assertions

* fix(ui): let plain tooltips yield pointer actions

* test: preserve loose objects in Git corruption fixtures

* fix: keep tooltips lean and metadata snapshots refreezable

* test(android): pin approval reconciliation handler entry

---------

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

Labels

app: android App: android app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L 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