Skip to content

feat: add process census evidence for retained artifacts - #160292

Merged
steipete merged 8 commits into
mainfrom
upd/upd-handoff-process-census
Sep 30, 2026
Merged

steipete merged 8 commits into
mainfrom
upd/upd-handoff-process-census

Conversation

@steipete

@steipete steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Refs #159897

What Problem This Solves

Update recovery needs evidence that an abandoned updater has no remaining work using its retained artifacts. A dead executor/helper alone cannot establish that.

User Impact

This capability PR supplies the evidence consumed by the stacked lease-owner repair. Existing Doctor and process-group callers retain their decisions; this PR does not clear leases or close the issue.

Windows uses the native Terminal Services PID/SID snapshot to identify protected foreign processes even when OpenProcess is denied. Unreadable same-account processes and unknown owners remain unverified. Windows foreign-account inspection can require Administrator privileges: the census names unresolved PIDs and supplies a same-account Administrator retry instruction for repair. Profile/state overrides must be preserved. Readable artifact references still count regardless of ownership.

Why This Change Was Made

The existing census now matches run IDs and retained paths in argv/cwd, including file URLs, and reports matching and unverified PIDs separately. Native Windows reads provide creation identity, command line, and cwd; the SID snapshot remains allocated until comparisons complete. Kernel-enumerated PIDs absent from the owner snapshot remain unknown. Linux ownership considers real, effective, saved, and filesystem UIDs: any credential matching the updater retains same-account custody, while all-foreign tuples remain foreign.

The rebase preserves main's reclamation changes (#161181), repository-workspace SQL fixes (#161124), current Windows CI lists, and process-group admission check. Main's richer artifact-custody classifier and batched cwd reader remain canonical; the handoff overload consumes that evidence without restoring the retired singular reader. Existing default custody regressions remain alongside the handoff regressions.

Evidence

Prior capability proof at eada642b05e1db67e85bf29dd6727cd32e5db6ae, rebased once onto ece1294b3179e64faabbd901b318cfae821ddbce.

Blacksmith Testbox tbx_01m3q2jag0s225cxcyfqnr1f48 verified the staged tree and source hashes: proof run.

  • Touched suites, Windows-plan tooling test, and direct/one-barrel importers ran once: 1,045 tests passed, one Windows-only skip across 16 files, 158.32 seconds wrapper wall.
  • Core, infra-test, and services-test types passed (49.8 / 44.5 / 44.7 seconds). Focused typed lint passed with zero errors for core files, the planner, and its tooling test. Combined remote command: exit 0.
  • Fresh isolated Codex direct-route P1 review: scoped-clean.
  • After the second fetch, origin/main was f7741c38ce7c2de9e6cddbbd56efd3875964e36b. git merge-tree --write-tree origin/main HEAD exited 0, producing tree dc8633c8bbc7305ccf2f2a80e5d592950c8b85b7.

Windows predictions are 423 / 422 / 422 / 423 / 422 seconds, within main's existing <425 assertion. The planner retains main's timing accumulator and all other files' estimates. Native Windows confirmation remains assigned to this PR's own Windows CI lane. No CI dispatches or reruns were requested; auto-merge remains enabled.

Production/tooling: +358 / −37 = +321 net LOC. Tests: +630 / −9 = +621 net LOC. Package-script edits: +2 / −2. No schema, dependency, config, CLI, environment option, suppression, or baseline changes.

Named follow-up, waived by the lead: pre-existing slow test/scripts/package-acceptance-workflow.test.ts (191.095 seconds) and test/scripts/ci-changed-node-test-plan.test.ts (193.976 seconds; one 33.011-second case). These are unchanged and were not part of this scoped rebase proof.

Closure repair follow-up

Closure repair head: 60e36443040a6ea3760f2e98ee8820f51253c008.

The two closure reds on 7a9a601544bc3eaa250254fd09216c5ea8d4eae2 were PR-caused: the shared census statically imports windows-process-census.ts, but the trusted PR wrapper extraction inventory omitted it. Registering that source at the extraction owner fixes both the missing-closure and extracted-module-resolution failures. This is a one-line manifest correction, with no changed test expectation or closure baseline. The 176-line (7.3 KiB) module preserves the synchronous census API, has only a built-in runtime import, and already loads Koffi and Windows DLLs lazily on the Windows census call. A new asynchronous adapter would unnecessarily change that contract.

On Blacksmith Testbox tbx_01m3qnq58n32eq2qz57xtrgf30 (proof run), each tooling file ran separately with frozen dependencies:

Snapshot eager-import-closure pr-wrapper-source-closure
Original A 2 failed / 14 passed; 24.08 s 1 failed / 2 passed; 2.03 s
Pristine main af4f5f884fbcfe0f5024eda5436bb75046bd1d65 16 passed; 30.09 s 3 passed; 2.08 s
Repaired A 16 passed; 27.99 s 3 passed; 2.06 s

Commands: node scripts/run-vitest.mjs test/scripts/eager-import-closure.test.ts, node scripts/run-vitest.mjs test/scripts/pr-wrapper-source-closure.test.ts, and node scripts/check-changed.mjs -- scripts/pr-lib/wrapper-components.txt. Changed checks passed, including scripts typed lint (0 warnings/errors). The repaired manifest SHA-256 was cbbf4f96818fc81d4bee4e08fdd73e414c86b43330d7057ec5ecfbe2207dc119. Fresh isolated Codex direct-route P1 review: scoped-clean. The Testbox lease was stopped.

Both files were also attempted separately on A and pristine main on the Mac. Those attempts were blocked by stale installed TypeScript (20260917 versus required 20260920, causing api.createSnapshot is not a function) and tsx (4.23.13 versus 4.23.15); the classification above uses the clean Testbox comparison.

The separate compact-large-13 failure was test/vitest/vitest.process.config.ts exited by signal SIGKILL, followed by exit 137, in core-runtime-infra-process-hosted-2 at 22:32:37 UTC. There was no failed assertion. The job log does not identify the signal sender or prove OOM; its cause remains unclassified.

This follow-up adds +1 tooling LOC and zero production or test LOC; A totals +322 net production/tooling LOC. No CI reruns or dispatches. Auto-merge remains enabled.

Windows census fixture repair

Current head: 3d01ea743e141370fa361ff72839be78309d1b50.

The 23 census failures in Windows shard 3 came from inconsistent synthetic filesystem paths. These cases mock Linux process evidence, but node:path retains native Windows semantics. Exact POSIX-only realpath, stat, and package-read overrides therefore manufactured missing scripts or missed intended inspection errors when given drive/backslash paths. The reporter's hard-coded file:///app/reporter.js was also invalid on Windows.

The fixture owner now normalizes paths once at the filesystem mock boundary, before every per-case override, and constructs a native reporter file URL. Production classification and all assertions remain unchanged: readable foreign evidence is a non-holder, retained-artifact aliases are holders, and genuinely unreadable/deleted evidence remains unresolved. The existing classifier catches inspection errors into its closed result union; it does not throw them to its caller.

Blacksmith Testbox tbx_01m3qrttc8df8jkjhxq0reweev (proof run) replayed the exact baseline and corrected file using Windows path/URL semantics on Linux. Temporary emulation was removed and the final source hash verified before final-tree gates:

  • Before: 23 failed / 85 passed, reproducing all 23 native CI failures; 29.24 s wrapper wall.
  • After, Windows semantics: 108 passed, 29.51 s wrapper wall.
  • Final-tree census file: 108 passed, 23.14 s wrapper wall; transform accounted for 97% of Vitest duration.
  • Windows plan tooling file: 7 passed, 5.12 s wrapper wall.
  • node scripts/check-changed.mjs -- src/infra/openclaw-process-census.test.ts: passed, including infra test types (40.2 s), dead-export scans, and typed lint (zero warnings/errors).
  • Fresh isolated Codex direct-route P1 review: scoped-clean.

The test commands were node scripts/run-vitest.mjs src/infra/openclaw-process-census.test.ts and node scripts/run-vitest.mjs test/scripts/ci-windows-test-plan.test.ts. Final census source SHA-256: 34eded43af44c9e834fee98fd9a5019be53920f7e6a3d90e6a538f1ccc49fdba. The Mac single-file attempt was blocked before tests by its stale TypeScript install (api.createSnapshot is not a function). The first Testbox lease, tbx_01m3qrdzy828ef712kg96156a5, stalled fetching baseline history before tests; it was stopped, and the successful comparison used exact baseline bytes from the local Git object instead. Both leases are stopped.

This follow-up changes tests only: +17 / −11, +6 net LOC, with no added test cases or process launches. A remains +322 net production/tooling LOC. Native Windows confirmation remains this PR's own Windows CI lane. No PR CI reruns or dispatches; auto-merge stays enabled.

@clawsweeper

clawsweeper Bot commented Sep 28, 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.

@steipete
steipete marked this pull request as ready for review September 28, 2026 08:35
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 29, 2026, 7:59 PM ET / 23:59 UTC (Revision 13).

ClawSweeper review

What this changes

Adds a host process census that identifies processes referencing retained update artifacts, including native Windows inspection and Linux ownership handling.

Merge readiness

⛔ Blocked before merge - 4 items remain

Current main lacks the handoff census needed by the open update-repair work, so this PR remains useful. A previously reported path-matching defect remains at the current head and blocks merge.

Priority: P2
Reviewed head: 3d01ea743e141370fa361ff72839be78309d1b50

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The branch has focused validation and a native Windows scenario, but the persistent matching defect and pending native result limit readiness.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The repository state identifies a member-authored capability PR. Its Testbox and fixture evidence is supplemental; the native Windows child scenario is coded, but the exact-head Windows lane was still running. No stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The repository state identifies a member-authored capability PR. Its Testbox and fixture evidence is supplemental; the native Windows child scenario is coded, but the exact-head Windows lane was still running. No stored-data contract changes.
Evidence reviewed 7 items Current main boundary: Current main exposes the existing Doctor process check but no handoff-reference overload, so the central capability is not implemented there.
Unresolved introduced match: The raw directory pattern trims trailing separators, but the file-URL pattern is built from the untrimmed value. For a path with a space and trailing slash, an encoded descendant URL matches neither pattern.
False-clean consequence: A readable process with no recognized reference is omitted from both result lists when its command and working directory are available; the stacked repair proposes to use these lists before reclaiming artifacts.
Findings 1 actionable finding [P2] Build file-URL patterns from the trimmed artifact directory
Security None None.

How this fits together

OpenClaw inspects running processes before deciding whether retained update artifacts may be reclaimed. The new census takes a run ID and artifact paths and returns matching or unverified process IDs for the stacked repair flow.

flowchart LR
A[Run ID and artifact paths] --> C[Process census]
B[Host process details] --> C
C --> D[Reference matching]
D --> E[Matching process IDs]
D --> F[Unverified process IDs]
E --> G[Update repair decision]
F --> G
Loading

Before merge

  • Build file-URL patterns from the trimmed artifact directory (P2) - The earlier review's finding remains: pathToFileURL(value) retains a trailing slash while the raw pattern trims it. With a space in the directory, an encoded descendant URL then fails the URL pattern's delimiter check and cannot match the raw pattern, so a live holder can disappear from both census lists. Build both patterns from the trimmed value and add this case at the handoff census boundary.
  • Resolve merge risk (P1) - A false-clean census could let the stacked repair reclaim artifacts while a live process still references them.
  • Resolve merge risk (P1) - The native Windows PID, SID, command-line, and working-directory reader has no completed exact-head Windows result yet.
  • Complete next step (P2) - Correct trailing-separator file-URL matching and add a handoff census regression before merge.

