Skip to content

fix: complete 2026.10.6 release qualification repairs - #178657

Merged
RomneyDa merged 60 commits into
release/2026.10.6from
tideclaw/release-2026.10.6-frv-repair
Oct 20, 2026
Merged

RomneyDa merged 60 commits into
release/2026.10.6from
tideclaw/release-2026.10.6-frv-repair

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: the frozen 2026.10.6 candidate cannot complete full release validation after the required backports expanded update, Doctor, native lifecycle, Codex, Host Desktop, and release-harness contracts.

User Impact

User impact: 2026.10.6 can ship the selected fixes with safe update/recovery behavior, complete contribution records, and the Control UI startup payload within its enforced budget. No new migration or operator action is introduced by this closure.

Why This Change Was Made

This preserves the approved release cut and adapts only the required backports and their release-line seams. It closes deterministic type, lint, test, locale, startup-budget, and release-record failures without weakening ratchets or raising budgets. The final UI optimization adapts #178054 and #178236; the Host Desktop behavior comes from the already-reviewed #177888 backport. The final Windows recovery backport adapts #178624 so Scheduled Task access denials are recognized from the native HRESULT instead of locale-specific text.

Evidence

  • Exact head: 9d396ebbdd01 (clean tracked worktree).
  • Branch-wide source preflight, package locks, architecture/type graphs, core/extension/script/root lint, and full-tree format (47,788 files): pass.
  • Production build and Control UI performance budget: pass; page-only English catalogs remain behind existing lazy page boundaries.
  • Focused release/update/Doctor/Codex coverage: 115/115; workflow suite in a clean Git-config environment: 151/151; focused lazy-page coverage: 26/26.
  • Focused fix(windows): recognize task permission denials in every locale #178624 Windows Scheduled Task/update coverage: 316/316; core types, affected test type graphs, changed-file lint/format, and the mock-export ratchet pass.
  • Full Control UI suite: 20,553 passed; browser-only cases were skipped because Playwright Chromium is unavailable on this host. The direct Secrets-view boundary found during that run was repaired and covered by the focused rerun.
  • Release record/attribution checks: 293/293 contribution rows; 287 selected-backport ledger entries.
  • Independent local autoreview could not launch on this host (Codex CLI absent; ACP adapter unauthenticated). Protected CODEOWNERS/enforced review remains required; no clean independent-review verdict is claimed.

The Host Desktop visual behavior is unchanged from #177888, whose reviewed browser proof is retained here:

Before After
Before: generic unavailable message After: Gateway Host Desktop setup guidance

Known limitation: the full macOS Screen Sharing sign-in loop still requires a person at the Mac; the retained browser proof reaches the account prompt after authorized enablement.

roboclaw-bot and others added 30 commits October 20, 2026 07:10
Keep the backported native routing cases out of production dependency and database-worker inventories while retaining their focused coverage.

Co-authored-by: RomneyDa <[email protected]>
#167979 moved the matcher's only production caller into suppressPollVoteEcho,
leaving isPollVoteEchoText exported solely for its unit test. The Knip
production unused-export scan rejects that export, so pnpm check:changed fails
on main for local and Testbox runs (GitHub Actions only reports it as advisory).

Make the matcher module-private and drive the unchanged matcher table through
the module's real public pair, recordPollVote -> suppressPollVoteEcho. No
production behavior change.

Co-authored-by: RomneyDa <[email protected]>
The PR-automation archive fixture treated the cron finished event as a
session-patch response receipt. Archiving cancels the occurrence from the
committed cron update while the archive RPC is still finishing, so the
response assertion raced that handler.

Capture and join the actual archive request before inspecting its response.
Hold the real cron update after commit to reproduce this ordering without
timers, while preserving every existing session identity, cancellation,
disabled-job and teardown assertion. Keep worker run rows and launch checks
unchanged.

The forced pre-fix control reproduced the hourly's zero-response failure
(1 failed, 2 passed). The fixed file passed all 3 cases: 100.79s Vitest,
105.94s wrapper with --maxWorkers=1; most elapsed time was compilation/import.
Cron test types, type-aware lint, boundary lint and formatting passed.
P2 autoreview is scoped-clean. Full cron-config proof passed: 1,961 tests
in 251 files, 1090.77s, one worker.

Focused command: pnpm test src/cron/service.pr-automation.test.ts --maxWorkers=1
Full config: node scripts/run-vitest.mjs run --config
test/vitest/vitest.cron.config.ts --maxWorkers=1

Refs: main CI run 38881317413, job 116908788842.
Co-authored-by: RomneyDa <[email protected]>
* fix(update): consume SQLite migration source once

* fix(update): retain captured source through Doctor preparation

* fix(update): settle state writers before Doctor schema repair

Drain prior canonical handles before private schema repair so their native-close receipts publish legitimate maintenance writes and release exclusive custody. Keep all migration attribution and strict source checks; remove the source-consumption workaround that lost later Doctor writes.

Co-authored-by: RomneyDa <[email protected]>
Restore test-only transcript access, classify the extracted update helper as test support, retain the full PR-wrapper runtime closure, align native-bootstrap journal expectations, and point non-isolated fixtures at the extracted state owner.

Co-authored-by: RomneyDa <[email protected]>
Construct the mocked runtime exit with the production ExitError so JSON completion remains distinguishable from ordinary command failures.

Co-authored-by: RomneyDa <[email protected]>
prompts as hidden internal_system user rows to preserve model-prefix
bytes. The finalization and cron fallback tests still counted those rows
as new user turns.

Require the expected hidden rows and their provenance, retain the single
visible original turn, and verify finalization does not hide the next real
user message. Keep receipt, attempt-count, provider-request, fallback-notice
and final-answer assertions intact. No production behavior changes.

Proof: both hourly failures reproduced on current main; all eight focused
cases pass with --maxWorkers=1, including runtime retry/cold-reopen coverage.
Agents and cron test typechecks, typed lint, boundary lint, formatting and
P2 autoreview pass.

Co-authored-by: RomneyDa <[email protected]>
Align the startup-admission proof with #169945: the gateway hook no longer blocks on historical cleanup, while service stop remains the deterministic settlement boundary.

Co-authored-by: RomneyDa <[email protected]>
Backport the narrow runtime exit contract required by #176795 without importing the full #168587 refactor, and keep the gateway harness mock non-throwing outside the explicit typed-exit proof.

Co-authored-by: RomneyDa <[email protected]>
Restore the selector fence omitted by the partial #168882 compatibility backport while keeping the core file within the release line count ratchet.

Co-authored-by: RomneyDa <[email protected]>
Match the current finalization prompt text while retaining the release-line provider fallback contract of one visible cron user turn.

Co-authored-by: RomneyDa <[email protected]>
Keep update inspection images and source captures on the candidate helper temporary volume without relocating native admissions or recovery backups.

Co-authored-by: RomneyDa <[email protected]>
- The chat Desktop panel asks environments.list for desktopSetup only when
  its unresolved automatic target is the Gateway host.
- The panel says desktop access is not enabled on the Gateway host and that
  it shares the Gateway host's screen, shows setup steps worded for the
  Gateway host plus account and network notes, and offers Enable desktop
  access when the connection can patch config (else the administrator
  hint) or Check again, then re-reads inventory and connects the Gateway
  desktop.
- Systems and the panel share the setup state selection and the
  desktop.host.enabled patch helper; other targets, document mode and a
  failed setup check keep desktop.sourceUnavailable.
- The setup helper declares its own runtime-config shape and imports
  nothing from desktop-panel-inputs.ts, so the type import runs one way.
- Docs mention the chat panel path.

Co-authored-by: RomneyDa <[email protected]>
Use the release-line i18n registry, shadow-root assertions, and Lit settlement instead of the upstream Solid-only test helpers.

Co-authored-by: RomneyDa <[email protected]>
Complete the #168722 fixture integration omitted by the release backport.

Co-authored-by: RomneyDa <[email protected]>
The release snapshot does not retain the mainline sharing-read owner introduced after this branch point.

Co-authored-by: RomneyDa <[email protected]>
Use the rehearsed configuration during update activation instead of looping
through candidate checks after late config edits. Rely on the sequential node
auto-update caller and Doctor's exclusive maintenance ownership for internal
pause and title bookkeeping. Preserve validation, schema, authorization,
service-publication, privacy and work-settlement boundaries.

Best-effort tradeoffs accepted:
- Late root/include edits no longer restart rehearsal (b36eb3e's injected
  save cases); incompatible edits can require correction or Doctor/restart.
- Unsupported overlapping pause/resume calls do not retain distinct tokens
  (#149517); the production auto-update loop awaits each pause before resume.
- Concurrent foreground title changes during offline Doctor are unsupported
  (#151211); existing names/incognito sessions and live commit authority stay.

Remove 76 net production lines and 292 test lines. Focused proof covers 177
supported node/update/Doctor cases; core types, both zero-cycle checks, typed
lint, formatting and independent P2 review pass. The lint-suppression test has
an inherited allowlist mismatch already fixed on main in dab6a8d. Full
changed-check and release-matrix proof are not claimed for this branch-only
below-500 simplification.

Co-authored-by: RomneyDa <[email protected]>
Carry admitted snapshots through updates and retain live authority at effects. Remove speculative observation, generation, and bookkeeping machinery while preserving rollback, native settlement, bounded resources, and public interfaces.

Co-authored-by: RomneyDa <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling extensions: codex size: XL labels Oct 20, 2026
@RomneyDa
RomneyDa requested a review from steipete October 20, 2026 18:35
@RomneyDa
RomneyDa marked this pull request as draft October 20, 2026 18:36
@RomneyDa
RomneyDa marked this pull request as ready for review October 20, 2026 18:46
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR adapts update, Doctor, native lifecycle, Codex, and Control UI fixes for the 2026.10.6 release candidate.

Example: Windows Task Scheduler denies disabling autostart with HRESULT 0x80070005.

  • Before: An unfamiliar translated diagnostic can trigger unnecessary restoration and a generic recovery failure.
  • After: The updater recognizes the numeric denial and reports the existing elevation and manual-update guidance.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, approved release adaptations with substantial source evidence, but candidate-specific upgrade qualification remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: The frozen release candidate cannot qualify its selected fixes while preserving working updates, recovery, and conversations.
Reason: Maintainer authorship establishes direction, and inspected source PRs document the intended behavior and accepted tradeoffs.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open: it carries maintainer-approved repairs for the frozen release branch, and merged mainline fixes do not replace that integration work.

Priority: P1
Reviewed head: 9d396ebbdd01b44cdd82851c8998cf75da7f2c08

Before merge

  • Complete next step - Attribute the failed preflight and OpenClawKit checks, repair any diff-caused failure, and complete the enforced release-branch gates.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not establish an unmodified v2026.10.5 updater upgrading to this release candidate with existing settings, persisted state, restart, and rollback behavior preserved.
Agent review details

How this fits together

The release candidate combines CLI update and recovery owners, native service adapters, agent lifecycle management, and the Gateway-served Control UI.

flowchart TD
  A[Installed updater] --> B[Candidate admission]
  B --> C[Doctor and state repair]
  C --> D[Native service lifecycle]
  D --> E[Gateway]
  E --> F[Codex conversations]
  E --> G[Control UI]
Loading

Technical review

Best possible solution:

Complete the frozen release through the existing update, Doctor, native-service, Codex, and configuration owners.

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

Source and recorded before/after evidence establish the native reconnect, Codex projection-refresh, Desktop setup, and Windows permission-classification failures; this review ran no target code.

Is this the best way to solve the issue?

The inspected repairs reuse existing owners and preserve the source PRs' approved tradeoffs; no discrete introduced correctness defect was established.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

PR surface statistics unavailable: the file list is incomplete.

Labels

Label changes:

  • add P1: This release integration repairs update/recovery and conversation workflows and is needed to qualify the frozen candidate.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P1: This release integration repairs update/recovery and conversation workflows and is needed to qualify the frozen candidate.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 20, 2026, 3:16 PM ET / 19:16 UTC.

steipete and others added 2 commits October 20, 2026 12:27
#168171)

The reconnect-backoff hooks added in #168024 lived in OpenClawKit
Sources but were called only from OpenClawKitTests. The shared
Periphery workflow scans the iOS and macOS consumer indexes, and
neither builds OpenClawKitTests, so both reported
_test_setReconnectBackoffMs(_:) and _test_reconnectBackoffMs() as
unused and the intersection failed on every PR touching the kit.

Move the setter into the test file's existing @testable fileprivate
GatewayChannelActor extension, beside seedPathRecoveryConnectBackoff,
and read the internal backoffMs directly. The remaining _test_ hooks
stay because the macOS OpenClawIPCTests call them.

Proof: swift test --filter GatewayNetworkPath (10 tests in 2 suites,
including the reset-both-backoffs case) passes; SwiftFormat clean.

(cherry picked from commit 46d5488)
This reverts commit f777409.
CI preflight requires generated Control UI locale artifacts to land
isolated from source changes; the refresh lands on the release branch
as its own generated-only commit after this PR merges.
@RomneyDa
RomneyDa merged commit bba7238 into release/2026.10.6 Oct 20, 2026
52 checks passed
@RomneyDa
RomneyDa deleted the tideclaw/release-2026.10.6-frv-repair branch October 20, 2026 19:43
RomneyDa added a commit that referenced this pull request Oct 20, 2026
The 2026.10.6 qualification squash (#178657) carried
local-state-owner.fixture.test-support.ts (main consumers: workboard, proxy,
and claws owner tests, none backported) and the release-only
update-command-original-service-current.admission.test-support.ts, whose
only importer lost the call when #168882 was backported. Knip's full-tree
unused-file scan fails check-dependencies on both.
RomneyDa added a commit that referenced this pull request Oct 20, 2026
The #178657 backport d34c942 made defaultRuntime.exit throw ExitError
without the #168587 natural-exit cutover. The Gateway run loop calls
runtime.exit from its detached shutdown operation, so after a clean SIGTERM
shutdown it logs 'lifecycle completion failed: exit 0' and the process
stays alive until the service manager kills it. Published-driver update
failed at stop-service on 0bbcd4a; reproduced with a foreground
Gateway (alive 20s after SIGTERM).

Restore the 2026.10.5 runtime exit and revert the f0da132 one-shot
compensation. The gateway JSON register fix keeps its ExitError rethrow
for non-exiting runtimes; its test now models that runtime explicitly.
RomneyDa added a commit that referenced this pull request Oct 21, 2026
84cbbd1 (#178657, adapting #168882) restored the pre-#170130 capture that
wraps include resolution in a state database read snapshot. After package
replacement the old driver must not read state the candidate may have
migrated (#170130, backported to 2026.10.5 as 6e58747). Restore the
file-only capture with its raw and path-identity conflict checks.
RomneyDa added a commit that referenced this pull request Oct 21, 2026
84cbbd1 (#178657, adapting #168882) replaced local-state-owner.ts with
main's later version, importing unrelated main behavior (lazy config loading,
nested owner assertions, embedded-owner discovery, borrowed custody) and
dropping selected-root identity and pre-dispatch owner revalidation. Routed
pairing approval then touched local pairing state while a live Gateway owned
it (admin-state-owner.process pairing-approve live). Restore the pre-#178657
owner and its unit test; no caller uses the imported parameters.
RomneyDa added a commit that referenced this pull request Oct 21, 2026
84cbbd1 (#178657) replaced update-command-mutable-signals.ts with main's
later version, which ends a signalled update by setting process.exitCode and
relies on main's #168587 natural-exit lifecycle. The release line has no such
lifecycle, so an interrupted update kept running (SIGINT/SIGTERM hung or
exited 1) and dropped the state-generation and owner revalidation before
recording the interruption. Restore the pre-#178657 signal owner and its
migrated-state coverage; all exports and callers are unchanged.
RomneyDa added a commit that referenced this pull request Oct 21, 2026
Product code on a stable patch branch is blocker-only, and the #168882
refactor (P3, merge-risk: compatibility) depends on main's #168587
natural-exit lifecycle, which is not on this line. Return the update,
daemon, node-host, Doctor preflight and gateway-run lifecycle code to its
081fe02 state by reverting the refactor family carried in #178657:
60774e9, 84cbbd1, 6bccca8, 1778c23, 395ccdc,
7337083, 6f56c8b, db16849, bb576d2, c364cae,
9115d97, f3934ea, 406ba70 and b092b05.

Retained: #177844, #176795 and its typed-exit follow-ups, the Windows
Scheduled Task permission/locale fixes (#178624, 2d94190,
2e1beb7), Windows backup EPERM, Windows dependency links, Doctor
snapshot contention guidance, TMPDIR finalization, initialization
selector revalidation (bf1f128) and every fix pushed after the
squash. The Windows compensation test keeps the native enabled-state
mock and regains its invocation-replaced case. The admission
test-support helper removed by 93bb6b6 is restored because its
importer is back.
RomneyDa added a commit that referenced this pull request Oct 22, 2026
…e-branch squash

The audited record named 2ffc2eb, the pre-squash head of the #178657 branch, which is not reachable from the release tag. bba7238 is the squash that landed that branch on release/2026.10.6.
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: discord Channel integration: discord channel: slack Channel integration: slack cli CLI command changes commands Command implementations docs Improvements or additions to documentation extensions: codex gateway Gateway runtime P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants