Skip to content

fix: restore PR alias delegation test fixtures - #149481

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

steipete merged 1 commit into
mainfrom
codex/pr-alias-fixture-dependencies

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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.

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.
@steipete steipete self-assigned this Sep 15, 2026
@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: needs maintainer review before merge. Reviewed September 15, 2026, 7:07 PM ET / 23:07 UTC.

ClawSweeper review

What this changes

Prepares 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
Reviewed head: 4ad5e7d0757ca87347774462076383c4e5a660f7

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable fixture repair with preserved assertions and relevant reported before/after validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a member-authored, test-only repair; the external runtime-proof gate does not apply. Reported focused results cover the alias handoff and refusal cases, with no production behavior change.
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 member-authored, test-only repair; the external runtime-proof gate does not apply. Reported focused results cover the alias handoff and refusal cases, with no production behavior change.
Evidence reviewed 8 items Verified introduced change: The pinned merge-base-to-head diff adds only the existing dependency-helper call inside makeAliasFixture; assertions and production files are unchanged.
Current main still needs the repair: Inspected main creates the linked alias fixture without dependencies, then replaces Node with a recorder that exits 73. The wrapper’s dependency-materialization path invokes that recorder before supervisor handoff and converts its failure to exit 1.
Existing dependency owner: The reused helper creates a fixture-local node_modules directory and links installed tsx, zod, minimatch, and yaml package directories. Separate tests continue covering missing dependencies and materialized wrappers.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +1. Total +1 across 1 file.

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

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #149481
Summary: This PR isolates the shared fixture correction consumed by broader work.

Members:

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

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a focused test-fixture correction with no application behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies a member-authored, test-only repair; the external runtime-proof gate does not apply. Reported focused results cover the alias handoff and refusal cases, with no production behavior change.

Label justifications:

  • P3: This is a focused test-fixture correction with no application behavior change.
  • 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 member-authored, test-only repair; the external runtime-proof gate does not apply. Reported focused results cover the alias handoff and refusal cases, with no production behavior change.

Evidence

What I checked:

  • Verified introduced change: The pinned merge-base-to-head diff adds only the existing dependency-helper call inside makeAliasFixture; assertions and production files are unchanged. (test/scripts/pr-wrappers.test.ts:1252, 4ad5e7d0757c)
  • Current main still needs the repair: Inspected main creates the linked alias fixture without dependencies, then replaces Node with a recorder that exits 73. The wrapper’s dependency-materialization path invokes that recorder before supervisor handoff and converts its failure to exit 1. (test/scripts/pr-wrappers.test.ts:1250, 8384aaf0517c)
  • Existing dependency owner: The reused helper creates a fixture-local node_modules directory and links installed tsx, zod, minimatch, and yaml package directories. Separate tests continue covering missing dependencies and materialized wrappers. (test/scripts/pr-wrapper.test-support.ts:19, 4ad5e7d0757c)
  • Merged wrapper history: GitHub’s commit patch for fix(pr): materialize dependencies for code-only wrappers #149193 shows the dependency-materialization condition and shared fixture helper. This merged work supplies the intended production behavior; the proposed correction adapts the alias fixture to it. REST commit inspection supplied patches where deeper local history reads encountered unavailable objects. (scripts/pr:136, 7450a11bd15c)
  • Alias coverage history: The merged alias change replaced source-string checks with executable delegation and spoofed-anchor refusal cases. The proposed fixture adjustment retains those behavioral checks. (test/scripts/pr-wrappers.test.ts:1249, f3cadac70cf7)
  • Validation and related work: The captured PR body reports nine failing delegation cases before repair and all twelve delegation/refusal cases passing afterward. fix: preserve state across repeated Doctor repairs #149308 explicitly consumes this same prerequisite. These are contributor-reported results; this read-only review did not execute tests. (4ad5e7d0757c)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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.

@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 16, 2026
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.
steipete added a commit that referenced this pull request Sep 16, 2026
Remove the duplicate initialization introduced by the combined #149481 and #149488 merges. Keep the existing helper and all delegation and refusal assertions unchanged.
steipete added a commit that referenced this pull request Sep 16, 2026
Remove the duplicate initialization introduced by the combined #149481 and #149488 merges. Keep the existing helper and all delegation and refusal assertions unchanged.
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
* 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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
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.
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
…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.
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

1 participant