Repository navigation
fix: restore PR alias delegation test fixtures - #149481
Conversation
Link the existing installed wrapper dependencies into the linked alias fixture so its node recorder observes the supervisor handoff after the code-only wrapper dependency cutover. Preserve all delegation and refusal assertions. Validation: nine delegation cases fail before the fix; all twelve alias delegation and refusal cases pass afterward. Focused formatting, typed lint, and independent P2 review pass.
|
🦞👀 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: needs maintainer review before merge. Reviewed September 15, 2026, 7:07 PM ET / 23:07 UTC. ClawSweeper reviewWhat this changesPrepares the linked checkout’s test dependencies so PR alias tests reach the intended supervisor handoff. Merge readiness✅ Ready for maintainer review The fixture repair remains necessary on inspected main and preserves the existing delegation and refusal checks. No actionable patch defects were found; related open PRs consume this fix rather than supersede it. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s PR command aliases delegate to a trusted wrapper that prepares dependencies before starting supervised operations. These tests verify command arguments, checkout selection, and refusal of an invalid trust anchor. flowchart TD
A[Alias test fixture] --> B[Link installed dependencies]
B --> C[PR command alias]
C --> D[Wrapper trust check]
D -->|Trusted| E[Supervisor handoff recorder]
D -->|Invalid anchor| F[Refusal]
E --> G[Argument and directory assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep dependency preparation in the shared fixture helper while preserving production trust checks and all existing alias assertions. Do we have a high-confidence way to reproduce the issue? Yes, source inspection establishes the failure path: missing fixture dependencies send the Node recorder through materialization before the expected handoff. Tests were not executed during this read-only review. Is this the best way to solve the issue? Yes, reusing the existing helper is a narrow repair that restores the fixture’s intended preconditions without weakening assertions or production guards. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8384aaf0517c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Carry the exact fixture prerequisite from #149481 so the maintenance branch reaches the intended alias supervisor handoff. All production code and existing assertions are unchanged.
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]>
* perf(tasks): avoid copying maintenance session metadata * test(pr): integrate alias fixture dependency repair Carry the exact fixture prerequisite from #149481 so the maintenance branch reaches the intended alias supervisor handoff. All production code and existing assertions are unchanged.
Link the existing installed wrapper dependencies into the linked alias fixture so its node recorder observes the supervisor handoff after the code-only wrapper dependency cutover. Preserve all delegation and refusal assertions. Validation: nine delegation cases fail before the fix; all twelve alias delegation and refusal cases pass afterward. Focused formatting, typed lint, and independent P2 review pass.
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.
…aw#149526) * perf(tasks): avoid copying maintenance session metadata * test(pr): integrate alias fixture dependency repair Carry the exact fixture prerequisite from openclaw#149481 so the maintenance branch reaches the intended alias supervisor handoff. All production code and existing assertions are unchanged.
) * 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]>
What Problem This Solves
Nine PR-wrapper alias delegation tests fail after #149193 added dependency preparation for linked checkouts without installed packages.
User Impact
No user-visible change. Restores the intended alias-delegation coverage and removes an inherited CI blocker observed in #149308.
Why This Change Was Made
Prepare the linked fixture with the existing dependency helper before replacing Node with the supervisor-handoff recorder. Otherwise, dependency preparation invokes that recorder first and the wrapper exits before reaching the behavior under test. Production guards and all existing assertions remain unchanged.
Evidence
All nine delegation cases fail on unmodified main with exit code 1 instead of the expected sentinel 73. With this one-line fixture correction, all 12 alias cases pass, including the three refusal cases. Focused typed lint, formatting, diff checks, and independent P2 review pass. Required CI remains a landing gate.