Skip to content

fix(release): harden frozen target validation - #108296

Merged
steipete merged 10 commits into
mainfrom
codex/harden-frozen-release-validation
Jul 15, 2026
Merged

steipete merged 10 commits into
mainfrom
codex/harden-frozen-release-validation

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Follow-up to #108189. The frozen-target validation path can still false-green when an older target omits requested upgrade-survivor scenarios, exposes a malformed scenario declaration, or lacks a scenario-only lane. The current CI shard fallback also derives its runner from caller context instead of the workflow commit that defines the job.

Why This Change Was Made

  • Parse the target harness scenario contract as an exact static top-level set and fail closed on malformed or indirect declarations.
  • Expand only requested survivor lanes, preserve baseline compatibility rules, and report every intentionally omitted lane in plans and summaries.
  • Require a trusted, false-by-default workflow opt-in before frozen-target scenario omissions may pass. Full Release Validation supplies it only for validated canonical release refs/tags.
  • Fetch the fallback CI shard runner from the validated job-defining workflow repository and SHA.
  • Auto-clean new frozen-target test fixtures and preserve contributor credit from fix(release): validate frozen targets with current workflows #108189.

User Impact

Release validation remains compatible with older supported targets, but candidate-controlled omissions and malformed target contracts can no longer silently turn required release proof green.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: L maintainer Maintainer-authored PR labels Jul 15, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 076b7b9f00

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +50 to +54
allow_frozen_target_scenario_omissions:
description: Trusted opt-in to omit survivor scenarios absent from a canonical frozen target
required: false
default: false
type: boolean

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Declare the opt-in for workflow_call callers

This adds allow_frozen_target_scenario_omissions only under workflow_dispatch, but openclaw-release-checks.yml now passes the same key when it calls this workflow as a reusable workflow from the live and Docker release-check jobs. Since on.workflow_call.inputs does not declare it (checked the reusable input block below), GitHub rejects those release-check jobs as an unknown reusable-workflow input before the new frozen-target validation can run. Mirror this input under workflow_call.inputs as well.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd2cf60cf9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1056 to +1058
if [[ -n "${TARGET_CONTEXT_REF// }" ]]; then
args+=(-f allow_frozen_target_scenario_omissions=true)
fi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pass the omission opt-in for direct frozen refs

When Full Release Validation is dispatched directly with a historical tag or release ref (the workflow input supports branch/tag/SHA, and this workflow already special-cases $TARGET_REF historical tags for the CI child), TARGET_CONTEXT_REF stays empty, so this branch does not pass allow_frozen_target_scenario_omissions to OpenClaw Release Checks. The new Docker scheduler now fails closed whenever current reported-issue survivor scenarios are filtered out by that frozen target, so documented direct tag/release-branch validations can still fail even though they are the same trusted frozen-target case; include direct canonical frozen refs in this opt-in or expose/pass an explicit input.

Useful? React with 👍 / 👎.

@steipete
steipete marked this pull request as draft July 15, 2026 13:13
@steipete
steipete marked this pull request as ready for review July 15, 2026 13:13

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd2cf60cf9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -3,6 +3,7 @@
// lane plan. It intentionally does not define scenario commands.
import { existsSync, readFileSync } from "node:fs";
import { resolve } from "node:path";
import ts from "typescript";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Install dependencies before loading the planner

When prepare_docker_e2e_image runs, the Plan Docker E2E images step has only checked out the selected ref and .release-harness; its Setup Node environment step is later and conditional on steps.plan.outputs.needs_package, so a clean Actions runner has no node_modules yet. This new top-level typescript import therefore makes node .release-harness/scripts/test-docker-all.mjs --plan-json fail with module resolution before any Docker release/OpenWebUI image planning can complete; move the dependency-free parsing into the workflow after setup or ensure setup/install runs before every harness planner invocation.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the codex/harden-frozen-release-validation branch from fd2cf60 to 6ecd42a Compare July 15, 2026 13:18

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6ecd42aecb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

uses: ./.github/workflows/openclaw-live-and-e2e-checks-reusable.yml
with:
advisory: ${{ startsWith(github.ref, 'refs/heads/tideclaw/alpha/') }}
allow_frozen_target_scenario_omissions: ${{ inputs.allow_frozen_target_scenario_omissions }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Forward the frozen omission opt-in through package acceptance

When release checks are run with allow_frozen_target_scenario_omissions set, these direct live/Docker jobs get the opt-in, but package_acceptance_release_checks below still passes the soak published_upgrade_survivor_scenarios: ... 'reported-issues' into Package Acceptance, whose docker_acceptance job calls openclaw-live-and-e2e-checks-reusable.yml without any matching input (checked .github/workflows/package-acceptance.yml:793-816). For a frozen target missing any current survivor scenario, that child planner hits the new fail-closed omission check and fails package acceptance, so full/stable release validation remains blocked; add and forward the same opt-in through Package Acceptance as well.

Useful? React with 👍 / 👎.

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready at exact head 6ecd42aecba52e67e786ff1ff3e7ef1b6f5ac750.

Proof:

No known proof gaps for this workflow/tooling-only change. Contributor credit remains preserved in every follow-up commit.

@steipete
steipete merged commit 4c667aa into main Jul 15, 2026
104 checks passed
@steipete
steipete deleted the codex/harden-frozen-release-validation branch July 15, 2026 13:31
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 16, 2026
* fix(release): harden frozen scenario planning

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): omit unsupported scenario-only lanes

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): fail closed on malformed target scenarios

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): report unsupported frozen lanes

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): defer frozen survivor inspection

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): report partial survivor omissions

Co-authored-by: Dallin Romney <[email protected]>

* fix(ci): fetch shard fallback from workflow commit

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): gate frozen scenario omissions

Co-authored-by: Dallin Romney <[email protected]>

* test(release): auto-clean frozen target temp dirs

Co-authored-by: Dallin Romney <[email protected]>

* fix(ci): satisfy frozen validation workflow lint

Co-authored-by: Dallin Romney <[email protected]>

---------

Co-authored-by: Dallin Romney <[email protected]>
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
* fix(release): harden frozen scenario planning

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): omit unsupported scenario-only lanes

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): fail closed on malformed target scenarios

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): report unsupported frozen lanes

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): defer frozen survivor inspection

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): report partial survivor omissions

Co-authored-by: Dallin Romney <[email protected]>

* fix(ci): fetch shard fallback from workflow commit

Co-authored-by: Dallin Romney <[email protected]>

* fix(release): gate frozen scenario omissions

Co-authored-by: Dallin Romney <[email protected]>

* test(release): auto-clean frozen target temp dirs

Co-authored-by: Dallin Romney <[email protected]>

* fix(ci): satisfy frozen validation workflow lint

Co-authored-by: Dallin Romney <[email protected]>

---------

Co-authored-by: Dallin Romney <[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 maintainer Maintainer-authored PR scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant