Skip to content

fix(ci): restore PR alias delegation checks - #149488

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

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

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Related: #149193, #149389

What Problem This Solves

Fixes nine PR alias delegation checks that fail after code-only linked checkouts began materializing their dependencies.

User Impact

No runtime behavior changes. This maintainer-directed follow-up restores the wrapper checks needed to validate #149389.

Why This Change Was Made

The alias fixture replaces Node with a recorder that stops at the supervisor handoff. Without linked dependencies, the new materialization path invokes that recorder too early and returns exit 1 instead of the expected 73. Reuse the existing fixture helper to provide the real third-party dependencies before installing the recorder. Dedicated tests continue to cover code-only materialization.

Evidence

The executable proof launches the real pr-prepare, pr-review, and pr-merge alias scripts from a separate caller directory. The recorder stops execution at the supervisor handoff, before locks or native PR actions. The tests check exact mapped arguments, caller directory, trusted wrapper selection, empty stderr, and refusal before execution for spoofed anchors. Separate real-dependency tests cover both installed and code-only linked checkouts.

Retained local results, with assertions unchanged:

Source and scope Result
Main 5745b61b360a3ac87e39f850cff9a3bde4f5ceec, alias group 9 failed, 3 passed; delegation expected exit 73 but received 1
This repair, alias group 12 passed
This repair after a normal frozen dependency install, aliases plus matching-linked dependency cases 15 passed, process exit 0

The proof covers the CLI fixture and its delegation boundary. It does not claim a production runtime performance improvement or perform a real PR merge. No production behavior changes in this patch require a separate runtime demonstration.

  • Changed checks and git diff --check pass; independent P2 autoreview found no actionable issues.
  • The first changed-gate attempt correctly refused a borrowed TypeScript installation. A normal frozen install inside the isolated checkout resolved that environment issue; no guard was changed.

The change adds two test lines and changes no production code. Hosted exact-head CI remains the landing gate.

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

@steipete
steipete marked this pull request as ready for review September 15, 2026 22:44
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 15, 2026, 7:32 PM ET / 23:32 UTC (Revision 2).

ClawSweeper review

What this changes

Prepares dependencies in the PR alias test fixture so delegation checks reach the intended supervisor handoff.

Merge readiness

⛔ Blocked before merge - 1 item remains

The repair remains necessary on the inspected main revision, and no actionable patch defects were found. The earlier proof blocker does not apply to this verified repository-admin author’s test-fixture-only change.

Priority: P3
Reviewed head: 29fe50b4b2a02f836ef958663fd86b86bd4d6fbd

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Recorded reviewer rating: A narrow fixture repair preserves meaningful assertions and has relevant reported before/after validation. Real behavior proof remains required by host policy.
Proof confidence 🌊 off-meta tidepool Recorded reviewer rating; Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author is verified as a repository admin, and no production authority changes activate an additional proof gate. Reported real-alias executions validate the repaired fixture through the supervisor recorder; they do not claim native PR operations.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Required by policy Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author is verified as a repository admin, and no production authority changes activate an additional proof gate. Reported real-alias executions validate the repaired fixture through the supervisor recorder; they do not claim native PR operations.
Evidence reviewed 8 items Verified introduced change: The pinned merge-base-to-head diff adds only the dependency-helper invocation and its explanation inside the alias fixture; assertions and production scripts are unchanged. The supplied verified test-merge comparison likewise contains only this test file.
Source establishes the fixture failure: The wrapper materializes dependencies for locked commands when the matching linked checkout lacks node_modules. The alias fixture replaces Node with a recorder returning 73, so that earlier materialization invocation fails and the wrapper exits 1 before the expected supervisor handoff. Providing dependencies avoids that unintended interception.
Existing helper and independent coverage retained: The helper links four installed third-party packages into the temporary fixture. Separate matching-linked cases retain installed and code-only coverage, and missing-package cases still verify refusal without installation. The nine delegation and three spoofed-anchor assertions remain unchanged.
Findings None None.
Security None None.

How this fits together

OpenClaw’s maintainer command aliases forward arguments to a shared wrapper that selects trusted tooling before starting supervised PR operations. These tests inspect that handoff and verify refusal when the trusted reference is missing.

flowchart LR
  A[Alias command and arguments] --> B[Shared PR wrapper]
  B --> C{Trusted tooling available}
  C -->|Yes| D[Dependency preparation]
  D --> E[Supervisor handoff recorder]
  C -->|No| F[Refusal]
  E --> G[Argument and caller assertions]
