Repository navigation
chore(ci): cover the compaction subprocess entry in deadcode tests - #199062
Conversation
Keep compaction implementation helpers private and remove the unused serialization wrapper and iterator re-export introduced by #196550. Register the retention subprocess at its exact workspace-relative path and keep its Knip contract and consumer tests in sync. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
Worked on by: - @obviyus - @steipete Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: e832247b-2616-8963-b8f1-773b1a4610e2
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR checks that the agent-core workspace retains the compaction retention subprocess as an explicit full-tree Knip entry. Example: The entry src/harness/compaction/compaction-floor.retention.test-support.ts! is removed from the agent-core Knip workspace.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds useful, focused coverage for an existing analyzer contract, with no actionable defects found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherKnip configuration maps repository files and dynamic subprocess roots into analyzer workspaces; the changed test checks that mapping before CI relies on its deadcode reports. flowchart LR
A[Production workspace configuration] --> B[Full-tree Knip configuration]
C[Path-launched retention probe] --> B
B --> D[Deadcode reports]
E[Workspace contract test] --> B
Technical reviewBest possible solution: Retain the exact-entry assertion and existing workspace guard without adding analyzer machinery or broadening entry globs. Do we have a high-confidence way to reproduce the issue? The final scope is test-only; source inspection confirms the probe is launched by path and its explicit Knip entry already exists on main. Is this the best way to solve the issue? The assertion belongs in the existing workspace-contract suite, uses its established helper, and covers a launch edge outside the compiled-worker registries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2176ca7b07f0. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +12. Total +12 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 HistoryReview history (1 earlier review cycle)
Reviewed November 14, 2026, 1:58 PM ET / 18:58 UTC (Revision 2). |
Require the agent-core workspace alongside the other Knip test owners before reading its entries. Preserve the retention-probe assertion while satisfying strict indexed access after #199062. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
Join the published PR head while preserving the reviewed strict workspace narrowing unchanged. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
Preserve main's independently landed compaction cleanup and its exact subprocess entry. Resolve the budget-test conflict with main's maintained serialization-index test, remove the duplicate entry, and retain the strict agent-core Knip config assertion. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
Worked on by: - @obviyus - @steipete Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 07e47899-ed95-4a04-b86d-578e3523f6d8
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…penclaw#199062) * fix(ci): restore compaction deadcode checks Keep compaction implementation helpers private and remove the unused serialization wrapper and iterator re-export introduced by openclaw#196550. Register the retention subprocess at its exact workspace-relative path and keep its Knip contract and consumer tests in sync. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> * fix(ci): restore compaction deadcode checks Worked on by: - @obviyus - @steipete Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: e832247b-2616-8963-b8f1-773b1a4610e2 * fix(test): narrow the agent-core Knip workspace Require the agent-core workspace alongside the other Knip test owners before reading its entries. Preserve the retention-probe assertion while satisfying strict indexed access after openclaw#199062. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> * Publish openclaw/nova-prawn Worked on by: - @obviyus - @steipete Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 07e47899-ed95-4a04-b86d-578e3523f6d8 --------- Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
Related: #196550
What Problem This Solves
Protects the compaction retention subprocess from silently losing its explicit full-tree deadcode entrypoint.
User Impact
No user-visible behavior change, migration, or required action. This PR now changes only a regression test; production code and analyzer configuration match integrated main.
Why This Change Was Made
Main independently landed the compaction cleanup in f57cf2b6ab1e. The integration preserves that cleanup, main's maintained serialization-index test, and its exact subprocess entry without duplicating them.
The remaining change requires the agent-core Knip workspace before reading its entries and asserts the exact workspace-relative retention-subprocess root. Net scope: one test file, +14/−2; no ignores, broad globs, or baseline growth.
Evidence
583ac47156684c2b32f7ecb5208104401b456e08, pinned maincc201f44c87c16a4d5df3b0a245d7baa7f7f32ba, tree8e7d2bcc76bedb681ad0bf66e62880688c5dbdb8. Managed publication33ffe03b60ceb75a22c996bc8c79b54d8a226bd5has that identical tree; its GitHub diff is exactly the one-file test delta. The guard fixes this PR's TS2532 strict-index error; no inherited-failure exception is claimed.8e7d2bcc76bedb681ad0bf66e62880688c5dbdb8; patch SHA2563b62d3968017c2076c94115dc11cb5a6fea9a4c5116d9e236d4f4a2a7820cdf9matched before and after checks. AWS m7a.xlarge (4 CPUs, 16 GiB), Node 24.22.1, pnpm 12.15.0; frozen install passed. Retained command results were inspected in the originating work session; this publisher verified the identical Git tree, not a local replay.test/tsconfig/tsconfig.test.root.tooling.json: passed, no TS diagnostics (18.9s).cbx_205788a9a664released successfully; task lease inventory verified empty.git diff --checkpassed. The commit changed only metadata from the reviewed/proven candidate tree.1ac07b333581ff06e7d323015dc5912247415d4b; AWS baseline reproduced all three deadcode commands exiting 1 (eight unused export/type pairs plus the live subprocess reported unused). Original AWS candidate, committed as1503998c915266bf0e681a012a66b93f46a74e39, passed all three commands with no findings. The original regression was red on its unpatched parent (1 failed, 30 passed), then green (31 passed); seven consumer files passed, 158 tests total. Those results belong to the original candidate, not the new head.f365073c0596bad80657e3b2c5ef10ef7ce0d82adoes not cover this delta; one fresh re-review was requested, which is not review completion. Current-head CI, ClawSweeper satisfaction before landing, and post-merge natural-main qualification remain separate requirements.Exact fresh AWS check commands
OPENCLAW_LOCAL_CHECK=0 OPENCLAW_CI_STATIC_EVIDENCE=1 node scripts/run-tsgo-core-test-shards.mjs --root-stripe 1/4 CI= OPENCLAW_FORMAT_TOOL=oxfmt node scripts/run-format.mts --check test/scripts/check-deadcode-exports.test.ts CI= OPENCLAW_LINT_TOOL=oxlint node scripts/run-oxlint.mjs --tsconfig test/tsconfig/tsconfig.test.root.tooling.json --threads=1 test/scripts/check-deadcode-exports.test.ts pnpm test test/scripts/check-deadcode-exports.test.ts packages/agent-core/src/harness/compaction/summarization-input-budget.test.ts --maxWorkers=1All commands were timeout-bounded and serialized on the remote box.
Contributor credit: @obviyus and @steipete. Original compaction implementation: @RomneyDa in #196550.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by