Skip to content

perf(workboard): avoid redundant Sessions board reloads - #165141

Merged
steipete merged 2 commits into
mainfrom
steipete/perf-micro-sessions-board-shared-revision-20260919
Oct 4, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/perf-micro-sessions-board-shared-revision-20260919

Conversation

@steipete

@steipete steipete commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Related: #165058

What Problem This Solves

Sessions boards recompute and resend the same snapshot for every connected viewer, including reloads triggered by unrelated card edits.

User Impact

Unchanged refreshes return a small unchanged response, and card-only/category-only events no longer reload Sessions boards. Real changes still reach every viewer; cold responses retain their existing content plus a revision token. There is no new configuration or schema migration.

Why This Change Was Made

This applies the card-list epoch/revision pattern and immutable snapshot helper to Sessions boards. The store publishes a separate session revision. The service shares board metadata and one placement projection for identical authorized rosters and people views, with bounded caches and age-window expiry. Every request still performs its own caller-bound compact sessions.list and current-authority checks. Browser generations fence reads across filter changes, writes, and reconnects.

The Gateway remains the prepared-facts owner. This removes the plugin's dirty fact cells, per-board fact-refresh locks, and separate callerless in-flight read path; only last-known facts needed for outage fallback remain. Incomplete results are retryable, recovery gets a fresh token, and continuously invalidated reads finish under their captured revision without retry starvation. The existing runtime category hint now also covers successful category-only publications, preserving stronger invalidations.

Production delta: +133 lines (excluding tests, test support, and docs). The added code implements the requested conditional-response contract while preserving per-request visibility, caller retirement, bounded cache lifetime, outage recovery, and browser generation fencing. Full standalone session facts remain because the page does not already hold an equivalent roster and the agent tool consumes the same read contract.

Evidence

Measured on blacksmith-testbox, lease tbx_01m44c5nyekd968djh2jb6pyf2, with 25 real authenticated WebSocket clients and 60 canonical synthetic sessions. Production plugin registration, nested caller scope, session-list/facts owners, and SQLite worker were exercised. All 25 nested caller identities were preserved. Each row below is 12 waves × 25 reads; handler figures are summed elapsed time, including contention, rather than CPU time.

Workload Before After
Unchanged refresh payload 13,568,700 B 47,700 B (−99.65%)
Unchanged refresh handler wall 14,140.0 ms 6,390.1 ms (−54.81%)
Unchanged board/placement reads 300 each 0
Real label-change handler wall 13,419.6 ms 11,943.5 ms (−11.0%)
Real label-change projections and board/placement reads 300 each 12 each
Cold 25-client projections and board/placement reads 25 each 1 each

Twelve real sessions.patch mutations were applied; every client observed every changed label. Cold contents matched, excluding the added revision and independently created board timestamps: 45,229 → 45,370 bytes (+141). Full changed responses retain their data and add about 0.31% revision overhead.

A separate paired handler/browser-controller/SQLite rig on tbx_01m4488b3c0rs1zzendeq5xtcv used virtual one-minute schedules: unrelated card changes and category-only invalidations fell 300 → 0 reloads/minute, eliminating 16,911,000 bytes/minute in each schedule. Twelve board-visible run-state changes produced 12 projections instead of 300. This event rig uses deterministic nested roster/facts fixtures; the WebSocket timing above uses the canonical owners.

The simplification increases prepared-fact rows for 12 real changes from 12 to 720, in 24 bounded calls; measured facts time rose 3.75 → 36.81 ms while handler wall and worker traffic fell. Caller-authorized roster reads remain per request and dominate the remaining changed-state workload. Other unclassified session notifications retain conservative invalidation. These synthetic runs do not recreate a production installation's full roster or aggregate load.

Validation on the final lease:

  • node scripts/check-changed.mjs --staged --base fad73295db909bf7cc7215dc1aadc75336791491: passed, including core/extension production types, all 27 core test-type graphs, extension test types, lint, dead-export and ownership guards. Native sync represents the commit as a patch over its base; the staged tree was verified as 873f5cbe81faa47b3c076cecb424667446e65171, exactly commit 30fd3a90df02.
  • node scripts/run-vitest.mjs <all 54 workboard test files> src/gateway/server-plugins.session-facts.test.ts packages/workboard-contract/src/sessions-board.test.ts --maxWorkers=1: 684 tests / 56 files passed (167.20 s wrapper). This includes the newer default-scope cases inherited through a clean rebase. Gate plus suites completed remotely in 30m14s, exit 0.
  • Real WS rig: node scripts/run-vitest.mjs src/gateway/server.lane430-rig.test.ts, passed on the final tree. The combined rig and per-file cost command exited 0 in 89.709 s. Temporary rig sources were removed and the final tree was rechecked.
  • The original code fails the new 25-reader projection-sharing regression for the intended assertion. The paired event rig passed, including cold content parity and zero irrelevant reloads.
  • Independent P0–P2 review: clean. An extension typecheck caught an Array.every narrowing issue; direct calls to the shared type guard fixed it and the final full gate passed.

Measured pnpm test <file> --maxWorkers=1 wall times on the final tree:

File Wall time
extensions/workboard/src/sessions-board.test.ts 1.900 s
extensions/workboard/src/gateway.test.ts 26.492 s
src/gateway/server-plugins.session-facts.test.ts 12.847 s
extensions/workboard/browser/pages/workboard/workboard-page-sessions.test.ts 2.262 s
extensions/workboard/browser/lib/workboard/live-refresh.test.ts 1.502 s

The Gateway files reuse their existing ownership/SQLite fixtures; these changes add no per-test server boots.

CI run 37238016923 failed before tests in both real-Gateway UI shards (129 s each), because the browser build rewrote the tracked Workboard asset manifest and the prebuilt-runtime guard correctly rejected the dirty checkout. Fail-fast cancelled the other unfinished jobs. The failure was a lane-owned missing generated artifact.

node --import ./scripts/tsx.mjs scripts/build-plugin-control-ui.mts extensions/workboard regenerated the manifest on the authorized Linux rig after lease tbx_01m44fg1eb1rt7wmmv5xvn7q29 remained queued for more than 20 minutes. Normal and NODE_ENV=production rebuilds passed and produced byte-identical manifests; the exact generated manifest then passed node scripts/check-changed.mjs --staged via /srv/rig/rig-staged-check.sh on the authorized Linux rig (22:38–22:57 UTC, exit 0). The staged tree contained only the two asset-path changes on 30fd3a90df02; extension and extension-test types, 6 doctor-contract tests, lint (10,582 files; 0 warnings/errors), metadata and ownership guards all passed. Independent P0–P2 review of that generated delta passed; repair commit 14b89ee6cc02 includes it.

CI run 37242942450 passed on exact head 14b89ee6cc028592eba4506052187d7ad2573528: 58 successful jobs, 22 workflow-selected skips, no failures; workflow wall time 526 s and aggregate successful-job time 11,644 CI seconds (includes setup and unrelated selected coverage, not an incremental test cost). Both real-Gateway UI shards passed in 334 s / 258 s; changed-extension bundle shards passed in 143 s / 110 s.

Setup corrections were confined to the fixture/leases: installed missing dependencies once per lease when needed; settled canonical PR snapshots before both measurement variants after an initial cold-read mismatch; reconciled one native two-minute sync timeout with one successful required-sync retry. All three leases were stopped and both temporary Linux rig worktrees were removed. No production Gateway was changed.

Reuse revision-owned board metadata and authorized placement projections, return unchanged for current clients, and skip card-only and category-only reloads. Preserve caller-scoped rosters, live authority, failure fallback, and browser generation fencing while removing the duplicate dirty-facts cache and refresh locks.

Related: #165058. Testbox proof with 25 WebSocket clients and 60 synthetic sessions reduced unchanged payloads by 99.65% and handler wall by 51.65%; real-change projections fell from 300 to 12. Independent review clean. Rebase and final integration gate follow before publication.
@clawsweeper

clawsweeper Bot commented Oct 4, 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 docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime plugin: file-transfer plugin: workboard size: L labels Oct 4, 2026
@steipete
steipete enabled auto-merge (squash) October 4, 2026 21:59
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 7:18 PM ET / 23:18 UTC (Revision 5).

ClawSweeper review

What this changes

Workboard shares equivalent authorized Sessions-board snapshots, returns compact unchanged responses, and skips reloads caused by unrelated card or category changes.

Merge readiness

✅ Ready for maintainer review

The prior generated-asset finding is resolved at the pinned head. No remaining actionable defect was found, and the Sessions-board optimization remains distinct from the merged card-list work.

Priority: P2
Reviewed head: 14b89ee6cc028592eba4506052187d7ad2573528

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-supported optimization with the prior asset finding resolved and no remaining actionable review findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Recorded Testbox output exercises the changed Sessions-board owner through authenticated production WebSocket dispatch and canonical facts/SQLite owners, showing content parity, delivery of every label mutation, and reduced unchanged responses. A separate controller rig covers skipped irrelevant events. The final manifest-only repair retains this behavioral proof and adds recorded rebuild idempotence; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Recorded Testbox output exercises the changed Sessions-board owner through authenticated production WebSocket dispatch and canonical facts/SQLite owners, showing content parity, delivery of every label mutation, and reduced unchanged responses. A separate controller rig covers skipped irrelevant events. The final manifest-only repair retains this behavioral proof and adds recorded rebuild idempotence; no stored-data contract changes.
Evidence reviewed 7 items Prior finding resolved: The only change after the previously reviewed head updates both Workboard browser asset paths to the new generated digest. The captured PR body records matching normal/production rebuilds, repeat-build idempotence, and a successful changed gate for this exact manifest delta.
Visibility-aware sharing: Each read obtains its own caller-scoped roster before sharing. The projection key includes the board, view, complete normalized roster, and people facet; caller authority is checked after roster acquisition and again after the shared projection settles.
Additive response contract: The conditional response requires matching epoch, revision, board, and projection scope. Requests without sinceRevision retain full responses; existing persisted board specifications and placement formats are unchanged.
Findings None None.
Security None None.

How this fits together

Workboard turns Gateway session facts and SQLite-backed board rules into session tiles in the Control UI. Caller visibility and people filters determine which sessions enter each snapshot.

flowchart TD
  A[Browser board request] --> B[Caller-authorized session roster]
  B --> C[Sessions-board snapshot owner]
  D[Gateway session facts] --> C
  E[Board rules and operator pins] --> C
  C --> F{Revision and view match?}
  F --> G[Compact unchanged response]
  F --> H[Full session tiles]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +133, Tests +315, Docs +8. Total +456 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 11 268 135 +133
Tests 5 353 38 +315
Docs 2 14 6 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 18 635 179 +456

Review metrics

Metric Value Why it matters
Production versus test growth production +133 lines; tests +315 lines The body justifies production growth for conditional responses, bounded snapshot sharing, expiry, recovery, and browser generation fencing.

Technical review

Best possible solution:

Keep the Gateway as the facts owner and reuse immutable placement snapshots only for equivalent authorized inputs, with full reads after reconnects or view changes.

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

Not applicable as a correctness bug: this is a performance optimization, supported by recorded before/after production-boundary measurements.

Is this the best way to solve the issue?

Yes. It extends the existing revision pattern while retaining caller-scoped roster reads and removing competing plugin fact-refresh ownership.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Recorded Testbox output exercises the changed Sessions-board owner through authenticated production WebSocket dispatch and canonical facts/SQLite owners, showing content parity, delivery of every label mutation, and reduced unchanged responses. A separate controller rig covers skipped irrelevant events. The final manifest-only repair retains this behavioral proof and adds recorded rebuild idempotence; no stored-data contract changes.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded performance improvement for connected Workboard viewers, with measured reductions in redundant payload and projection work.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Recorded Testbox output exercises the changed Sessions-board owner through authenticated production WebSocket dispatch and canonical facts/SQLite owners, showing content parity, delivery of every label mutation, and reduced unchanged responses. A separate controller rig covers skipped irrelevant events. The final manifest-only repair retains this behavioral proof and adds recorded rebuild idempotence; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded Testbox output exercises the changed Sessions-board owner through authenticated production WebSocket dispatch and canonical facts/SQLite owners, showing content parity, delivery of every label mutation, and reduced unchanged responses. A separate controller rig covers skipped irrelevant events. The final manifest-only repair retains this behavioral proof and adds recorded rebuild idempotence; no stored-data contract changes.

Evidence

What I checked:

  • Prior finding resolved: The only change after the previously reviewed head updates both Workboard browser asset paths to the new generated digest. The captured PR body records matching normal/production rebuilds, repeat-build idempotence, and a successful changed gate for this exact manifest delta. (extensions/workboard/openclaw.plugin.json:235, 14b89ee6cc02)
  • Visibility-aware sharing: Each read obtains its own caller-scoped roster before sharing. The projection key includes the board, view, complete normalized roster, and people facet; caller authority is checked after roster acquisition and again after the shared projection settles. (extensions/workboard/src/sessions-board.ts:343, 14b89ee6cc02)
  • Additive response contract: The conditional response requires matching epoch, revision, board, and projection scope. Requests without sinceRevision retain full responses; existing persisted board specifications and placement formats are unchanged. (extensions/workboard/src/gateway.ts:299, 14b89ee6cc02)
  • Production-boundary behavior proof: The complete captured body, sourceRevision 7085acac8aa18c926b6bba0e2bec17bb0366bf67cb69e5be6cb04673c85dec7f, reports 25 authenticated WebSocket clients exercising production plugin registration, nested caller scope, canonical session-list/facts owners, and the SQLite worker on Testbox. All clients observed twelve real label mutations; unchanged payload fell 99.65%, and cold contents matched apart from revision metadata and independently created timestamps. The separate deterministic controller rig covers irrelevant-event suppression. The final commit changes only generated asset paths. (30fd3a90df02)
  • Current-main necessity and related work: The sampled production owners are identical between the pinned merge base and fetched main. Main still uses the earlier dirty-facts cache and lacks Sessions-board conditional responses. The merged perf(workboard): skip unchanged card reloads #165058 optimizes card lists and explicitly leaves caller-scoped Sessions-board work separate. (extensions/workboard/src/sessions-board.ts, 5837209ed1ba)
  • Focused regression coverage: Changed tests cover equivalent-reader sharing, differing visibility and people facets, caller retirement, age-window expiry, incomplete-result recovery, invalidation races, reconnects, and writes fencing older browser reads. The body records 684 passing tests and focused wall times; this read-only review did not execute tests. (extensions/workboard/src/sessions-board.test.ts:492, 14b89ee6cc02)

Likely related people:

  • Peter Steinberger: 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 (4 earlier review cycles)
  • reviewed 2026-10-04T22:00:50.788Z sha 30fd3a9 :: needs changes before merge. :: [P2] [P2] Regenerate the Workboard browser asset manifest
  • reviewed 2026-10-04T22:06:12.503Z sha 30fd3a9 :: needs changes before merge. :: [P2] [P2] Regenerate the Workboard browser asset manifest
  • reviewed 2026-10-04T22:32:36.130Z sha 30fd3a9 :: blocked before merge. :: [P2] [P2] Regenerate the Workboard browser asset manifest
  • reviewed 2026-10-04T23:07:16.405Z sha 30fd3a9 :: blocked before merge. :: [P2] [P2] Commit the regenerated Workboard browser asset manifest

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Oct 4, 2026
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 4, 2026
@steipete
steipete merged commit df37101 into main Oct 4, 2026
147 of 148 checks passed
@steipete
steipete deleted the steipete/perf-micro-sessions-board-shared-revision-20260919 branch October 4, 2026 23:22
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
)

* perf(workboard): share sessions board snapshots across readers

Reuse revision-owned board metadata and authorized placement projections, return unchanged for current clients, and skip card-only and category-only reloads. Preserve caller-scoped rosters, live authority, failure fallback, and browser generation fencing while removing the duplicate dirty-facts cache and refresh locks.

Related: openclaw#165058. Testbox proof with 25 WebSocket clients and 60 synthetic sessions reduced unchanged payloads by 99.65% and handler wall by 51.65%; real-change projections fell from 300 to 12. Independent review clean. Rebase and final integration gate follow before publication.

* build(workboard): refresh sessions board browser assets
steipete added a commit that referenced this pull request Oct 13, 2026
…#170511)

## What Problem This Solves

Consolidate duplicate extension paths and remove speculative lifecycle defenses in Codex, Memory Core, Microsoft Teams, Matrix, Reef, and Workboard. The candidate removes **522 net production lines** (tests, fixtures, generated files, declaration files, and documentation excluded; both new production modules included). This uses the campaign's honest 500–999-line fallback after the scoped growth/largest-first pass; it does not remove features to reach a quota.

Workboard's four card actions now share one discriminated action component, its draft controls share one renderer, and menu-only pass-through components are gone. Reef's worker and released-host adapters share one pure seven-command trust-transition policy while retaining their own atomic storage boundaries. Teams reuses its Graph/context/setup owners. Memory keeps normal parallel-query and sync-generation retirement draining, expressed with simpler active-completion tracking rather than nested borrower wrappers.

An adjacent Workboard defect is fixed: conditional Solid fragments could run a popover ref before the preceding trigger entered the document, positioning the details menu at the page origin. Listener/anchor setup now runs after the DOM commit. The regression fails against the unchanged implementation and passes with this repair.

No SDK export, config, protocol, dependency, database schema, durability, retention, or permission contract is changed. The protected standalone session-memory backend is untouched. No changelog edit.

User impact: Workboard details menus anchor to their trigger instead of the page origin. Other changes simplify internal implementation, with the best-effort timing and diagnostic compromises below; no migration or operator action is required.

## Best-effort tradeoffs accepted

- Codex diagnostic accessors throwing or mutable transport identities: [#163388](#163388) adds synthetic throwing-accessor coverage, not an actual-use human report. Actual accessors are local reads and registration publishes frozen identities. Accessor programmer errors now surface; the diagnostic sink catch, disclosure allowlist, attempt isolation, and timeout/cleanup behavior remain.
- Offline Codex migration CAS conflicts: [#168479](#168479) introduced retry loops without a human competing-writer report. Gateway ownership excludes live foreign writers. One atomic attempt plus existing persisted-result validation now retains the source sidecar and reports a warning on conflict; a later Doctor run can retry.
- Retired Codex legacy JSON rewritten during migration: [#104504](#104504) added a synthetic locator-rewrite test; human [#104503](#104503) concerns fingerprint overflow, whose fix remains. Legacy indexes are offline inputs, so a second locator/lifecycle read is removed. Initial containment/malformed-owner validation and canonical session ownership checks remain; unsupported concurrent legacy edits are picked up next run.
- Memory manager acquisition repeatedly retrying failed global retirement: [#144252](#144252) has synthetic close failures, no human incident requiring recursive acquisition recovery. Acquisition now awaits the pending close once and reports its error; the retirement owner is retained and explicit close can retry.
- Abandoned, abort-ignoring memory diagnostic probes holding provider retirement indefinitely: [#113471](#113471) and [#166973](#166973) provide synthetic lifecycle proof, not a human abandoned-probe incident. Timed-out read-only diagnostics no longer retain a redundant inner borrower. Ordinary active searches, sync generations, healthy operations, and custom closable-provider draining remain protected.
- Teams simultaneous Gateway writers: [#88411](#88411) introduced the persistence migration/file lock without a human multi-Gateway incident and did not test live tenant traffic. The Gateway is the sole database owner. Removed cross-process stale-lock/backoff machinery; local FIFO remains. Unsupported simultaneous processes may overwrite each other rather than coordinate.
- Workboard stale cache publication and an exact-expiry late join: [#165896](#165896), [#165141](#165141), and [#165698](#165698) use synthetic performance/interleaving controls, not a human incident. One read may return an older projection/fallback; normal revision/age invalidation refreshes it next read. Measured caching, the 64-entry bound, and read authority remain.
- Workboard direct stop/start before asynchronous startup settles: [#146976](#146976) forces unsupported lifecycle ordering in a test. The host service owner already awaits raw startup before stop. Removed plugin-local generation/startup handoff; supported host lifecycle is unchanged, unsupported direct reentry no longer has a second lifecycle owner.
- Reef failed owner-notice dispatch/ack retry timing: [#109160](#109160) pins injected failures and exponential timers, without a human report requiring that second scheduler. Durable pending notices now retry during ordinary successful 30-second reconciliation or restart. A failed acknowledgement may redispatch conservative stop-only guidance; durable resend reservation/cooldown prevents granting a second resend. The per-peer queue also makes the removed in-flight set redundant.
- Reef synchronous intermediate lease theft: [#109380](#109380) and [#168340](#168340) describe synthetic interleavings, not human concurrent-writer incidents. SDK callbacks commit synchronously and there is no await between acquisition and settlement. Unsupported reentrant callbacks/foreign writers are no longer checked at every intermediate step. Initial acquisition, final head-owner check, staged recovery, uncertain-commit witness, rollback, and retention ordering remain.
- Workboard fabricated native event targets and repeated widget predicates: renderer port [#168606](#168606) added boilerplate without a human incident. JSX native bindings already guarantee `currentTarget` types, and the owning menu already excludes widgets. Fabricated direct handler calls may throw; real event dispatch, widget behavior, and untrusted `event.target` checks are unchanged.

## Coverage ledger

Discovery began with scoped three-day growth, then fourteen-day history and largest production owners. Each removed mechanism was checked against its introduction and current callers; no dormant/in-flight foundation was deleted. Exact and normalized duplicate scans informed structural inspection, not automatic rewrites.

| Owner / original location | Decision and evidence |
| --- | --- |
| Codex `app-server/request-diagnostics.ts:28,109,133` | Remove speculative accessor catches/identity copy; keep timeout sink and disclosure boundary (#163388). |
| Codex `command-handler-actions.ts:109` | Share sandbox/execution result assembly; preserve policy selectors, guards, currentness and release. |
| Codex `migration/session-binding-sidecars.ts:460,549,627` | Single CAS attempt and one legacy-input read; preserve sidecar on conflict and canonical effect validation (#168479, #104504). |
| Codex `installed-probe.ts:29`, native session preparation/monitor | KEEP isolated managed storage, credentials, native execution authority and ordinary write settlement. Upstream configuration/storage contract inspected directly. |
| Memory `memory/search-deadline.ts:42` | One rejected cancellation promise replaces sentinel race; preserve cancellation/error identity, abort ordering, wall-clock guard and cleanup (#95757, #147702). |
| Memory `manager-embedding-ops.ts:84`, `manager-registry.ts:264` | Simplify nested borrower bookkeeping and failed-close recovery; preserve outer leases, normal drain and documented retiring-cache fence (#113471, #166973, #144252). An initially broader removal was rejected during review. |
| Memory publication, database context, index generation, transfer and cache owners | KEEP user-data transaction/publication, Forget exclusion, bounded transfers, worker ownership, integrity, performance caches and normal shutdown settlement (#168860, #169164, #169251, #170183, #170302, #170407). |
| Memory paused deadlines, Unicode query, KNN/vector scan, watchers | KEEP human-reported SQLite stalls (#137056), dependency tokenizer behavior, external/native input validation, bounded resources and realistic cancellation. |
| Memory dreaming/REM, migration/repair, backfill and standing intents | KEEP user-facing features, privacy/source validation, persisted rollback and public formats. Phase E untouched. |
| Teams `sqlite-state.ts:27`, `graph.ts:85,177` | Remove redundant foreign-writer lock; one guarded Graph transport retains auth/SSRF, bounded parsing and release (#88411). |
| Teams `setup-surface.ts:102`, `graph-group-management.ts:32,96`, `channel.ts:267` | Consolidate identical saves/context/pending result bookkeeping; preserve provider-specific validation, labels, errors, ordering and direct results (#112811). |
| Matrix `matrix/actions/reactions.ts:135` | Remove duplicate missing-sender/empty-result guards; selector remains ownership boundary, empty list has no redactions. |
| Matrix crypto store, verification, readiness, send FIFO and thread binding owners | KEEP room-key durability, real throwing dependency getters, encryption/send authority, public compatibility and accepted writes (#160707, #70401, #163012, #168485, #169405). |
| Teams pending-upload dual owners | HOLD: persisting currently memory-only reply consent bytes would change privacy/persistence; deleting SQLite loses restart recovery. Needs an explicit policy choice, not a deslop shortcut. |
| Teams streaming, multi-account configuration and exported setup factory | KEEP Stop/partial-delivery/FIFO, credential isolation and published factory signature (#141348, #112811). |
| Reef `trust-state-operation.ts:164`, `trust-store.legacy.ts:115` | Share pure seven-command transitions, retain worker/native atomic adapters, schema checks, trust revisions and authorization (#168340). |
| Reef `owner-notice.ts:32,72,122,253`, `audit-state.legacy.ts:145–255` | Remove duplicate retry scheduler/in-flight set and synchronous intermediate lease checks; preserve durable recovery/security (#109160, #109380). |
| Reef released-host adapter and trust delivery settlement | KEEP declared host compatibility, accepted-write shutdown settlement, peer/key authority and user-data crash recovery. |
| X events/allowlist/verification | KEEP paid-event settlement, bounded polling and credential/access authority. |
| llama.cpp media/provider/install/orphan owners | KEEP confidentiality of local inputs, digest cache integrity and safe process identity before termination (#167902). |
| ClawRouter pool/dashboard | KEEP untrusted network projection, bounded responses and active features; no useful large duplicate justified added abstraction. |
| Workboard `view-card-actions.tsx:215`, `view-card.tsx:102`, `view-draft-choices.tsx:6` | Consolidate actions, menu wrappers and card/bulk draft controls; all callers migrated (#168606). |
| Workboard native handlers and `view-popover.ts:19` | Drop impossible bound-target guards; repair ordinary conditional-fragment anchor timing (#168606). |
| Workboard `sessions-board.ts:149,305`, `change-events.ts:6`, `gateway.ts:211` | Remove duplicate cache/lifecycle fences; share workspace input preparation while retaining workspace/security effect checks. |
| Workboard draft/focus/pending-write/editor, board save and label measurement owners | KEEP real unsaved input, async writes, keyboard focus, live-authority checks and measured layout batching. |

## Evidence

All local build/test/CLI commands use task-owned HOME, OpenClaw state/config and XDG directories. No real Gateway or user state is used. No timeout increases, retries, skips, new suppressions or weakened retained-behavior baselines.

Final proof receipts and exact-head CI attribution are recorded below. Cold compiled-worker preparation dominates several local timings; these are not CI timings or live-provider claims.

| Focused local proof | Result / wall cost |
| --- | --- |
| Codex request diagnostics | 14/14 pass; wrapper445.55s (cold worker/import dominated). |
| Codex commands + Doctor contract | 122/123 pass; wrapper1352.60s. Doctor contract passes. The one method-list assertion (`commands.test.ts:951`) also observes background monitor `thread/read` calls. It **reproduces with explicit clean-base source loaded from `56715acf0e5943edecd34fa6f451532cfa9d5f35`**: extra reads followed by the expected `thread/resume`, selected-case8.411s/Vitest403.28s. The affected test/support/actions/bindings/monitor files are byte-unchanged between that base and pinned main. No test skips or timing changes were added;99 unrelated cases were unselected for attribution. |
| Workboard backend (sessions-board, Gateway, change-events, registration lifecycle) | 48/48 pass, four files; wrapper587.54s, Vitest545.18s. |
| Workboard entire browser scope before final followups; final affected browser suites | 237/237 across29 files in59.03s; final103/103 across6 files in31.95s. New popover regression1/1 in9.34s; unchanged source fails intended geometry assertion in14.57s. |
| Workboard actual compiled WebKit consumer | Pass: anchored menu, filter keyboard dismissal, nested Escape preserving dialog, focus return, zero page errors. |
| Reef trust/friends/audit/receipt/outbound/notifier | 119/119 across6 files; wrapper927.25s, including cold worker compilation. Earlier unchanged channel proof25/25 pass. |
| Teams sqlite/Graph/read authority/setup | 72/72 across5 files; wrapper385.62s. |
| Teams Graph contexts/actions | 73/73 across3 files; wrapper327.91s. |
| Teams mutation callers/setup policy | 42/42 across5 files; wrapper776.30s. |
| Teams resolver + existing channel tests | Resolver4/4 pass; existing channel44 pass/2 fail, wrapper550.01s. **Both failures reproduce on full pinned main `3c63da22f046b15db9d56cf35769f20b398b8c9b`**,44 pass/2 fail, wrapper464.42s: approval-monitor startup timeout120000ms (`channel.test.ts:313`) and subsequent `MSTeams runtime not initialized` (`runtime-store.ts:85` → `monitor.ts:81` → `channel.test.ts:970`). No budgets changed; the second appears cascading, not separately diagnosed. |
| Matrix reaction ownership | 11/11 pass; wrapper339.25s. |
| Lint suppression contracts | 3/3 pass on frozen candidate; wrapper48.94s. No new suppressions. |
| Architecture | Zero runtime value cycles; zero static/Madge components. |

Memory owner/sibling proof: 108/109 pass across nine files, wrapper939.49s. The only failure was this patch's newly authored assertion expecting the provider's raw close error instead of the owner's existing normalized diagnostic. After correcting that assertion without a production change, its exact case passed (4.389s execution, Vitest350.74s, wrapper373.90s, dominated by transforms). The other twelve registry cases were unselected in that focused invocation, not skipped in source. Together the runs prove all109 selected contracts, including actual-query retirement, shutdown drain, fallback/reload, healthy probe, transport and deadline behavior.

Local tooling notes: the first changed-file run required removing one now-unused assertion-safety allowance. The corrected run passed conflict markers (27.14s), line-cap (4.43s), max-lines (69.87s), and assertion-safety (183.85s), then was intentionally stopped after the full-source SQLite worker inventory produced no result for 681.03s. This was incomplete local proof, not a passing inventory or an inherited source failure. Native production and test extension typegraphs both pass. Scoped lint could not begin analysis because SDK declaration preparation hit its unchanged 300000ms budget, both in the earlier Reef attempt and the final scoped attempt; neither produced a lint diagnostic. Final exact-head hosted CI below closes both gaps, with inventories running on the PR's frozen merge tree. Two custom-config attribution attempts were abandoned for harness setup failures; they are not behavior proof. Teams attribution above uses a normal full-main export and normal harness. No remote lease, live Teams tenant or live provider proof is claimed.

Final formatting: all changed source/test/doc files pass. Plugin boundary report passes (zero eligible compatibility removals); UI localization verification passes. No public SDK files/exports or package manifests changed, so an SDK API-surface diff is not applicable.

Independent review reported one P2 about an older Workboard read replacing newer `lastKnown` fallback facts before a subsequent backend outage. Declined as the explicitly accepted cache tradeoff, not silently ignored: fallback is presentation-only, availability remains visible, the next successful read repairs it, and `move` independently rereads authoritative facts/scope before its guarded write. The introducing controls are synthetic (#165896/#165141); no user-data, authorization, or persisted-write invariant is relaxed.

First hosted CI run `38334064250` on `dabbd9208a20068c24e6901b41a13415c04ac856` completed with two owned lint failures: `check-lint-extensions-2` (explicit boolean and exhaustive return in Reef) and `check-lint-extensions-3` (default generic argument/Promise iterable in Memory, exhaustive return/shadowed local in Workboard). Its `openclaw/ci-gate` failure aggregates those two jobs. All other planned jobs passed, including SQLite inventories, source contracts, types, extension tests, and QA smoke. The focused correction adds five production lines. The first PR-evidence run also failed because this body's headings did not match the required template; corrected headings passed in run `38334357043`. Metadata auto-response cancellations and the superseded evidence run contain no product test suite. No inherited-failure exception is being claimed for these owned failures.

**Final exact-head CI passes:** [run 38335564816](https://github.com/openclaw/openclaw/actions/runs/38335564816) on `b86c1ba06fa325f178007ba736c294cdd67a566d`, including `openclaw/ci-gate`, both extension-lint stripes, full inventories/ratchets, source contracts, typegraphs, selected extension bundles, security, and all QA smoke profiles. This closes the local inventory/lint tooling gaps described above. All exact-head check runs were enumerated; no failed, cancelled, timed-out, or pending check remains. No admin exception, manual rerun, dispatch, or rebase was used. CI job wall seconds: extension bundles 1/2/3/4-1/4-2/5 = 210/160/183/247/137/229; extension lint stripes 2/3 = 145/91; baseline ratchets = 271. These are parallel job wall times including setup, not added test execution time.

The lint-only correction also passes native production types, formatting, suppression contracts (3/3; 65.59s wrapper), runtime cycles (0), static/Madge cycles (0), Workboard actions (32/32; 17.93s) and popover (1/1; 16.16s), plus Reef trust/Memory provider lifecycle (51/51; 401.38s Vitest, 445.49s wrapper). Independent review of that delta is scoped-clean at P0–P2; the original explicitly declined display-cache tradeoff remains documented above.

## Visual proof

Before/after attachments show the actual built Workboard plugin against synthetic fixture data. Before: details menu at the page origin. After: anchored to its trigger. No pixel-identical claim across fixture timestamps.

![Before: synthetic Workboard details menu at the page origin](https://github.com/user-attachments/assets/4051b726-6af0-45fe-a0b6-e896b1c33a40)

![After: synthetic Workboard details menu anchored to its trigger](https://github.com/user-attachments/assets/26de3267-537f-46ef-b477-1adb5b0de290)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…openclaw#170511)

## What Problem This Solves

Consolidate duplicate extension paths and remove speculative lifecycle defenses in Codex, Memory Core, Microsoft Teams, Matrix, Reef, and Workboard. The candidate removes **522 net production lines** (tests, fixtures, generated files, declaration files, and documentation excluded; both new production modules included). This uses the campaign's honest 500–999-line fallback after the scoped growth/largest-first pass; it does not remove features to reach a quota.

Workboard's four card actions now share one discriminated action component, its draft controls share one renderer, and menu-only pass-through components are gone. Reef's worker and released-host adapters share one pure seven-command trust-transition policy while retaining their own atomic storage boundaries. Teams reuses its Graph/context/setup owners. Memory keeps normal parallel-query and sync-generation retirement draining, expressed with simpler active-completion tracking rather than nested borrower wrappers.

An adjacent Workboard defect is fixed: conditional Solid fragments could run a popover ref before the preceding trigger entered the document, positioning the details menu at the page origin. Listener/anchor setup now runs after the DOM commit. The regression fails against the unchanged implementation and passes with this repair.

No SDK export, config, protocol, dependency, database schema, durability, retention, or permission contract is changed. The protected standalone session-memory backend is untouched. No changelog edit.

User impact: Workboard details menus anchor to their trigger instead of the page origin. Other changes simplify internal implementation, with the best-effort timing and diagnostic compromises below; no migration or operator action is required.

## Best-effort tradeoffs accepted

- Codex diagnostic accessors throwing or mutable transport identities: [openclaw#163388](openclaw#163388) adds synthetic throwing-accessor coverage, not an actual-use human report. Actual accessors are local reads and registration publishes frozen identities. Accessor programmer errors now surface; the diagnostic sink catch, disclosure allowlist, attempt isolation, and timeout/cleanup behavior remain.
- Offline Codex migration CAS conflicts: [openclaw#168479](openclaw#168479) introduced retry loops without a human competing-writer report. Gateway ownership excludes live foreign writers. One atomic attempt plus existing persisted-result validation now retains the source sidecar and reports a warning on conflict; a later Doctor run can retry.
- Retired Codex legacy JSON rewritten during migration: [openclaw#104504](openclaw#104504) added a synthetic locator-rewrite test; human [openclaw#104503](openclaw#104503) concerns fingerprint overflow, whose fix remains. Legacy indexes are offline inputs, so a second locator/lifecycle read is removed. Initial containment/malformed-owner validation and canonical session ownership checks remain; unsupported concurrent legacy edits are picked up next run.
- Memory manager acquisition repeatedly retrying failed global retirement: [openclaw#144252](openclaw#144252) has synthetic close failures, no human incident requiring recursive acquisition recovery. Acquisition now awaits the pending close once and reports its error; the retirement owner is retained and explicit close can retry.
- Abandoned, abort-ignoring memory diagnostic probes holding provider retirement indefinitely: [openclaw#113471](openclaw#113471) and [openclaw#166973](openclaw#166973) provide synthetic lifecycle proof, not a human abandoned-probe incident. Timed-out read-only diagnostics no longer retain a redundant inner borrower. Ordinary active searches, sync generations, healthy operations, and custom closable-provider draining remain protected.
- Teams simultaneous Gateway writers: [openclaw#88411](openclaw#88411) introduced the persistence migration/file lock without a human multi-Gateway incident and did not test live tenant traffic. The Gateway is the sole database owner. Removed cross-process stale-lock/backoff machinery; local FIFO remains. Unsupported simultaneous processes may overwrite each other rather than coordinate.
- Workboard stale cache publication and an exact-expiry late join: [openclaw#165896](openclaw#165896), [openclaw#165141](openclaw#165141), and [openclaw#165698](openclaw#165698) use synthetic performance/interleaving controls, not a human incident. One read may return an older projection/fallback; normal revision/age invalidation refreshes it next read. Measured caching, the 64-entry bound, and read authority remain.
- Workboard direct stop/start before asynchronous startup settles: [openclaw#146976](openclaw#146976) forces unsupported lifecycle ordering in a test. The host service owner already awaits raw startup before stop. Removed plugin-local generation/startup handoff; supported host lifecycle is unchanged, unsupported direct reentry no longer has a second lifecycle owner.
- Reef failed owner-notice dispatch/ack retry timing: [openclaw#109160](openclaw#109160) pins injected failures and exponential timers, without a human report requiring that second scheduler. Durable pending notices now retry during ordinary successful 30-second reconciliation or restart. A failed acknowledgement may redispatch conservative stop-only guidance; durable resend reservation/cooldown prevents granting a second resend. The per-peer queue also makes the removed in-flight set redundant.
- Reef synchronous intermediate lease theft: [openclaw#109380](openclaw#109380) and [openclaw#168340](openclaw#168340) describe synthetic interleavings, not human concurrent-writer incidents. SDK callbacks commit synchronously and there is no await between acquisition and settlement. Unsupported reentrant callbacks/foreign writers are no longer checked at every intermediate step. Initial acquisition, final head-owner check, staged recovery, uncertain-commit witness, rollback, and retention ordering remain.
- Workboard fabricated native event targets and repeated widget predicates: renderer port [openclaw#168606](openclaw#168606) added boilerplate without a human incident. JSX native bindings already guarantee `currentTarget` types, and the owning menu already excludes widgets. Fabricated direct handler calls may throw; real event dispatch, widget behavior, and untrusted `event.target` checks are unchanged.

## Coverage ledger

Discovery began with scoped three-day growth, then fourteen-day history and largest production owners. Each removed mechanism was checked against its introduction and current callers; no dormant/in-flight foundation was deleted. Exact and normalized duplicate scans informed structural inspection, not automatic rewrites.

| Owner / original location | Decision and evidence |
| --- | --- |
| Codex `app-server/request-diagnostics.ts:28,109,133` | Remove speculative accessor catches/identity copy; keep timeout sink and disclosure boundary (openclaw#163388). |
| Codex `command-handler-actions.ts:109` | Share sandbox/execution result assembly; preserve policy selectors, guards, currentness and release. |
| Codex `migration/session-binding-sidecars.ts:460,549,627` | Single CAS attempt and one legacy-input read; preserve sidecar on conflict and canonical effect validation (openclaw#168479, openclaw#104504). |
| Codex `installed-probe.ts:29`, native session preparation/monitor | KEEP isolated managed storage, credentials, native execution authority and ordinary write settlement. Upstream configuration/storage contract inspected directly. |
| Memory `memory/search-deadline.ts:42` | One rejected cancellation promise replaces sentinel race; preserve cancellation/error identity, abort ordering, wall-clock guard and cleanup (openclaw#95757, openclaw#147702). |
| Memory `manager-embedding-ops.ts:84`, `manager-registry.ts:264` | Simplify nested borrower bookkeeping and failed-close recovery; preserve outer leases, normal drain and documented retiring-cache fence (openclaw#113471, openclaw#166973, openclaw#144252). An initially broader removal was rejected during review. |
| Memory publication, database context, index generation, transfer and cache owners | KEEP user-data transaction/publication, Forget exclusion, bounded transfers, worker ownership, integrity, performance caches and normal shutdown settlement (openclaw#168860, openclaw#169164, openclaw#169251, openclaw#170183, openclaw#170302, openclaw#170407). |
| Memory paused deadlines, Unicode query, KNN/vector scan, watchers | KEEP human-reported SQLite stalls (openclaw#137056), dependency tokenizer behavior, external/native input validation, bounded resources and realistic cancellation. |
| Memory dreaming/REM, migration/repair, backfill and standing intents | KEEP user-facing features, privacy/source validation, persisted rollback and public formats. Phase E untouched. |
| Teams `sqlite-state.ts:27`, `graph.ts:85,177` | Remove redundant foreign-writer lock; one guarded Graph transport retains auth/SSRF, bounded parsing and release (openclaw#88411). |
| Teams `setup-surface.ts:102`, `graph-group-management.ts:32,96`, `channel.ts:267` | Consolidate identical saves/context/pending result bookkeeping; preserve provider-specific validation, labels, errors, ordering and direct results (openclaw#112811). |
| Matrix `matrix/actions/reactions.ts:135` | Remove duplicate missing-sender/empty-result guards; selector remains ownership boundary, empty list has no redactions. |
| Matrix crypto store, verification, readiness, send FIFO and thread binding owners | KEEP room-key durability, real throwing dependency getters, encryption/send authority, public compatibility and accepted writes (openclaw#160707, openclaw#70401, openclaw#163012, openclaw#168485, openclaw#169405). |
| Teams pending-upload dual owners | HOLD: persisting currently memory-only reply consent bytes would change privacy/persistence; deleting SQLite loses restart recovery. Needs an explicit policy choice, not a deslop shortcut. |
| Teams streaming, multi-account configuration and exported setup factory | KEEP Stop/partial-delivery/FIFO, credential isolation and published factory signature (openclaw#141348, openclaw#112811). |
| Reef `trust-state-operation.ts:164`, `trust-store.legacy.ts:115` | Share pure seven-command transitions, retain worker/native atomic adapters, schema checks, trust revisions and authorization (openclaw#168340). |
| Reef `owner-notice.ts:32,72,122,253`, `audit-state.legacy.ts:145–255` | Remove duplicate retry scheduler/in-flight set and synchronous intermediate lease checks; preserve durable recovery/security (openclaw#109160, openclaw#109380). |
| Reef released-host adapter and trust delivery settlement | KEEP declared host compatibility, accepted-write shutdown settlement, peer/key authority and user-data crash recovery. |
| X events/allowlist/verification | KEEP paid-event settlement, bounded polling and credential/access authority. |
| llama.cpp media/provider/install/orphan owners | KEEP confidentiality of local inputs, digest cache integrity and safe process identity before termination (openclaw#167902). |
| ClawRouter pool/dashboard | KEEP untrusted network projection, bounded responses and active features; no useful large duplicate justified added abstraction. |
| Workboard `view-card-actions.tsx:215`, `view-card.tsx:102`, `view-draft-choices.tsx:6` | Consolidate actions, menu wrappers and card/bulk draft controls; all callers migrated (openclaw#168606). |
| Workboard native handlers and `view-popover.ts:19` | Drop impossible bound-target guards; repair ordinary conditional-fragment anchor timing (openclaw#168606). |
| Workboard `sessions-board.ts:149,305`, `change-events.ts:6`, `gateway.ts:211` | Remove duplicate cache/lifecycle fences; share workspace input preparation while retaining workspace/security effect checks. |
| Workboard draft/focus/pending-write/editor, board save and label measurement owners | KEEP real unsaved input, async writes, keyboard focus, live-authority checks and measured layout batching. |

## Evidence

All local build/test/CLI commands use task-owned HOME, OpenClaw state/config and XDG directories. No real Gateway or user state is used. No timeout increases, retries, skips, new suppressions or weakened retained-behavior baselines.

Final proof receipts and exact-head CI attribution are recorded below. Cold compiled-worker preparation dominates several local timings; these are not CI timings or live-provider claims.

| Focused local proof | Result / wall cost |
| --- | --- |
| Codex request diagnostics | 14/14 pass; wrapper445.55s (cold worker/import dominated). |
| Codex commands + Doctor contract | 122/123 pass; wrapper1352.60s. Doctor contract passes. The one method-list assertion (`commands.test.ts:951`) also observes background monitor `thread/read` calls. It **reproduces with explicit clean-base source loaded from `9b5bac5de29fac5a2df162265bbf01b6fb82e6ed`**: extra reads followed by the expected `thread/resume`, selected-case8.411s/Vitest403.28s. The affected test/support/actions/bindings/monitor files are byte-unchanged between that base and pinned main. No test skips or timing changes were added;99 unrelated cases were unselected for attribution. |
| Workboard backend (sessions-board, Gateway, change-events, registration lifecycle) | 48/48 pass, four files; wrapper587.54s, Vitest545.18s. |
| Workboard entire browser scope before final followups; final affected browser suites | 237/237 across29 files in59.03s; final103/103 across6 files in31.95s. New popover regression1/1 in9.34s; unchanged source fails intended geometry assertion in14.57s. |
| Workboard actual compiled WebKit consumer | Pass: anchored menu, filter keyboard dismissal, nested Escape preserving dialog, focus return, zero page errors. |
| Reef trust/friends/audit/receipt/outbound/notifier | 119/119 across6 files; wrapper927.25s, including cold worker compilation. Earlier unchanged channel proof25/25 pass. |
| Teams sqlite/Graph/read authority/setup | 72/72 across5 files; wrapper385.62s. |
| Teams Graph contexts/actions | 73/73 across3 files; wrapper327.91s. |
| Teams mutation callers/setup policy | 42/42 across5 files; wrapper776.30s. |
| Teams resolver + existing channel tests | Resolver4/4 pass; existing channel44 pass/2 fail, wrapper550.01s. **Both failures reproduce on full pinned main `4915e46c89b223ae4cdcdefe46fabc948b9bf7fa`**,44 pass/2 fail, wrapper464.42s: approval-monitor startup timeout120000ms (`channel.test.ts:313`) and subsequent `MSTeams runtime not initialized` (`runtime-store.ts:85` → `monitor.ts:81` → `channel.test.ts:970`). No budgets changed; the second appears cascading, not separately diagnosed. |
| Matrix reaction ownership | 11/11 pass; wrapper339.25s. |
| Lint suppression contracts | 3/3 pass on frozen candidate; wrapper48.94s. No new suppressions. |
| Architecture | Zero runtime value cycles; zero static/Madge components. |

Memory owner/sibling proof: 108/109 pass across nine files, wrapper939.49s. The only failure was this patch's newly authored assertion expecting the provider's raw close error instead of the owner's existing normalized diagnostic. After correcting that assertion without a production change, its exact case passed (4.389s execution, Vitest350.74s, wrapper373.90s, dominated by transforms). The other twelve registry cases were unselected in that focused invocation, not skipped in source. Together the runs prove all109 selected contracts, including actual-query retirement, shutdown drain, fallback/reload, healthy probe, transport and deadline behavior.

Local tooling notes: the first changed-file run required removing one now-unused assertion-safety allowance. The corrected run passed conflict markers (27.14s), line-cap (4.43s), max-lines (69.87s), and assertion-safety (183.85s), then was intentionally stopped after the full-source SQLite worker inventory produced no result for 681.03s. This was incomplete local proof, not a passing inventory or an inherited source failure. Native production and test extension typegraphs both pass. Scoped lint could not begin analysis because SDK declaration preparation hit its unchanged 300000ms budget, both in the earlier Reef attempt and the final scoped attempt; neither produced a lint diagnostic. Final exact-head hosted CI below closes both gaps, with inventories running on the PR's frozen merge tree. Two custom-config attribution attempts were abandoned for harness setup failures; they are not behavior proof. Teams attribution above uses a normal full-main export and normal harness. No remote lease, live Teams tenant or live provider proof is claimed.

Final formatting: all changed source/test/doc files pass. Plugin boundary report passes (zero eligible compatibility removals); UI localization verification passes. No public SDK files/exports or package manifests changed, so an SDK API-surface diff is not applicable.

Independent review reported one P2 about an older Workboard read replacing newer `lastKnown` fallback facts before a subsequent backend outage. Declined as the explicitly accepted cache tradeoff, not silently ignored: fallback is presentation-only, availability remains visible, the next successful read repairs it, and `move` independently rereads authoritative facts/scope before its guarded write. The introducing controls are synthetic (openclaw#165896/openclaw#165141); no user-data, authorization, or persisted-write invariant is relaxed.

First hosted CI run `38334064250` on `dabbd9208a20068c24e6901b41a13415c04ac856` completed with two owned lint failures: `check-lint-extensions-2` (explicit boolean and exhaustive return in Reef) and `check-lint-extensions-3` (default generic argument/Promise iterable in Memory, exhaustive return/shadowed local in Workboard). Its `openclaw/ci-gate` failure aggregates those two jobs. All other planned jobs passed, including SQLite inventories, source contracts, types, extension tests, and QA smoke. The focused correction adds five production lines. The first PR-evidence run also failed because this body's headings did not match the required template; corrected headings passed in run `38334357043`. Metadata auto-response cancellations and the superseded evidence run contain no product test suite. No inherited-failure exception is being claimed for these owned failures.

**Final exact-head CI passes:** [run 38335564816](https://github.com/openclaw/openclaw/actions/runs/38335564816) on `b86c1ba06fa325f178007ba736c294cdd67a566d`, including `openclaw/ci-gate`, both extension-lint stripes, full inventories/ratchets, source contracts, typegraphs, selected extension bundles, security, and all QA smoke profiles. This closes the local inventory/lint tooling gaps described above. All exact-head check runs were enumerated; no failed, cancelled, timed-out, or pending check remains. No admin exception, manual rerun, dispatch, or rebase was used. CI job wall seconds: extension bundles 1/2/3/4-1/4-2/5 = 210/160/183/247/137/229; extension lint stripes 2/3 = 145/91; baseline ratchets = 271. These are parallel job wall times including setup, not added test execution time.

The lint-only correction also passes native production types, formatting, suppression contracts (3/3; 65.59s wrapper), runtime cycles (0), static/Madge cycles (0), Workboard actions (32/32; 17.93s) and popover (1/1; 16.16s), plus Reef trust/Memory provider lifecycle (51/51; 401.38s Vitest, 445.49s wrapper). Independent review of that delta is scoped-clean at P0–P2; the original explicitly declined display-cache tradeoff remains documented above.

## Visual proof

Before/after attachments show the actual built Workboard plugin against synthetic fixture data. Before: details menu at the page origin. After: anchored to its trigger. No pixel-identical claim across fixture timestamps.

![Before: synthetic Workboard details menu at the page origin](https://github.com/user-attachments/assets/4051b726-6af0-45fe-a0b6-e896b1c33a40)

![After: synthetic Workboard details menu anchored to its trigger](https://github.com/user-attachments/assets/26de3267-537f-46ef-b477-1adb5b0de290)
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 docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. plugin: file-transfer plugin: workboard proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant