Skip to content

fix(pr): refresh tooling before preparing reviewed incoming PRs - #206236

Merged
vincentkoc merged 3 commits into
mainfrom
fix/pr-reviewed-workflow-successor-20261126
Nov 27, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/pr-reviewed-workflow-successor-20261126

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

A reviewed incoming PR cannot reach preparation when its frozen tooling is broken: workflow succession previously required preparation records that do not exist yet. This blocks the Android CodeQL repair in #203843.

User Impact

prepare-workflow-successor --incoming-review advances authenticated current-main tooling while preserving the exact reviewed source and evidence. Ordinary preparation and all existing review, CI, and merge gates still apply.

Why This Change Was Made

The change extends the existing V3 binding, evidence inventory, authentication, and atomic transition owners. It rejects pending transitions and incompatible lifecycle state before any recovering guard can change the checkout. Prepared READY, correction, and proof paths retain their contracts. Production growth is 49 net lines for the missing incoming-review lifecycle stage; tests add 193 net lines.

Evidence

Final head: 75da2142c384d65f2b4aab702f8e3e623cdc25d8, based on eb8e41d8847be846cf260bb15ef0e832bd34a757.

  • Independent final-source review and local ClawSweeper review completed with no actionable correctness or security findings. The hosted comment reviewed the intentional tests-only baseline; the final committed range supplies its missing implementation. The local review's remaining runtime-proof request is satisfied below.
  • Normal PR CI passed. Its Bun successor job passed all 118 cases. Exact-head Node successor proof also passed all 118 cases. Both execute incoming succession followed by ordinary preparation using the extracted selected materializer and sibling cache helper, all three CAS/lock interruption cases, and correction/proof/prepared-READY siblings.
  • Changed-test lint, targeted formatting, whitespace, shell syntax, and four embedded JavaScript syntax checks passed. CodeQL passed. The actual required openclaw/ci-gate rollup is successful; no exemption is requested.
  • Tests-first baseline at bdde034781f5b8b6be700e74efdde57b56cd9ee4 executed 118 Bun cases: 114 passed and four failed at the missing incoming-transition capability. This is historical failure evidence. Historical V3 reader refusal is verified from its strict discriminator check, not a separate historical-reader runtime execution.
  • The separate Node workflow was needed because normal PR CI selects Bun and the focused remote wrapper could not bootstrap against the available mismatched dependency installation. Its target suite passed, but the supplementary whole workflow remains failed on three inherited unused exports (openSettingsDialog, checkDoctorLegacyStateDirPending, startBrokerExeca), independently fixed by fix(ci): resolve production export consumers #206238. This does not claim whole-workflow success. Normal automatic CI and the actual required rollup subsequently passed on this same head.
  • Earlier CI found two missing test braces, now fixed, and an inherited unused export already fixed by fix(ci): remove unused agent runtime exports #206165. The branch incorporates that exact landed base; all three signed task commits retain their authors and messages.

@vincentkoc vincentkoc self-assigned this Nov 26, 2026
@clawsweeper

clawsweeper Bot commented Nov 26, 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 added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 26, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR adds regression tests for refreshing frozen PR tooling after an incoming review and before preparation.

Example: A maintainer finishes reviewing the Android CodeQL repair at #203843 and needs newer preparation tooling.

  • Before: Workflow succession requires existing preparation records and rejects the incoming-review selector.
  • After: The proposed tests require succession to preserve the reviewed source and evidence, then permit ordinary preparation; implementation is still absent.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) A useful regression checkpoint, but successful execution of the new cases is not established and the production implementation is absent.
Proof confidence 🦪 silver shellfish (2/6) This maintainer-authored tests-only checkpoint changes no shipped behavior; the body explicitly distinguishes its pending implementation from the reviewed remote head.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Partial
User problem: Maintainers cannot refresh defective frozen tooling for an incoming PR whose review is complete but whose preparation has not started.
Reason: The maintainer-authored direction addresses a named blocked consumer through the existing owner, while this draft currently supplies only regression coverage.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored draft open: it covers a concrete tooling gap, but the pinned head contains only tests and cannot yet deliver the intended behavior.

Reviewed head: bdde034781f5b8b6be700e74efdde57b56cd9ee4

Before merge

  • [P2] Implement incoming succession before enabling its success tests (P2) - The new success case invokes prepare-workflow-successor with --incoming-review and expects exit 0, but scripts/pr still accepts only --ready-review and --for-proof and exits 2 for this selector. The interruption cases likewise cannot reach their injected transaction faults. Consequently, once the fixture initializes, the pinned head necessarily fails these new tests and leaves the intended workflow unavailable. Add the planned implementation through the existing parser, binding validator, and successor owner before merging.

Findings

  • [P2] [P2] Implement incoming succession before enabling its success tests — test/scripts/pr-workflow-successor.test.ts:380
