Skip to content

fix(ci): check frozen contracts before release fanout - #144236

Merged
vincentkoc merged 14 commits into
mainfrom
fix/frv-frozen-workflow-admission-20260909
Sep 10, 2026
Merged

vincentkoc merged 14 commits into
mainfrom
fix/frv-frozen-workflow-admission-20260909

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Closes #144235
Related: #144129
Related: #144023
Related: #142929

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 maintainer branch. Maintainer updates use repository
permissions; the fork-only checkbox is not applicable.

What Problem This Solves

Resolves a problem where release-validation and package-acceptance workflows
can reach expensive downstream work before checking whether the selected frozen
source supports every requested contract. The existing standalone admission
checks do not provide a workflow-wide barrier for those callers.

Why This Change Was Made

Wire the existing frozen-source owners into the parent, reusable, release-check
and package workflows. Planning identifies selected contracts before acquisition;
admission verifies the acquired committed inputs before fanout or package packing.
Package acceptance checks both a known source before packing and the resolved
package's exact source before downstream work.

Preserve existing source classifiers and omission rules, the
trusted parser prerequisite, retry policy and evidence limits. Baseline resolution
follows canonical selected obligations. Unselected values remain unresolved, and
diagnostics use existing caller namespaces.

The CI repair keeps empty environment-variable defaults at the matrix CLI
boundary while retaining strict internal profile validation. Workflow fixtures
use committed tooling and its real verifier; their phase, resource, filtering,
registry and preparation-only checks remain intact.

Package tooling checkout is pinned to the captured called-workflow SHA before
setup. workflow_ref now asserts that identity: dispatch or call at the desired
ref and provide its matching SHA, full ref, or corresponding branch/tag name.
Independent harness-ref selection is rejected; package_ref still independently
selects package source. This is an explicit, maintainer-accepted compatibility
tightening, not an unresolved request to change the operator contract.

User Impact

Release operators get earlier, attributable failures for unsupported or missing
selected contracts, before costly downstream execution. Successful local admission
does not claim release qualification or hosted acceptance.

There is no production runtime, persistent schema or stored-data change. Existing
wrapper validators are reused; admission compatibility tests are not data
migration proof. The retained standalone v1 format and workflow v2 records are
ephemeral admission evidence, not a persistent database migration. The generic
data-model migration request is therefore inapplicable. This PR does not publish
a release, copy images, alter registry policy or skip qualification.

Evidence

  • Retained local workflow-command fixtures cover all four admission barriers,
    both package stages, missing or modified committed inputs, selected-source
    identity and later-group rejection without successful continuation.
  • Standalone admission retains its 14-input closure; workflow admission uses
    19 inputs, preserving no-execution, no implicit hydration and trusted parser
    boundaries.
  • Retained default planning produced 72 evaluations in a 71,011-byte final record;
    257 evaluations produced 213,027 bytes. Both include digests, provenance and
    newline under the unchanged 262,144-byte cap. Child reconstruction, group-local
    attribution and over-limit rejection are covered. These cases were not rerun
    for the later fixture-only corrections.
  • Original CI fixture failures were reproduced locally: 60 failures across
    three fixture owners, plus the unchanged matrix direct-run case. After repair,
    those complete owners and the unchanged direct-run owner pass all 213 cases.
  • CLI boundary tests reproduced the empty-profile failure, then passed all nine
    unset, empty, valid, invalid and internal-API cases. The continuation owner
    retains 12 passing cases. The additional build-declaration guard has focused
    RED/GREEN proof; the hosted shard's 1,678 other passes are not attributed to
    that single test file.
  • The moving-ref regression checked out advanced commit B through the original
    workflow selection, then failed the real post-check against captured commit A
    for both queued/rerun cases. The repaired checkout and its matching/mismatching
    identity controls pass 38 focused local cases. No installation or hosted
    workflow execution was performed by those fixtures.

Original CI at 8d94d0778e82e0777d8ab1841a9b265f6ee09cf5 failed:
https://github.com/openclaw/openclaw/actions/runs/34508093746
Its terminal inventory is retained. Affected local gates and the consolidated
repair review passed. The substantive Package Acceptance moving-ref finding is
repaired with causal RED/GREEN proof.

CI at 74556eac3f084e47776fca53cd7962dcd874d4e0 passed on attempt 2:
https://github.com/openclaw/openclaw/actions/runs/34512931919/attempts/2
The required openclaw/ci-gate is successful. The result contains 78 successful
and 16 skipped jobs; only the failed small18 job and its aggregate gate executed
again, with 92 results carried from attempt 1.

Attempt 1 failed the MCP OAuth CLI integration case with EADDRINUSE. One approved
failed-job retry passed that exact case in 715ms, without a source change.
The competing listener and collision cause remain unproven. The original
two-group job plan was unchanged: 7,934 tests passed with 51 skipped in the first
group, and 16 passed in the second. The retry log confirms the same analyzed
checkout, 43dd4eb8c53e8c7c438dce1120a0cdd967bafb48.

The latest complete substantive review at this head has no source or security
finding. Its operator-compatibility and generic migration requests are disposed
above. Native preparation and final merge checks remain separate.

CodeQL Disposition

CodeQL failed and is not reported as passing. The exact analyzed merge's relevant
source files matched the reviewed head. The reviewed disposition is:

  • New alerts 958, 959 and 960: the reported paths are false positives for the
    actual trusted-tooling and selected-source separation.
  • Historical alerts 817, 899 and 796: reject only the reported untrusted-tooling
    path. This does not certify downstream package execution.
  • Historical alerts 721, 722, 795, 925 and 949: retain the inherited real or
    uncertain selected-execution concerns separately; do not classify them all
    as false positives.

The five inherited alerts' complete code flows were unchanged between the two
analyzed merges; clipped annotation differences did not establish new flows.
No alert was dismissed or suppressed, and no detector, cache or CI policy was
changed. The separate failed scan reports 17 configurations outside the selected
filtered/scheduled coverage; this is not a full-analysis-coverage claim. The green
CI retry does not make CodeQL passing or waive normal native landing checks.

Local fixtures do not establish hosted controlled-first-use acceptance. No real
release, FRV dispatch, registry operation or live-channel acceptance was performed.

steipete and others added 13 commits September 2, 2026 10:15
Stage complete plugin inventories in non-publishing owner workflows and
publish the original tarballs through the existing protected npm and
ClawHub publishers from one readiness receipt.

Bind source, tooling, producer attempts, and artifact digests. Require
established ClawHub publishers before readiness, verify every prepared
package before writers, and activate GitHub visibility only after exact
parent and canonical registry readback checks.

Share bounded artifact download recovery and verified archive reuse.
Retain partial dispatch requests, support explicit preparation adoption
and the existing successful-core resume path, and never blindly repeat
an uncertain registry mutation. Document native/platform boundaries and
the existing failed-core-child reconciliation limit.

Refs #136392
Resolve only the selected bundle contract with local committed-object reads and trusted syntax parsing. Preserve each legacy client's manifest, helper, import depth and bytes before Docker staging, and reject unknown or unreadable contracts.
Merge current main while preserving the existing contributor ancestry. Resolve prepared-release integration conflicts, retain dispatch intent and exact acknowledgements before presentation, and restore the optional post-activation Windows handoff.
Distinguish committed absence from missing, corrupt, or wrong-kind Git objects before selecting frozen compatibility. Share bounded local-only source reads across the shell and bundle resolver, and preserve errors through conditional callers before gateway Docker work. This is the source-read stage only; aggregate frozen admission remains separate.
Bind selected source, trusted tooling, package identity and resolved baseline selections at the four existing workflow prerequisites. Keep acquisition and conditional trusted parser provisioning separate from inert evaluation.

Share the actual consumer selectors, preserve authorized omissions and preparation-only assets, and retain bounded admission diagnostics without treating them as validation or publication authority.
@vincentkoc vincentkoc self-assigned this Sep 10, 2026
@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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 10, 2026 17:25
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Sep 10, 2026
Comment on lines +1039 to +1045
- name: Provision trusted admission parser
if: steps.frozen_selection.outputs.parser_required == 'true'
uses: ./.release-harness/.github/actions/setup-release-harness
with:
node-version: ${{ env.NODE_VERSION }}

- name: Acquire selected contract objects
Comment on lines +829 to +838
- name: Setup trusted admission package manager
if: steps.frozen_selection.outputs.parser_required == 'true'
uses: ./workflow/.github/actions/setup-pnpm-store-cache
with:
package-manager-file: workflow/package.json
lockfile-path: workflow/pnpm-lock.yaml
node-version: ${{ env.NODE_VERSION }}
cache-mode: off

- name: Provision trusted admission parser
Comment on lines +838 to +845
- name: Provision trusted admission parser
if: steps.frozen_selection.outputs.parser_required == 'true'
working-directory: workflow
env:
CI: "true"
run: pnpm install --frozen-lockfile --prefer-offline --ignore-scripts

- name: Acquire selected contract objects
@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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. 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, 2:21 PM ET / 18:21 UTC (Revision 2).

ClawSweeper review

What this changes

Checks selected frozen-source contracts before release jobs or package packing, shares workflow selection logic, and pins Package Acceptance tooling and upgrade baselines.

Merge readiness

⛔ Blocked before merge - 2 items remain

This PR remains necessary: the merged prerequisites provide standalone admission, not the workflow-wide barriers. The previous moving-ref finding is fixed, both prior rank-up requests are addressed, and no remaining blocking code defect was established.

Priority: P2
Reviewed head: 74556eac3f084e47776fca53cd7962dcd874d4e0

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The useful repair addresses the prior finding with focused boundary coverage and an explicit compatibility disposition.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. Inspected workflow-command fixtures cover admission and checkout boundaries, but the body explicitly disclaims hosted release acceptance; no unresolved material authority change requires a separate proof exception.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. Inspected workflow-command fixtures cover admission and checkout boundaries, but the body explicitly disclaims hosted release acceptance; no unresolved material authority change requires a separate proof exception.
Evidence reviewed 10 items Previous finding repaired: The exact-head commit moves called-workflow identity resolution ahead of checkout, checks out its captured SHA, and verifies that SHA before setup. This addresses the prior branch-advancement finding.
Moving-ref and identity coverage: The fixtures execute the workflow identity commands around real Git checkouts, covering queued/rerun branch advancement, matching branch/tag/SHA assertions, mismatched identities, and rejection before setup. The captured PR body reports 38 passing focused cases; these tests were inspected but not executed during this review.
Current main still has standalone admission: The fetched main revision exposes the standalone admission entrypoint without this branch's workflow-request and workflow-plan integration. The merged prerequisites explicitly leave workflow wiring separate: #144023 and #144129.
Findings None None.
Security None None.

How this fits together

Release validation selects source commits, package candidates, and test suites before launching expensive acceptance jobs. The admission layer checks their committed contracts and produces diagnostics before downstream execution.

flowchart TD
  A[Release inputs] --> B[Shared suite selection]
  B --> C[Acquire selected source objects]
  D[Pinned trusted tooling] --> E[Contract admission]
  C --> E
  E -->|Accepted| F[Package and acceptance jobs]
  E -->|Rejected| G[Stop with diagnostics]
Loading

Before merge

  • Resolve merge risk (P1) - Independent workflow_ref selections now fail before setup; existing operator invocations must dispatch or call the desired workflow revision and supply its matching assertion. The member author explicitly acknowledges this compatibility tightening.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +2774, Config +375, Other +1049. Total +4198 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 7 2869 95 +2774
Docs 0 0 0 0
Config 4 707 332 +375
Generated 0 0 0 0
Other 2 1079 30 +1049
Total 13 4655 457 +4198

Review metrics

Metric Value Why it matters
Production versus test growth Production/tooling net +1,424 lines; tests net +2,774 lines The stated production growth adds four workflow barriers and shared selection, while tests cover ordering, identity, bounded records, and rejection paths.
Operator input contract 1 existing input changes meaning: workflow_ref It now asserts the called workflow identity rather than independently selecting harness code.

Stored data model

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

Merge-risk options

Maintainer options:

  1. Retain the documented identity assertion (recommended)
    Accept the member author's explicit compatibility choice and use matching workflow dispatch refs or captured SHAs for existing operator invocations.

Technical review

Best possible solution:

Keep the shared admission owner and immutable tooling selection, with existing operator invocations following the maintainer-declared dispatch/workflow_ref pairing.

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

Yes, at source level: current main has standalone contract admission without the complete early workflow barriers identified by the linked issue; no hosted reproduction was run.

Is this the best way to solve the issue?

Yes. Reusing the existing admission owners and sharing execution selection avoids competing classifiers, and the revised checkout fixes the previously identified moving-ref race.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded release-automation reliability repair with no demonstrated urgent user-facing outage.
  • merge-risk: 🚨 compatibility: Previously independent workflow_ref selections are intentionally rejected before setup.
  • 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 ordinary contributor-proof gate is exempt for this MEMBER-authored PR. Inspected workflow-command fixtures cover admission and checkout boundaries, but the body explicitly disclaims hosted release acceptance; no unresolved material authority change requires a separate proof exception.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: 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 (1 earlier review cycle)
  • reviewed 2026-09-10T17:33:55.694Z sha 8d94d07 :: blocked before merge. :: [P2] Pin the initial tooling checkout before enforcing SHA equality

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 10, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 10, 2026
@vincentkoc
vincentkoc merged commit cc9fe39 into main Sep 10, 2026
239 of 243 checks passed
@vincentkoc
vincentkoc deleted the fix/frv-frozen-workflow-admission-20260909 branch September 10, 2026 19:12
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
* feat(release): prepare npm and ClawHub for one-button publication

Stage complete plugin inventories in non-publishing owner workflows and
publish the original tarballs through the existing protected npm and
ClawHub publishers from one readiness receipt.

Bind source, tooling, producer attempts, and artifact digests. Require
established ClawHub publishers before readiness, verify every prepared
package before writers, and activate GitHub visibility only after exact
parent and canonical registry readback checks.

Share bounded artifact download recovery and verified archive reuse.
Retain partial dispatch requests, support explicit preparation adoption
and the existing successful-core resume path, and never blindly repeat
an uncertain registry mutation. Document native/platform boundaries and
the existing failed-core-child reconciliation limit.

Refs openclaw#136392

* fix(ci): run frozen bundle clients from their shipped layout

Resolve only the selected bundle contract with local committed-object reads and trusted syntax parsing. Preserve each legacy client's manifest, helper, import depth and bytes before Docker staging, and reject unknown or unreadable contracts.

* fix(ci): preserve frozen source read failures

Distinguish committed absence from missing, corrupt, or wrong-kind Git objects before selecting frozen compatibility. Share bounded local-only source reads across the shell and bundle resolver, and preserve errors through conditional callers before gateway Docker work. This is the source-read stage only; aggregate frozen admission remains separate.

* fix(ci): reconcile retained full release dispatches

* fix(ci): retain postpublish diagnostics when verification fails

* fix(ci): isolate frozen consumer contracts

* fix(ci): invoke publication diagnostics through guarded entrypoint

* fix(ci): add inert frozen target admission

* fix(ci): admit frozen source contracts before release work

Bind selected source, trusted tooling, package identity and resolved baseline selections at the four existing workflow prerequisites. Keep acquisition and conditional trusted parser provisioning separate from inert evaluation.

Share the actual consumer selectors, preserve authorized omissions and preparation-only assets, and retain bounded admission diagnostics without treating them as validation or publication authority.

* fix(ci): pin package tooling and align admission fixtures

---------

Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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]: frozen release workflows lack admission before downstream work

3 participants