Skip to content

fix(ci): validate frozen releases with target capabilities - #136127

Merged
vincentkoc merged 1 commit into
mainfrom
fix/frv-frozen-target-compat-20260902-0712
Sep 2, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/frv-frozen-target-compat-20260902-0712

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where Full Release Validation could report false release failures when current trusted harness code validated the frozen release target 659df8107ce37c07a4cd4364c76ece55a7124e22.

Release-check child run 33597892284 exposed three target/tooling skew failures:

  • gateway network job 100147459445 required current suspension RPCs after baseline connect and health succeeded, even though the target did not advertise them;
  • provider jobs 100148303193, 100148303213, 100148303259, and 100148303272 invoked a current-only metadata CLI mode from the target, then passed its JSON to npm and failed with EINVALIDTAGNAME before provider calls;
  • announce job 100148303298 hardcoded the current test path, while the frozen target retained the historical path.

These were trusted-harness failures, not product regressions in the frozen release.

Why This Change Was Made

The trusted harness now discovers capabilities and paths from the staged target instead of assuming current-only contracts:

  • gateway suspension support comes from the existing WebSocket connect hello methods; all three methods are required for the lifecycle, none permits omission only for an explicitly authorized frozen target, and partial or malformed capability data fails closed;
  • Docker package setup imports the staged target's structured metadata export and validates package specs with the target's parseRegistryNpmSpec; an authorized historical target without the export preserves its historical no-package-setup behavior;
  • announce resolves one unique live-test basename under staged src/agents, supporting both historical and current layouts while rejecting zero or ambiguous matches;
  • workflows forward exact selected/tooling SHAs plus a default-deny omission authorization flag;
  • the gateway capability client runs as the numeric host UID/GID, verifies host ownership, and removes its private output file and directory without a root preparation container or recursive chown.

The architectural owner is the trusted release harness. No product fallback, timeout increase, retry, or product-code change was added. The false current-only CLI and hardcoded-path assumptions are bypassed only through target-owned capability/path discovery.

User Impact

Release operators can validate a frozen target with current trusted tooling without false gateway, provider, announce, or bind-output ownership failures caused by harness evolution. Current/capable targets still run the full package setup and gateway suspension lifecycle.

No product runtime behavior changes. No release, publish, tag, registry mutation, or full FRV graph was run.

Evidence

  • Exact repaired head: 32cf1b36c58d9f54d2ec1ac22fd30fea4fa0be97
  • Frozen target: 659df8107ce37c07a4cd4364c76ece55a7124e22
  • Regression provenance:
    • pre-fix target failed 7 metadata/path cases, 4 gateway hello-method cases, 1 workflow propagation case, and 1 Docker source-integrity case;
    • pre-amend head 03635db69530c6c0c315c21c1ab4063337e9ded2 failed the stdout-flush regression because the missing-export branch called process.exit() after writing;
    • the ownership regression failed the committed pre-fix source contract because it inspected the image user, ran a root preparation container, and recursively changed bind ownership;
    • the repaired source runs the client as $(id -u):$(id -g), asserts directory and output-file ownership with Bash -O, and unlinks both outputs before continuing.
  • Focused local:
    • ownership source contract failed on pre-fix and passed on the repaired working tree;
    • test/scripts/docker-build-helper.test.ts: 273 passed, 2 skipped;
    • test/scripts/gateway-network-client.test.ts: 23 passed;
    • shell syntax, targeted formatting, targeted oxlint, git diff --check, and scripts/check-changed.mjs --dry-run passed;
    • the actual changed-file gate passed all preceding lanes, then the broad test-root tsgo lane hit the known incomplete shared-dependency baseline (smol-toml, OpenTelemetry, Discord, Slack, and other unrelated packages);
    • Codex autoreview: scoped-clean, no accepted P0 findings or exposed credentials.
  • Pre-fix hosted ownership receipt:
  • Repaired exact-head hosted proof:
    • Testbox tbx_01m1gnext9gezmwv1z4h4sy5x9;
    • Actions run https://github.com/openclaw/openclaw/actions/runs/33611589793;
    • tooling 32cf1b36c58d9f54d2ec1ac22fd30fea4fa0be97, target 659df8107ce37c07a4cd4364c76ece55a7124e22;
    • root image build passed in 215 seconds and live image build passed in 289 seconds;
    • gateway baseline passed in 9 seconds with connect+health and the authorized historical suspension omission;
    • OpenAI passed in 59 seconds;
    • Anthropic passed in 50 seconds;
    • Google passed in 33 seconds;
    • MiniMax and MiniMax Portal passed in 37 seconds;
    • historical announce path resolution and live test passed in 73 seconds;
    • overall timing: commandMs=946460, totalMs=949035, exitCode=0, runStatus=succeeded;
    • the one-shot Testbox stopped with state completed.
  • Provider admission accounting:
    • the first repaired-head acquisition attempt returned HTTP 429 before a lease existed (run_b7596d33d0ac, commandMs=0);
    • after the authorized 120-second cooldown, the single acquisition retry produced the successful receipt above;
    • no FRV campaign or release retry was consumed.
  • LOC:
    • trusted harness/workflows: +299/-12 (net +287);
    • tests/test support: +372/-6 (net +366);
    • product runtime: 0.

Sibling coverage includes all gateway hello capability shapes, all provider Docker lanes through the shared package owner, both announce layouts, workflow propagation/default deny, canonical Docker E2E ownership/timeout wiring, and the hosted frozen-target execution of every supported release-harness scenario.

@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc vincentkoc self-assigned this Sep 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: L maintainer Maintainer-authored PR labels Sep 2, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 2, 2026 07:54
@vincentkoc
vincentkoc force-pushed the fix/frv-frozen-target-compat-20260902-0712 branch from 81f1cc1 to a205aec Compare September 2, 2026 08:02
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 5:27 AM ET / 09:27 UTC.

ClawSweeper review

What this changes

The PR makes frozen-release validation discover gateway, provider-package, and historical test-path capabilities from the staged target instead of assuming current harness contracts.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

No introduced correctness defect was found. This PR remains open for a release-owner decision because it extends coordinator-authorized omission policy in protected release-validation workflows.

Priority: P2
Reviewed head: 32cf1b36c58d9f54d2ec1ac22fd30fea4fa0be97
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Strong exact-head hosted proof and focused owner-boundary coverage support the patch; the remaining blocker is release-policy acceptance, not an implementation defect.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The changed production owner is the trusted release/Docker harness. The PR body supplies an exact-head Testbox and Actions receipt that runs the frozen target through the gateway baseline, provider suites, and historical announce path, with all listed after-fix scenarios succeeding.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The changed production owner is the trusted release/Docker harness. The PR body supplies an exact-head Testbox and Actions receipt that runs the frozen target through the gateway baseline, provider suites, and historical announce path, with all listed after-fix scenarios succeeding.
Evidence reviewed 8 items Workflow caller and authorization propagation: The install-smoke consumer forwards the default-deny omission flag and distinct selected/tooling revisions into the gateway Docker harness; the release coordinator forwards the same input.
Gateway capability owner: The client classifies only complete or absent suspension method sets after a successful connect and health exchange; the server hello is the authoritative producer of the advertised method list.
Staged-target package and path owner: The common staging helper imports the staged target metadata and parser, validates package strings before npm, and rejects absent or ambiguous announce-test paths; omission remains gated by the explicit authorization helper.
Findings None None.
Security None None.

How this fits together

Full Release Validation runs a selected release target with current trusted workflows and Docker harnesses. The changed harness discovers what the target supports before deciding which gateway, provider, and announce checks can run.

flowchart LR
  Target[Frozen release target] --> Workflow[Trusted release workflow]
  Workflow --> Stage[Docker staging harness]
  Stage --> Gateway[Gateway capability check]
  Stage --> Providers[Provider package discovery]
  Stage --> Announce[Announce test lookup]
  Gateway --> Result[Release validation result]
  Providers --> Result
  Announce --> Result
Loading

Decision needed

Question Recommendation
Should coordinator-authorized capability omissions be accepted for frozen release targets when the target advertises that the gateway lifecycle or package metadata is unavailable? Accept the scoped omission policy: Merge with the default-deny flag and require exact hosted proof whenever a frozen target omits an unsupported scenario.

Why: This is an intentional release-validation policy extension that can skip portions of a compatibility run, despite the default-deny guard and successful proof for the named frozen target.

Before merge

  • Resolve merge risk (P1) - This changes credentialed release-validation control flow: an authorized frozen target can omit unsupported lifecycle/package setup, so future extensions of this authorization need target-specific hosted proof.
  • Resolve merge risk (P1) - The repair adds net 287 trusted-harness/workflow lines; the growth is justified by three separate staged-target contracts, but it increases the release-harness surface that owners must maintain.
  • Complete next step (P2) - Confirm that coordinator-authorized frozen-target scenario omissions are acceptable release-validation policy before merge.
Agent review details

Security

None.

PR surface

Tests +366, Config +11, Other +276. Total +653 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 372 6 +366
Docs 0 0 0 0
Config 3 11 0 +11
Generated 0 0 0 0
Other 6 288 12 +276
Total 14 671 18 +653

Review metrics

Metric Value Why it matters
Harness versus tests LOC trusted harness/workflows +299/-12 (net +287); tests +372/-6 (net +366); product runtime 0 The compatibility repair substantially expands release-harness logic while keeping product behavior unchanged.

Stored data model

Persistent data-model change detected: serialized state: scripts/e2e/lib/gateway-network/client.mts, unknown-data-model-change: scripts/e2e/lib/gateway-network/client.mts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Accept the scoped automation change (recommended)
    Merge only if the release owner accepts default-deny, coordinator-authorized omissions backed by the exact hosted frozen-target receipt.
  2. Narrow or defer the omission boundary
    Pause this PR if release validation needs a target allowlist or another policy boundary before it may skip unsupported scenarios.

Technical review

Best possible solution:

Keep target-owned capability and path discovery in the trusted harness, retain the default-deny authorization guard, and accept omissions only with exact target-specific release-harness evidence.

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

Yes, at high confidence: the supplied pre-fix and exact-head hosted runs exercise the same frozen target and release harness, while the source maps each failure to its staged-target assumption. This review did not rerun the credentialed Docker workflow.

Is this the best way to solve the issue?

Yes for the implementation boundary: target-owned capability and path discovery replaces current-only assumptions, and malformed or partial capability data remains fail-closed. The remaining question is release-policy acceptance of the authorized omission scope.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is the trusted release/Docker harness. The PR body supplies an exact-head Testbox and Actions receipt that runs the frozen target through the gateway baseline, provider suites, and historical announce path, with all listed after-fix scenarios succeeding.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove merge-risk: 🚨 availability: Current PR review merge-risk labels are merge-risk: 🚨 automation.

Label justifications:

  • P2: This repairs false release-validation failures with a bounded maintainer and release-operator blast radius.
  • merge-risk: 🚨 automation: The PR changes GitHub release workflows and Docker harness branching, including when an authorized scenario may be omitted.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The changed production owner is the trusted release/Docker harness. The PR body supplies an exact-head Testbox and Actions receipt that runs the frozen target through the gateway baseline, provider suites, and historical announce path, with all listed after-fix scenarios succeeding.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is the trusted release/Docker harness. The PR body supplies an exact-head Testbox and Actions receipt that runs the frozen target through the gateway baseline, provider suites, and historical announce path, with all listed after-fix scenarios succeeding.

Evidence

What I checked:

  • Workflow caller and authorization propagation: The install-smoke consumer forwards the default-deny omission flag and distinct selected/tooling revisions into the gateway Docker harness; the release coordinator forwards the same input. (.github/workflows/install-smoke-reusable.yml:556, 32cf1b36c58d)
  • Gateway capability owner: The client classifies only complete or absent suspension method sets after a successful connect and health exchange; the server hello is the authoritative producer of the advertised method list. (scripts/e2e/lib/gateway-network/client.mts:117, 32cf1b36c58d)
  • Staged-target package and path owner: The common staging helper imports the staged target metadata and parser, validates package strings before npm, and rejects absent or ambiguous announce-test paths; omission remains gated by the explicit authorization helper. (scripts/lib/live-docker-stage.sh:107, 32cf1b36c58d)
  • Focused contract coverage: Tests cover complete, absent, partial, and malformed gateway method sets; valid, absent, and malformed package metadata; default-deny identities; and both historical/current announce layouts. (test/scripts/gateway-network-client.test.ts:378, 32cf1b36c58d)
  • Exact-head hosted behavior proof: The supplied PR body records a successful exact-head Testbox/Actions run for frozen target 659df81: gateway baseline with authorized omission, all listed provider lanes, and the historical announce test completed successfully in Actions run 33611589793. (32cf1b36c58d)
  • Current-main comparison: The pinned base is an ancestor of fetched main, and the path-scoped base-to-main comparison reported no independent changes across the 14 introduced paths; current main has not absorbed this PR. (c1744fda2aee)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: 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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-02T08:14:47.812Z sha a205aec :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T08:46:02.463Z sha cd0007d7e4f98cda4df4573ecd4325d1a146b43d :: found issues before merge. :: [P2] Preserve host ownership of the capability output directory
  • reviewed 2026-09-02T09:07:39.571Z sha 32cf1b3 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the fix/frv-frozen-target-compat-20260902-0712 branch from a205aec to cd0007d Compare September 2, 2026 08:36
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 2, 2026
@vincentkoc
vincentkoc force-pushed the fix/frv-frozen-target-compat-20260902-0712 branch from cd0007d to 32cf1b3 Compare September 2, 2026 08:55
@clawsweeper clawsweeper Bot added 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. proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Sep 2, 2026
@clawsweeper clawsweeper Bot added the rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. label Sep 2, 2026
@vincentkoc
vincentkoc merged commit 986c9e4 into main Sep 2, 2026
234 checks passed
@vincentkoc
vincentkoc deleted the fix/frv-frozen-target-compat-20260902-0712 branch September 2, 2026 10:07
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts size: L 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