Skip to content

fix(ci): reject invalid frozen contracts for Docker aliases - #144129

Merged
vincentkoc merged 1 commit into
mainfrom
fix/frv-frozen-wrapper-aliases-20260910
Sep 10, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/frv-frozen-wrapper-aliases-20260910

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Fixes #144123

Related: #144023 and #144023 (comment).

Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

This is a same-repository branch; maintainers can update it through repository permissions.

What Problem This Solves

Resolves a problem where Docker-only frozen validation selections could report successful admission without checking the plugin or upgrade contracts that their existing wrappers require.

Why This Change Was Made

Map plugins-offline to the existing plugin consumer, and root-managed-vps-upgrade plus update-restart-auth to the existing upgrade-survivor consumer. Keep the existing families, authorization-off behavior, and unrelated CLI-backend, first-hop, self-upgrade, and user-journey lanes unchanged.

This is an admission repair, not a workflow-wiring, release-policy, dependency, or registry change.

Persistent schema, stored data, and read/write contracts are unchanged; the mapper reuses existing wrapper validators. The June/July fixtures prove admission compatibility, not data migration.

User Impact

These selected lanes now reject invalid release metadata, missing extended-stable scenarios, and unreadable required committed files before emitting an admission record. Valid current/legacy contracts and legitimate absent-file fallback remain supported.

Evidence

  • Nine causal real-Node CLI regressions failed on the original mapper and pass with the repair. Selections use only docker.lanes, with no explicit consumer.
  • Missing-object fixtures retain the tree entry and working file, reject with the intended read error, emit no success output, and do not execute selected code or hydrate objects. Deleted companion blobs are distinct from all earlier required fixture blobs.
  • The initial post-fix run passed 52 selected cases. Its one first-hop fixture failure passed in a targeted rerun after supplying the existing planner support metadata; the first-hop lane stays scheduled without an upgrade consumer.
  • Coverage includes plugin current/legacy/absent contracts, June and July extended-stable scenarios, regular stable without a shipped scenario, authorization-off controls, deduplication, and unrelated/cross-family isolation.
  • Root-test typecheck, script/production/full-tree export checks, changed-file lint, formatting, and the selected repository guards passed. A mechanical callback parameter rename resolved the only lint failure; its isolated lint rerun passed.
  • Independent static review completed with no actionable P0-P2 findings.
  • Exact-head CI passed: https://github.com/openclaw/openclaw/actions/runs/34494493750. Local fixtures prove admission only; no full release, Docker execution, image copy, registry operation, or hosted release acceptance is claimed.

@vincentkoc vincentkoc self-assigned this Sep 10, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 10, 2026 15:15
@clawsweeper

clawsweeper Bot commented Sep 10, 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 size: M maintainer Maintainer-authored PR labels Sep 10, 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 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 10, 2026, 11:21 AM ET / 15:21 UTC.

ClawSweeper review

What this changes

Makes three Docker validation aliases check their existing plugin or upgrade contracts before reporting successful admission, with regression coverage.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains a useful, focused repair: current main still skips the three consumer mappings identified in the linked review. No actionable correctness or security finding remains in this patch.

Priority: P2
Reviewed head: 396cfcb8faca13ed419b45d542b6dcdb13c6fceb

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with meaningful CLI regression coverage and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR. Reported real Node admission runs cover the changed mapping and rejection behavior using committed fixtures; they do not claim Docker execution or hosted release acceptance.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR. Reported real Node admission runs cover the changed mapping and rejection behavior using committed fixtures; they do not claim Docker execution or hosted release acceptance.
Evidence reviewed 7 items Introduced repair: The pinned merge-base-to-head patch adds only three production alias mappings: plugins-offline selects plugins; root-managed-vps-upgrade and update-restart-auth select upgrade-survivor. Other production behavior is unchanged.
Still necessary on current main: Fetched main retains the mapper that omits all three aliases. The admission entrypoint is absent from latest release v2026.9.3, so this is a repair to newer main tooling rather than a demonstrated released-runtime regression.
Existing wrapper contracts: The lane catalog sends both upgrade aliases through upgrade-survivor-docker.sh, whose existing preflight validates release metadata, frozen capabilities, and extended-stable scenario companions. plugins-offline runs the plugin wrapper, which already resolves frozen plugin capabilities.
Findings None None.
Security None None.

How this fits together

Release validation combines a selected OpenClaw revision with trusted tooling and requested Docker lanes. Its admission command checks committed contracts and returns a validation record or an error before downstream execution.

flowchart TD
  A[Requested Docker lanes] --> B[Lane to consumer mapping]
  C[Selected committed source] --> D[Existing contract validators]
  E[Verified trusted tooling] --> D
  B --> D
  D --> F{Contracts valid?}
  F -->|Yes| G[Admission record]
  F -->|No| H[Error without admission]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +179, Other +5. Total +184 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 214 35 +179
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 6 1 +5
Total 2 220 36 +184

Review metrics

Metric Value Why it matters
Consumer coverage 3 aliases connected to 2 existing consumers Closes the specifically reported admission gaps without introducing another validation owner.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/preflight-frozen-target-contracts.mjs. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #144123
Summary: This PR directly implements the repair described by the linked open issue; the earlier merged admission work leaves this specific gap.

Members:

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

Technical review

Best possible solution:

Keep lane admission aligned with the existing wrapper-owned contracts while preserving supported legacy behavior and unrelated-lane isolation.

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

Yes, from source: on fetched main, select one of the three aliases alone with frozen mode enabled and an invalid required contract; the missing mapping skips its validator. The linked report records nine failing CLI cases; this review did not execute them.

Is this the best way to solve the issue?

Yes. Extending the existing mapper is the narrow repair, and the regression tests exercise the actual admission entrypoint while preserving valid and disabled-mode behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: Repairs a bounded release-validation false-success condition without demonstrated deployed-runtime impact.
  • 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: The external-contributor proof gate does not apply to this MEMBER-authored PR. Reported real Node admission runs cover the changed mapping and rejection behavior using committed fixtures; they do not claim Docker execution or hosted release acceptance.

Label justifications:

  • P2: Repairs a bounded release-validation false-success condition without demonstrated deployed-runtime impact.
  • 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: The external-contributor proof gate does not apply to this MEMBER-authored PR. Reported real Node admission runs cover the changed mapping and rejection behavior using committed fixtures; they do not claim Docker execution or hosted release acceptance.

Evidence

What I checked:

  • Introduced repair: The pinned merge-base-to-head patch adds only three production alias mappings: plugins-offline selects plugins; root-managed-vps-upgrade and update-restart-auth select upgrade-survivor. Other production behavior is unchanged. (scripts/preflight-frozen-target-contracts.mjs:251, 396cfcb8faca)
  • Still necessary on current main: Fetched main retains the mapper that omits all three aliases. The admission entrypoint is absent from latest release v2026.9.3, so this is a repair to newer main tooling rather than a demonstrated released-runtime regression. (scripts/preflight-frozen-target-contracts.mjs:251, ce954d8f2c09)
  • Existing wrapper contracts: The lane catalog sends both upgrade aliases through upgrade-survivor-docker.sh, whose existing preflight validates release metadata, frozen capabilities, and extended-stable scenario companions. plugins-offline runs the plugin wrapper, which already resolves frozen plugin capabilities. (scripts/e2e/upgrade-survivor-docker.sh:69, 396cfcb8faca)
  • Meaningful entrypoint regressions: Tests launch the actual Node admission command against separate committed Git fixtures. Added cases check malformed versions, unsupported corrections, missing scenarios, missing committed objects, valid release trains, disabled frozen mode, deduplication, and unrelated-consumer isolation. Missing-object cases retain working files and check empty success output and absence of execution or hydration. (test/scripts/preflight-frozen-target-contracts.test.ts:362, 396cfcb8faca)
  • Linked discussion addressed: The linked review on merged fix(ci): validate frozen targets without executing candidate code #144023 specifically requested these three mappings and Docker-only rejection regressions. This patch addresses that request and the open report at [Bug]: Docker-only frozen admission skips plugin and upgrade contracts #144123. The earlier generic data-model warning does not apply: this patch changes neither persistence nor a stored schema.
  • Reported validation and review limits: The captured PR body reports nine causal CLI regressions failing before the repair and passing afterward, plus focused validation and recovery runs. It explicitly limits its claims to local admission proof. This read-only review did not execute target code; diff whitespace checks passed and the checkout remained clean. (396cfcb8faca)

Likely related people:

  • Vincent Koc: Raw commit 3c4981a adds scripts/preflight-frozen-target-contracts.mjs:251 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3c4981a51e8f; files: scripts/preflight-frozen-target-contracts.mjs)

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.

@vincentkoc
vincentkoc merged commit 091689b into main Sep 10, 2026
190 checks passed
@vincentkoc
vincentkoc deleted the fix/frv-frozen-wrapper-aliases-20260910 branch September 10, 2026 15:39
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

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

Labels

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

[Bug]: Docker-only frozen admission skips plugin and upgrade contracts

1 participant