Agent review details

How this fits together

The native PR wrapper selects trusted tooling from a retained Git binding, validates review and preparation evidence, and advances that binding before subsequent preparation commands.

flowchart TD
  A[Reviewed incoming PR] --> B[Native PR wrapper]
  B --> C[Trusted workflow selection]
  C --> D[Review evidence validation]
  D --> E[Workflow binding transition]
  E --> F[Ordinary preparation]
Loading

Technical review

Best possible solution:

Extend the existing workflow-binding and successor owners to admit reviewed incoming PRs without fabricating preparation records or changing their reviewed source.

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

Source establishes the unsupported path: the new fixture supplies --incoming-review, which the unchanged parser rejects, and the existing successor owner also requires preparation records; no target code was executed.

Is this the best way to solve the issue?

Reusing the existing successor and V3 binding owner is a focused approach, but the pinned tests-only head does not implement it.

Full review comments:

  • [P2] [P2] Implement incoming succession before enabling its success tests — test/scripts/pr-workflow-successor.test.ts:380
    The new success case invokes prepare-workflow-successor with --incoming-review and expects exit 0, but scripts/pr still accepts only --ready-review and --for-proof and exits 2 for this selector. The interruption cases likewise cannot reach their injected transaction faults. Consequently, once the fixture initializes, the pinned head necessarily fails these new tests and leaves the intended workflow unavailable. Add the planned implementation through the existing parser, binding validator, and successor owner before merging.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 54c7dc134e87.

Provenance checked

  • Baseline fixture review and preparation modes keeps the original intent (0f27d5e: fix(pr): upgrade tooling for published READY preparations #205942 added ordinary published READY succession while retaining correction-specific preparation behavior.)
  • Workflow successor fixture reuse keeps the original intent (b45ec1a: Reuse complete private-root setup while preserving real authority, signature, recovery, and publication assertions.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 0f27d5e adds test/scripts/pr-workflow-successor.test.ts:302 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0f27d5e8b71b; files: test/scripts/pr-workflow-successor.test.ts)
  • RoboClaw: Raw commit b45ec1a adds test/scripts/pr-baseline-native.test-support.ts:13 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: b45ec1aff846; files: test/scripts/pr-baseline-native.test-support.ts)
  • Peter Steinberger: Raw commit 894a15d adds test/scripts/pr-baseline-native.test-support.ts:132 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 894a15d3ca24; files: test/scripts/pr-baseline-native.test-support.ts)

PR surface

Tests +189. Total +189 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 192 3 +189
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 192 3 +189

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 26, 2026, 7:05 PM ET / November 27, 2026, 00:05 UTC.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M and removed size: S labels Nov 27, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 27, 2026 01:47
@vincentkoc
vincentkoc force-pushed the fix/pr-reviewed-workflow-successor-20261126 branch from 3204c50 to 75da214 Compare November 27, 2026 02:00
@vincentkoc
vincentkoc merged commit 83fc727 into main Nov 27, 2026
187 of 189 checks passed
@vincentkoc
vincentkoc deleted the fix/pr-reviewed-workflow-successor-20261126 branch November 27, 2026 02:48
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 27, 2026
* commit '7df6cb759f9e604921536a700e2f527c5516e7de': (185 commits)
  docs: clarify what telemetry OpenClaw sends and how to opt out
  refactor(ui): remove retired stream-follow test seams (#206316)
  fix: distinguish missing command results from unknown outcomes (#206313)
  fix(build): reuse stamps after identical pnpm installs (#206282)
  chore(ci): inventory Gateway model catalog worker lifecycles (#206251)
  fix: keep failed image inspections inside chat activity (#206283)
  fix: clarify sent-message labels and chat activity icons (#206048)
  fix(cron): use the service's free memory for extra automation runs (#206322)
  test(android): reuse the shared TLS fixture (#206280)
  fix(ui): restore New Session recovery during startup (#206319)
  test(macos): align new Gateway URL expectations (#206281)
  feat: let doctor --fix tell when its startup repairs have nothing to do (#206246)
  fix(android): pause idle gateway discovery without blocking consumers (#196209)
  fix(ci): prepare the Android SDK for scheduled CodeQL scans (#203843)
  fix(memory): read delegated cgroup pressure from the mapped leaf (#206308)
  improve(config): reuse plugin metadata during auto-enable (#206289)
  improve: copy only the selected model for agent completions (#206287)
  fix(pr): refresh tooling before preparing reviewed incoming PRs (#206236)
  fix: keep Gateway ready while plugins drain after updates (#206299)
  fix(crabbox): keep unused prepared mirrors reusable (#206267)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 27, 2026
…claw#206236)

* test(pr): reproduce reviewed incoming workflow succession failure

* fix(pr): refresh tooling for reviewed incoming PRs before preparation

* test(pr): brace incoming authority fixtures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant