Skip to content

fix: restore runtime and lifecycle CI coverage - #170349

Merged
steipete merged 17 commits into
mainfrom
codex/ci-main-repair-20261012
Oct 13, 2026
Merged

steipete merged 17 commits into
mainfrom
codex/ci-main-repair-20261012

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes CI failures when direct runtime fixtures run without prepared state and when the synthetic runner uses incomplete native TypeScript, database-broker, or producer-before-observer setup. It also aligns the native PR successor fixture with the already-landed drained-lock contract and removes unused UI surfaces left after the Solid migration.

User Impact

There is no dependency-version change. CI repairs preserve authorization, lifecycle, cleanup, existing timeout contracts, and browser assertions. A separately proven scroll fix preserves automatic following when an upward layout correction is followed by a no-op end command; genuine user scrolling still takes control. Internal unused UI exports are removed; overlay registration remains the keyboard-listener owner.

Why This Change Was Made

Prepare state at the fixture owner instead of restoring synchronous runtime fallbacks. Shutdown and sentinel tests now preserve the already-landed hoisted config fixtures, including both config getters. The attempted static snapshot alternative was incorrect across vi.resetModules() and is removed. Preserve native thread ownership assertions while allowing read-only probes. Startup assertions follow the current visible outbox and recovery-disabled Send controls while preserving delivery, retry, no-send, and draft checks. The overlapping GitHub custom-element fixture repair landed independently and is kept from main rather than maintaining a competing implementation.

The runner retains both its thread-isolation contract and its broker-owned provenance lifecycle contract in one child invocation, with compilation outside individual test deadlines. Sequencing belongs on the multi-project root: the first PR run exposed that child-level sequencing was ignored, and observers could run before producers. That PR-caused regression is corrected rather than treated as inherited. The native successor test now asserts that a drained failed operation releases its lock, retaining all signed-ancestry, source-resolution, and retained-evidence checks instead of attempting recovery of a nonexistent lock.

Configuration, storage, cancellation, profile, transcript-locator, media, Swift, custom-element, and dependency-check repairs landed on main during this work and are preserved rather than duplicated. The integrated cold-usage fix prepares the writer before scanning to break the scan/prune admission cycle; it is not treated as proof that every separate Gateway timeout is repaired. Direct main publication was refused by branch protection, so this repair follows the native PR workflow.

The scroll observer previously discarded an actual movement's maintenance receipt when a later explicit command moved no pixels. A delayed upward native event could then be misclassified as reader input and lock following. The fix removes only that invalidation; native-event retirement, mismatched offsets, user input, and disposal keep their existing cleanup ownership. The existing controller regression now includes the repeated no-op command and still proves genuine upward-wheel takeover. No new lifecycle machinery or timer is added.

Evidence

Current published head: 9023be4, with pinned main f9af58c incorporated after native landing detected a real Stop-handler conflict. Fresh independent review through P2 is clean; the merged-source gateway-methods type graph passes in 60.79 seconds. Resolution retains main's independently landed completion fix and our stricter guard requiring both active and queued registrations to be absent. Exact-head PR CI 38340896493 passed all 44 selected jobs, with 23 expected skips and successful security and aggregate gates.

The preceding exact head a02ffad passed PR CI 38336913114: 45 successful jobs, 23 expected skips, including the original dashboard Stop case (631ms), four native-preparation outcomes (805/803/759/744ms), and all 11 OAuth coordination cases (the repaired case took 1,280ms; complete file wrapper 18.22 seconds). This is prior-head proof after the main integration, not a claim that the new head's CI is complete.

Broader main-tier run 38337557590 on a02ffad remains red. The incorporated main already repairs its exact Knip entrypoint/export findings and in-process worker-abort fixture isolation. Remote-catalog, agent-deletion, session-creation authority, post-core update handoff, required-placement, and two real-Gateway UI failures remain under investigation. No failed lane is labeled green or waived, and no timeout or assertion is weakened.

Earlier repairs, measurements, and retained failure evidence

Starting failure evidence: scheduled main CI 38311154418.

  • Runner fixture preparation: 55 passing cases in the focused owning batch; complete wrapper 690.31 seconds.
  • Targeted Codex ownership/binding checks: 4 passing cases; complete wrapper 478.83 seconds.
  • Corrected root sequencing and actor history: 2 focused parent cases passed with completed source verification, 631.35 seconds including cold compilation. The runner executes all four child lifecycle cells.
  • Exact GitHub-i18n predecessor → menu sequence: 8/8 passed in 38.72 seconds after reproducing the shared-registry failure. Menu focus assertions remain unchanged.
  • Offline startup cases: 2/2 passed in 62.08 seconds; steering and cold recovery also passed in their focused batch.
  • UI cleanup: 112 cases passed across Chromium and WebKit, 34.16 seconds wall. Actual dependency, unused-file, and export checks all passed (589.65, 267.01, and 327.16 seconds respectively); typed UI lint, UI/component-test types, formatting, and line-cap checks passed. No Knip exemptions or assertion removals.
  • All 28 selected core test type graphs passed on the earlier candidate. On the follow-up fixture candidate, the owning Gateway-server graph passed in 70.5 seconds and agents-root passed in 53.1 seconds; the expanded remaining graph run was intentionally stopped and is not claimed green. Scoped core/tooling lint and formatting passed.
  • Native successor baseline reproduced the exact nonexistent-lock failure locally (336.67 seconds wrapper). The corrected case finished its synchronous native operations but exceeded the unchanged 120-second test deadline on this loaded Mac (594.93 seconds wrapper). This local run failed; no timeout was increased. Linux CI must prove the corrected case within its existing budget.
  • Scroll regression failed before and passed after the two-file fix; 115 controller/policy cases passed (114.29 seconds wall), followed by 22 Chromium cases (23.20 seconds wall). The strengthened regression itself took 20 ms. Typed lint, production UI types, the canonical UI-chat test graph, formatting, and line-cap checks passed. The original strict real-Gateway scroll case still needs candidate CI confirmation; the saved CI checkpoints do not prove its exact event sequence.

The follow-up repairs pass 59 sentinel, shutdown, and accepted-cancellation cases (631.23 seconds wrapper); 30 plugin-trust, dashboard, and foreground-authority cases (556.44 seconds wrapper); and all eight cloud-startup browser cases after integrating main (91.94 seconds wrapper). The four owning test type graphs pass: agents-other 63.35 seconds, commands 39.95 seconds, plugins-platform 53.21 seconds, and UI E2E 76.16 seconds. Scoped lint and formatting pass. Independent reviews through P2 found no actionable issues in either follow-up batch.

The accepted-cancellation case retains exact record count, run IDs, cancelled outcomes, no runtime dispatch, and later-turn survival. It no longer assumes completion order among concurrently cancelled unadmitted turns; production cancellation and FIFO admission are unchanged. Plugin trust fixtures publish and clear their actual config. The foreground test revokes real admitted-run authority during restoration instead of an incomplete stand-in, retaining zero-reader/callback/dispatch checks. Dashboard still emits exactly one complete JSON failure envelope before exit. The unused internal TTS re-export is removed while the public SDK export remains; production and full-tree unused-export scans pass (176.69 and 323.17 seconds). The unused Mantis helper removal also landed independently and is preserved.

Local extension lint previously could not complete because its plugin-SDK declaration-build prerequisite timed out after 300 seconds; it did not report a source defect. This gap is not labeled green. A focused fixture attempt was also invalidated by an overlapping source edit during compilation; it ran no tests, and the subsequent frozen-source run passed. The shared Knip tool cache was incomplete; the same pinned checker passed using a task-local tool cache. No timeouts were raised, tests removed or disabled, or failures hidden.

The first PR run (38318939309, head b254dbb) failed four jobs: actor history lacked prepared config, child-project sequencing did not order the runner fixtures, and two Gateway shards needed catalog fixtures subsequently repaired on main. The repaired head 491d120 passed CI run 38322323643: 40 successful jobs, 24 expected skips, and a successful aggregate gate. Later head dba4897 failed PR CI 38328667182: the static snapshot fixture, temporary diagnostic spy typing, and obsolete cloud status-band assertion were actual regressions and are corrected in this follow-up. The diagnostic spy is removed after capturing the underlying authorization stack. Main is integrated through 959426b. Conflict resolutions take main's stronger native successor assertion and equivalent heartbeat result variable; the reviewed cloud-startup test remains byte-identical. Prior green remains prior-head evidence, not current-head proof.

Broad main-tier run 38328734599 on dba4897 remains failure evidence, not green proof. Its real-Gateway scroll lane (1/2) passed. The exact heartbeat root was repaired independently in #170464: reply admission now forwards its existing committed store-registration callback to the retained request witness before public observers. Its cold-admission regression fails before the repair, both original heartbeat product cases pass afterward, and corrected-head CI 38330353532 passed all 76 jobs. That owner fix is incorporated, not duplicated. Main's #170433 also establishes fixture-owned shared state for Incognito lifetime; #170439 releases retained resources at their existing owners; #170455 repairs build publication; and the generated locale refresh #170489 is included. The idle-input durability expectation and context-engine canonical session key are also preserved from main.

Separate failures still need candidate verification or repair: config.patch and agent-deletion deadlines, an auth-publication waiter, OAuth coordination cost, and three packaged browser deadlines. The added abort/heartbeat assertion context is diagnostic, not itself a repair. Some earlier local runtime attempts were blocked by the managed-Gateway artifact safety fence; it was not bypassed. A Testbox request was ungranted and cancelled. These gaps are recorded, not hidden by longer timeouts, weaker assertions, or passing replays. Full repaired-source CI remains required for the requested all-green outcome.

PR CI 38332873458 on head 2b81a66 completed with 50 successful jobs, 23 expected skips, two root failures, and the failed aggregate gate. Dependency checks, types, lint, generated locales, cloud-startup E2E, and 7,080 Bun UI cases pass. The remaining root failures are the dashboard Stop RPC rejecting after its captured run changes during cancellation preparation, and the WebKit modal close-during-opening test observing no exit animation. The failure classifier marked these unknown and new respectively; neither is described as green or automatically waived.

The OAuth coordination fixture now uses the same retained read-worker lifetime as the Gateway, acquired from the current module generation after fixture resets. Teardown first releases the refresh gate, then drains accepted work, then closes readers. All credential, fencing, durable-owner, and removal assertions and the 10-second deadline remain unchanged. The exact patch passed independent review through P2, typed lint, formatting, line-cap checks, and its agents-other type graph. On the overloaded local host, repeated reads fell from seconds to milliseconds, but the complete diagnostic still exceeded the unchanged deadline; Linux runtime proof remains outstanding.

The Stop failure is now repaired at the cancellation owner. If the captured run naturally completes while native descendant cancellation prepares, and neither its active nor queued registration remains, Stop returns the existing no-active outcome without consuming descendant or exec cancellation. Replaced, retargeted, and unrelated queued-successor registrations still refuse cancellation. The existing fallible session-snapshot helper replaces duplicate preparation logic; production code shrinks by 11 lines. No authorization check is removed.

The new four-outcome table reproduced the exact completed-run refusal before the fix (one failure, three passing rejection cases), then passed all four outcomes and the existing declined-parent sibling afterward. This exercises the real registered sessions.abort owner and native preparation boundary, not a duplicated implementation. Loaded-host wrapper wall time was 547.76 seconds before and 552.83 seconds after; the five green cases took 21.59, 16.45, 13.24, 16.43, and 15.47 seconds, including real store setup. No timers, sleeps, or larger deadlines were added. The gateway-methods type graph passes in 26.05 seconds, formatting and whitespace checks pass, and the line-cap ratchet accepts the shrinking production file. The exact dashboard replay timed out at sessions.send before reaching Stop (681.15 seconds wrapper); it remains a failed local attempt, not passing end-to-end proof.

The modal failure was investigated on the exact CI base d70a7e7. The selected modal source, style, lifecycle, bridge, configuration, and dependency inputs are identical to the CI merge. The focused macOS case passed, and the full Linux Docker WebKit suite passed all 473 cases across 39 files in 102.50 seconds wall. Event diagnostics confirmed that transitionrun can observe the active exit; they do not justify replacing it with transitionstart. These passing replays neither explain the original failure nor prove a repair. No modal assertion, transition duration, event, or product code is changed, and no inherited-failure waiver is claimed from this investigation.

The Stop repair passed fresh independent review through P2 with no actionable findings. Both line-cap and max-lines ratchets pass. Direct typed lint reports only the existing max-lines debt in the shrinking cancellation file (720 counted lines after the repair); no lint exception is added. New exact-head CI will verify the two follow-up commits, rather than rerunning the unchanged failed head for a passing result.

Current published head is a02ffad. PR CI 38336913114 passed: 45 successful jobs, 23 expected skips, successful security-fast and aggregate gate. The four Stop outcome regressions took 805, 803, 759, and 744ms in CI; the exact original dashboard Stop case passed in 631ms, with all 40 cases in its file passing. WebKit, dependencies, types, and lint also pass. This is current-head evidence, while the unexplained previous modal failure and failed loaded-host attempts remain recorded.

Broad dispatch 38336953372 failed before tests because its workflow revision on main differed from the requested source revision; this was an invocation error, not a product failure. Corrected main-tier run 38337557590 uses the documented same-revision development-branch route with Android included and is still running. Its result is not yet claimed green.

Prepare fixture-owned runtime config before Codex and agent execution, keep
the profile catalog alive through foreign-input transcript rewriting, and
initialize shared storage before exercising competing agent creation.
Inject binding failures through readAsync and distinguish read-only native
thread probes from mutations while retaining ownership assertions.

Small fixture-only helper extractions keep oversized files from growing.
Production preparation, authorization, assertions, and timeouts stay intact.
Do not duplicate the Swift, checkpoint, and run-attempt fixes landed by
other maintainers while this batch was being validated.

Proof: 24 storage/authorization cases passed with a clean compiled-worker
source guard (612.11s wall); 55 runner cases and four targeted Codex
ownership cases passed in their focused runs. All 28 selected core test
type graphs, formatting, line-cap, and scoped independent review passed.
Extension lint remains unverified locally: its plugin-SDK declaration
prerequisite timed out after 300 seconds, without a source diagnostic.
Full CI must verify the integrated main head; prior failures are not green.
Await exact database drainage before injecting cancellation read failures,
and retain a prepared profile catalog through progress-card authorization.
Preserve real kill claims, revocation checks, and all existing timeouts.

Prepare compiled workers during collection and use the configured native
TypeScript loader. Keep both core-thread resource-drain coverage and the
broker-owned provenance lifecycle in the existing child invocation.

Remove one verified stale max-lines baseline entry after its suppression
was removed upstream. No new exceptions or production changes.

Proof: cancellation corruption 3/3 (120.62s wrapper), progress-card
authorization 23/23 (514.82s), and runner 2/2 with all four lifecycle cells
(165.92s), each with completed source verification. Scoped review found
no actionable findings. Direct main push was refused by branch protection;
publish through the native PR workflow and require exact-head CI.
@clawsweeper

clawsweeper Bot commented Oct 12, 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 gateway Gateway runtime agents Agent runtime and tooling extensions: codex size: M labels Oct 12, 2026
Keep the already-landed profile, creation-race, and Stop-fixture repairs verbatim. Resolve overlapping test-only changes by preserving main; retain the independently reviewed remaining runtime and runner fixes.
@steipete
steipete marked this pull request as ready for review October 12, 2026 22:50
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR repairs runtime and lifecycle fixtures, strengthens Stop replacement checks, and preserves automatic transcript following across no-op scroll commands.

Example: A 600px transcript viewport moves from offset 1400 to 1200, receives another scroll-to-end command that moves no pixels, then grows to a maximum offset of 1320.

  • Before: The no-op clears the movement receipt, so delayed scrolling can lock following at offset 1200.
  • After: The receipt survives and automatic following reaches offset 1320; genuine upward wheel input still takes control.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused repairs with green exact-head CI and no identified defect; behavior evidence primarily comes from production-owner harnesses.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored repair is outside the ordinary contributor-proof gate; supplied evidence exercises registered sessions.abort, transcript controllers, and lifecycle fixtures, supported by successful exact-head CI.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Runtime fixtures fail before proving their contracts, and repeated no-op scroll commands can stop a transcript from following new content.
Reason: The maintainer-authored direction restores existing contracts, preserves assertions, and fixes a concrete scroll-follow defect without new options or public APIs.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR retains useful repairs absent from main, with successful exact-head CI and no actionable introduced defect found.

Priority: P2
Reviewed head: 9023be4832497da03527ebbff8dde92c9c637593

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The exact repeated-no-op sequence has controller regression evidence but no supplied capture through the shipped browser UI.
Agent review details

How this fits together

CI fixtures prepare runtime owners before exercising lifecycle contracts; Gateway cancellation and the Control UI offset observer determine Stop outcomes and transcript-follow behavior.

flowchart TD
A[CI fixtures] --> B[Prepared runtime owners]
B --> C[Lifecycle assertions]
D[Stop RPC] --> E[Cancellation owner]
E --> C
F[Scroll commands] --> G[Offset observer]
G --> H[Follow policy]
Loading

Technical review

Best possible solution:

Retain the fixture repairs and minimal production changes through the normal maintainer landing workflow.

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

Current main exposes the no-op receipt invalidation, and the supplied regression reports failure before repair and success afterward; this read-only review ran no tests.

Is this the best way to solve the issue?

The changes repair fixture preparation at existing owners and remove the specific scroll invalidation without adding lifecycle machinery or weakening user-input takeover.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Transcript maintenance receipt changes intended behavior with a stated reason (b68c44c: Preserve actual programmatic movement through command retirement while allowing genuine reader input to take over.)
  • Stop completion outcome keeps the original intent (992724e: A captured turn that finishes during metadata preparation should return the existing no-active outcome without acting on a replacement.)
  • Gateway fixture isolation and provenance drainage keeps the original intent (540450d: Separate Gateway workers and awaited resource drainage prevent stale listeners and retained database owners across files.)
  • Native fixture preparation keeps the original intent (aeaae03: Generated native fixtures must resolve real source dependencies and use asynchronous provenance preparation.)
  • Foreground request authority regression keeps the original intent (2f1f8be: Request preparation must retain current admitted authority before restored tools or model dispatch become available.)
  • Codex native ownership assertions keeps the original intent (11ef173: Failed or refused attachment must preserve native binding and subscription ownership.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit b68c44c adds ui/src/pages/chat/components/chat-transcript-offset-observer.ts:158 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b68c44ca8f3c; files: ui/src/pages/chat/components/chat-transcript-offset-observer.ts)

PR surface

Source -2, Tests +167. Total +165 across 21 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 2 4 6 -2
Tests 19 309 142 +167
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 21 313 148 +165

Review metrics

Metric Value Why it matters
Production versus test/support LOC Production +4/-6; tests and support +309/-142 Production shrinks; test growth restores distinct lifecycle compositions and adds completion/replacement controls.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Focused CI coverage repairs and limited Stop/scroll improvements have normal-priority impact.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Optionally capture the repeated no-op follow sequence through the shipped browser UI with sensitive values redacted.

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.

History

Review history (6 earlier review cycles)
  • reviewed 2026-10-12T23:09:41.598Z sha b254dbb :: needs changes before merge. :: [P2] Configure the lifecycle sequencer in the root child configuration
  • reviewed 2026-10-12T23:39:21.185Z sha 491d120 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-13T00:54:09.159Z sha dba4897 :: needs changes before merge. :: [P2] [P2] Import the snapshot setter after resetting modules
  • reviewed 2026-10-13T01:43:17.910Z sha 2b81a66 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-13T02:35:22.549Z sha a02ffad :: needs maintainer review before merge. :: none
  • reviewed 2026-10-13T02:56:49.957Z sha a02ffad :: needs changes before merge. :: none

Reviewed October 12, 2026, 11:37 PM ET / October 13, 2026, 03:37 UTC (Revision 7).

Put producer-before-observer sequencing on Vitest's multi-project root,
where Vitest reads the sequencer, rather than on ignored child configs.
Prepare the actor-history fixture's runtime snapshot before appending.

Keep externalized Web Awesome definitions in the real JSDOM registry.
Use the existing cleanup owner for newly loaded repository elements instead
of diverting native dependency registration into a disposable iframe.
Preserve menu focus assertions and assert current offline/recovery UI state.
Worker cancellation retains its intentional diagnostic. Register the
documented Linux onboarding Vite configuration as an executable Knip root.

Proof: runner/history exact cells pass with final source verification
(631.35s wrapper); worker cancellation passes (413.0s total); offline
startup cases pass (2/2, 62.08s); exact i18n-producer-before-menu sequence
passes (8/8, 38.72s), after reproducing the predecessor contamination.
Full Knip, focused UI lint, formatting and independent P2 review pass.
No production changes, disabled tests, or increased timeouts.
Keep main-owned Knip, profile, sandbox, request, command setup, and transcript-locator repairs. Remove the superseded sharing helper. Retain only the reviewed remaining actor-history, ownership, runner-ordering, and UI-isolation changes; preserve main asynchronous binding behavior.
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui and removed gateway Gateway runtime labels Oct 12, 2026
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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 12, 2026
Integrate landed startup and cold-usage admission repairs. Publish fixture config through the runtime snapshot owner, preserve browser assertions while removing unused UI surfaces, and expect the native PR wrapper to release fully drained failed-operation locks. Retain diagnostics for unresolved Gateway failures without weakening their assertions. Independent scoped review is clean; exact-head Linux CI remains required.
Resolve the five overlapping fixture/import conflicts to the identical reviewed and tested candidate blobs. Preserve the newly landed main changes and the single runtime-snapshot fixture owner. Reuse independent review and unchanged-input proof; no new behavior is introduced by this integration.
Preserve the existing offset receipt until its real native event or reader input retires it. Strengthen the existing controller regression without changing positions, timers, or reader-takeover assertions. The regression fails before and passes after; 115 controller/policy and 22 browser cases pass. Add subtype-only synthetic Gateway failure diagnostics without changing authorization or claiming the remaining heartbeat failure repaired. Fresh independent scoped review is clean.
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Oct 13, 2026
Resolve the overlapping cloud-startup fixture repair to the identical reviewed and tested candidate blob, retaining reconnect, unsent-request, disabled-control, and draft assertions. Incorporate current main without changing the task-owned behavior delta; reuse unchanged-input reviews and proof.
Take the three upstream fixture files verbatim from be49163: each controller publishes its explicit config and finalization carries its own config. Remove the superseded asynchronous fixture reads. Remaining task-owned code is unchanged and retains its independent reviews and proof.
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 13, 2026
Use upstream config fixtures across module resets, retire temporary heartbeat instrumentation, and remove unused internal exports. Preserve exact cancellation records without imposing order on concurrently cancelled unadmitted turns.\n\nProof: 59 focused cases pass across three files; production and full-tree Knip exports pass; Gateway test types, scoped lint, and format pass. Independent P0-P2 review is scoped-clean.
Resolve the native successor fixture with the equivalent, stronger main assertion that the drained failure releases its operation lock. Retain upstream context-engine canonical key, lane fixtures, and unused Mantis helper cleanup without duplicate owners.
Prepare plugin config at its fixture owner, revoke real admitted authority during prompt restoration, and preserve the complete dashboard JSON failure envelope. Check offline cloud turns in the visible outbox instead of the retired duplicate band.

Proof: all 30 core cases and all 8 browser cases pass on integrated main; four owning type graphs, scoped lint and format pass. Independent P0-P2 review is scoped-clean.
@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations agents Agent runtime and tooling labels Oct 13, 2026
Preserve the reviewed cloud-startup assertions verbatim and take main's equivalent heartbeat diagnostic name. Incorporate the owning first-turn registration fix, generated locale refresh, build publication repair, and resource-release fixes.
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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 13, 2026
Mirror the Gateway-owned read-worker lifetime in the cross-agent refresh fixture. Release the refresh gate and drain accepted work before closing readers; retain all credential and ownership assertions and the existing deadline.\n\nThe exact patch passed scoped independent review through P2 and static checks. The loaded-host diagnostic improved repeated reads but still exceeded the unchanged test deadline; Linux runtime proof remains required.
Return the existing no-active outcome when the captured run naturally retires during native cancellation preparation. Keep same-ID replacement, retargeting, queued-successor, and caller-authority fences intact; decline descendant and exec effects when the parent is gone.

The completed-run regression fails before and passes after, alongside three replacement rejection cases and the declined-parent sibling. Gateway-methods types and independent review through P2 pass. The full dashboard replay timed out before Stop and remains an explicit CI proof gap.
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 13, 2026
Integrate pinned main f9af58c after native landing reported a real conflict. Preserve the independently landed Stop helper and completion fix while retaining the stricter absent-active-and-queued guard; metadata preparation and native descendant preparation keep their distinct regressions.

This also incorporates the already-landed Knip entrypoint/export repair and managed worker fixture isolation. Previous exact head a02ffad passed all 45 PR jobs; merged-source gateway-methods types pass in 60.79 seconds and fresh independent review through P2 is clean. The separate broad remote-catalog and real-Gateway UI failures remain under investigation.
@openclaw-barnacle openclaw-barnacle Bot removed the commands Command implementations label Oct 13, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 13, 2026
@steipete
steipete merged commit 36cb3fd into main Oct 13, 2026
139 checks passed
@steipete
steipete deleted the codex/ci-main-repair-20261012 branch October 13, 2026 04:01
@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 13, 2026
* test: prepare remaining runtime and ownership fixtures

Prepare fixture-owned runtime config before Codex and agent execution, keep
the profile catalog alive through foreign-input transcript rewriting, and
initialize shared storage before exercising competing agent creation.
Inject binding failures through readAsync and distinguish read-only native
thread probes from mutations while retaining ownership assertions.

Small fixture-only helper extractions keep oversized files from growing.
Production preparation, authorization, assertions, and timeouts stay intact.
Do not duplicate the Swift, checkpoint, and run-attempt fixes landed by
other maintainers while this batch was being validated.

Proof: 24 storage/authorization cases passed with a clean compiled-worker
source guard (612.11s wall); 55 runner cases and four targeted Codex
ownership cases passed in their focused runs. All 28 selected core test
type graphs, formatting, line-cap, and scoped independent review passed.
Extension lint remains unverified locally: its plugin-SDK declaration
prerequisite timed out after 300 seconds, without a source diagnostic.
Full CI must verify the integrated main head; prior failures are not green.

* test: repair authorization and worker lifecycle fixtures

