Skip to content

fix(pr): unify worktree source checks and suppress automatic repacks - #150399

Merged
steipete merged 1 commit into
mainfrom
codex/pr-disable-auto-maintenance-20260916
Sep 17, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/pr-disable-auto-maintenance-20260916

Conversation

@steipete

@steipete steipete commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes supervised PR operations starting incidental Git repacks, and keeps copied worktree sources complete as helper imports change.

User Impact

Maintainer tooling avoids automatic repository maintenance during supervised operations. Explicit Git maintenance still runs and finishes before the operation releases its lock. Cold preparation copies the required original source files, and wrapper validation rejects duplicate inventory entries.

Why This Change Was Made

The existing supervisor appends maintenance.auto=false and gc.auto=0 to its inherited process configuration. Both copied-source checks now use the shared eager-import scanner from #150465: the wrapper checks its extracted inventory, while cold preparation derives dependencies from its entrypoints. The superseded scanner and callers are removed. The missing source entries are already on main; this delta removes one duplicated inventory entry.

This consolidates #150465's tooling changes here while leaving its separate file-preview UI change in that PR. All included source contributions are by Peter Steinberger.

Evidence

  • All 45 maintenance, plain-Node import, and cold-preparation tests pass, including all 37 cold-preparation cases. The extracted inventory/duplicate guard and native cold-provisioning case also pass: 47 selected tests total.
  • Real Node execution confirms that declaration-level type imports/exports disappear while inline type-only clauses retain runtime dependencies. The original parallel scanner failed both inline-type cases; the shared owner preserves those dependencies.
  • Fresh whole-candidate Codex review is clean through P2. The adopted tooling and maintenance files retain their reviewed source bytes.
  • Selected changed-file checks and git diff --check pass.
  • An earlier full operation-lock run recorded 139 passes, one 10-second timeout, and one platform skip. That same case later passed under its unchanged deadline; the original failure remains recorded and is not claimed to be unrelated or flaky. Exact-head hosted CI and native preparation remain pending.

@clawsweeper

clawsweeper Bot commented Sep 17, 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 size: XS maintainer Maintainer-authored PR labels Sep 17, 2026
@steipete
steipete marked this pull request as ready for review September 17, 2026 00:23
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 12:09 AM ET / 04:09 UTC (Revision 9).

ClawSweeper review

What this changes

Suppresses automatic Git maintenance during supervised PR operations and shares dependency scanning between copied-source tests, including duplicate inventory checks.

Merge readiness

✅ Ready for maintainer review

The PR remains useful: current main still permits incidental automatic maintenance. The earlier consolidation concern is resolved, and no blocking introduced defect was found.

Priority: P2
Reviewed head: 4d414d9dd9e98374e1a4984042f78e9a29372bde

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with meaningful boundary coverage and no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a maintainer-authored internal tooling PR, exempt from the external proof gate; reported checks exercise the supervisor with real Git and import semantics with plain Node, with no reviewer execution claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a maintainer-authored internal tooling PR, exempt from the external proof gate; reported checks exercise the supervisor with real Git and import semantics with plain Node, with no reviewer execution claimed.
Evidence reviewed 8 items Current main still needs the maintenance change: Fetched main disables maintenance detachment but does not set maintenance.auto=false or gc.auto=0; the PR adds these settings to the existing child environment.
Latest release comparison: The v2026.9.4 supervisor likewise contains only the two autoDetach settings, so that release does not contain the proposed automatic-maintenance suppression.
Maintenance and lock regression coverage: The inspected tests invoke the production supervisor with real Git, check that fetch and automatic GC do not invoke maintenance, preserve repository configuration, and retain explicit-GC completion and failed-operation lock assertions.
Findings None None.
Security None None.

How this fits together

OpenClaw’s PR tooling supervises maintainer commands and holds operation locks until their work completes. Its provisioning tests check that copied worktree sources contain the runtime dependencies those commands need.

flowchart TD
  A[Maintainer PR command] --> B[Operation supervisor]
  B --> C[Inherited Git settings]
  C --> D[Automatic maintenance suppressed]
  B --> E[Explicit work completes before lock release]
  F[Copied source entrypoints] --> G[Shared dependency scanner]
  G --> H[Inventory and cold preparation checks]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +63, Docs 0, Other 0. Total +63 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 135 72 +63
Docs 2 2 2 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 4 4 0
Total 9 141 78 +63

Review metrics

Metric Value Why it matters
Production versus test growth Production/tooling net 0 lines; tests/support +63 lines The added coverage checks real Git lifecycle and Node import semantics while consolidating the existing scanner.

Technical review

Best possible solution:

Keep maintenance suppression in the existing supervisor and one shared scanner for copied-source coverage, while preserving explicit maintenance completion and caller configuration.

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

Yes, from source: current main permits automatic GC when Git’s thresholds are met, and the inspected fixture constructs that condition through the production supervisor. This review did not execute it.

Is this the best way to solve the issue?

Yes. Extending the existing inherited configuration preserves repository settings, and sharing the scanner removes competing dependency checks without changing production provisioning.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded maintainer-tooling reliability improvement affecting supervised Git operations and provisioning checks.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies a maintainer-authored internal tooling PR, exempt from the external proof gate; reported checks exercise the supervisor with real Git and import semantics with plain Node, with no reviewer execution claimed.

Evidence

What I checked:

  • Current main still needs the maintenance change: Fetched main disables maintenance detachment but does not set maintenance.auto=false or gc.auto=0; the PR adds these settings to the existing child environment. (scripts/pr-lib/process-group-runner.mjs:239, 1adc86b88cf2)
  • Latest release comparison: The v2026.9.4 supervisor likewise contains only the two autoDetach settings, so that release does not contain the proposed automatic-maintenance suppression. (scripts/pr-lib/process-group-runner.mjs, 3a9d69db306c)
  • Maintenance and lock regression coverage: The inspected tests invoke the production supervisor with real Git, check that fetch and automatic GC do not invoke maintenance, preserve repository configuration, and retain explicit-GC completion and failed-operation lock assertions. (test/scripts/pr-git-maintenance.test.ts:119, 4d414d9dd9e9)
  • Consolidation and prior feedback: Both copied-source checks use collectEagerRuntimeImportClosure. The inventory assertion remains in the existing provisioning test, resolving the historical consolidation finding; the four new cases independently compare type-import behavior with plain Node. (test/scripts/eager-import-closure.test-support.ts:5, 4d414d9dd9e9)
  • Compiler dependency contract: The scanner directly uses TypeScript 6.0.3. Its inspected import transformer removes declaration-level type imports while preserving empty named imports under verbatimModuleSyntax, which the target enables. The v6.0.3 tag resolves to the recorded dependency SHA. (src/compiler/transformers/ts.ts, 050880ce59e3)
  • Existing supervisor history: Current-main history includes the earlier maintenance-lifetime implementation. GitHub’s commit patch confirms the inherited Git-configuration transport was added there; this PR extends that owner without changing lock-release authorization. (scripts/pr-lib/process-group-runner.mjs:245, 2d2a13e4732d)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (8 earlier review cycles)
  • reviewed 2026-09-17T00:29:15.664Z sha b514894dbd952b4267ec78b42af71dda30b0f494 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T01:16:59.506Z sha a2321921db0bbbf6fbcfec99ff01bcb401a9bff5 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T02:04:45.097Z sha 4a137f1 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T02:20:51.496Z sha cc36bea400fdc86164611d97b1df330ac7bcc058 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T02:36:57.617Z sha 4a6bce78824119f5685f3a0ceab2f8a74cdc98d8 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T02:48:25.326Z sha 4a6bce78824119f5685f3a0ceab2f8a74cdc98d8 :: needs changes before merge. :: [P2] [P2] Consolidate the closure check into an existing provisioning test
  • reviewed 2026-09-17T03:11:21.130Z sha 64a66f0fd9321c89eb03d8472895c6961fa6eb2e :: blocked before merge. :: none
  • reviewed 2026-09-17T03:51:28.092Z sha 584a7517bbaab5f1e5bbd3640ebd83bdbfc7155e :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/pr-disable-auto-maintenance-20260916 branch 2 times, most recently from a232192 to 4a137f1 Compare September 17, 2026 01:47
@steipete steipete changed the title fix(pr): prevent automatic repacks during PR transactions fix(pr): restore wrapper provisioning and suppress automatic repacks Sep 17, 2026
@steipete
steipete force-pushed the codex/pr-disable-auto-maintenance-20260916 branch from 4a137f1 to cc36bea Compare September 17, 2026 02:10
@steipete
steipete force-pushed the codex/pr-disable-auto-maintenance-20260916 branch from cc36bea to 4a6bce7 Compare September 17, 2026 02:26
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 17, 2026
@steipete
steipete force-pushed the codex/pr-disable-auto-maintenance-20260916 branch from 4a6bce7 to 64a66f0 Compare September 17, 2026 03:00
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 17, 2026
Retain the supervised maintenance fix from #150399 and consolidate the
shared eager-import scanner, cold fixture, and duplicate-inventory guard
from #150465. Keep inline type dependency proof tied to real Node execution.

Source contributions: 3d1929b27385d8f86f09ce639395d67758c955b6 and
be6baf02f277466c75e4faef543a42c698b82dc1.
@steipete
steipete force-pushed the codex/pr-disable-auto-maintenance-20260916 branch from 64a66f0 to 584a751 Compare September 17, 2026 03:25
@steipete steipete changed the title fix(pr): restore wrapper provisioning and suppress automatic repacks fix(pr): suppress automatic repacks during PR transactions Sep 17, 2026
@steipete
steipete force-pushed the codex/pr-disable-auto-maintenance-20260916 branch from 584a751 to 4d414d9 Compare September 17, 2026 04:03
@steipete steipete changed the title fix(pr): suppress automatic repacks during PR transactions fix(pr): unify worktree source checks and suppress automatic repacks Sep 17, 2026
@steipete
steipete merged commit 68663e6 into main Sep 17, 2026
155 of 156 checks passed
@steipete
steipete deleted the codex/pr-disable-auto-maintenance-20260916 branch September 17, 2026 04:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 17, 2026
Let the verified anchor child complete and validate its package pins when an
older parent hands it an incomplete dependency context. Preserve pinned real
package directories and bootstrap older anchors against their own manifest.

Extend the extracted-source guard to cover pinned bare imports, package export
subpaths, and copied workspace aliases. Keep the inventory repair with #150399.

Refs: #149585, #133913, #150312, #150399.
steipete added a commit that referenced this pull request Sep 17, 2026
Bind the TypeScript resolution host to the selected closure root so alias
lookups cannot fall back to the calling checkout during anchor validation.

Refs: #150399, #150504.
steipete added a commit that referenced this pull request Sep 17, 2026
Let the verified anchor child complete and validate its package pins when an
older parent hands it an incomplete dependency context. Preserve pinned real
package directories and bootstrap older anchors against their own manifest.

Extend the extracted-source guard to cover pinned bare imports, package export
subpaths, and copied workspace aliases. Keep the inventory repair with #150399.

Refs: #149585, #133913, #150312, #150399.
steipete added a commit that referenced this pull request Sep 17, 2026
Bind the TypeScript resolution host to the selected closure root so alias
lookups cannot fall back to the calling checkout during anchor validation.

Refs: #150399, #150504.
steipete added a commit that referenced this pull request Sep 17, 2026
* fix(pr): give materialized wrappers their dependency context

Let the verified anchor child complete and validate its package pins when an
older parent hands it an incomplete dependency context. Preserve pinned real
package directories and bootstrap older anchors against their own manifest.

Extend the extracted-source guard to cover pinned bare imports, package export
subpaths, and copied workspace aliases. Keep the inventory repair with #150399.

Refs: #149585, #133913, #150312, #150399.

* test(pr): resolve workspace aliases within the extracted root

Bind the TypeScript resolution host to the selected closure root so alias
lookups cannot fall back to the calling checkout during anchor validation.

Refs: #150399, #150504.
steipete added a commit that referenced this pull request Sep 17, 2026
Join the fixture owner before releasing its held handshake so loaded
runners cannot fail on a 1,000 ms polling deadline. Cover failures before
and after question registration and retain cleanup on test cancellation.

Related: #150399
steipete added a commit that referenced this pull request Sep 17, 2026
Protect deferred file-preview English fallback registration through a direct modal import. Assert that preview-only copy stays out of startup, becomes available when the modal loads, and preserves the selected German translation and shared Support files label.

The canonical runtime owner already landed in #150420; the wrapper manifest-discovery and dependency-context fixes are on main through #150399 and #150504. This change adds only regression coverage: production/tooling 0 lines, tests +32/-0. No runtime or visible UI change.

Validation: r3 Codex review scoped-clean; exact-head ClawSweeper review without findings; native CI watcher GREEN for run 35196349026 on 243bc15. The existing PR evidence records the successful changed checks and the separate, unchanged local wrapper timeout cases; the test-only hosted run does not claim to rerun those cases.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
…penclaw#150399)

Retain the supervised maintenance fix from openclaw#150399 and consolidate the
shared eager-import scanner, cold fixture, and duplicate-inventory guard
from openclaw#150465. Keep inline type dependency proof tied to real Node execution.

Source contributions: 3d1929b27385d8f86f09ce639395d67758c955b6 and
be6baf02f277466c75e4faef543a42c698b82dc1.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
…w#150504)

* fix(pr): give materialized wrappers their dependency context

Let the verified anchor child complete and validate its package pins when an
older parent hands it an incomplete dependency context. Preserve pinned real
package directories and bootstrap older anchors against their own manifest.

Extend the extracted-source guard to cover pinned bare imports, package export
subpaths, and copied workspace aliases. Keep the inventory repair with openclaw#150399.

Refs: openclaw#149585, openclaw#133913, openclaw#150312, openclaw#150399.

* test(pr): resolve workspace aliases within the extracted root

Bind the TypeScript resolution host to the selected closure root so alias
lookups cannot fall back to the calling checkout during anchor validation.

Refs: openclaw#150399, openclaw#150504.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
Join the fixture owner before releasing its held handshake so loaded
runners cannot fail on a 1,000 ms polling deadline. Cover failures before
and after question registration and retain cleanup on test cancellation.

Related: openclaw#150399
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
…50465)

Protect deferred file-preview English fallback registration through a direct modal import. Assert that preview-only copy stays out of startup, becomes available when the modal loads, and preserves the selected German translation and shared Support files label.

The canonical runtime owner already landed in openclaw#150420; the wrapper manifest-discovery and dependency-context fixes are on main through openclaw#150399 and openclaw#150504. This change adds only regression coverage: production/tooling 0 lines, tests +32/-0. No runtime or visible UI change.

Validation: r3 Codex review scoped-clean; exact-head ClawSweeper review without findings; native CI watcher GREEN for run 35196349026 on 243bc15. The existing PR evidence records the successful changed checks and the separate, unchanged local wrapper timeout cases; the test-only hosted run does not claim to rerun those cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S 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