Repository navigation
refactor(scripts): deslop scripts - #166083
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 October 6, 2026, 7:38 AM ET / 11:38 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch simplifies repository scripts and end-to-end harnesses by consolidating repeated logic, inlining private forwarding helpers, and removing narrating comments. Merge readiness⛔ Blocked before merge - 2 items remain The cleanup remains distinct from current main, and source review found no actionable introduced defect. The earlier generic compatibility blocker is unsupported; the failed required CI gate remains unresolved without proven attribution. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s repository scripts turn source, package metadata, and operator inputs into builds, validation plans, release evidence, and test results. These changes simplify that tooling while preserving its existing contracts. flowchart LR
A[Source and package metadata] --> C[Repository scripts]
B[Operator and CI inputs] --> C
C --> D[Validation and planning]
D --> E[Build and release artifacts]
D --> F[Test results and evidence]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the scripts simplification with existing validation, cleanup, publication, and compatibility owners intact, using the normal exact-head landing gates. Do we have a high-confidence way to reproduce the issue? Not applicable to the cleanup itself. The hosted benchmark failure is documented, but its baseline replay did not reproduce it and this read-only review did not execute tests. Is this the best way to solve the issue? Yes: consolidating equivalent private logic into existing owners is a maintainable cleanup, and the inspected removals preserve their owning invariants. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 78e8de276bd2. 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
History |
|
Review disposition for The automated review reported no actionable source finding. Its compatibility notices refer to an incomplete file inventory; the complete candidate has 240 scripts-only files and preserves the existing config, persisted-data, and protocol shapes. In the specifically flagged paths, The first hosted run did find two contracts missed by the selected pre-push proof: timing-result type inference and a restart-test source delimiter. Both files were withdrawn entirely, without changing tests. The correction passed 49 targeted tests, the exact failing TypeScript project, both zero-cycle checks, and fresh independent review. The corrected-head hosted run is in progress. |
|
Merged via squash.
|
* refactor(scripts): deslop scripts * fix(scripts): preserve existing timing and restart contracts
Preserve the tested pinned-P unit from 9961d25. Source lineage: #178179, #179112, #174693, #166083 and #172883. No registry or release publication. Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Repository scripts repeat private forwarding layers, already-completed normalization, equivalent control flow, and comments that only narrate the implementation.
User Impact
No intended user-visible change. CLI flags, environment variables, output, error messages, exit codes, release evidence, and cleanup behavior remain unchanged.
Why This Change Was Made
This is one accumulated scripts cleanup batch, with 1,707 net lines removed: 1,297 from script tooling and 410 from E2E harnesses. Existing test suites are unchanged.
The PR tooling and its runtime closure, generated files, and files occupied by other deslop work were excluded. No dependencies, public SDK contracts, config/schema shapes, baselines, or suppressions changed.
Evidence
go -C scripts/docs-i18n test ./...passed (Go 1.27.1).node scripts/run-tsgo.mjs --noEmit -p test/tsconfig/tsconfig.test.root.tooling.json, plus fresh independent review. Both originally failing jobs passed on the corrected head. Exact-head CI attempt 2 is green; the earlier failure and diagnostic retry are recorded below.CI investigation and final result
Exact head
fa4c373681e5f0e628a6b6256bf5468a7ccf3f52completed CI run 37453548755, attempt 2 successfully. The paginated pre-merge census found no failed or pending check runs.Attempt 1 failed
checks-node-compact-small-10-2and therefore the aggregate gate.test/scripts/bench-gateway-installed.test.ts:435(retains settled launches and state in a single cohort) receivedEPROCESSGROUP_CLEANUP_FAILED: “Managed command exited while its process group remained active”, followed by eventualprocessTreeState: terminated, under the pinned Bun build. The error is emitted by unchangedscripts/lib/managed-child-process.mts, inside the lane's excluded PR-tooling closure. The installed route's only changed dependencies remove two narration comments; the changed live-evidence logic is not loaded.Twenty clean-base repetitions at
4304c49a8ea76c6f165115fc9502d70c5e56a224, with exact CI Bun revision1.4.3-canary.1+667c4ab22, passed. On resumption, current-main inspection found no owner repair or matching hosted baseline failure. One diagnostic rerun of the exact failed hosted jobs then passed on the unchanged PR head. This is not claimed as a source fix; the original process-settlement event remains a tooling follow-up. No inherited-red or admin exception is used.Historical cancelled
PR context and evidenceanddispatchautomation runs have successful same-head replacements (runs 37456112770 and 37456112805). No test job lacks completed proof.