Repository navigation
chore: verify capture bytes across catalog expiry cycles - #157660
roboclaw-bot wants to merge 2 commits into
Conversation
Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 73485e46-911c-4890-a2bb-707312579d04
|
🦞👀 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 24, 2026, 7:29 PM ET / 23:29 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch adds physical capture-directory and byte measurements to existing catalog-worker expiry tests and shares that observer with the explicit-refresh test. Merge readiness✅ Ready for maintainer review This PR still adds useful regression coverage that current main lacks. Its real-worker assertions check capture growth that the existing registration-count assertion could miss; they do not claim to fix the separately reported WSL host failure. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw prepares model catalogs in a worker that loads plugins and retains captured plugin files while the worker is active. These tests drive catalog renewal and check the worker's resulting files and published models. flowchart LR
A[Configured agents and plugins] --> B[Catalog worker]
B --> C[Plugin source captures]
B --> D[Provider renewal cycles]
C --> E[Footprint observer]
D --> E
E --> F[Stable capture assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +34. Total +34 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain this worker-boundary regression guard and investigate the affected WSL installation separately through startup and post-ready capture measurements. Do we have a high-confidence way to reproduce the issue? Not applicable to a new product defect: the synthetic worker expiry scenario ran, but it does not reproduce the affected WSL host's capture growth. Is this the best way to solve the issue? Yes. Extending the existing real-worker case observes physical capture retention without adding runtime instrumentation or another worker boot. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3e4adbb6763a. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Consolidated into #157300, preserving the original contributor author/history and explicit coauthor credit. That PR now includes these byte-footprint guards plus scoped reuse coverage, and exact-head CI passed at 24bfdb0 (https://github.com/openclaw/openclaw/actions/runs/36079186069). Closing this redundant proof PR without merging. The affected-host soak in #157568 remains unresolved. |
Related: #157568, #157300, #157459
What Problem This Solves
The catalog expiry regression could miss growth inside a live source capture while its plugin-registration count stayed unchanged.
User Impact
No runtime behavior changes. This strengthens regression evidence for the 2026.9.7 catalog/capture investigation; it does not clear the affected-host soak requirement or establish a general disk/heap quota.
Why This Change Was Made
The existing real-worker expiry test now observes the worker's actual captured entry, requires a nonempty 1 MiB payload, and compares physical capture directory identities, logical bytes, and allocated bytes after each of its three renewal cycles. A shared test helper also preserves the existing explicit-refresh and retirement proof without following linked host SDK trees. No extra worker boots, expiry cycles, timers, or runtime diagnostics are added.
The merged catalog owner already shares unchanged plugin contexts across agents and grows the required plugin set. This PR does not reintroduce the older per-agent/32-registry cache proposal. The affected installation still needs its original configuration measured through startup and a settled post-ready interval, plus working Gateway and local-agent turns.
Requested by @RomneyDa. The expiry capture-identity check also follows the earlier independent validation reported by @goslingmanagment.
Worked on by
Work sessions
Evidence
85bab529911a284b2d0ef2ee102877eb853ab090and candidate tree44b7e537f0847a31f8e0a91dbe7cb1dafba17407before execution; that is also the committed tree infe9bf14872885b92375028f5a22e8c165131e589.Command:
pnpm test src/agents/prepared-model-catalog-worker.captures.integration.test.ts src/agents/prepared-model-catalog-worker.native-renewal.integration.test.ts --maxWorkers=1. Test bodies: 2.007 s expiry and 1.790 s explicit refresh; Vitest 34.94 s including cold compilation, test wrapper 88.25 s including the 45.9 s runtime prerequisite build. Real workers are necessary to observe physical captures and disposal. The one-shot leasetbx_01m3asq2z64xsmwd7wzkxezh4vstopped successfully; its backing Actions job may show cancellation during provider cleanup.The unchanged native-renewal test was blocked locally by the host loopback egress policy; the clean Testbox run above supplies execution proof instead. No full-package upgrade, external Codex heap soak, or WSL/macOS affected-host soak is claimed.
Hosted CI follow-through
Ready-state CI run on head
6b50d7f5be7655b3a8359bf8f7f2971d97f4622afailed test-type and extension-package-boundary checks on the merged main context. Both inspected failure logs reportsrc/infra/package-update-npm-pack.ts(7,15): TS2459becauseUpdateStepResultis imported fromupdate-runner-types.jsinstead of its canonical owner,update-step-result.ts. This file was introduced upstream by48437d6a0ae632548993ef7f213eceeb211f61fband is absent from this PR head. The integration defect remains on main at the latest check; hosted CI is not green. No blind rerun or unrelated source fix is included here.ClawSweeper reviewed this exact head at 23:04 UTC with no actionable findings and marked it ready for maintainer review.
View the OpenClaw team session