Repository navigation
Conversation
Keep the catalog pool’s existing 512 MiB old-generation allowance and add an explicit 32 MiB young-generation allowance in the same owner policy. Extend existing custody coverage to verify both limits on the native Worker. The two custody cases fail before this change at the young-generation limit (192 rather than 32 MiB) and pass afterward. All 31 existing catalog, custody, and workspace-heap cases pass. Fresh P0-P2 review is scoped-clean. The scoped changed gate fails only on the inherited, untouched Talk ClientVoiceToolEffect unused export; all nine unreached planned commands pass independently. No unrelated exports, limits, or baselines change. Single-pair release-branch RSS diagnostics support this policy; strict Linux performance qualification remains with the release campaign.
|
🦞👀 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. What this changesThe PR gives model-discovery workers a 32 MiB young-generation heap allowance while retaining their existing 512 MiB old-generation allowance. Review scores
ProductKind: Performance · Worth it: Needs a maintainer decision Merge readiness⛔ Blocked before merge - 2 items remain Keep open: this maintainer-authored PR contains a focused optimization absent from current main, with no concrete correctness defect found. Selecting the new heap allowance needs the catalog area owner's decision. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherOpenClaw discovers available models in a background worker so plugin loading does not block the Gateway. Gateway and standalone catalog owners use the same pool to send discovery requests and receive model and authentication facts. flowchart TD
A[Gateway catalog requests] --> C[Catalog pool owner]
B[Standalone catalog requests] --> C
C --> D[Apply worker heap allowances]
D --> E[Background model discovery]
E --> F[Model and authentication facts]
Technical reviewBest possible solution: Keep heap budgeting in the existing catalog-pool owner and adopt the measured young-generation allowance if the area owner accepts its capacity tradeoff. Do we have a high-confidence way to reproduce the issue? Not applicable to a performance-policy proposal; the body reports native-worker before/after checks and a real Gateway memory comparison, which this read-only review did not rerun. Is this the best way to solve the issue? Yes for implementation placement: the shared catalog-pool owner is the narrowest path and covers both production callers; whether 32 MiB is the desired allowance remains an owner choice. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 35c70e08c7d6. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource 0, Tests +3. Total +3 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 8, 2026, 5:28 PM ET / 21:28 UTC. |
What Problem This Solves
Model discovery can retain an oversized young-generation heap in its catalog worker on high-memory hosts.
User Impact
Bounds the catalog worker’s young-generation allowance to 32 MiB while preserving its existing 512 MiB old-generation allowance. No config changes, migrations, worker-count changes, or lifecycle changes.
Why This Change Was Made
The existing catalog pool owns both native heap limits. The existing custody test verifies those limits on the actual Worker for configured Gateway and standalone owners.
Evidence
pnpm test <file> --maxWorkers=1run took 92.36 s including a fresh runtime build and compiled workers; Vitest duration was 14.72 s. No new test or fixture was added. Hosted CI seconds are not yet available.ClientVoiceToolEffectunused export. Its file is byte-identical to the pinned main baseline; this patch changes no import/export edges. All nine unreached planned commands pass separately, including targeted two-file type-aware lint. No unrelated export, baseline, or guard change is included.Draft only; not submitted for merge. Strict release qualification remains owned by the release campaign.