Skip to content

fix(ci): restore current-main quality gates - #106751

Merged
steipete merged 11 commits into
mainfrom
codex/fix-main-ui-gates
Jul 13, 2026
Merged

steipete merged 11 commits into
mainfrom
codex/fix-main-ui-gates

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Current main exceeded the Control UI startup-request budget after shared route helpers split into separate preload chunks. Full test typechecking also exposed an optional npm-resolution timestamp assertion, while reconnect policy coverage still needed to live at the public browser-client boundary.

Why This Change Was Made

  • Group the two small entry-and-route helpers into one deterministic control-ui-shared chunk instead of raising the performance budget.
  • Exercise permanent connection failures through GatewayBrowserClient, preserving coverage after the internal reconnect helper was privatized.
  • Keep the npm-resolution assertion type-safe while still rejecting a missing or invalid timestamp.

User Impact

No product contract change. Control UI startup returns below its request budget, and current-main validation can run cleanly again.

Evidence

  • Blacksmith Testbox lease tbx_01kxeesdykydcg5yg9r3kej5fd
  • Focused: 59 tests passed across UI, gateway, and npm install surfaces.
  • pnpm ui:build: 23 startup JS requests against a limit of 24.
  • pnpm check:test-types: passed.
  • pnpm deadcode:exports: passed, 1,575-entry baseline matched.
  • pnpm check:changed: passed, including format, lint, typecheck, and scoped gates.
  • Fresh autoreview: clean, 0.93 confidence.

Release-note context: internal CI/performance-gate repair; no changelog entry.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Jul 13, 2026
@steipete
steipete requested a review from a team as a code owner July 13, 2026 20:00
@openclaw-barnacle openclaw-barnacle Bot added channel: googlechat Channel integration: googlechat gateway Gateway runtime scripts Repository scripts commands Command implementations agents Agent runtime and tooling plugin: bonjour Plugin integration: bonjour size: S and removed size: XS labels Jul 13, 2026
# Conflicts:
#	src/infra/npm-pack-install.test.ts
@steipete steipete self-assigned this Jul 13, 2026
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Jul 13, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. P2 Normal backlog priority with limited blast radius. labels Jul 13, 2026
@clawsweeper

clawsweeper Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 13, 2026, 4:45 PM ET / 20:45 UTC.

Summary
Groups two Control UI helpers into a stable shared chunk, expands public browser-client reconnect coverage, and repairs typecheck, dead-export, formatting, and SQLite guardrail failures across affected tests, scripts, docs, and plugins.

PR surface: Source +6, Tests +13, Docs 0, Other +2. Total +21 across 19 files.

Reproducibility: yes. —the affected base can be checked through the Control UI build request budget, test typechecking, dead-export validation, and public browser-client reconnect tests. The PR supplies after-fix outputs, although this read-only review did not rerun them.

Review metrics: 2 noteworthy metrics.

  • Startup request budget: 23 of 24 requests. The proof restores only one request of margin, so the measurement should be repeated after updating the branch.
  • Raw SQLite guardrail exceptions: 2 paths added. Both paths appear schema- or migration-owned, but each broadens a static direct-SQL allowlist that warrants explicit path review.

Stored data model
Persistent data-model change detected: persistent cache schema: src/agents/context.lookup.test.ts, serialized state: extensions/bonjour/src/advertiser.ts, serialized state: src/gateway/session-transcript-readers.test.ts, serialized state: src/infra/state-migrations.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Refresh onto current main and rerun the startup-budget and full changed-check proof on the resulting exact head.

Risk before merge

  • [P1] The head is behind current main, so the narrow one-request Control UI budget margin and the accumulated gate fixes may change after rebase.
  • [P1] The branch includes several small type, formatting, test-isolation, and allowlist repairs across otherwise separate surfaces; maintainers should confirm each remains necessary in the final merge result.

Maintainer options:

  1. Decide the mitigation before merge
    Rebase or refresh the branch onto current main, retain only still-required gate repairs, then land it after the startup-request budget, test typecheck, dead-export baseline, changed checks, and relevant CI shards pass on the exact head.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • Complete normal maintainer review after refreshing the behind branch and confirming exact-head checks; no narrow automated repair defect is currently identified.

Security
Cleared: No workflow permissions, dependency sources, secrets, publishing metadata, or downloaded-code paths change; the direct-SQL allowlist additions are limited to schema and migration ownership.

Review details

Best possible solution:

Rebase or refresh the branch onto current main, retain only still-required gate repairs, then land it after the startup-request budget, test typecheck, dead-export baseline, changed checks, and relevant CI shards pass on the exact head.

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

Yes—the affected base can be checked through the Control UI build request budget, test typechecking, dead-export validation, and public browser-client reconnect tests. The PR supplies after-fix outputs, although this read-only review did not rerun them.

Is this the best way to solve the issue?

Yes, provisionally: deterministic chunk grouping is preferable to raising the budget, reconnect policy is tested at the public browser-client boundary, and the remaining edits repair concrete gate contracts. Exact-head revalidation is still needed because main advanced.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 90a545b9e660.

Label changes

Label changes:

  • add P2: This is a bounded current-main CI and performance-gate regression with limited direct user impact but meaningful merge-readiness value.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides a named Blacksmith Testbox lease and after-fix live outputs, including 59 focused tests and a measured 23-of-24 Control UI startup-request result.
  • 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): The PR body provides a named Blacksmith Testbox lease and after-fix live outputs, including 59 focused tests and a measured 23-of-24 Control UI startup-request result.

Label justifications:

  • P2: This is a bounded current-main CI and performance-gate regression with limited direct user impact but meaningful merge-readiness value.
  • 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): The PR body provides a named Blacksmith Testbox lease and after-fix live outputs, including 59 focused tests and a measured 23-of-24 Control UI startup-request result.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides a named Blacksmith Testbox lease and after-fix live outputs, including 59 focused tests and a measured 23-of-24 Control UI startup-request result.
Evidence reviewed

PR surface:

Source +6, Tests +13, Docs 0, Other +2. Total +21 across 19 files.

View PR surface stats
Area Files Added Removed Net
Source 6 22 16 +6
Tests 11 58 45 +13
Docs 1 13 13 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 19 95 74 +21

What I checked:

  • Control UI budget repair: The manual chunk function groups the configuration-form and clipboard helpers into control-ui-shared, with focused assertions covering both module paths. (ui/config/control-ui-chunking.ts:15, 66a5cfb5a505)
  • Public reconnect boundary coverage: The browser-client test exercises five permanent authentication or pairing failures and verifies they do not auto-reconnect through the public GatewayBrowserClient surface. (ui/src/api/gateway.node.test.ts:1407, 66a5cfb5a505)
  • SQLite guardrail scope: Two direct-SQL allowlist entries are added for a schema helper and a state migration, categories where repository policy permits narrowly owned SQL primitives. (scripts/check-kysely-guardrails.mjs:42, 66a5cfb5a505)
  • After-fix proof: The PR body records Blacksmith Testbox lease tbx_01kxeesdykydcg5yg9r3kej5fd, 59 focused passing tests, a 23-of-24 startup-request result, passing test typechecking, the dead-export baseline, and check:changed. (66a5cfb5a505)
  • Base movement: The reviewed head is behind current main 90a545b9e660c0f145254a115f42158e7164e57e, so the final three-way result and performance margin need exact-head confirmation. (90a545b9e660)

Likely related people:

  • vincentkoc: Recent current-main history credits this contributor with shared browser-client request-helper work, making them relevant to the GatewayBrowserClient reconnect boundary. (role: recent browser-client contributor; confidence: medium; files: ui/src/api/gateway.node.test.ts)
  • steipete: Current-main history shows repeated QA and release-check work, while the PR timeline shows active review coordination and integration of the cross-surface gate repair. (role: recent quality-gate integrator; confidence: medium; commits: ec4290e0714a, b416cf26ddd4, a28750134c2d; files: ui/config/control-ui-chunking.ts, ui/src/api/gateway.node.test.ts, scripts/check-kysely-guardrails.mjs)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

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

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready at 66a5cfb5a505591ab09476fe073a2e4369c1e314.

Known proof gaps: none.

@steipete
steipete merged commit 995c75b into main Jul 13, 2026
188 of 192 checks passed
@steipete
steipete deleted the codex/fix-main-ui-gates branch July 13, 2026 20:54
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
* fix(ci): restore Control UI quality gates

* fix(ci): repair dead export cleanup fallout

* fix(ci): repair latest main quality gates

* fix(ci): satisfy current-main gate contracts

* docs: format Cloud Workers guide

* test: isolate context lookup module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: googlechat Channel integration: googlechat commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. plugin: bonjour Plugin integration: bonjour proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S 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