Repository navigation
fix: release checks accept census-window process births - #156
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: blocked before merge. Reviewed September 28, 2026, 4:11 PM ET / 20:11 UTC (Revision 2). ClawSweeper reviewWhat this changesKova’s Linux resource sampler records when a process census begins and uses that boundary to account for late-seen OpenClaw processes, with updated documentation and regressions. Merge readiness⛔ Blocked before merge - 3 items remain Keep open. Current main still uses the post-census clock for process-birth classification, and the revised PR addresses the earlier sampler error-handling finding. The linked release run succeeded, but its process records were unavailable to this review. Priority: P2 Review scores
Verification
How this fits togetherKova samples OpenClaw scenario process trees using Linux process listings and CPU counters. Its resource summary feeds the release evaluator, which blocks qualification when product CPU coverage is incomplete. flowchart LR
A[OpenClaw scenario] --> B[Linux process census]
B --> C[Census start clock]
B --> D[CPU counter snapshot]
C --> E[CPU coverage accounting]
D --> E
E --> F[Resource summary]
F --> G[Release qualification]
Decision needed
Why: The successful run’s metadata does not expose its Kova revision or individual process records, and this review environment could not retrieve its logs. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep strict blocking for genuinely missing CPU history, and verify with a release-shaped Linux trace that the census-start boundary clears only the process-birth race. Do we have a high-confidence way to reproduce the issue? Yes at source level: main takes the process-birth comparison clock after the process listing, and the focused regression models a child first seen in the next census. This review did not execute the live timing race. Is this the best way to solve the issue? Yes. Using a census-start boundary for birth classification while retaining strict rejection of genuinely missing CPU history is a narrow repair; the specific live result still needs confirmation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d69b22099051. 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 (1 earlier review cycle)
|
8da3b23 to
d8cf570
Compare
|
Addressed the P2 sampler-boundary finding on rebased head
Proof:
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Maintainer decision: the release-shaped proof is sufficient. I downloaded
All are product-owned roles ( Artifact/run: https://github.com/openclaw/openclaw/actions/runs/36449470124 |
What Problem This Solves
Fixes: release qualification blocks when a product process starts after a Linux process census begins but first appears in the next census.
User Impact
User impact: Kova no longer rejects a healthy OpenClaw release because
psmissed a process born during its own snapshot, while processes that truly predate the prior census still fail closed without a CPU baseline.Why This Change Was Made
Kova recorded the CPU counter clock only after
pscompleted. A child born after thepssnapshot but before that clock therefore looked older than the prior census when it first appeared one sample later. The sampler now carries the census-start clock separately: process birth classification uses that boundary, existing counter intervals remain unchanged, and the wider boundary applies only to the new process's conservative lower bound.Production delta: +23/-10 across the Linux CPU sampler/accountant. The added state is the existing clock record's discovery boundary; no parallel accounting path or compatibility fallback was added.
Evidence
agent-cold-warm-message, 14/15 records passed. The failed artifact shows PID 62060 starting after the prior census began but before its post-psclock, then being markedcpuHistoryComplete: falseon first appearance.node --test tests/linux-cpu-accounting.mjs --test-name-pattern='process born during the prior census'failsfalse !== trueat the coverage assertion.npm run test:cpu-accounting— 79 total, 58 pass, 21 platform skips, 0 failures.npm run check— 280/280 self-checks plus all component suites pass.