Skip to content

refactor: deslop wave-6 residues (tooling) - #174693

Merged
steipete merged 1 commit into
mainfrom
deslop/bundle-w6d-tooling-20261016
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
deslop/bundle-w6d-tooling-20261016

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes duplicated tooling setup, parsing, and publication-verification recipes from the maintainer-requested wave-6 residue bundle.

User Impact

Tooling preserves its accepted command-line grammar, locked CLI versions, workflow outputs, release verification, and generated database artifacts. Disposable test/profiling children consistently use isolated home and state paths. This PR does not publish a release or change a dependency, protocol, schema, retention, durability, or operator configuration.

Why This Change Was Made

Parts: reuse the existing smoke-environment owner and CLI argument parser; centralize pinned CLI materialization and multi-platform Docker version inspection; consolidate equivalent publication parsers and Workboard/Logbook PostgreSQL generation; reuse canonical command/topology metadata; retain the corresponding fixture closures and boundary regressions.

51 files, +652/-606 overall; 238 net production lines removed. Added test coverage accounts for the overall 46-line increase. Main's refreshed Vercel lock hash is preserved in the entrypoint and its fixture; neither dependency pins nor generated schema artifacts change.

Best-effort tradeoffs accepted: no new publication or database tradeoff. Existing command grammar, first-platform missing-manifest handling, timeout differences, rollback checks, and effect-time write authority remain. Disposable fixture children receive consistent HOME, OPENCLAW and XDG paths rather than inheriting operator state selectors.

Credited lanes: z17, z04, z21, z16, z18, and z08/z10/z13. Related: #174325. Release-note context: remove duplicate internal tooling recipes while preserving published outputs and improving fixture isolation.

Evidence

  • Pinned materializer: 5/5 tests through real shell entrypoints with synthetic npm; tests 3.662s, Vitest 28.51s, wrapper 61.85s. Covers disabled lifecycle scripts, lock/integrity/version checks, private modes, workflow outputs, and mandatory Sandbox executable.
  • Current Vercel lock SHA-256 independently verified. The PostgreSQL generator source matches the earlier 21-case artifact-equivalence proof. Fresh main expanded the independent SQLite input catalog (legacy-state, credentials, FTS, and vector fixtures), so that earlier result is historical source evidence, not proof of the expanded current input set; exact-head CI owns current catalog/conformance coverage.
  • Full source/caller inspection, formatting and whitespace checks passed. Independent P0-P2 review completed scoped-clean after frozen-source verification. Remaining touched-test and broad proof belongs to exact-head CI.
  • Exact-head PR CI owns broad types/builds/E2E. No release command, external publication, broad local build or E2E was run.

@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling labels Oct 16, 2026
@steipete
steipete marked this pull request as ready for review October 16, 2026 21:24
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T21:27:48.291108Z 011a1fb Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates duplicated tooling helpers and applies the existing isolated environment setup to disposable child processes.

Example: Run extension-memory profiling with OPENCLAW_STATE_DIR=/home/alex/.openclaw and a temporary home of /tmp/profile-42.

  • Before: The profiling child can retain the inherited OpenClaw state selector.
  • After: The child uses /tmp/profile-42/.openclaw and matching isolated home, config, and XDG paths.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The useful consolidation has no identified correctness blocker; confidence rests on focused fixtures, source equivalence, and completed CI checks rather than live release execution.
Proof confidence 🦐 gold shrimp (3/6) The ordinary contributor proof gate does not apply to this maintainer-authored refactor; supplied shell-entrypoint fixtures use synthetic npm, and source inspection confirms preserved contracts without claiming live publication proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Duplicated maintainer tooling recipes can drift, and disposable diagnostics can inherit operator state selectors.
Reason: The maintainer author supplies direction, and the patch reduces production duplication while extending an existing isolation contract without adding operator configuration.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-directed consolidation has clear maintenance value, and no concrete introduced defect was found; the exact-head CI gate remains pending.

Priority: P3
Reviewed head: 011a1fb1f2598602568f086c9fb56d97f9cece92

Before merge

None.

Findings

None.

Agent review details

How this fits together

Maintainer scripts consume CLI arguments, pinned tool manifests, image metadata, and canonical schemas to run diagnostics, verify publication inputs, and generate artifacts.

flowchart TD
  A[Maintainer commands and workflows] --> B[Script entrypoints]
  B --> C[Shared argument and metadata helpers]
  B --> D[Isolated child environments]
  B --> E[Pinned CLI and image verification]
  B --> F[Schema artifact generation]
  D --> G[Disposable runtime processes]
Loading

Technical review

Best possible solution:

Retain the shared owners and complete the existing exact-head CI gate before landing.

Do we have a high-confidence way to reproduce the issue?

This is a refactor rather than a reported product defect; source inspection confirms the inherited-selector isolation improvement, and no target code was executed during review.

Is this the best way to solve the issue?

The consolidation fits existing ownership boundaries and preserves the inspected command grammars, publication safeguards, and generated database formats.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b0679a229ced.

Provenance checked

  • Disposable child environments keeps the original intent (7caee97: Prevent built smoke runtimes from inheriting operator home, OpenClaw state/config, and XDG paths.)
  • Pinned ClawHub CLI materialization keeps the original intent (fix(release): publish ClawHub bootstrap artifacts immutably #103809: Materialize trusted pinned tooling without exposing publication credentials to target-controlled setup; the later npm 12 fix requires npm ci from the copied project directory.)
  • Vercel materialization and image inspection keeps the original intent (ci: mirror Docker release images to Vercel registry #120058: Mirror exact release images with locked tooling, immutable digest handoff, platform verification, and independent Vercel publication.)
  • Docker version and rollback inspection keeps the original intent (fix(release): publish extended-stable Docker channels safely #112494: Prevent moving release aliases backward or promoting incomplete and mismatched image sets; the later shared parser preserves contextual label validation.)
  • Workboard and Logbook schema generation keeps the original intent (feat(logbook): PostgreSQL support #172842: Generate plugin-owned PostgreSQL DDL and exact port metadata while preserving Logbook allocation semantics and SQLite defaults.)
  • Maturity CLI parsing keeps the original intent (27711b5: Provide the maturity renderer; the replacement retains split-value options, repeated-option behavior, help, and strict incomplete-evidence defaults.)
  • Publication and Mantis argument parsing keeps the original intent (fix(release): publish ClawHub bootstrap artifacts immutably #103809: Publication tooling requires deterministic option parsing and immutable artifact verification; the extracted parsers preserve their respective existing grammars.)
  • Release-note parsing and canonical metadata keeps the original intent (336e43c: Converge release-note rendering on one pipeline; parser behavior and command/report inventories remain equivalent, and startup metadata now includes the canonical help inventory in its signature.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Introduced change reviewed: Reviewed the verified merge-base-to-head hunks and original content, separating PR edits from base movement; the recorded synthetic merge contains the same changed paths. (011a1fb1f259)
  • Repository policy applied: Read the complete root, scripts, and test policies; no other changed-path ancestor policy or maintainer-notes directory exists, and the checkout remains clean. (AGENTS.md:1, 011a1fb1f259)
  • Pinned tool safeguards preserved: The shared materializer retains the lock digest, package integrity, installed version, executable checks, private modes, disabled lifecycle scripts, and workflow outputs; workflows obtain it from their trusted tooling checkout before exposing publication credentials. (scripts/lib/materialize-pinned-cli.sh:17, 011a1fb1f259)
  • Docker behavior preserved: The extracted inspection retains amd64-before-arm64 ordering, first-platform-only missing-manifest handling, version agreement, and subprocess options; Vercel callers explicitly retain their longer timeout, and effect-time Docker write authority remains at the existing owner. (scripts/lib/docker-release-policy.mjs:88, 011a1fb1f259)
  • No database migration required: The generator consolidation preserves source schemas, versions, statement construction, metadata serialization, and Logbook's sqlite_sequence exception; committed SQL and port artifacts are unchanged, and existing tests compare both generated families against those artifacts. (test/scripts/generate-postgres-schema.test.ts:118, 011a1fb1f259)
  • Existing isolation owner: Commit 7caee97 introduced the shared environment owner specifically to prevent inherited home, state, config, and XDG selectors from reaching smoke runtimes; this PR extends that existing contract to additional disposable children. (scripts/lib/build-smoke-env.mts:3, 7caee97bb42c)

Likely related people:

  • Peter Steinberger: Raw commit 7caee97 adds scripts/lib/build-smoke-env.mts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7caee97bb42c; files: scripts/lib/build-smoke-env.mts)

PR surface

Tests +284, Other -238. Total +46 across 51 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 7 322 38 +284
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 44 330 568 -238
Total 51 652 606 +46

Review metrics

Metric Value Why it matters
Production versus test LOC Production +330/-568; tests +322/-38 Production shrinks by 238 lines; added shell-entrypoint and environment-isolation coverage explains the test growth.

Labels

Label changes:

  • add P3: This is internal tooling consolidation with no established released-user regression or urgent operational failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is internal tooling consolidation with no established released-user regression or urgent operational failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 16, 2026, 5:42 PM ET / 21:42 UTC.

@steipete

Copy link
Copy Markdown
Contributor Author

Landing reviewed head 011a1fb under coordinator rule 10.

Exact-head CI 38969151251 completed successfully, including PostgreSQL conformance, build, affected script tests, production/test types, lint, boundary checks, and security-fast. Both current CI gate projections and independent dependency/security-sensitive reviews are successful. The frozen independent review is scoped-clean, the published area is patch-identical, and current Codex and ClawSweeper reviews report no findings. No CI rerun or prior-head waiver is used.

The bundle's native submission path already failed twice operationally: a foreign operation-lock object fetch failure, then GitHub's definitive Base branch was modified rejection followed by reconciliation refusal. The attempts and finalized reconciliation are recorded on core PR #174527. Coordinator rule 10 authorizes the guarded REST squash fallback for this shared submission path; this is not a check, security, or review waiver.

Fresh same-writer authority, branch policy, security statuses, review state, and exact PR head are checked immediately before dispatch. The request is guarded by the full reviewed head SHA, and the resulting squash will be verified against freshly fetched main ancestry. No release, dependency update, schema migration, or live Gateway change is included.

@steipete
steipete merged commit c79071d into main Oct 16, 2026
199 of 200 checks passed
@steipete
steipete deleted the deslop/bundle-w6d-tooling-20261016 branch October 16, 2026 22:14
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
RomneyDa added a commit that referenced this pull request Oct 28, 2026
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]>
RomneyDa added a commit that referenced this pull request Oct 29, 2026
…ici (#187306)

* fix(release): pin beta ClawHub CLI to patched Undici

Adapt only the ClawHub override and node_modules/undici lock metadata
from the already-fixed main tree ed4c9d4
(#185194). Source author: RoboClaw <[email protected]>.
The pin actually originated in f6c2aec
(#182010), also authored by RoboClaw; ed4c9d retains it unchanged.

Refresh only the standalone materializer's lock digest. Do not import
c79071d / #174693 shared-helper refactoring, workflows, build isolation,
root dependency locks, or unrelated private-export changes. The new
node:test security regression is a local release-line adaptation.

Source-Commit: ed4c9d4
Source-PR: #185194
Original-Pin-Commit: f6c2aec
Original-Pin-PR: #182010
Co-authored-by: RoboClaw <[email protected]>
Co-authored-by: RomneyDa <[email protected]>

* test: register ClawHub security regression with tooling runner

Keep the standalone materializer success and tamper checks under the canonical Vitest owner so bounded PR preflight can discover them.

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RoboClaw <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant