Skip to content

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

Merged
RomneyDa merged 7 commits into
mainfrom
openclaw/plaid-krill-f4610d
Nov 25, 2026
Merged

RomneyDa merged 7 commits into
mainfrom
openclaw/plaid-krill-f4610d

Conversation

@tideclaw-bot

@tideclaw-bot tideclaw-bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Supersedes #205175: it carries #205175's commits unchanged, plus one commit for the resident-owner refusal on main.

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. Separately, the first-hop missing-load-path lane finished updating, but its final entry probe rejected the resident launcher slot ($OPENCLAW_STATE_DIR/git-install/openclaw) because it expected only the original npm prefix.

After that fix, #205175's Docker run got past package → Git dev and then failed Git → package stable on main: #204866 (0fea252c72db) deliberately refuses installer-kind switches for resident-owned installs ("The resident launcher owns this installation. --channel stable requires the in-place installer…"). The 2026.12.1 cut predates that guard and must still prove the switch.

Solution

  • Restore the selected source's exact pnpm pin only in the detached synthetic Git checkout, before generating its frozen lockfile. The packed/npm install stays untouched.
  • Select the final first-hop probe route from the verified update receipt. For a resident update, require its exact slot and an in-profile, direct release target.
  • Resolve OPENCLAW_FROZEN_TARGET_GIT_TO_PACKAGE_MODE from the selected source, using the same frozen-target resolver as the existing main-tag and package-to-Git contracts. refuse applies when update-command-admission-report.ts contains the ownership guard and is the current-source default; switch applies otherwise.
    • In refuse mode the lane asserts a nonzero exit, ok: false, and the exact owner-refusal prefix for --channel stable. It then checks that runtime staging is clean, the config channel is still dev, and status still reports a Git install.
    • In switch mode the lane keeps the existing successful switch assertions.
    • A refusal never counts as a successful switch. Updater product code and ownership policy are unchanged.

Evidence

  • The resolver ran against real checkouts: candidate b6c3a6748b6a and the local 12.1 stack 993613d52d59 resolve to switch; main c64a7d017aca resolves to refuse.
  • 39 focused tests passed across preflight-frozen-target-contracts and update-channel-switch-fixture. These include accepting the owner refusal and rejecting both a successful switch and an unrelated failure under refuse. Targeted oxlint, oxfmt, bash -n, and git diff --check passed; shellcheck reports only the existing SC2016 notes.
  • Earlier fix(ci): restore the Git pin and resident package in updater acceptance #205175 evidence still applies: the scratch-path channel-switch run on the verified candidate artifact passed, and the first-hop probe went red → green locally. Docker replay is pending in CI; this host has no Docker daemon.
  • Known separate failure: release-update-survivor's crash trial times out in all three Workshop/updater PRs. This PR does not touch it.

Worked on by

tideclaw-bot and others added 4 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
…targets

Targets with the #204866 ownership guard refuse --channel stable from a resident-owned Git install. The channel-switch lane now asserts that refusal and that the Git install stays in place; older cuts without the guard, including 2026.12.1, still prove the switch.

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

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 8948194f-9c68-8fc2-b08b-98c8dbe3c08b
@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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: M labels Nov 25, 2026
@tideclaw-bot tideclaw-bot changed the title Publish openclaw/plaid-krill-f4610d fix(ci): restore the Git pin and resident package in updater acceptance Nov 25, 2026
@tideclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:other This issue has meaningful maintainer-visible impact outside the owned taxonomy. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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-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 synthetic Git metadata, supports resident-package admission probes, and selects channel-switch assertions from the candidate’s updater contract.

Example: A resident-owned Git installation runs openclaw update --channel stable.

  • Before: The acceptance lane requires a successful package switch and reports the intentional ownership refusal as a failure.
  • After: Guarded candidates must refuse the switch while preserving the dev channel and Git installation; older candidates must still complete the switch.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, focused acceptance repair with meaningful regression cases and no actionable finding; independently inspectable execution evidence is limited.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored acceptance-tooling repair changes no shipped product behavior; supplied evidence reports candidate and packaged-entry exercises, while complete Docker replay remains pending.
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 candidate builds or updated-package admission checks can complete.
Reason: The maintainer-authored change restores meaningful qualification while respecting the already-approved installer ownership boundary.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs source-confirmed acceptance failures, preserves intentional updater ownership rules, and has no actionable review finding.

Reviewed head: 6a5f831a4c5dda510f870da851d2c1d788e119b1

Before merge

None.

Findings

None.

Agent review details

How this fits together

Release acceptance tooling consumes selected source metadata and candidate packages, exercises update transitions, and produces receipts plus preservation assertions.

flowchart TD
  A[Selected source] --> B[Frozen contract resolver]
  C[Candidate package] --> D[Synthetic Git fixture]
  B --> D
  D --> E[Channel switch assertions]
  C --> F[First hop update]
  F --> G[Resident admission probe]
  G --> H[Profile preservation assertions]
Loading

Technical review

Best possible solution:

Retain this focused repair using the existing frozen-source resolver, fixture preparer, and verified-receipt route selector.

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

Source establishes the missing-pin preflight refusal, the original probe’s npm-only root restriction, and the mismatch between unconditional switch success and the resident-owner guard; this review executed no target code.

Is this the best way to solve the issue?

The patch is a small complete fixture repair: it restores required metadata, follows the existing verified update route, and preserves candidate-specific success or refusal assertions without changing updater policy.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 0b1a6ce adds scripts/lib/frozen-target-compat.sh:107 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0b1a6ceeccf5; files: scripts/lib/frozen-target-compat.sh)

PR surface

Tests +115, Other +72. Total +187 across 9 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 120 5 +115
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 6 85 13 +72
Total 9 205 18 +187

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
Internal harness controls 2 environment variables The fixture pnpm pin and Git-to-package mode carry acceptance metadata without adding operator settings or changing product defaults.

Root-cause cluster

Relationship: canonical
Canonical: #205233
Summary: This PR carries the predecessor’s fixes and adds acceptance of the intentional resident-owner refusal.

Members:

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

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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, 3:53 AM ET / 08:53 UTC.

tideclaw-bot and others added 3 commits November 25, 2026 09:01
The update-channel-switch contract now reads update-command-admission-report.ts; the default parent admission fixture must carry it.

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

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 043bf936-fc33-8b39-a692-df58dcd58515
@RomneyDa
RomneyDa merged commit ded2602 into main Nov 25, 2026
93 of 95 checks passed
@RomneyDa
RomneyDa deleted the openclaw/plaid-krill-f4610d branch November 25, 2026 09:45
tideclaw-bot added a commit that referenced this pull request Nov 25, 2026
…ce (#205233)

* fix(ci): preserve updater fixture source and release identity

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

* fix(ci): restore the Git pin and resident package in updater acceptance

Worked on by:
- @vincentkoc
- @RomneyDa

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

* fix(ci): expect resident-owner refusal for Git-to-package on guarded targets

Targets with the #204866 ownership guard refuse --channel stable from a resident-owned Git install. The channel-switch lane now asserts that refusal and that the Git install stays in place; older cuts without the guard, including 2026.12.1, still prove the switch.

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

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

* Publish openclaw/plaid-krill-f4610d

Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 8948194f-9c68-8fc2-b08b-98c8dbe3c08b

* test(ci): include the admission report in the parent admission fixture

The update-channel-switch contract now reads update-command-admission-report.ts; the default parent admission fixture must carry it.

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

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

* Publish openclaw/plaid-krill-f4610d

Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 043bf936-fc33-8b39-a692-df58dcd58515

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit ded2602)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 26, 2026
…ce (openclaw#205233)

* fix(ci): preserve updater fixture source and release identity

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

* fix(ci): restore the Git pin and resident package in updater acceptance

Worked on by:
- @vincentkoc
- @RomneyDa

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

* fix(ci): expect resident-owner refusal for Git-to-package on guarded targets

Targets with the openclaw#204866 ownership guard refuse --channel stable from a resident-owned Git install. The channel-switch lane now asserts that refusal and that the Git install stays in place; older cuts without the guard, including 2026.12.1, still prove the switch.

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

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

* Publish openclaw/plaid-krill-f4610d

Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 8948194f-9c68-8fc2-b08b-98c8dbe3c08b

* test(ci): include the admission report in the parent admission fixture

The update-channel-switch contract now reads update-command-admission-report.ts; the default parent admission fixture must carry it.

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

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

* Publish openclaw/plaid-krill-f4610d

Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 043bf936-fc33-8b39-a692-df58dcd58515

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
tideclaw-bot added a commit that referenced this pull request Nov 30, 2026
…ce (#205233)

* fix(ci): preserve updater fixture source and release identity

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

* fix(ci): restore the Git pin and resident package in updater acceptance

Worked on by:
- @vincentkoc
- @RomneyDa

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

* fix(ci): expect resident-owner refusal for Git-to-package on guarded targets

Targets with the #204866 ownership guard refuse --channel stable from a resident-owned Git install. The channel-switch lane now asserts that refusal and that the Git install stays in place; older cuts without the guard, including 2026.12.1, still prove the switch.

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

* Publish openclaw/plaid-krill-f4610d

Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 8948194f-9c68-8fc2-b08b-98c8dbe3c08b

* test(ci): include the admission report in the parent admission fixture

The update-channel-switch contract now reads update-command-admission-report.ts; the default parent admission fixture must carry it.

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

* Publish openclaw/plaid-krill-f4610d

Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 043bf936-fc33-8b39-a692-df58dcd58515

---------

Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit ded2602)

Release adaptation: retain stable lifecycle/legacy assertions rather than importing the unavailable receipt helper; the shipped survivor orchestrator uses its existing legacy npm route, while the admission probe validates both layouts. Use the stable legacy switch as the unpinned default.

Follow-up audit: aeb7edb is the immediately following selected packaged-SHA/registry companion. e85cda3, e0f0687, c2cfab0, 6fa79a5, 293eb51, ac02524, 3b1ca5b, 05c15ac and b9d0210 address independent orchestration, coverage or product installer behavior.

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

docker Docker and sandbox tooling impact:other This issue has meaningful maintainer-visible impact outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M 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.

2 participants