Repository navigation
fix: release checks survive owned process exits - #155
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 6:57 AM ET / 10:57 UTC (Revision 4). ClawSweeper reviewWhat this changesKova’s Linux CPU sampler omits processes that exit before their first counter read, with corresponding test, report-schema, and changelog updates. Merge readiness✅ Ready for maintainer review Keep open for review and landing. Current main still blocks the reported first-glimpse exit. The latest MEMBER comment explicitly accepts first counter observation as Kova’s coverage boundary, resolving the earlier objection as a deliberate release-tooling tradeoff. Priority: P2 Review scores
Verification
How this fits togetherKova samples Linux process and CPU data while running OpenClaw commands. It stores resource samples and uses their coverage status when qualifying performance results. flowchart LR
A[OpenClaw command tree] --> B[Process census]
B --> C[Linux counter reads]
C --> D{Process vanished?}
D -->|No| E[CPU sample]
D -->|Yes| F{Previously measured?}
F -->|No| E
F -->|Yes| G[Incomplete coverage]
E --> H[Release qualification]
G --> H
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep release qualification tied to the accepted counter-observation boundary while preserving incomplete coverage when a previously measured identity disappears. Do we have a high-confidence way to reproduce the issue? Yes. Current main’s source takes the failure path when a role-bearing PID exits between the process census and its first counter read; the PR supplies a focused synthetic case, though this read-only review did not execute it. Is this the best way to solve the issue? Yes for the explicitly accepted coverage contract. The narrow guard retains failure for previously measured PIDs while treating a ps-only row as unaccepted counter evidence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 17304ab9d7aa. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
3883b7c to
e669b86
Compare
|
Addressed the P1 rather than accepting the role-only exception. The current head recovers only OpenClaw's explicit SQLite worker contract (
Focused regressions cover ordinary wait, @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
e669b86 to
448a8b3
Compare
|
One additional owner-ordering hardening is now on Focused wait/no-wait/orphan/startup/unrecognized and existing lost-census tests remain 8/8 green. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Replaced the aggregate-owner recovery rather than waiving the sibling-attribution finding. The FRV artifacts show this is a generic first-glimpse race (
Pre-fix clean-main reproduction throws on the first-glimpse case. Focused tests pass 3/3 (1 platform skip); the CPU suite passes 57/57 with 21 platform skips. Production delta is +1/-1. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Applied the contract-alignment Rank-up move at Maintainer decision for this release tooling: Kova's completeness boundary is the first accepted The no-wait blind spot is real but pre-existing for wholly inter-census work; this PR neither adds nor pretends to solve it. The stricter Fresh focused proof is 3/3 green. Exact-head CI and the real frozen-candidate performance run are active. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Real frozen-candidate proof is now terminal green: https://github.com/openclaw/openclaw/actions/runs/36411738246 Exact identities:
Kova mock-provider release performance, OpenClaw source performance, artifact-only verification, and all dispatched supporting lanes passed. The prior FRV's census-loss blocker did not recur. |
What Problem This Solves
Fixes: stable release qualification is blocked when a product process is visible to the Linux
pscensus but exits before Kova's first/proccounter read.User Impact
Kova treats a never-counter-observed process consistently with product work that starts and finishes entirely between censuses, while a previously tracked process that disappears during collection still leaves CPU coverage incomplete.
Why This Change Was Made
Kova already accounts for fully inter-census short-lived work through the product command tree's waited-child counters. A process merely glimpsed by
pshas no accepted counter identity yet, so making that glimpse fatal imposed a stricter and race-dependent rule on equivalent work. The sampler now retries that first-glimpse disappearance; its existing tracked-PID gate continues to fail closed when an accepted identity is lost.This replaces the earlier SQLite-specific and aggregate-owner recovery completely. There is no command allowlist or ambiguous per-child attribution.
Evidence
ocm status,node --version, git, tar, runtime build tooling, and SQLite workers—not one provider-specific child contract.main@17304abthrowsProduct process exited during CPU collectionfor a role-bearing PID that disappears before its first counter read.LinuxCpuSnapshotChangedError.npm run test:cpu-accounting: 78 total; 57 pass, 21 platform skips, 0 failures.