Skip to content

fix(ci): restore the Git pin and resident package in updater acceptance - #205175

Closed
tideclaw-bot wants to merge 2 commits into
mainfrom
openclaw/r4b-update-lanes-2d4366
Closed

tideclaw-bot wants to merge 2 commits into
mainfrom
openclaw/r4b-update-lanes-2d4366

Conversation

@tideclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

The release-candidate channel-switch lane and its plugin-prerelease variant both stopped at package → Git dev. Their retained receipts identify immutable-pnpm-pin-required before a candidate build could run; the generic recovery line runtime-verification-failed was not the failing check. Separately, the first-hop missing-load-path lane finished updating and Doctor preserved the config, but its final entry probe rejected the resident launcher slot ($OPENCLAW_STATE_DIR/git-install/openclaw) because it expected only the original npm prefix.

User Impact

Release operators can exercise the full channel switch and test the admission entry of the actual updated package. These are fixture fixes; updater product code, recovery admission, and managed-artifact isolation are unchanged.

Why This Change Was Made

The npm artifact intentionally lacks source-only packageManager metadata. Restore the selected source’s exact pnpm pin only in the detached synthetic Git checkout, before generating its frozen lockfile; leave the packed/npm install untouched. Select the final first-hop probe route from the existing verified update receipt. For a resident update, require its exact slot and an in-profile, direct release target, and compare the entire profile after removing only the probe-owned marker. The marker still must survive the real entry invocation, and the missing-path warning and no-write assertions still apply.

Evidence

  • Red: release channel switch and plugin-prerelease channel switch failed the same Git pin check. The offline-plugin sibling passed independently.
  • Green: ran the entire channel-switch lane body on Linux with scratch paths instead of Docker, using the SHA-256-verified b6c3a6748b6a31f94f430fb111cb591d670c8c0c candidate artifact and its sealed staged registry. Beta, package → Git dev, local-edit exclusion, Git → package stable, and cleanup assertions all passed (OK, exit 0).
  • Red → green: reproduced the first-hop job path mismatch locally with the original probe. The revised probe ran the actual packaged dist/index.js update admit from the resident-shaped future fixture, returned configured-plugin-path-unavailable, preserved the pending marker, and found all 45,690 profile artifacts unchanged. The full managed-service/Doctor lane still needs Docker replay: this host has no Docker daemon and gateway install correctly refused the non-account-home scratch service. The service guard was not bypassed.
  • 20 focused tests across three files passed (about 53 s wall including worker preparation); targeted lint, formatting, tooling typecheck, shell syntax, and diff checks passed. The signed patch applied cleanly in a check-only index populated from the exact release candidate.

Worked on by

tideclaw-bot and others added 2 commits November 25, 2026 07:23
Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 8e6d786a-d944-493c-88c8-774b069266cd
@clawsweeper

clawsweeper Bot commented Nov 25, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: S labels Nov 25, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR restores the selected source’s pnpm pin in the synthetic Git fixture and lets the admission probe inspect the updated resident package.

Example: The missing-load-path update activates $OPENCLAW_STATE_DIR/git-install/openclaw.

  • Before: The entry probe rejects that location because it accepts only the original npm prefix.
  • After: The probe validates the resident release target, invokes its admission entry, and verifies that the lifecycle marker and profile artifacts remain intact.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful fixture repair with meaningful positive and negative assertions, reported candidate-path validation, and no actionable finding; Docker CI remains pending.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored change repairs acceptance tooling; its body reports real candidate lane and packaged-entry exercises, while explicitly disclosing the outstanding complete Docker replay.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators encounter false acceptance failures before the intended Git build or updated-package admission checks can complete.
Reason: The maintainer-authored repair restores meaningful release qualification without changing updater product behavior or relaxing the tested invariants.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs two source-confirmed acceptance-fixture failures without weakening their assertions, and no introduced defect was found; the reviewed head still awaits Docker CI.

Reviewed head: 594f4129d4505ccc08ab4533ee399c74155c428c

Before merge

None.

Findings

None.

Agent review details

How this fits together

Release acceptance scripts turn candidate packages and selected source metadata into synthetic installations, exercise update transitions, and produce assertions and diagnostic artifacts.

flowchart TD
  A[Selected source metadata] --> C[Synthetic Git fixture]
  B[Candidate npm artifact] --> C
  C --> D[Channel switch acceptance]
  B --> E[First hop update]
  E --> F[Verified update receipt]
  F --> G[Resident admission probe]
  G --> H[Marker and profile assertions]
Loading

Technical review

Best possible solution:

Retain the focused fixture repair and let the reviewed head complete its existing Docker acceptance gate.

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

Source inspection establishes both failures: frozen Git preflight requires the missing pin, and the original admission probe rejects the resident slot; the linked acceptance jobs failed, but no target code was executed during this review.

Is this the best way to solve the issue?

The patch is the smallest complete repair using existing fixture preparation, frozen-source reading, and verified-receipt routing, while preserving the legacy route and complete profile comparison.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 90d8787ce3f4.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Tideclaw Bot: Raw commit 529e37f adds scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh:179 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 529e37f3a53a; files: scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh)

PR surface

Tests +81, Other +40. Total +121 across 6 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 82 1 +81
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 4 51 11 +40
Total 6 133 12 +121

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.

Review metrics

Metric Value Why it matters
Fixture environment control 1 internal environment variable OPENCLAW_UPDATE_CHANNEL_SWITCH_FIXTURE_PNPM_PIN forwards selected source metadata into the Docker fixture; it adds no operator configuration or product default.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 25, 2026, 2:39 AM ET / 07:39 UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S 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