Repository navigation
fix(perf): calibrate RSS by Node runtime major - #93
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 2:17 PM ET / 18:17 UTC. ClawSweeper reviewWhat this changesThe PR makes Kova choose RSS limits from the Node major reported by the provisioned Gateway, with calibrated allowances and an absolute fallback ceiling. Merge readinessThe PR is mechanically coherent, but it intentionally relaxes release RSS gates and needs a release-owner decision before merge. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherKova scenarios and surfaces define OpenClaw release-gate thresholds. During final evidence collection, Kova reads the Gateway runtime identity through OCM, resolves the applicable RSS limit, and records the pass/fail result. flowchart LR
A[Release scenario] --> B[RSS baseline configuration]
C[OCM service identity] --> D[Gateway runtime identity]
D --> E[Threshold resolution]
B --> E
E --> F[Record evaluation]
F --> G[Release gate report]
Decision needed
Why: The implementation supports the stated policy, but accepting new release-performance budgets is a maintainer-owned calibration decision. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain target-runtime-based selection, but merge only after a release owner accepts the measured Node-major baselines and their explicit 1200 MB ceiling. Do we have a high-confidence way to reproduce the issue? No. This read-only review did not execute a release-shaped OCM matrix; the PR body provides measurements and the source path is inspectable. Is this the best way to solve the issue? Unclear. Selecting the actual Gateway runtime is the narrow implementation path, but the higher release budgets require maintainer acceptance of the calibration data. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f6b94b49605b. 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)
|
34224a3 to
1c3c12f
Compare
|
Addressed the runtime-identity finding at
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
1c3c12f to
1ce1cf7
Compare
1ce1cf7 to
f32c8e4
Compare
f32c8e4 to
1fe2f40
Compare
|
Fixed: RSS calibration now uses trusted Gateway runtime identity and blocks untrusted evidence. With thanks to @RomneyDa. |
Summary
Root cause
The release gate used one absolute RSS budget calibrated before the current Node runtime line. Same-shape remote runs show this is a runtime-major distinction, not a Node 24 patch regression or process-tree accounting error:
Kova attributes the RSS to the single Gateway PID. Gateway diagnostics show roughly 726–758 MB committed JS heap with 292–355 MB used and about 16 MB external memory. Service-only
--max-old-space-size=512/768did not reduce RSS; disabling compile cache worsened memory and latency; shrinking semi-space only marginally shifted startup RSS while worsening the agent scenario. A product runtime flag is therefore not the owner fix.OpenClaw #127040 at
734ec85eindependently reduced the exact Node 24 path and remains within these calibrated bands: run 32451512897 recorded 1047/1057/1059/1084 MB for fresh/onboarded/bundled/many-plugin, with the agent scenario at 870 MB.Gate behavior
baselineMb: nullin threshold-policy evidenceThis avoids a blind global increase: known runtime lines still fail beyond their measured baseline plus 10%, while every runtime remains subject to the absolute ceiling.
Verification
node bin/kova.mjs matrix plan --profile release --target local-build:/tmp/openclaw-rss-node --jsonnpm run test:snapshots