Loading

Before merge

  • Add real behavior proof - Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author is verified as a repository admin, and no production authority changes activate an additional proof gate. Reported real-alias executions validate the repaired fixture through the supervisor recorder; they do not claim native PR operations.
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 2 0 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 0 +2

Review metrics

None.

Technical review

Best possible solution:

Keep alias checks focused on delegation while separate dependency tests protect materialization and missing-package refusal.

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

Yes, from source: running the alias group without linked dependencies invokes the Node recorder during materialization and produces exit 1 instead of 73. The body reports that failure; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. Reusing the existing dependency helper repairs fixture setup without weakening assertions, changing production routing, or removing code-only dependency coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8384aaf0517c.

Labels

Label justifications:

  • P3: This is a focused internal test-fixture repair with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. This is the recorded reviewer rating; real behavior proof remains required by host policy.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author is verified as a repository admin, and no production authority changes activate an additional proof gate. Reported real-alias executions validate the repaired fixture through the supervisor recorder; they do not claim native PR operations.

Evidence

What I checked:

  • Verified introduced change: The pinned merge-base-to-head diff adds only the dependency-helper invocation and its explanation inside the alias fixture; assertions and production scripts are unchanged. The supplied verified test-merge comparison likewise contains only this test file. (test/scripts/pr-wrappers.test.ts:1253, 29fe50b4b2a0)
  • Source establishes the fixture failure: The wrapper materializes dependencies for locked commands when the matching linked checkout lacks node_modules. The alias fixture replaces Node with a recorder returning 73, so that earlier materialization invocation fails and the wrapper exits 1 before the expected supervisor handoff. Providing dependencies avoids that unintended interception. (scripts/pr:140, 29fe50b4b2a0)
  • Existing helper and independent coverage retained: The helper links four installed third-party packages into the temporary fixture. Separate matching-linked cases retain installed and code-only coverage, and missing-package cases still verify refusal without installation. The nine delegation and three spoofed-anchor assertions remain unchanged. (test/scripts/pr-wrapper.test-support.ts:19, 29fe50b4b2a0)
  • Still absent from inspected main: The alias fixture on fetched main still omits linked dependency preparation. The supplied latest release is v2026.9.4; no merged fixing PR or shipped equivalent for this fixture repair was established. (test/scripts/pr-wrappers.test.ts:1250, 8384aaf0517c)
  • Captured validation and review continuity: The supplied complete body, captured under sourceRevision c03de3b2b6f63c3bd7498e33831ab325b84ef0f11029890c741d61995194767f, reports nine failures before repair, twelve passing alias cases afterward, and fifteen passing alias/dependency cases after a frozen install. Execution stops at the supervisor recorder; this is fixture-boundary validation, not a real PR merge. The previous review at the identical head contained no findings or published rank-up moves. (test/scripts/pr-wrappers.test.ts:1276, 29fe50b4b2a0)
  • Author role verified independently: GitHub returned permission admin and role_name admin for steipete. This establishes the trusted-author proof exemption despite the supplied CONTRIBUTOR association; it does not waive ordinary merge checks.

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)

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-15T23:13:47.948Z sha 29fe50b :: needs real behavior proof before merge. :: none

@steipete
steipete merged commit f72cc62 into main Sep 16, 2026
124 of 125 checks passed
@steipete
steipete deleted the codex/fix-pr-alias-fixture-dependencies branch September 16, 2026 00:57
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

roboclaw-bot added a commit that referenced this pull request Sep 16, 2026
Main independently landed #149481 and #149488, leaving two dependency-link calls in the alias fixture and causing EEXIST before all twelve alias/refusal cases. Retain the post-checkout setup and remove only the redundant earlier call; assertions, helpers, and production wrappers are unchanged.

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

Co-authored-by: Dallin Romney <[email protected]>
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]>
RomneyDa pushed a commit that referenced this pull request Sep 16, 2026
* test(gateway): stabilize yielded-session settlement

* test(pr): prepare dependencies for alias handoff fixtures (#149488)

* test(pr): refresh wrapper dependencies idempotently

---------

Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
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
* test(gateway): stabilize yielded-session settlement

* test(pr): prepare dependencies for alias handoff fixtures (openclaw#149488)

* test(pr): refresh wrapper dependencies idempotently

---------

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

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant