Skip to content

fix: unblock lint checks after warm-reload benchmarking - #173680

Merged
steipete merged 1 commit into
mainfrom
ci/fix10-warm-reload-receiver-20261016
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/fix10-warm-reload-receiver-20261016

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the lint-suppression check failing after the warm-reload benchmark added an unbound-method suppression. Related: #173266.

User Impact

No application or update behavior changes. The opt-in benchmark continues recording IndexedDB reads across every store, preserving original request objects and results.

Why This Change Was Made

Give the captured native get function and its wrapper explicit IDBObjectStore receivers. Prototype-wide interception and get.apply(this, args) stay intact. The suppression allowlist and existing assertions are unchanged. The five added tooling lines express the receiver contract missing from the native declaration; no new imports, exports, or runtime owner.

Simplification pass complete; no additional machinery or test seams are needed. Repeated main updates raced six direct pushes, so this uses native PR landing. No rejected attempt triggered CI.

Evidence

  • pnpm test test/scripts/lint-suppressions.test.ts --maxWorkers=1: 3 passed; 14.14 seconds command wall, 12.02 seconds file time. Reused the previous exact negative control after verifying that the probe and ratchet source blobs were unchanged.
  • The sole importer is scripts/bench-control-ui-cold-load.ts; no importing tests. Its actual serialized probe passed isolated jsdom plus the existing fake-indexeddb dependency: two stores, four reads, hits/misses, a key-range query, original request sources/results, and cache-read records/milestone. Full browser benchmark was not run.
  • Owning scripts types, erasability, type-aware and boundary oxlint, formatting, and independent P2 review passed. The reviewed patch stayed byte-identical through rebases.
  • check-changed passed its other selected gates. Scripts Knip passed with zero entries; production/full scans reported two inherited exports in ui/src/components/lazy-view-error.ts: renderLazyElementState and renderLazyViewError. No import/export or baseline exceptions changed.

The benchmark probe added in ffcb0a8 (#173266) captured the native
IndexedDB get method under an unbound-method suppression, growing the
production suppression inventory. Give the captured method and its wrapper
explicit IDBObjectStore receivers. Keep prototype-wide interception and
get.apply(this, args), so every store retains its own request and result.
The allowlist and existing assertions are unchanged. No application or
update behavior changes.

pnpm test test/scripts/lint-suppressions.test.ts --maxWorkers=1: 3 passed,
14.14s command wall (12.02s file). Reused the prior failing proof because
both the probe and ratchet source blobs are identical on this base.
The only importer is bench-control-ui-cold-load.ts; no importing tests.
Its actual serialized probe passed isolated jsdom/fake-indexeddb proof of
two stores, four reads, hits/misses, key ranges, request sources and results,
and captured cache-read records. Full browser benchmark was not run.

Scripts types, erasability, type-aware/boundary lint, format, and independent
P2 review passed. check-changed passed its other gates; scripts Knip was
clean, while production/full scans retain two unrelated lazy-view-error
exports (renderLazyElementState and renderLazyViewError). No export/import
or baseline exceptions changed.
@clawsweeper

clawsweeper Bot commented Oct 16, 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: XS labels Oct 16, 2026
@steipete
steipete marked this pull request as ready for review October 16, 2026 02:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T02:58:22.130964Z cf95640 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces an IndexedDB lint suppression with explicit receiver types in the warm-reload benchmark probe.

Example: Run the production lint-suppression inventory after the warm-reload probe was added.

  • Before: The probe contributes an unallowlisted typescript/unbound-method suppression.
  • After: The suppression is removed while IndexedDB reads retain their original store receiver and request.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is correct and supported by exact-head checks; runtime validation is reported at the harness boundary rather than through the browser benchmark.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored tooling PR is outside the ordinary contributor proof gate; its reported serialized-probe harness covers multiple stores, hits, misses, key ranges, request identity, results, and recorded milestones, while the inspected screenshots belong to the earlier title fix.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Repository lint validation rejects the suppression added by the warm-reload benchmark.
Reason: The maintainer-authored repair restores the existing lint contract with a small, behavior-preserving change.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR fixes a concrete suppression-inventory failure still present on main; the patch preserves benchmark behavior and introduces no actionable defect.

Priority: P3
Reviewed head: cf95640a218a171b2a28898cc8fbb7048d523e88

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The serialized probe was reportedly exercised with jsdom/fake-indexeddb, but the browser benchmark was not run for this repair.
Agent review details

How this fits together

The opt-in Control UI benchmark serializes this browser probe into its initialization script; IndexedDB reads enter the wrapper and produce unchanged requests plus diagnostic read records.

flowchart LR
  A[Benchmark CLI] --> B[Browser initialization script]
  B --> C[Warm reload probe]
  C --> D[Native IndexedDB get]
  D --> E[Original request and result]
  C --> F[Diagnostic read records]
Loading

Technical review

Best possible solution:

Land the focused receiver-contract repair while preserving the suppression allowlist and native IndexedDB forwarding.

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

Source establishes the unallowlisted suppression on fetched main and the inventory assertion it violates; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

The patch expresses the native receiver contract without casts, binding to the prototype, widening the allowlist, or changing request handling.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • IndexedDB method capture and interception keeps the original intent (ffcb0a8: Record cache reads and warm-reload milestones while forwarding each call with its actual object-store receiver.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Other +5. Total +5 across 1 file. Added test files: 0.

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

Labels

Label changes:

  • add P3: This is a narrow tooling repair with no application, configuration, or update behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a narrow tooling repair with no application, configuration, or update behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

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

Workflow

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

Reviewed October 15, 2026, 11:09 PM ET / October 16, 2026, 03:09 UTC.

@steipete
steipete merged commit 2b8231d into main Oct 16, 2026
169 checks passed
@steipete
steipete deleted the ci/fix10-warm-reload-receiver-20261016 branch October 16, 2026 03:46
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…3680)

The benchmark probe added in 2cb93f0 (openclaw#173266) captured the native
IndexedDB get method under an unbound-method suppression, growing the
production suppression inventory. Give the captured method and its wrapper
explicit IDBObjectStore receivers. Keep prototype-wide interception and
get.apply(this, args), so every store retains its own request and result.
The allowlist and existing assertions are unchanged. No application or
update behavior changes.

pnpm test test/scripts/lint-suppressions.test.ts --maxWorkers=1: 3 passed,
14.14s command wall (12.02s file). Reused the prior failing proof because
both the probe and ratchet source blobs are identical on this base.
The only importer is bench-control-ui-cold-load.ts; no importing tests.
Its actual serialized probe passed isolated jsdom/fake-indexeddb proof of
two stores, four reads, hits/misses, key ranges, request sources and results,
and captured cache-read records. Full browser benchmark was not run.

Scripts types, erasability, type-aware/boundary lint, format, and independent
P2 review passed. check-changed passed its other gates; scripts Knip was
clean, while production/full scans retain two unrelated lazy-view-error
exports (renderLazyElementState and renderLazyViewError). No export/import
or baseline exceptions changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

1 participant