Repository navigation
fix(test): restore alias checks after duplicate dependency setup - #149477
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 September 15, 2026, 9:26 PM ET / September 16, 2026, 01:26 UTC (Revision 4). ClawSweeper reviewWhat this changesRemoves 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 Review scores
Verification
How this fits togetherOpenClaw'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]
Decision needed
Why: Both patches are individually valid, but they delete opposite calls; the existing owner is explicitly coordinating the choice. Before merge
Agent review detailsSecurityNone. PR surfaceTests -2. Total -2 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
@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 Is your existing lane handling native landing once its current checks qualify? We will preserve your assigned ownership and branch. |
|
@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. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
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]>
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.
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]>
* 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.
…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.
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.
* 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.
…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.
) * 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]>
…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]>
Related: #149481, #149488.
What Problem This Solves
All 12 PR alias delegation and refusal checks fail during fixture setup with
EEXISTafter 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_modulesonce, so calling it twice fails before the aliases reach the supervisor recorder. The helper, wrapper trust checks, arguments, deadlines, and assertions stay unchanged.Evidence
653e15a3296ae4238d30ba412dbd293f07e13ef6, the focused alias matrix fails all 12 cases withEEXISTat the second initialization.node scripts/check-changed.mjs -- test/scripts/pr-wrappers.test.tspasses, including test-root typechecking, formatting, scoped lint, and the selected repository guards.git diff --checkpasses.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.