Findings

  • [P2] Build file-URL patterns from the trimmed artifact directory — src/infra/openclaw-process-census.ts:211-215
Agent review details

Security

None.

PR surface

Source +316, Tests +627, Config 0, Other +6. Total +949 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 3 353 37 +316
Tests 4 643 16 +627
Docs 0 0 0 0
Config 1 2 2 0
Generated 0 0 0 0
Other 2 6 0 +6
Total 10 1004 55 +949

Review metrics

Metric Value Why it matters
Implementation and test growth production/tooling +322 net lines; tests +627 net lines The PR explains the production growth as native process inspection and adds substantial boundary coverage.

Root-cause cluster

Relationship: partial_overlap
Canonical: #159897
Summary: This PR supplies process evidence for the reported blocked-update problem; the separate open stacked PR proposes the lease repair.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Correct artifact matching (recommended)
    Use the trimmed directory for both patterns and cover an encoded descendant URL behind a trailing separator before merging.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Build raw-path and file-URL patterns from the same trailing-separator-normalized artifact directory. Add a handoff census regression for an encoded descendant URL, preserving the existing Doctor result contract.

Technical review

Best possible solution:

Make raw-path and file-URL matching use the same normalized directory, then confirm the native Windows census before the stacked repair consumes its result.

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

Yes. Source inspection gives a focused case: provide a trailing-slash artifact directory containing a space and a live process whose only reference is a percent-encoded descendant file URL; this review did not execute it.

Is this the best way to solve the issue?

No. The shared census is the appropriate owner, but its two patterns must normalize the directory consistently before the result can safely guide repair.

Full review comments:

  • [P2] Build file-URL patterns from the trimmed artifact directory — src/infra/openclaw-process-census.ts:211-215
    The earlier review's finding remains: pathToFileURL(value) retains a trailing slash while the raw pattern trims it. With a space in the directory, an encoded descendant URL then fails the URL pattern's delimiter check and cannot match the raw pattern, so a live holder can disappear from both census lists. Build both patterns from the trimmed value and add this case at the handoff census boundary.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 7cf9ad48b8b4.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded internal update-recovery improvement with one concrete matching defect.
  • merge-risk: 🚨 availability: A missed live artifact holder could permit recovery to reclaim files still in use.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The repository state identifies a member-authored capability PR. Its Testbox and fixture evidence is supplemental; the native Windows child scenario is coded, but the exact-head Windows lane was still running. No stored-data contract changes.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs src/infra/openclaw-process-census.test.ts.
  • [P1] node scripts/check-changed.mjs -- src/infra/openclaw-process-census.ts src/infra/openclaw-process-census.test.ts.

What I checked:

  • Current main boundary: Current main exposes the existing Doctor process check but no handoff-reference overload, so the central capability is not implemented there. (src/infra/openclaw-process-census.ts:110, 7cf9ad48b8b4)
  • Unresolved introduced match: The raw directory pattern trims trailing separators, but the file-URL pattern is built from the untrimmed value. For a path with a space and trailing slash, an encoded descendant URL matches neither pattern. (src/infra/openclaw-process-census.ts:214, 3d01ea743e14)
  • False-clean consequence: A readable process with no recognized reference is omitted from both result lists when its command and working directory are available; the stacked repair proposes to use these lists before reclaiming artifacts. (src/infra/openclaw-process-census.ts:237, 3d01ea743e14)
  • Prior finding persists: The preceding ClawSweeper review identified this trailing-separator case. The latest commit changes only the census test file, and the current handoff fixture uses a directory without a trailing separator. (src/infra/openclaw-process-census.test.ts:572, 3d01ea743e14)
  • Windows proof scope: The branch includes a native Windows child-process test, but the exact-head Windows checks were still in progress at review time. The PR body reports Linux Testbox runs and Windows-path emulation, not a completed exact-head native result. (src/infra/windows-process-census.native.test.ts:12, 3d01ea743e14)
  • Feature history: The current-main Doctor classifier and earlier retained-artifact work have merged history by Peter Steinberger; this is routing context, not attribution of the proposed defect. (src/infra/openclaw-process-census.ts:34, f7462d559f11)

Likely related people:

  • steipete: 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.

  • Fix the trailing-separator file-URL match and add the focused handoff regression.
  • Inspect the exact-head native Windows census result when its registered check completes.

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 (12 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-29T07:18:51.995Z sha 9586e1f :: blocked before merge. :: [P2] Normalize artifact paths before creating file-URL patterns
  • reviewed 2026-09-29T09:31:11.541Z sha 9586e1f :: blocked before merge. :: [P2] Build file-URL patterns from the trimmed directory
  • reviewed 2026-09-29T10:22:41.495Z sha 10a8d83 :: blocked before merge. :: [P2] Normalize artifact paths before building file URLs
  • reviewed 2026-09-29T11:51:11.012Z sha 5f74c38 :: blocked before merge. :: [P2] Build file-URL patterns from the trimmed artifact path
  • reviewed 2026-09-29T13:46:17.496Z sha b379b35 :: blocked before merge. :: [P2] Build file-URL patterns from trimmed artifact paths
  • reviewed 2026-09-29T17:33:13.113Z sha eada642 :: blocked before merge. :: [P2] Build file-URL patterns from the trimmed artifact path
  • reviewed 2026-09-29T21:31:06.380Z sha 7a9a601 :: blocked before merge. :: [P2] Build file URLs from the trimmed artifact path
  • reviewed 2026-09-29T23:05:31.482Z sha 60e3644 :: blocked before merge. :: [P2] Build file-URL patterns from the trimmed artifact directory

@steipete
steipete enabled auto-merge (squash) September 28, 2026 08:51
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 28, 2026
@steipete
steipete force-pushed the upd/upd-handoff-process-census branch from f30c47f to 9586e1f Compare September 29, 2026 07:11
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label Sep 29, 2026
@steipete steipete closed this Sep 29, 2026
auto-merge was automatically disabled September 29, 2026 09:21

Pull request was closed

@steipete steipete reopened this Sep 29, 2026
@steipete
steipete force-pushed the upd/upd-handoff-process-census branch from 9586e1f to 10a8d83 Compare September 29, 2026 10:13
@steipete
steipete enabled auto-merge (squash) September 29, 2026 10:18
Use observed whole-file Windows timings and preserve tenth-second precision during shard accumulation. Normalize the POSIX census fixture filesystem paths when the suite runs on Windows.
Read protected Windows process SIDs through the native process snapshot and keep unknown owners conservative with same-account Administrator guidance. Consider all Linux credential UIDs before declaring unreadable work foreign.

Allow the next whole-second Windows shard prediction for the approved 0.4-second census inventory overage; keep estimates, coverage, and job count unchanged.
@steipete
steipete force-pushed the upd/upd-handoff-process-census branch from b379b35 to eada642 Compare September 29, 2026 17:25
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 29, 2026
@clawsweeper clawsweeper Bot removed the rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. label Sep 29, 2026
@clawsweeper clawsweeper Bot added the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Sep 29, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Classification of the three reported reds on head 3d01ea743e141370fa361ff72839be78309d1b50: inherited main-side failures; no A/B source changes or pushes.

The CI checkout was merge d9c0c3203bb7ff75008a0912d513a176ec322c71, whose main parent is 7cf9ad48b8b43c3bea9d4e619406ccbe06d3de7e. The complete cron and heartbeat owner/test paths, fast-lane configs, routing test, and status-overview fixture are unchanged between that main parent and the merge. A did not drop fast-lane registrations; its package-script delta adds only the census/ownership Windows tests.

  • Fast-lane fixture: refactor(commands): deslop commands sixth pass #161202 added theme spies to status-overview-values.test.ts. The fast classifier correctly excludes that stateful fixture, while the old config test still expected it. Main's e0ec544eb1e24ec7c3bc52b1246ef3e5c5e10cbb changes the positive fixture to text-format.test.ts and explicitly checks the status-overview exclusion.
  • Cron fixture completion: test(ci): await heartbeat completion and match candidate authority checks #161455 (5f76cc437dcad38c999a7e9cda89061c8cb0644d) waits for notification wakes before assertions/teardown and joins real-worker heartbeat preflight before advancing fake time. This addresses the undefined prompt/duplicate wake counts and inflated fake-clock busy-poll durations. refactor(cron): keep scratch writes off the Gateway thread #161332 (178d3a597f9f) moved scratch work to the worker; advancing fake time does not join that work.
  • Candidate canary: the reported UpdateRequesterRevokedError remains assigned to UPD as requested; it was not investigated or replayed here.

Linux Blacksmith Testbox tbx_01m3r1wknrcg515fdtvq123dkb: proof run. Both snapshots used their frozen dependencies and verified source trees. Current main was pinned to 9bb19442cebb121c1b066968f106a1e6886f6ad4; the historical merge used a separate physical worktree on the same lease.

Proof Current main Historical CI merge
test/vitest-unit-fast-config.test.ts 16/16 pass; 5.95 s Same 3 failures / 13 passes; 7.03 s
Both requested cron files, pass 1 13/13 pass; 48.27 s Same 6 failures / 7 passes; 53.36 s
Both requested cron files, pass 2 13/13 pass; 48.80 s Same 6 failures / 7 passes; 60.55 s
Both requested cron files, pass 3 13/13 pass; 45.04 s Same 6 failures / 7 passes; 65.28 s

The cron replay used node --import ./scripts/tsx.mjs scripts/ci-run-node-test-shard.mts, with the CI cron config and the two requested files selected in their original plan order: service.failure-alert-notifications.test.ts, then service.heartbeat-busy-poll.test.ts. This was a scoped two-file comparison, not a replay of all 63 files in the original cron group. The fast test used node scripts/run-vitest.mjs test/vitest-unit-fast-config.test.ts. Test wall time was largely compiler/transform setup; the reported 242000 is fake-clock time.

Production/test LOC change: 0/0. No CI reruns, branch refreshes, or auto-merge changes were made.

@steipete
steipete merged commit 9d2ef5e into main Sep 30, 2026
212 of 218 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Landed under the pre-existing-red rule at head 3d01ea7. The remaining CI failures were current main reds in the merge window: test/vitest-unit-fast-config.test.ts (stale expectation, fixed on main by e0ec544), the cron service tests service.failure-alert-notifications / service.heartbeat-busy-poll (fixed on main by 5f76cc4), and src/infra/update-candidate-canary.test.ts (from b36eb3e). None are touched by this PR; every other lane passed with no cancelled jobs. Evidence in the comment above; main hourly 36656835441 is green.

@steipete
steipete deleted the upd/upd-handoff-process-census branch September 30, 2026 02:59
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
…0292)

Process-census capability needed to distinguish a dead managed-service handoff owner from a surviving descendant: a Windows process census (PID, start identity, command line, cwd, owner SID with the foreign-owner rule from the Unix contract), verified Unix UID provenance for incomplete observations, and retained-artifact reference matching that reports matching versus unverified PIDs. Existing callers keep their classification when the new evidence is absent.

Refs openclaw#159897 (the reclaim itself follows in openclaw#160488).

Landed under the pre-existing-red rule: the remaining CI failures were current main reds in the merge window (fast-lane config expectation fixed by 63129bf; cron service tests fixed by d6351b5; update-candidate-canary from 9b07ea0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. 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.

1 participant