Skip to content

fix(daemon): keep native service checks within their timeout - #154565

Merged
RomneyDa merged 14 commits into
mainfrom
fix/release96-status-readiness-47f
Sep 26, 2026
Merged

RomneyDa merged 14 commits into
mainfrom
fix/release96-status-readiness-47f

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Native service inspection can reuse its full timeout at successive stages, start additional Windows process/listener checks after the budget is spent, or accept late observations as current service state. Cleanup failures can also be hidden by ordinary diagnostic fallbacks.

Why This Change Was Made

Carry one remaining inspection budget through command, registration, runtime, and Windows Startup/process/port reads. Stop admitting work after expiry, keep expired ordinary diagnostics unknown, and preserve strict-operation failures. Join admitted parallel reads before returning and propagate cleanup/ownership refusals.

The absent-Gateway status fix is already on main through #154637. This PR now contains only the remaining native-inspection work; the superseded status adapter, readiness shortcut, status documentation, and associated tests have been removed. Existing systemd target selection, Windows structured diagnostics, and main's startup/legacy-owner safeguards are preserved. Related: #154549.

User Impact

Diagnostic reads share the caller's existing budget. Explicitly timed Windows reads retain exact positive process matches and report unknown when incomplete process or listener evidence cannot establish a stopped service. Untimed lifecycle defaults remain unchanged. No configuration or stored-data format changes.

Evidence

  • Refreshed onto main 4acdf1a4f3b while preserving the original authored commits. Reduced the introduced diff from 31 files / +2,597 net lines to 25 files / +1,297 net lines. The existing maintenance fixture table moved to its support module unchanged to respect the line cap.
  • Focused shared-service, Windows, and existing diagnostic-readiness suites passed. The exhausted-budget regression failed on current main and passed on the candidate. Two PID-0 regressions failed before the review correction and passed afterward.
  • Final Windows deadline plus maintenance run: 96 tests passed with --maxWorkers=1, 35.72 seconds wrapper wall. The earlier Windows/diagnostic group passed in 31.47 seconds; command-reader/deadline/maintenance group passed 140 cases in 18.26 seconds. These groups overlap and are not additive. Most cold-run wall time was compilation.
  • Full pnpm build passed in 11m55.6s before the final PID-0 predicate/test correction and unused-export cleanup; the behavior correction passed focused tests and fresh review, and final production types passed. Repository changed-file checks: production types, all 25 core test-type groups, formatting, lint, and required static guards passed. The aggregate run initially stopped at unused exports; those were removed, then the failed and remaining checks passed separately.
  • Fresh independent review through P2 found no remaining actionable findings after fixing PID 0 incorrectly preventing a stopped observation. Native evidence remains conservative for unreadable real process rows.
  • Validation recovery: a timeout fixture initially expected the full allowance instead of the remaining budget; a controlled clock preserves its exact assertion. One post-extraction test attempt ran no tests because the concurrent build changed package resolution during compilation; the serialized final run passed. The line-cap failure was resolved by the unchanged fixture extraction, with no removed cases or assertions.
  • Refreshed onto main 48f886998765 without changing the production patch. The prior Windows Crabbox PID-reuse assertion failure passed on the refreshed head. A related status fixture still assumed no elapsed wall time; its clock is now controlled, with guaranteed restoration, and the complete case moved into existing service-inspection test support to satisfy the line cap. All 133 status tests and 16 deadline tests passed; fresh review found no actionable findings.
  • Addressed ClawSweeper’s cleanup-propagation finding: the registered status command now preserves cleanup refusals before diagnostic sanitization. Its regression failed before the fix; all 134 status tests pass after it. Restored the systemd absence-probe contract: a present or unverifiable system owner means absence is not proven, while actual ownership changes and cleanup failures remain fatal. The original three CI failures reproduced locally; all 17 unchanged absence tests plus 16 deadline tests pass after the producer repair. Fresh review, changed-file checks, production/service types, and targeted lint pass.
  • Final-head CI: run 36199443125 passed for d36ae040a6069759ebb3489b07a80d36fd877210, including all five Windows shards and the previously failing status/service-absence shards. ClawSweeper reviewed the same head with no actionable code findings and platinum hermit patch quality; the overall gold rating reflects the installed-platform and updater qualification gaps below.

Installed Windows 11 ARM64 qualification now covers the exact candidate’s Scheduled Task and Startup lifecycle, required-RPC health, real native inspection expiry, deferred-repair state preservation, and completed normal repair recovery. Detailed Windows evidence. The published 2026.9.5 updater installed the candidate but failed its schema-handoff/autostart recovery; this is not a clean published-upgrade pass. Stopped Startup fallback remains conservatively unknown when process command lines are unreadable. Fresh ClawSweeper review requested; no merge or release qualification is claimed.

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes size: XL maintainer Maintainer-authored PR labels Sep 21, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 21, 2026 07:32
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. labels Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 9:26 PM ET / September 26, 2026, 01:26 UTC (Revision 15).

ClawSweeper review

What this changes

The branch gives Gateway service inspection and Windows Scheduled Task, Startup, process, and port reads one timeout budget, while retaining cleanup failures and marking incomplete observations unknown.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep this PR open. The merged absent-Gateway fix overlaps with it, but current main still lacks the native inspection deadline repair. Exact-head Windows observations support the repair. The changed stopped-service classification needs explicit owner acceptance, and the published-updater qualification did not complete recovery.

Priority: P2
Reviewed head: d36ae040a6069759ebb3489b07a80d36fd877210
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Direct installed Windows evidence and green exact-head CI support the patch, while the compatibility decision and failed published-upgrade qualification limit merge confidence.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The exact-head installed Windows 11 ARM64 observations exercise Scheduled Task and Startup lifecycle, native timeout, strict rejection, deferred maintenance, and candidate repair through the production CLI or shipped bundle. They support the changed behavior; the separate published-updater recovery cell failed. No stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The exact-head installed Windows 11 ARM64 observations exercise Scheduled Task and Startup lifecycle, native timeout, strict rejection, deferred maintenance, and candidate repair through the production CLI or shipped bundle. They support the changed behavior; the separate published-updater recovery cell failed. No stored-data contract changes.
Evidence reviewed 10 items Introduced deadline owner: The branch carries remaining time through service reads, joins admitted parallel work, preserves cleanup and ownership refusals, and makes expired ordinary observations unknown.
Windows compatibility change: An explicitly timed Startup inspection returns unknown unless it finds a matching process or completes the negative process and listener checks.
Incomplete process evidence: The new snapshot rule requires readable positive process IDs and command lines before using a process snapshot to prove no match.
Findings None None.
Security None None.

How this fits together

CLI status and maintenance ask the daemon service layer to inspect the installed Gateway service. That layer reads native service and process evidence, then returns running, stopped, or unknown state to the caller.

flowchart LR
  A[CLI status or maintenance] --> B[Shared service inspection]
  B --> C[Native service manager]
  B --> D[Launcher and process reads]
  D --> E[Port observation]
  C --> F[Deadline and evidence decision]
  E --> F
  F --> G[Running, stopped, or unknown]
Loading

Decision needed

Question Recommendation
Should explicitly timed Windows Startup inspection return unknown when unrelated process rows have unreadable command lines, even if the installed service is stopped? Keep conservative unknown: Accept deferred status or maintenance decisions when native evidence cannot prove the installed process is absent.

Why: The exact-head guest showed this user-visible compatibility change; the qualification comment recommends it but does not record an explicit acceptance of the tradeoff.

Before merge

  • Resolve merge risk (P1) - On an installed Windows Startup entry, an explicitly timed read can now report unknown instead of the previous stopped result when unrelated process command lines are unreadable. Status and maintenance may defer action until an owner accepts that conservative classification or a narrower absence proof is supplied.
  • Resolve merge risk (P1) - The required published-updater × candidate qualification did not finish cleanly: the 2026.9.5 driver left the task disabled and recovery required a forced service install. The documented older-driver schema handoff is a separate cause, but automatic recovery for this candidate remains unproven.
  • Complete next step (P2) - Obtain explicit owner acceptance of the Windows unknown-state tradeoff and a clean published-driver × candidate service-recovery qualification, repairing the owning updater path first if necessary.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source +426, Tests +872, Other -1. Total +1297 across 25 files.

View PR surface stats
Area Files Added Removed Net
Source 14 803 377 +426
Tests 10 1074 202 +872
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 25 1877 580 +1297

Review metrics

Metric Value Why it matters
Production and test growth production +803/−377, net +426; tests +1074/−202, net +872 The branch explains the shared-owner extraction and boundary regressions, but the resulting maintenance surface is substantial.

Merge-risk options

Maintainer options:

  1. Qualify recovery before merge (recommended)
    Resolve the published-driver recovery gap with the updater owner, then verify that the candidate restores the service without a forced install.
  2. Narrow Windows absence evidence
    If the unknown result is unacceptable, change the native inspection to prove absence safely without relying on every unrelated process row.

Technical review

Best possible solution:

Keep the shared inspection deadline and conservative ownership checks, obtain an explicit decision on the Windows stopped-state tradeoff, and verify a published-driver upgrade that restores the service without manual installation.

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

Yes, at the source boundary: current main passes separate allowances through native Windows reads, while the branch's focused regressions and installed guest observations cover expiry and incomplete process evidence. This read-only review did not execute the failing baseline.

Is this the best way to solve the issue?

Yes for sharing the deadline at the service inspection owner and preserving cleanup refusals. The stopped-state compatibility choice and published-upgrade recovery still need resolution before merge.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 55ee0e0dfcea.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The exact-head installed Windows 11 ARM64 observations exercise Scheduled Task and Startup lifecycle, native timeout, strict rejection, deferred maintenance, and candidate repair through the production CLI or shipped bundle. They support the changed behavior; the separate published-updater recovery cell failed. No stored-data contract changes.

Label justifications:

  • P2: The remaining defect affects bounded native service diagnostics and maintenance on a limited platform surface.
  • merge-risk: 🚨 compatibility: A real stopped Windows Startup entry can change from stopped to unknown under an explicit timeout, altering status and maintenance decisions.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The exact-head installed Windows 11 ARM64 observations exercise Scheduled Task and Startup lifecycle, native timeout, strict rejection, deferred maintenance, and candidate repair through the production CLI or shipped bundle. They support the changed behavior; the separate published-updater recovery cell failed. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The exact-head installed Windows 11 ARM64 observations exercise Scheduled Task and Startup lifecycle, native timeout, strict rejection, deferred maintenance, and candidate repair through the production CLI or shipped bundle. They support the changed behavior; the separate published-updater recovery cell failed. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ben.Li: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Record explicit owner acceptance of the stopped-Startup unknown behavior or provide a narrower safe absence check.
  • Complete a published-driver × candidate upgrade with automatic service recovery, or land the owning updater repair and repeat that cell.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

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

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-21T20:50:47.179Z sha c7a06d2 :: blocked before merge. :: none
  • reviewed 2026-09-21T23:34:00.145Z sha 2b5bd4e :: blocked before merge. :: none
  • reviewed 2026-09-22T00:45:52.256Z sha 1056ffb :: blocked before merge. :: none
  • reviewed 2026-09-22T01:13:11.016Z sha 1056ffb :: blocked before merge. :: none
  • reviewed 2026-09-25T22:00:31.340Z sha 176499a :: blocked before merge. :: none
  • reviewed 2026-09-25T22:27:01.262Z sha 045e44c :: blocked before merge. :: none
  • reviewed 2026-09-25T23:10:46.509Z sha d36ae04 :: blocked before merge. :: none
  • reviewed 2026-09-25T23:28:29.709Z sha d36ae04 :: blocked before merge. :: none

@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 Sep 21, 2026
@roboclaw-bot
roboclaw-bot force-pushed the fix/release96-status-readiness-47f branch from f93eb2d to 939baa8 Compare September 21, 2026 19:21
@roboclaw-bot
roboclaw-bot force-pushed the fix/release96-status-readiness-47f branch from c7a06d2 to 2b5bd4e Compare September 21, 2026 23:24
roboclaw-bot and others added 9 commits September 21, 2026 23:47
Retain stopped Startup observations and structured unknown diagnostics.
Keep ownership and cleanup refusals authoritative and join admitted reads.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>
Move the shared timeout fixture into existing test support and inline the
redundant positive-only observation wrapper. Preserve all assertions.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>
Move the unchanged 14-case table and its type to the existing maintenance
test support module so composed main tests stay within the line cap.
Preserve mock initialization, assertions, deadlines, and all test bodies.

Validation: fresh scoped source review, exact relocation reconstruction,
formatting, diff check, and canonical line-cap ratchet pass. Runtime and
type gates remain assigned to replacement-head CI and installed proof.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>
Keep strict absence out of the migration-to-owner gap and retain ordinary
startup grace after observed or unreadable migration activity. Charge the
read-only checkpoint query to the existing readiness budget.

Reuse the existing migration owner; add no logging or new data contract.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>
Require readable process identities and command lines before interpreting
no matching Startup process as stopped. Keep positive exact PID matches
and charge completeness validation to the existing inspection deadline.

Reuse the native snapshot owner and cover incomplete Gateway/node rows;
add no logging, native probes or timeout changes.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>
@RomneyDa RomneyDa changed the title fix(status): report deliberately absent gateways promptly fix(daemon): keep native service checks within their timeout Sep 25, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the docs Improvements or additions to documentation label Sep 25, 2026
@RomneyDa

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member

Windows qualification on exact head d36ae040a6069759ebb3489b07a80d36fd877210 is now based on a real Parallels Windows 11 ARM64 guest (10.0.26200), Node 24.19.0, npm 11.17.0, and a non-admin account. Candidate package 2026.9.6 was built and checked with the maintained packer; embedded commit matched. Tarball SHA-256: bb0beb3ad55fdc99aa0e73513d4c1a1e6d8204a47ab8a25ed0b3f558b96c8079.

Installed Windows observation Result
Scheduled Task running / stopped Correct running / stopped (Ready) classifications; exact-candidate RPC health passed.
Exhausted native budget Runtime returned unknown immediately; strict service inspection rejected immediately.
Real delayed native child Original PowerShell timeout/options preserved. Actual ETIMEDOUT at 1,000ms and the remaining 923ms; runtime returned unknown and strict inspection rejected. No installed source was modified.
Stopped Startup fallback unknown in 3,520ms with zero listeners and 92 nonzero CIM rows whose command lines were unreadable. Published 2026.9.5 reported stopped on the same kind of snapshot. This is the deliberate conservative behavior, not a claim that all Windows process rows were readable.
Startup lifecycle CLI start → runtime running → required-RPC health passed; CLI stop succeeded. Original Scheduler registration restored.
Candidate repair under inspection expiry Two real 5,000ms inspection children timed out (5,037ms each). Repair returned a warning with maintenance deferred. Before/after task XML/enabled/state, Gateway PID+creation time, config/launcher hashes, package/build identity, and npm shim were identical. Exit 0 here means deferred warning, not completed repair.

The native runtime/strict-state probes loaded the existing shipped bundle exports. Service lifecycle and updater/repair cases used the installed CLI. The external delay fixture targeted only the task’s read-only native inspection and preserved the real child timeout/result.

Final normal recovery passed: after stopping the owned Gateway, candidate update repair --yes --json --timeout 300 completed Doctor, plugin, configuration-convergence, and completion-cache phases with advisory warnings (exit 0); gateway start and the first subsequent required-RPC check both exited 0 on the exact candidate. An earlier 15-second repair attempt combined Doctor expiry with a native inspection timeout and legitimately restarted the Gateway during cleanup; it is not the unchanged-state preservation case above.

The conservative Startup result remains a maintainer tradeoff: positive running evidence and start/stop work, while a stopped fallback cannot prove absence through unreadable process rows. I recommend retaining the conservative result rather than filtering native rows to manufacture a stopped observation.

Published-updater limitation: this was not a clean 2026.9.5 → candidate upgrade pass. The first short-budget run exercised real inspection expiry and preserved the captured baseline service/configuration/package identity, but also hit npm staging timeouts. A normal-budget retry successfully installed the candidate and passed every recorded canary/Doctor step, then the old updater reopened migrated schema 19 despite supporting only 17. It exited 1 with recovery pending and left the task disabled. Candidate update repair completed, but service recovery additionally required the CLI-suggested gateway install --force; later RPC verified the exact candidate.

A live comparison explains the old updater's long pre-activation wait: published code reports healthy RPC and matching version/build but runtime unknown from ERR_OUT_OF_RANGE on a fractional native timeout; the staged candidate reports healthy+running for the same Gateway. The schema-handoff/autostart recovery issue belongs in a separate updater follow-up; no clean upgrade claim is made here.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 26, 2026
@RomneyDa
RomneyDa merged commit 47a9e77 into main Sep 26, 2026
236 of 237 checks passed
@RomneyDa
RomneyDa deleted the fix/release96-status-readiness-47f branch September 26, 2026 05:43
vincentkoc added a commit that referenced this pull request Sep 26, 2026
* commit '66b812f26e725cd709e08860d2cb46ba496cd308': (70 commits)
  fix(gateway): preserve typed boxed-number coercion
  chore(ui): refresh control ui locales (#158689)
  fix(gateway): reset staged headers on authority errors (#158669)
  fix(workers): keep inbound staging stable during quota scans
  fix: preserve Telegram delivery after bot identity changes (#158612)
  fix(ui): keep automation starter prompts out of startup (#158482)
  fix(cli): distinguish configuration read failures from invalid input (#158671)
  test: remove retired progress coercion suppression allowance
  refactor(gateway): schedule worker placement maintenance (#158662)
  fix(daemon): keep native service checks within their timeout (#154565)
  fix(test): restore gateway steering fixture contracts (#158478)
  fix(acpx): use SDK filesystem publication boundary
  fix(agentsapi): load OpenClaw persona and workspace context (#158328)
  fix(gateway): drop progress snapshot coercion suppression
  fix(qa): accept native Codex truncation in cache evidence (#158454)
  fix(gateway): keep chat subscriptions stable during unrelated approvals (#158633)
  perf(gateway): release event payloads from live text guards (#158643)
  perf(sessions): reduce stalls when saving large chat messages (#158402)
  fix(qa): reject history-bearing utility requests without session affinity (#158496)
  test: allow intentional progress snapshot coercion
  ...
vincentkoc added a commit that referenced this pull request Sep 26, 2026
* fix(test): verify followup completion ordering

Exercise the real presentation settlement helper with asynchronous cleanup, preserve continuation and admission semantics, and unconditionally release and join the held work. Remote proof covers the strengthened ordering contract and both missing-await faults.

* fix(test): verify followup completion ordering

* chore: retain followup test branch ancestry

The current-main reconstruction preserves the original reviewed scope and supersedes its stale base. Keep the remotely qualified candidate tree unchanged while retaining the original PR ancestry for a non-force branch update.

* commit 'ff35145de21cf6296bec05e86bee37b5ed53bcb8':
  fix(test): verify followup completion ordering

* test(auto-reply): signal queued presentation entry

* chore: refresh followup test on boundary fix

* commit '66b812f26e725cd709e08860d2cb46ba496cd308': (70 commits)
  fix(gateway): preserve typed boxed-number coercion
  chore(ui): refresh control ui locales (#158689)
  fix(gateway): reset staged headers on authority errors (#158669)
  fix(workers): keep inbound staging stable during quota scans
  fix: preserve Telegram delivery after bot identity changes (#158612)
  fix(ui): keep automation starter prompts out of startup (#158482)
  fix(cli): distinguish configuration read failures from invalid input (#158671)
  test: remove retired progress coercion suppression allowance
  refactor(gateway): schedule worker placement maintenance (#158662)
  fix(daemon): keep native service checks within their timeout (#154565)
  fix(test): restore gateway steering fixture contracts (#158478)
  fix(acpx): use SDK filesystem publication boundary
  fix(agentsapi): load OpenClaw persona and workspace context (#158328)
  fix(gateway): drop progress snapshot coercion suppression
  fix(qa): accept native Codex truncation in cache evidence (#158454)
  fix(gateway): keep chat subscriptions stable during unrelated approvals (#158633)
  perf(gateway): release event payloads from live text guards (#158643)
  perf(sessions): reduce stalls when saving large chat messages (#158402)
  fix(qa): reject history-bearing utility requests without session affinity (#158496)
  test: allow intentional progress snapshot coercion
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
…w#154565)

* fix(status): report deliberately absent gateways promptly

* fix(status): preserve inspection contracts through CI checks

* refactor(daemon): keep service staging alias private

* test(daemon): compare native fixture paths without coercion

* fix(status): preserve native diagnostics across inspection deadlines

Retain stopped Startup observations and structured unknown diagnostics.
Keep ownership and cleanup refusals authoritative and join admitted reads.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>

* refactor(status): keep deadline fixtures within line caps

Move the shared timeout fixture into existing test support and inline the
redundant positive-only observation wrapper. Preserve all assertions.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>

* test(status): extract native offline fixture cases

Move the unchanged 14-case table and its type to the existing maintenance
test support module so composed main tests stay within the line cap.
Preserve mock initialization, assertions, deadlines, and all test bodies.

Validation: fresh scoped source review, exact relocation reconstruction,
formatting, diff check, and canonical line-cap ratchet pass. Runtime and
type gates remain assigned to replacement-head CI and installed proof.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>

* fix(status): preserve startup grace before ownership

Keep strict absence out of the migration-to-owner gap and retain ordinary
startup grace after observed or unreadable migration activity. Charge the
read-only checkpoint query to the existing readiness budget.

Reuse the existing migration owner; add no logging or new data contract.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>

* fix(status): keep incomplete Windows process snapshots unknown

Require readable process identities and command lines before interpreting
no matching Startup process as stopped. Keep positive exact PID matches
and charge completeness validation to the existing inspection deadline.

Reuse the native snapshot owner and cover incomplete Gateway/node rows;
add no logging, native probes or timeout changes.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>

* test(daemon): control status inspection deadline clock

* test(daemon): remove moved platform helper import

* fix(daemon): preserve status refusal and absence contracts

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
* fix(test): verify followup completion ordering

Exercise the real presentation settlement helper with asynchronous cleanup, preserve continuation and admission semantics, and unconditionally release and join the held work. Remote proof covers the strengthened ordering contract and both missing-await faults.

* fix(test): verify followup completion ordering

* chore: retain followup test branch ancestry

The current-main reconstruction preserves the original reviewed scope and supersedes its stale base. Keep the remotely qualified candidate tree unchanged while retaining the original PR ancestry for a non-force branch update.

* commit 'ff35145de21cf6296bec05e86bee37b5ed53bcb8':
  fix(test): verify followup completion ordering

* test(auto-reply): signal queued presentation entry

* chore: refresh followup test on boundary fix

* commit '622be54be3ffe0fce27d6a4b147c76d4b19c528c': (70 commits)
  fix(gateway): preserve typed boxed-number coercion
  chore(ui): refresh control ui locales (openclaw#158689)
  fix(gateway): reset staged headers on authority errors (openclaw#158669)
  fix(workers): keep inbound staging stable during quota scans
  fix: preserve Telegram delivery after bot identity changes (openclaw#158612)
  fix(ui): keep automation starter prompts out of startup (openclaw#158482)
  fix(cli): distinguish configuration read failures from invalid input (openclaw#158671)
  test: remove retired progress coercion suppression allowance
  refactor(gateway): schedule worker placement maintenance (openclaw#158662)
  fix(daemon): keep native service checks within their timeout (openclaw#154565)
  fix(test): restore gateway steering fixture contracts (openclaw#158478)
  fix(acpx): use SDK filesystem publication boundary
  fix(agentsapi): load OpenClaw persona and workspace context (openclaw#158328)
  fix(gateway): drop progress snapshot coercion suppression
  fix(qa): accept native Codex truncation in cache evidence (openclaw#158454)
  fix(gateway): keep chat subscriptions stable during unrelated approvals (openclaw#158633)
  perf(gateway): release event payloads from live text guards (openclaw#158643)
  perf(sessions): reduce stalls when saving large chat messages (openclaw#158402)
  fix(qa): reject history-bearing utility requests without session affinity (openclaw#158496)
  test: allow intentional progress snapshot coercion
  ...

Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL 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.

2 participants