Skip to content

fix(release): install first-hop fixtures through the candidate registry - #137286

Merged
steipete merged 1 commit into
mainfrom
fix/update-first-hop-candidate-registry
Sep 3, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/update-first-hop-candidate-registry

Conversation

@steipete

@steipete steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where stable release validation stops before exercising the packaged updater's first hop when the candidate's companion packages are not yet published. In Full Release Validation 33728228813, the negative fixture install failed with npm ETARGET for @openclaw/[email protected], leaving the published [email protected] installed. The lane printed only the subsequent build-info mismatch.

Related: #136395 (the packaged updater bridge and first-hop compatibility lane).

Why This Change Was Made

The first-hop Docker wrapper bypassed the shared package-mount owner, so it never received the verified candidate registry entrypoint. It now uses docker_e2e_package_mount_args, keeping the existing registry alive across the negative, repaired, and fake-future fixture updates. Root packages still come from their explicit fixture tarballs; all three resolve companion versions through the candidate registry, including the future fixture's unchanged dependency versions.

The lane uses one update runner to preserve command/exit artifacts and print captured stdout/stderr on nonzero exit, including the expected negative control. Baseline npm install failures also print their log. No product code, candidate bytes, or configuration/environment surface changes. The two shell files are net-neutral: 24 lines added, 24 removed; tests add 61 net lines.

User Impact

Release maintainers can validate unpublished stable candidates through all three first-hop stages and see npm/update diagnostics directly in a failing lane log. Installed-user update behavior is unchanged.

Evidence

Frozen candidate: caa2719de7f4c6229249bee632de32fafa58a429 (2026.9.1, including the bridge chunks). Built in a second detached worktree with pnpm install && pnpm build && OPENCLAW_PREPACK_PREPARED=1 pnpm pack. Used the existing prepareNpmPackageBundle() producer to pack the core packages and the registry artifact creator's preparedBundleDir input; the root tarball was reused byte-for-byte. Local execution used OrbStack Linux/arm64 and the repository's bare Docker E2E image.

  • Before: the unchanged lane exited 1 in the negative stage, retained 2026.8.2, and captured ETARGET: No matching version found for @openclaw/[email protected] only in its update artifact.
  • After: the lane exited 0. The negative fixture installed 2026.9.1 and exited 1 for the expected missing shared-Y6bNiw2w.js; the repaired hop exited 0 at 2026.9.1, and the second hop exited 0 at 2026.9.99-first-hop.0. Both positive hops replaced the managed-service process and recorded active service state; all three stages left zero transaction residue. All installed build records retained the frozen commit SHA.
  • Diagnostic fault injection: removed the registry input from the fixed lane. It exited 1 and printed the actual npm ETARGET message in the main lane log before the build-info diff.
  • Regression: the new executable Docker-boundary test failed before the mount fix and passed after it. The future-fixture test also checks that companion dependency versions remain unchanged.
  • pnpm test test/scripts/update-first-hop-package-fixtures.test.ts test/scripts/docker-e2e-plan.test.ts test/scripts/package-acceptance-workflow.test.ts test/scripts/prepublish-plugin-registry-shell.test.ts — 461 tests passed across 4 files. The registry helper suite includes real npm installs and registry cleanup.
  • pnpm check:changed — passed.
  • shellcheck -x -e SC2016 scripts/e2e/update-first-hop-compat-docker.sh scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh — passed; SC2016 is the existing embedded-JavaScript literal warning.
  • git diff --check — passed.
  • Autoreview through P2: local review clean; --mode branch --base origin/main --max-priority P2 clean.

Lane command, with FROZEN_WORKTREE pointing to the detached candidate checkout and REGISTRY_DIR to its verified registry artifact:

OPENCLAW_QA_ALLOW_UPDATE_FIRST_HOP=1 \
OPENCLAW_UPDATE_FIRST_HOP_CANDIDATE_PACKAGE_TGZ="$FROZEN_WORKTREE/openclaw-2026.9.1.tgz" \
OPENCLAW_RELEASE_CHECK_LOCAL_PACKAGE_TARBALL_DIR="$CORE_TARBALL_DIR" \
OPENCLAW_PREPUBLISH_PLUGIN_REGISTRY_DIR="$REGISTRY_DIR" \
OPENCLAW_DOCKER_E2E_SELECTED_SHA=caa2719de7f4c6229249bee632de32fafa58a429 \
OPENCLAW_PREPUBLISH_PLUGIN_REGISTRY_CANDIDATE_VERSION=2026.9.1 \
bash scripts/e2e/update-first-hop-compat-docker.sh

This is local lane proof. The hosted Full Release Validation jobs have not been rerun, and this PR does not publish or modify the frozen release candidate.

The first-hop Docker wrapper bypassed the shared package mount owner, so
unpublished companion dependencies failed with ETARGET before the negative
control could replace the installed package. Reuse the registry entrypoint
for the entire lane, including the future fixture's candidate dependencies.
Consolidate update execution to preserve exits and print failure output.

Proof: built and packed frozen caa2719.
The unchanged lane retained 2026.8.2 after ETARGET for @openclaw/[email protected];
the fix passed the negative control and both positive hops in Docker.
A missing-registry probe exposed ETARGET in the main lane log. The wiring
regression failed before the fix; 461 focused tests, check:changed, and
shellcheck passed. Local autoreview through P2 found no actionable issues.

Related: #136395; Full Release Validation run 33728228813.
@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: S labels Sep 3, 2026
@steipete
steipete marked this pull request as ready for review September 3, 2026 11:55
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Sep 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 8:00 AM ET / 12:00 UTC.

ClawSweeper review

What this changes

The PR routes the first-hop updater Docker lane through the candidate package registry, improves failure diagnostics, and adds a regression test for the registry mount.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open. The branch correctly restores the first-hop lane’s use of the shared candidate-registry mount and adds a focused boundary assertion; no introduced correctness or security defect was found. This maintainer-authored, protected PR remains for normal exact-head CI completion.

Priority: P2
Reviewed head: e2e3fc7f3c2bdb421478b62abb0fa5a4b74d0b21

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, canonical harness repair with a meaningful boundary test and no supported correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored release-test patch is exempt from the external-contributor proof gate; its body nevertheless reports an after-fix packaged Docker lane and fault-injection result, which this read-only review could not independently execute.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored release-test patch is exempt from the external-contributor proof gate; its body nevertheless reports an after-fix packaged Docker lane and fault-injection result, which this read-only review could not independently execute.
Evidence reviewed 6 items Introduced registry wiring: The introduced wrapper call uses the canonical package-mount helper before constructing fixture archives; that helper mounts the candidate tarball and, when configured, the verified prerelease registry entrypoint into the same Docker run.
Runtime consumer and diagnostics: The in-container first-hop scenario consumes the fixed candidate path and now records each update’s command, output, exit status, and failure logs while retaining the expected negative-control exit handling.
Boundary regression coverage: The new non-Windows test invokes the Docker wrapper with a controlled Docker executable and verifies the registry entrypoint, registry mount, candidate mount, and scenario command in the constructed invocation.
Findings None None.
Security None None.

How this fits together

Release acceptance runs a packaged updater in Docker against fixture packages. The wrapper supplies the candidate package and registry, then the updater installs fixtures and records service, package, and transaction results.

flowchart LR
  A[Release candidate package] --> B[First-hop Docker wrapper]
  B --> C[Candidate registry mount]
  C --> D[Packaged updater]
  D --> E[Negative and upgrade fixtures]
  E --> F[Release acceptance results]
Loading

Before merge

  • Resolve merge risk (P1) - The supplied exact-head check rollup is still incomplete, so normal merge gates remain pending.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +61, Other 0. Total +61 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 62 1 +61
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 24 24 0
Total 3 86 25 +61

Review metrics

Metric Value Why it matters
Production versus test-support delta production 0; test-support +24/-24; tests +62/-1 The patch adds no shipped runtime behavior; its net growth is focused release-test coverage and diagnostics.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh, unknown-data-model-change: scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the shared registry-mounted launch path and land it once the exact-head checks are green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the shared registry-mounted launch path and land it once the exact-head checks are green.

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

Yes. The current-main wrapper omits the shared registry mount, and the branch supplies a controlled Docker-boundary regression test; this read-only review did not execute the destructive package-update lane.

Is this the best way to solve the issue?

Yes. Reusing the existing package-mount owner keeps candidate tarball and registry wiring canonical rather than adding lane-local registry logic.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a590cc31e12f.

Labels

Label changes:

  • add P2: This repairs a release-validation blind spot with bounded impact on maintainers and no installed-user 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: This maintainer-authored release-test patch is exempt from the external-contributor proof gate; its body nevertheless reports an after-fix packaged Docker lane and fault-injection result, which this read-only review could not independently execute.

Label justifications:

  • P2: This repairs a release-validation blind spot with bounded impact on maintainers and no installed-user 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: This maintainer-authored release-test patch is exempt from the external-contributor proof gate; its body nevertheless reports an after-fix packaged Docker lane and fault-injection result, which this read-only review could not independently execute.

Evidence

What I checked:

  • Introduced registry wiring: The introduced wrapper call uses the canonical package-mount helper before constructing fixture archives; that helper mounts the candidate tarball and, when configured, the verified prerelease registry entrypoint into the same Docker run. (scripts/e2e/update-first-hop-compat-docker.sh:65, e2e3fc7f3c2b)
  • Runtime consumer and diagnostics: The in-container first-hop scenario consumes the fixed candidate path and now records each update’s command, output, exit status, and failure logs while retaining the expected negative-control exit handling. (scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh:42, e2e3fc7f3c2b)
  • Boundary regression coverage: The new non-Windows test invokes the Docker wrapper with a controlled Docker executable and verifies the registry entrypoint, registry mount, candidate mount, and scenario command in the constructed invocation. (test/scripts/update-first-hop-package-fixtures.test.ts:82, e2e3fc7f3c2b)
  • Current-main comparison: At fetched main, this lane still directly bind-mounts only the candidate tarball and does not call the canonical package-mount helper, so the proposed behavior is not already implemented. (scripts/e2e/update-first-hop-compat-docker.sh:107, a590cc31e12f)
  • Feature-history provenance: The first-hop scenario originates from the merged updater-bridge work; blame ties its inherited command-recording line to that merge commit, while this PR supplies the new registry wiring. (scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh:44, 023ce6dfd2d4)
  • Reported real lane evidence: The PR body reports a before/after Docker execution through the packaged updater plus a missing-registry fault injection; no linked artifact was available to inspect in this read-only review.

Likely related people:

  • Jason (Json): Raw commit 023ce6d adds scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh:43 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 023ce6dfd2d4; files: scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh)
  • steipete: 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.

@steipete
steipete merged commit f26eac7 into main Sep 3, 2026
195 checks passed
@steipete
steipete deleted the fix/update-first-hop-candidate-registry branch September 3, 2026 12:08
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 3, 2026
…36761-session-mode-local-20260903

* commit '58187248c8cafd7b8cfbba3de8d001762fb08b48':
  improve(testing): add watchOS Gateway upgrade survivor (#137203)
  improve(ui): structure Devices rows with an actions menu and a facts panel (#137084)
  test(cli): reuse canonical pairing call guard (#137210)
  fix(sessions): prevent gateway stalls during large session cleanup (#126035)
  fix(qa): resolve Slack runtime dependency (#137283)
  fix: fence Session Observer catalog requests (#137243)
  fix(memory): make watcher pressure guidance actionable (#137181)
  test(entry): type the respawn exit mock directly (#137258)
  fix(release): install first-hop fixtures through the candidate registry (#137286)

# Conflicts:
#	scripts/e2e/lib/upgrade-survivor/assertions.mjs
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
…ry (openclaw#137286)

The first-hop Docker wrapper bypassed the shared package mount owner, so
unpublished companion dependencies failed with ETARGET before the negative
control could replace the installed package. Reuse the registry entrypoint
for the entire lane, including the future fixture's candidate dependencies.
Consolidate update execution to preserve exits and print failure output.

Proof: built and packed frozen caa2719.
The unchanged lane retained 2026.8.2 after ETARGET for @openclaw/[email protected];
the fix passed the negative control and both positive hops in Docker.
A missing-registry probe exposed ETARGET in the main lane log. The wiring
regression failed before the fix; 461 focused tests, check:changed, and
shellcheck passed. Local autoreview through P2 found no actionable issues.

Related: openclaw#136395; Full Release Validation run 33728228813.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling maintainer Maintainer-authored PR 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