Skip to content

fix: restore initialization in fresh PR wrappers - #150453

Merged
shakkernerd merged 2 commits into
mainfrom
fix/pr-wrapper-inventory
Sep 17, 2026
Merged

shakkernerd merged 2 commits into
mainfrom
fix/pr-wrapper-inventory

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #150449.

What Problem This Solves

Fresh PR wrapper snapshots fail when review-init reaches plugin discovery. The command exits on a missing runtime import, preventing normal worktree provisioning and causing the existing operation-lock and provisioning tests to fail.

User Impact

Maintainers can use the existing PR initialization path with a complete wrapper snapshot. This is a tooling repair: it preserves the current wrapper trust checks, operation-lock behavior, dependency selection, and application runtime behavior.

Why This Change Was Made

The canonical wrapper inventory omits existing modules required by plugin discovery and plugin configuration validation. The missing discovery availability helper needs the runtime degraded-state module, and the validation rules need the plugin registry validator. Adding all three modules to the same inventory repairs the snapshot producer and the fixtures that deliberately consume it.

The change is limited to those three inventory entries. Existing tests already exercise the missing-module boundary, so the repair needs neither another source list nor additional tests.

Evidence

On baseline 387f698, the two selected review-init cases in pr-operation-lock.test.ts and pr-worktree-provision.test.ts failed with ERR_MODULE_NOT_FOUND for discovery-availability.js (2 failed, 157 skipped, 15.23 seconds). The extracted-anchor case also exposed the omitted registry validator.

On final head 8d11eb2, all 29 affected cases and controls passed remotely on Linux with Node 24.19.0. This rerun covers all 27 failures from the complete four-file run plus two existing passing controls. It exercises cold provisioning, checkout hooks, main-checkpoint preservation, failure recovery, operation locks, and the actual extracted provisioner. The earlier full run's 305 unaffected passes and one platform skip were retained; no test or runtime implementation changed during the inventory correction.

The isolated command smoke reaches the real provisioner's normal argument validation. Source inspection confirms that the corrected inventory covers all 923 source files in its static import graph. Inventory integrity and diff hygiene passed, and the complete selected tooling gate passed remotely. The final correction changes only one further inventory entry, preserving that tooling evidence; the configured formatter does not process this plain-text file.

The final CI run passed the wrapper tests and other applicable jobs, with two underlying failures in its main-branch baseline: the Slack ingress/thread-resolution import cycle and the approval-callback unbound-method lint diagnostic. Both were reproduced on unmodified baseline f7fe156. The inventory is outside those checkers' source inputs. Main has since incorporated both fixes in a13ecd2: the ingress lifecycle type now lives in a leaf module, and the approval callback preserves its receiver. The failed run remains historical evidence; the proposed result includes those main-branch repairs.

@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
@shakkernerd shakkernerd self-assigned this Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 9:36 PM ET / September 17, 2026, 01:36 UTC (Revision 2).

ClawSweeper review

What this changes

Adds three existing modules to the PR tooling snapshot inventory so fresh review initialization can load plugin discovery and configuration validation.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused repair: current main still lacks the required snapshot entries. No introduced correctness or security defect was found, and the linked issue remains open.

Priority: P2
Reviewed head: 8d11eb26c5efec6f2ae6c22d62752f04bd9b7290

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow owner-level repair with existing regression coverage and no actionable introduced defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored inventory repair is exempt from the external-contributor proof gate and introduces no material authority change; supplied evidence describes baseline failures and remote validation, but this review did not independently observe completed after-fix initialization.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored inventory repair is exempt from the external-contributor proof gate and introduces no material authority change; supplied evidence describes baseline failures and remote validation, but this review did not independently observe completed after-fix initialization.
Evidence reviewed 8 items Verified introduced change: The merge-base-to-head diff adds only the registry validator, discovery availability helper, and runtime degraded-state module to the canonical inventory. Base-only Slack and reporting changes are outside this PR's introduced delta.
Snapshot producer and trust boundary: The wrapper reads the anchor's inventory, archives those paths, and verifies extracted files against anchor blobs before execution. Adding required source paths preserves these existing checks and the selective dependency materialization.
Required import chain: The provisioner imports runtime configuration; discovery.ts:28 imports discovery-availability, which imports runtime-degraded-state. validation-plugin-rules.ts:43 imports validation-plugin-registry. The three added files supply existing imports rather than introduce new application behavior.
Findings None None.
Security None None.

How this fits together

The PR tooling wrapper extracts trusted source files into an isolated snapshot before initializing review worktrees. Its inventory must include the modules imported by the worktree provisioner.

flowchart TD
  A[Review initialization request] --> B[Trusted source selection]
  C[Wrapper file inventory] --> B
  B --> D[Verified source snapshot]
  D --> E[Load provisioner dependencies]
  E --> F[Initialize review worktree]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Other +3. Total +3 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 0 +3
Total 1 3 0 +3

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #150449
Summary: This PR is the candidate repair for the linked snapshot-initialization issue.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep the canonical snapshot inventory complete while preserving the existing extraction, dependency-pinning, and operation-lock owners.

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

Yes, from source: extracting main's inventory omits modules required by the provisioner's imports, matching the supplied baseline failure trace. No runtime reproduction was executed during this read-only review.

Is this the best way to solve the issue?

Yes. Completing the existing producer inventory fixes the missing-import boundary without duplicating behavior, weakening trust checks, or changing application configuration.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Repairs a concrete maintainer-tooling initialization failure with limited scope and no established application-runtime outage.
  • 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 MEMBER-authored inventory repair is exempt from the external-contributor proof gate and introduces no material authority change; supplied evidence describes baseline failures and remote validation, but this review did not independently observe completed after-fix initialization.

Evidence

What I checked:

  • Verified introduced change: The merge-base-to-head diff adds only the registry validator, discovery availability helper, and runtime degraded-state module to the canonical inventory. Base-only Slack and reporting changes are outside this PR's introduced delta. (scripts/pr-lib/wrapper-components.txt:422, 8d11eb26c5ef)
  • Snapshot producer and trust boundary: The wrapper reads the anchor's inventory, archives those paths, and verifies extracted files against anchor blobs before execution. Adding required source paths preserves these existing checks and the selective dependency materialization. (scripts/pr:114, 8d11eb26c5ef)
  • Required import chain: The provisioner imports runtime configuration; discovery.ts:28 imports discovery-availability, which imports runtime-degraded-state. validation-plugin-rules.ts:43 imports validation-plugin-registry. The three added files supply existing imports rather than introduce new application behavior. (scripts/pr-lib/worktree-provision.mts:14, 8d11eb26c5ef)
  • Current main still needs the repair: Main's inventory still omits all three entries. Tree-object comparisons show the inspected wrapper, provisioner, discovery, and validation modules have identical blobs on main and this head; only their snapshot inventory differs. (scripts/pr-lib/wrapper-components.txt:422, 388584f9d9f2)
  • Existing regression coverage: The fixture copier consumes the production inventory. The cold-provisioning case checks successful review-init, seed identity, private checkpoint preservation, and lock release; the extracted-anchor case loads the actual provisioner before argument validation. The supplied report records baseline module-loading failures; this review did not execute tests. (test/scripts/pr-worktree-provision.test.ts:55, 8d11eb26c5ef)
  • Related work and review continuity: Fresh PR wrapper snapshots fail to load plugin discovery #150449 remains the canonical report addressed by this PR. fix: show preflight failures when compaction auth is unavailable #150400 identifies the same tooling failure as an independent baseline problem, not a competing fix. The prior completed review retained no findings; this head additionally supplies the registry validator. (8d11eb26c5ef)

Likely related people:

  • Jason (Json): Raw commit 387f698 adds scripts/pr-lib/worktree-provision.mts:14 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 387f69830a81; files: scripts/pr-lib/worktree-provision.mts)

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 (1 earlier review cycle)
  • reviewed 2026-09-17T01:24:17.371Z sha 09f7ceb :: needs maintainer review before merge. :: none

@shakkernerd shakkernerd changed the title fix: restore plugin discovery in fresh PR wrappers fix: restore initialization in fresh PR wrappers Sep 17, 2026
@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
@shakkernerd
shakkernerd merged commit c5cff2f into main Sep 17, 2026
100 of 103 checks passed
@shakkernerd
shakkernerd deleted the fix/pr-wrapper-inventory branch September 17, 2026 02:14
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: fresh PR wrapper snapshots load the modules needed for review initialization.

steipete added a commit that referenced this pull request Sep 17, 2026
Refresh onto main carrying #150453 to clear inherited cold-wrapper CI failures. Preserve the six-file lazy-preview and cold-worktree fixture patch unchanged; its qualified source, review, build, and screenshot evidence remains valid.
fuller-stack-dev added a commit to 849261680/openclaw that referenced this pull request Sep 17, 2026
Consume the reviewed file-preview lazy-English extraction from openclaw#150424,
the cold worktree input closure, and the Qwen initial-deadline fixture
from openclaw#150026. Native manifest closure is now also present on main via
openclaw#150453. Keep the original channel alias implementation and accepted
built-runtime proof unchanged.

Co-authored-by: Peter Steinberger <[email protected]>
fuller-stack-dev added a commit that referenced this pull request Sep 17, 2026
* fix(plugin-runtime): restore channel turn alias

* test(plugin-sdk): type channel turn alias override

* fix(plugin-sdk): preserve legacy turn mock overrides

* test(plugin-sdk): refresh channel turn alias gates

* Align legacy channel compatibility paths for current-main repair

Preserve the original contributor ancestry while resolving stale paths before the current-source alias repair. Intermediate branch preparation; not acceptance evidence.

* fix: preserve complete legacy channel runtime alias

Restore the complete five-member alias, including exact runtime-bound dispatch and scoped context construction. Preserve lazy loading, generic signatures and canonical override precedence. Keep deprecated compatibility metadata and current documentation aligned.

Closes #91122

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

* fix(ci): integrate canonical channel alias prerequisites

Consume the reviewed file-preview lazy-English extraction from #150424,
the cold worktree input closure, and the Qwen initial-deadline fixture
from #150026. Native manifest closure is now also present on main via
#150453. Keep the original channel alias implementation and accepted
built-runtime proof unchanged.

Co-authored-by: Peter Steinberger <[email protected]>

* fix(ci): consume landed canonical UI startup repair

Replace the temporary file-preview extraction with the current-main implementation from #150491 before merging main. Preserve the channel alias repair and existing contributor ancestry.

Co-authored-by: Peter Steinberger <[email protected]>

* fix(ci): consume landed canonical Qwen fixture

Use the current-main Qwen fixture from #150523 and #82290 unchanged. Remove the final temporary prerequisite delta while preserving the eleven-file alias repair and original contributor history.

---------

Co-authored-by: Jason (Json) <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Yzx <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
Restore the required plugin discovery and configuration validation modules in fresh PR wrapper snapshots so review initialization completes.

Fixes openclaw#150449.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
* fix(plugin-runtime): restore channel turn alias

* test(plugin-sdk): type channel turn alias override

* fix(plugin-sdk): preserve legacy turn mock overrides

* test(plugin-sdk): refresh channel turn alias gates

* Align legacy channel compatibility paths for current-main repair

Preserve the original contributor ancestry while resolving stale paths before the current-source alias repair. Intermediate branch preparation; not acceptance evidence.

* fix: preserve complete legacy channel runtime alias

Restore the complete five-member alias, including exact runtime-bound dispatch and scoped context construction. Preserve lazy loading, generic signatures and canonical override precedence. Keep deprecated compatibility metadata and current documentation aligned.

Closes openclaw#91122

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

* fix(ci): integrate canonical channel alias prerequisites

Consume the reviewed file-preview lazy-English extraction from openclaw#150424,
the cold worktree input closure, and the Qwen initial-deadline fixture
from openclaw#150026. Native manifest closure is now also present on main via
openclaw#150453. Keep the original channel alias implementation and accepted
built-runtime proof unchanged.

Co-authored-by: Peter Steinberger <[email protected]>

* fix(ci): consume landed canonical UI startup repair

Replace the temporary file-preview extraction with the current-main implementation from openclaw#150491 before merging main. Preserve the channel alias repair and existing contributor ancestry.

Co-authored-by: Peter Steinberger <[email protected]>

* fix(ci): consume landed canonical Qwen fixture

Use the current-main Qwen fixture from openclaw#150523 and openclaw#82290 unchanged. Remove the final temporary prerequisite delta while preserving the eleven-file alias repair and original contributor history.

---------

Co-authored-by: Jason (Json) <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Yzx <[email protected]>
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: XS 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.

Fresh PR wrapper snapshots fail to load plugin discovery

1 participant