Repository navigation
fix(ci): check frozen contracts before release fanout - #144236
Conversation
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.
…-frozen-d-integration-20260909
…-frozen-d-integration-20260909
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
| - 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 |
| - 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 |
| - 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 |
|
Codex review: blocked before merge. Reviewed September 10, 2026, 2:21 PM ET / 18:21 UTC (Revision 2). ClawSweeper reviewWhat this changesChecks 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 Review scores
Verification
How this fits togetherRelease 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]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +2774, Config +375, Other +1049. Total +4198 across 13 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* 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]>
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_refnow asserts that identity: dispatch or call at the desiredref and provide its matching SHA, full ref, or corresponding branch/tag name.
Independent harness-ref selection is rejected;
package_refstill independentlyselects 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
both package stages, missing or modified committed inputs, selected-source
identity and later-group rejection without successful continuation.
19 inputs, preserving no-execution, no implicit hydration and trusted parser
boundaries.
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.
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.
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.
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
8d94d0778e82e0777d8ab1841a9b265f6ee09cf5failed: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
74556eac3f084e47776fca53cd7962dcd874d4e0passed on attempt 2:https://github.com/openclaw/openclaw/actions/runs/34512931919/attempts/2
The required
openclaw/ci-gateis successful. The result contains 78 successfuland 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 approvedfailed-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:
actual trusted-tooling and selected-source separation.
path. This does not certify downstream package execution.
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.