Await exact database drainage before injecting cancellation read failures,
and retain a prepared profile catalog through progress-card authorization.
Preserve real kill claims, revocation checks, and all existing timeouts.

Prepare compiled workers during collection and use the configured native
TypeScript loader. Keep both core-thread resource-drain coverage and the
broker-owned provenance lifecycle in the existing child invocation.

Remove one verified stale max-lines baseline entry after its suppression
was removed upstream. No new exceptions or production changes.

Proof: cancellation corruption 3/3 (120.62s wrapper), progress-card
authorization 23/23 (514.82s), and runner 2/2 with all four lifecycle cells
(165.92s), each with completed source verification. Scoped review found
no actionable findings. Direct main push was refused by branch protection;
publish through the native PR workflow and require exact-head CI.

* test: fix shared runner ordering and UI fixture isolation

Put producer-before-observer sequencing on Vitest's multi-project root,
where Vitest reads the sequencer, rather than on ignored child configs.
Prepare the actor-history fixture's runtime snapshot before appending.

Keep externalized Web Awesome definitions in the real JSDOM registry.
Use the existing cleanup owner for newly loaded repository elements instead
of diverting native dependency registration into a disposable iframe.
Preserve menu focus assertions and assert current offline/recovery UI state.
Worker cancellation retains its intentional diagnostic. Register the
documented Linux onboarding Vite configuration as an executable Knip root.

Proof: runner/history exact cells pass with final source verification
(631.35s wrapper); worker cancellation passes (413.0s total); offline
startup cases pass (2/2, 62.08s); exact i18n-producer-before-menu sequence
passes (8/8, 38.72s), after reproducing the predecessor contamination.
Full Knip, focused UI lint, formatting and independent P2 review pass.
No production changes, disabled tests, or increased timeouts.

* fix(ui): retain scroll maintenance through no-op follow commands

Preserve the existing offset receipt until its real native event or reader input retires it. Strengthen the existing controller regression without changing positions, timers, or reader-takeover assertions. The regression fails before and passes after; 115 controller/policy and 22 browser cases pass. Add subtype-only synthetic Gateway failure diagnostics without changing authorization or claiming the remaining heartbeat failure repaired. Fresh independent scoped review is clean.

* fix: restore isolated CI fixture ownership

Use upstream config fixtures across module resets, retire temporary heartbeat instrumentation, and remove unused internal exports. Preserve exact cancellation records without imposing order on concurrently cancelled unadmitted turns.\n\nProof: 59 focused cases pass across three files; production and full-tree Knip exports pass; Gateway test types, scoped lint, and format pass. Independent P0-P2 review is scoped-clean.

* test: align CI fixtures with runtime owners

Prepare plugin config at its fixture owner, revoke real admitted authority during prompt restoration, and preserve the complete dashboard JSON failure envelope. Check offline cloud turns in the visible outbox instead of the retired duplicate band.

Proof: all 30 core cases and all 8 browser cases pass on integrated main; four owning type graphs, scoped lint and format pass. Independent P0-P2 review is scoped-clean.

* test(auth): retain SQLite readers through OAuth coordination

Mirror the Gateway-owned read-worker lifetime in the cross-agent refresh fixture. Release the refresh gate and drain accepted work before closing readers; retain all credential and ownership assertions and the existing deadline.\n\nThe exact patch passed scoped independent review through P2 and static checks. The loaded-host diagnostic improved repeated reads but still exceeded the unchanged test deadline; Linux runtime proof remains required.

* fix(gateway): accept Stop after the captured run completes

Return the existing no-active outcome when the captured run naturally retires during native cancellation preparation. Keep same-ID replacement, retargeting, queued-successor, and caller-authority fences intact; decline descendant and exec effects when the parent is gone.

The completed-run regression fails before and passes after, alongside three replacement rejection cases and the declined-parent sibling. Gateway-methods types and independent review through P2 pass. The full dashboard replay timed out before Stop and remains an explicit CI proof gap.
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 extensions: codex gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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