Skip to content

fix(test): restore alias checks after duplicate dependency setup - #149477

Merged
steipete merged 1 commit into
mainfrom
codex/fix-alias-wrapper-fixture
Sep 16, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-alias-wrapper-fixture

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Related: #149481, #149488.

What Problem This Solves

All 12 PR alias delegation and refusal checks fail during fixture setup with EEXIST after two dependency-setup repairs landed together.

User Impact

Restores these maintainer-tooling checks. This changes test setup only; production behavior is unchanged.

Why This Change Was Made

Both #149481 and #149488 added the same linked-checkout dependency initialization. Keep the first call and remove the duplicate call and its redundant comment. The existing helper creates node_modules once, so calling it twice fails before the aliases reach the supervisor recorder. The helper, wrapper trust checks, arguments, deadlines, and assertions stay unchanged.

Evidence

  • On main 653e15a3296ae4238d30ba412dbd293f07e13ef6, the focused alias matrix fails all 12 cases with EEXIST at the second initialization.
  • With this two-line deletion, the same command passes all 12 existing cases: nine alias mappings and three spoofed-anchor refusals. The other 80 cases are intentionally excluded by the filter.
  • Proof runs through the real Bash alias entry points and shared wrapper against isolated synthetic Git checkouts, stopping at the Node recorder before native PR operations. Runtime: macOS, Node 24.21.0; temporary files and the independently installed dependencies are on the external volume.
  • node scripts/check-changed.mjs -- test/scripts/pr-wrappers.test.ts passes, including test-root typechecking, formatting, scoped lint, and the selected repository guards. git diff --check passes.
  • Fresh independent P0–P2 review is clean. No production code, shared-helper behavior, assertion, or timeout changed.

Focused before/after command:

node scripts/run-vitest.mjs test/scripts/pr-wrappers.test.ts -t 'alias wrapper trust delegation'

The earlier head of this PR repaired the original missing-dependency fixture. That change landed through #149481; this replacement addresses the subsequent duplicate initialization introduced when #149488 also landed. The earlier review and proof receipts are preserved separately.

@clawsweeper

clawsweeper Bot commented Sep 15, 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.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 15, 2026, 9:26 PM ET / September 16, 2026, 01:26 UTC (Revision 4).

ClawSweeper review

What this changes

Removes duplicate dependency initialization from the PR-command alias test fixture so its delegation and refusal checks can run.

Merge readiness

⛔ Blocked before merge - 3 items remain

The replacement patch correctly repairs a defect still present on fetched main. Keep this protected, actively coordinated PR open until the owner selects between it and the parallel repair; no introduced correctness defect was found.

Priority: P2
Reviewed head: 567d02e67ae90f501995fb638f36ee52ee281a86
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, correct fixture repair with relevant before/after boundary proof; exclusive landing coordination remains separate from patch quality.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The captured replacement-head evidence exercises the changed fixture through real Bash aliases, Git checkouts, installed dependencies, and shared wrapper routing: 12 setup failures become 12 passes on macOS. The recorder bounds proof at the supervisor handoff, which covers this test-only repair without claiming native merge execution.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured replacement-head evidence exercises the changed fixture through real Bash aliases, Git checkouts, installed dependencies, and shared wrapper routing: 12 setup failures become 12 passes on macOS. The recorder bounds proof at the supervisor handoff, which covers this test-only repair without claiming native merge execution.
Evidence reviewed 8 items Verified introduced change: The pinned merge-base-to-head diff removes only the second dependency initialization and its comment. All assertions and production wrappers remain unchanged.
Concrete failure mechanism: The shared helper creates node_modules with non-recursive mkdirSync. The fixture's detached checkout does not remove this untracked directory, so a second initialization throws EEXIST before any alias assertion.
Still necessary on fetched main: Fetched main retains both initialization calls in makeAliasFixture; the central integration defect remains unresolved there.
Findings None None.
Security None None.

How this fits together

OpenClaw's maintainer command aliases delegate review, preparation, and merge requests through a shared wrapper. These tests use isolated Git checkouts to verify command routing and trust refusals before native PR operations begin.

flowchart LR
 A[Isolated Git checkouts] --> B[Initialize dependencies once]
 B --> C[Invoke command alias]
 C --> D[Shared wrapper trust checks]
 D --> E[Supervisor handoff recorder]
 D --> F[Reject spoofed trust anchor]
 E --> G[Assert arguments and exit status]
Loading

Decision needed

Question Recommendation
Which of the two mutually exclusive fixture repairs should be the sole landing candidate? Select the parallel repair: Prefer #149562, which retains post-checkout initialization and reports a complete hosted wrapper-suite pass, then retire this alternative after its landing.

Why: Both patches are individually valid, but they delete opposite calls; the existing owner is explicitly coordinating the choice.

Before merge

Agent review details

Security

None.

PR surface

Tests -2. Total -2 across 1 file.

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

Review metrics

Metric Value Why it matters
Preserved behavior coverage 9 delegation cases and 3 refusal cases unchanged The repair restores execution without weakening the existing routing or trust assertions.

Merge-risk options

Maintainer options:

  1. Land only the selected repair (recommended)
    Hold this alternative while the owner selects and qualifies one patch, then verify that the resulting fixture retains exactly one initialization.

Technical review

Best possible solution:

Retain exactly one fixture dependency initialization, with unchanged delegation and refusal assertions, through one coordinated landing.

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

Yes, source establishes the failure: fetched main calls a non-idempotent directory-creation helper twice before the alias matrix. The contributor reports the matching before/after failure and success; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes, removing one duplicate call is the narrowest repair and preserves the shared helper's contract; either proposed deletion is valid individually.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded maintainer-tooling fixture defect with no product runtime change.
  • merge-risk: 🚨 automation: The two active repairs delete opposite setup calls, so landing both could break wrapper validation again.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured replacement-head evidence exercises the changed fixture through real Bash aliases, Git checkouts, installed dependencies, and shared wrapper routing: 12 setup failures become 12 passes on macOS. The recorder bounds proof at the supervisor handoff, which covers this test-only repair without claiming native merge execution.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured replacement-head evidence exercises the changed fixture through real Bash aliases, Git checkouts, installed dependencies, and shared wrapper routing: 12 setup failures become 12 passes on macOS. The recorder bounds proof at the supervisor handoff, which covers this test-only repair without claiming native merge execution.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record which repair will land and ensure the other deletion cannot subsequently remove the remaining setup call.

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 (3 earlier review cycles)
  • reviewed 2026-09-15T23:05:42.736Z sha bb1451c60785853ab3d0380ef825ec143f11233c :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-15T23:59:16.887Z sha bb1451c60785853ab3d0380ef825ec143f11233c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-16T00:22:02.541Z sha bb1451c60785853ab3d0380ef825ec143f11233c :: needs maintainer review before merge. :: none

@vincentkoc

Copy link
Copy Markdown
Member

@steipete, this is the canonical prerequisite for the same nine alias-delegation failures in startup PR #149079 (job 104583160197) and GC PR #148962 (job 104584166632).

We verified the one-line use of the existing linked-dependency helper at bb1451c60785853ab3d0380ef825ec143f11233c: it restores the intended supervisor fixture route without changing the nine assertions or the separately tested code-only path. We are retaining this PR as the prerequisite, with no duplicate patch or additional CI dispatch.

Is your existing lane handling native landing once its current checks qualify? We will preserve your assigned ownership and branch.

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The main PR body now includes the executed wrapper flow, exact command, runtime, candidate file hash, and recorded before/after output: nine reproduced alias delegation failures become a complete 92/92 passing wrapper suite. This directly exercises the changed fixture through the real Bash alias entry points and shared wrapper up to the supervisor handoff, with the existing argument, working-directory, exit-status, and refusal assertions. Native PR operations are explicitly outside this fixture proof. No production code or assertions changed; hosted CI is still pending.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

roboclaw-bot added a commit that referenced this pull request Sep 15, 2026
Reuse the one-line fixture correction from #149477 (bb1451c60785).
Install the linked fixture's existing dependency links before the Node
recorder, so setup cannot intercept the intended supervisor handoff.
All delegation, argument, directory, and refusal assertions stay unchanged.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
@steipete
steipete marked this pull request as draft September 15, 2026 23:29
@steipete
steipete marked this pull request as ready for review September 15, 2026 23:29
@clawsweeper clawsweeper Bot removed the status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. label Sep 16, 2026
steipete added a commit that referenced this pull request Sep 16, 2026
Canonical main already owns linked dependency setup before checkout. Remove the branch-local later setup so the merged fixture matches #149477 exactly, without changing the inventory or lifecycle implementation.
roboclaw-bot added a commit that referenced this pull request Sep 16, 2026
Reuse the existing Main correction from #149481/#149488/#149477. Link
installed dependencies before intercepting Node so the recorder observes
the trusted supervisor handoff. Preserve all delegation/refusal assertions.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
steipete added a commit that referenced this pull request Sep 16, 2026
* improve(startup): reduce Gateway readiness work

* perf(startup): defer migration imports and reuse snapshot fingerprints

* fix(build): retain shared SQLite schema import

* fix(startup): defer maintenance until startup settles

* test(gateway): split post-ready startup coverage

* test(codex): remove duplicate terminal inventory fixture case (#149349)

(cherry picked from commit 60deb0d)

* fix(test): unblock managed update fixture lint (#149423)

(cherry picked from commit 6c28739)

* test(pr): sync alias fixture dependencies

Reuse the canonical fixture helper from Vincent Koc's #149193
(7450a11) and the alias setup from
#149477 (bb1451c60785853ab3d0380ef825ec143f11233c).

Keep supervisor delegation and refusal assertions intact when current
main materializes missing linked-worktree dependencies.

* test(pr): drop superseded alias fixture backport

Revert 0045dc7 so main owns the
canonical PR wrapper dependency setup. This avoids reintroducing a
second setup call after the upstream fixture repair.

Startup production and package inputs are unchanged.
steipete added a commit that referenced this pull request Sep 16, 2026
…48988)

* fix: keep environment inventory responsive during pairing cleanup

* test: include pairing snapshot in isolated gateway expectations

* fix: let profiler help drain pending cleanup

* test: preserve process events in runtime identity fixtures

* test: avoid loading QA runtime in receipt producers

* fix: repair native PR repository identity fixtures (#149294)

(cherry picked from commit 7dc8a1e)

* fix: keep Codex model attribution fixture focused (#149301)

(cherry picked from commit 273b6c5)

* test: align canonical model attribution fixture

Adopt the complete fixture from #149349 and #149261 so merging the inventory branch retains one terminal-list response. Preserve the controlled completion/timeout cases and the original runtime budget.

* test: provide dependencies for PR alias fixtures

Keep alias delegation cases on their intended supervisor boundary after code-only linked checkouts gained dependency materialization. Preserve exact arguments, exit status, and trust refusals; retain separate materializer coverage.

* test: retire superseded PR alias fixture setup

Canonical main already owns linked dependency setup before checkout. Remove the branch-local later setup so the merged fixture matches #149477 exactly, without changing the inventory or lifecycle implementation.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
Remove the duplicate initialization introduced by the combined openclaw#149481 and openclaw#149488 merges. Keep the existing helper and all delegation and refusal assertions unchanged.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
* improve(startup): reduce Gateway readiness work

* perf(startup): defer migration imports and reuse snapshot fingerprints

* fix(build): retain shared SQLite schema import

* fix(startup): defer maintenance until startup settles

* test(gateway): split post-ready startup coverage

* test(codex): remove duplicate terminal inventory fixture case (openclaw#149349)

(cherry picked from commit df50b7d)

* fix(test): unblock managed update fixture lint (openclaw#149423)

(cherry picked from commit a41881e)

* test(pr): sync alias fixture dependencies

Reuse the canonical fixture helper from Vincent Koc's openclaw#149193
(9078929) and the alias setup from
openclaw#149477 (bb1451c60785853ab3d0380ef825ec143f11233c).

Keep supervisor delegation and refusal assertions intact when current
main materializes missing linked-worktree dependencies.

* test(pr): drop superseded alias fixture backport

Revert 0045dc7 so main owns the
canonical PR wrapper dependency setup. This avoids reintroducing a
second setup call after the upstream fixture repair.

Startup production and package inputs are unchanged.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…enclaw#148988)

* fix: keep environment inventory responsive during pairing cleanup

* test: include pairing snapshot in isolated gateway expectations

* fix: let profiler help drain pending cleanup

* test: preserve process events in runtime identity fixtures

* test: avoid loading QA runtime in receipt producers

* fix: repair native PR repository identity fixtures (openclaw#149294)

(cherry picked from commit 3df0afa)

* fix: keep Codex model attribution fixture focused (openclaw#149301)

(cherry picked from commit f778132)

* test: align canonical model attribution fixture

Adopt the complete fixture from openclaw#149349 and openclaw#149261 so merging the inventory branch retains one terminal-list response. Preserve the controlled completion/timeout cases and the original runtime budget.

* test: provide dependencies for PR alias fixtures

Keep alias delegation cases on their intended supervisor boundary after code-only linked checkouts gained dependency materialization. Preserve exact arguments, exit status, and trust refusals; retain separate materializer coverage.

* test: retire superseded PR alias fixture setup

Canonical main already owns linked dependency setup before checkout. Remove the branch-local later setup so the merged fixture matches openclaw#149477 exactly, without changing the inventory or lifecycle implementation.
roboclaw-bot added a commit that referenced this pull request Sep 16, 2026
)

* fix(release): restore private QA imports and frozen scan counts

Share the private QA facade list between build emission and the temporary
harness manifest without changing public package exports. Keep current
process-fixture scan counts out of the shipped 9.1-9.4 inventories.

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

* fix(e2e): retain redacted kitchen-sink inspection failures

Preserve bounded failed-plugin diagnostics before sweep cleanup on the
trusted Tooling assertion route, without changing failure or privacy rules.

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

* fix(e2e): preserve safe update migration evidence

Port the accepted v2 migration capture through trusted Tooling. Reuse
Main's secure Doctor IPC boundary and preserve its first-hop privacy
contract with a digest-bound artifact identity. Refuse journaled SQLite
before native observation, retaining explicit unavailable evidence.

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

* test(pr): prepare alias fixture dependencies before recording handoff

Reuse the existing Main correction from #149481/#149488/#149477. Link
installed dependencies before intercepting Node so the recorder observes
the trusted supervisor handoff. Preserve all delegation/refusal assertions.

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

* test(pr): align alias dependency setup with the landed fixture owner

Move the same dependency link before alias setup, matching Main's current
fixture ordering and resolving the merge conflict without changing the
recorder, delegation assertions, or any production or capture code.

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

---------

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
…claw#149411)

* fix(release): restore private QA imports and frozen scan counts

Share the private QA facade list between build emission and the temporary
harness manifest without changing public package exports. Keep current
process-fixture scan counts out of the shipped 9.1-9.4 inventories.

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

* fix(e2e): retain redacted kitchen-sink inspection failures

Preserve bounded failed-plugin diagnostics before sweep cleanup on the
trusted Tooling assertion route, without changing failure or privacy rules.

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

* fix(e2e): preserve safe update migration evidence

Port the accepted v2 migration capture through trusted Tooling. Reuse
Main's secure Doctor IPC boundary and preserve its first-hop privacy
contract with a digest-bound artifact identity. Refuse journaled SQLite
before native observation, retaining explicit unavailable evidence.

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

* test(pr): prepare alias fixture dependencies before recording handoff

Reuse the existing Main correction from openclaw#149481/openclaw#149488/openclaw#149477. Link
installed dependencies before intercepting Node so the recorder observes
the trusted supervisor handoff. Preserve all delegation/refusal assertions.

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

* test(pr): align alias dependency setup with the landed fixture owner

Move the same dependency link before alias setup, matching Main's current
fixture ordering and resolving the merge conflict without changing the
recorder, delegation assertions, or any production or capture code.

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

---------

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[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

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

3 participants