Skip to content

fix(ci): reject invalid release sources before FRV fanout - #147049

Merged
vincentkoc merged 2 commits into
mainfrom
fix/frv-source-admission-20260913
Sep 13, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/frv-source-admission-20260913

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Fixes #147047

What Problem This Solves

Full Release Validation can start expensive producer jobs before checking whether the selected publication source has a complete, valid package inventory.

User Impact

Release operators get a source-only admission result before producer fanout, bound to the intended publication route and selected inputs. Fresh dispatches require explicit intent; existing retained requests and historical evidence keep their recovery behavior.

Why This Change Was Made

The root workflow now validates committed metadata using the existing verified inventory owner, without executing candidate code. It retains the source fact through execution plans, manifests, reuse, and publication evidence checks.

The SHA helper, checklist, and documented direct callers carry explicit purpose and publication selection. Raw dispatch uses a closed envelope in the existing trusted_workflow_json slot, preserving the 25-input limit. Child workflows still receive only the resolved tooling identity.

The compatibility repair preserves regular final/correction publication to either beta or latest, including Windows selections for those versions. Inventory-only admission also retains canonical release and extended-stable branch workflows using the existing identity owner and exact branch/SHA checks; publication-plan and lock authority are unchanged.

This is the source-admission increment, not registry qualification or publication authority. Existing registry prechecks remain; complete registry observations, publication receipts, and final expected-selection matching at every publication boundary are a separate required follow-up. The unchanged publisher CLI paths do not yet enforce that final selection comparison. No release, registry write, provider run, or hosted FRV was performed.

Accepted Frozen-Tooling Cutover

The planned fresh-request cutoff is accepted under the approved source-admission scope. The updated helper requires source-capable tooling and rejects older tooling before remote state. Retained requests enter reconciliation first: bytes remain unchanged and calls are GET-only. Existing eligible continuation retains its frozen identity.

A fresh parent on pre-admission tooling requires that release's compatible pinned execution route or a separately approved tooling change. This does not assert that every active operator has a usable older runtime. No tooling upgrade is approved or performed here, and no future case may silently bypass the gate. This is acceptance of the reviewed cutover, not an operational census.

Evidence

  • Causal real-workflow regression: committed missing package metadata previously reached successful root resolution; the new admission rejects it before selected dependent producers can run.
  • Distinct candidate/tooling SHAs, parser-false diagnostics, missing local Git objects, bootstrap/import tampering, and divergent Tideclaw alpha inventory are covered without executing target code.
  • The platform/inventory owners passed 145 tests, including committed Windows/Android source selection, helper linkage faults, inline-layout compatibility, and unchanged plan/lock restrictions. This is metadata proof, not native platform qualification.
  • Actual dispatch decoder, SHA-helper POST, and checklist tests cover the closed envelope, explicit intent, identity mismatch, and malformed/conflicting inputs. Six focused transport/recovery cases passed, including original unsorted/duplicate plugin selection and byte-preserving historical reopen. Eight final source-admission flow cases also passed.
  • Independent three-pass review completed with three unique findings. The alpha Docker/VCR projection and four stale dispatch-envelope fixtures were corrected: all 15 previously failing fixture cases and 16 affected projection/reuse cases passed. The remaining publisher-boundary selection finding is retained in the required follow-up above; this review is not reported as clean.
  • Both complete SHA-helper and checklist test files passed after the envelope changes: 314 tests, zero failures. Final repair script/test types and scoped lint passed. Formatting, export scans, and workflow checks (including actionlint and zizmor) also passed.
  • First-head CI exposed 28 stale fixture/routing expectations; these were migrated without weakening production guards or strict target arrays. The two complete affected owners produced 1,117 passes and one missing zip prerequisite. After restoring the real checksum-verified binary, that unchanged single case passed: 1,118 distinct cumulative passes, not one all-green full run.
  • Both hosted compatibility findings were reproduced through the real workflow/producer boundaries: 11 causal failures and one passing control before repair. The repaired route, identity, Windows predicate, and main/protected controls total 55 distinct cumulative passing cases. The new eight-file repair received a separate scoped P0-P2 review with no findings; final script/test type, lint, and format gates passed.
  • Data-model compatibility is covered by historical byte-preserving GET-only reopening, fresh old-tooling refusal without writes, and the retained seal/restore source-binding and historical durable-evidence proof. No old request is rewritten or retroactively source-qualified.
  • Exact-head CI run 34760843544 passed: 77 successful jobs and 16 skips, including both repaired shards and openclaw/ci-gate. Hosted Revision 2 found no additional code defects; its cutoff decision is resolved above.

The branch is in the canonical repository and remains editable by maintainers. This PR makes no full-FRV, release-readiness, or speedup claim.

@vincentkoc vincentkoc self-assigned this Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 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 docs Improvements or additions to documentation scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Sep 13, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 13:17
@vincentkoc
vincentkoc requested a review from a team as a code owner September 13, 2026 13:17
@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 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 9:55 AM ET / 13:55 UTC (Revision 2).

ClawSweeper review

What this changes

Full Release Validation checks committed publication metadata before starting dependent jobs and carries explicit publication intent through dispatch, recovery, and retained evidence.

Merge readiness

⛔ Blocked before merge - 4 items remain

The source-admission gap remains on main, and both prior compatibility findings are addressed in the current head. No additional blocking code defect was identified; the deliberate cutoff for new requests using older frozen tooling needs release-owner acceptance.

Priority: P2
Reviewed head: 7b903f6a94a6be7c2a4eb9b66916e7dcee5e5cc6
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent repair with meaningful boundary coverage and both prior blockers addressed; operational cutover acceptance remains separate from patch quality.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from ordinary contributor proof. Inspected fixtures exercise production workflow admission against committed metadata with controlled GitHub responses; the reported results do not claim hosted FRV or publication execution.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from ordinary contributor proof. Inspected fixtures exercise production workflow admission against committed metadata with controlled GitHub responses; the reported results do not claim hosted FRV or publication execution.
Evidence reviewed 8 items Current main still lacks publication-source admission: The fetched main workflow performs frozen-contract admission and then summarizes the target; the new publication-source contract file is absent. This remains distinct work for the open linked issue.
Latest release does not contain the new gate: The v2026.9.4 release API confirms publication on September 11; its workflow contains no FULL_RELEASE_SOURCE_ADMISSION_CONTRACT marker.
Prior beta-tag finding addressed: Stable and correction versions now allow beta or latest publication. Windows validation accepts those tags while still requiring a stable version; workflow-boundary cases cover normal and prepared publication.
Findings None None.
Security None None.

How this fits together

Full Release Validation coordinates OpenClaw’s release checks and package preparation. It receives candidate and tooling revisions plus operator selections, then dispatches jobs and records evidence consumed by release tooling.

flowchart TD
  A[Candidate revision and operator intent] --> B[Resolve trusted tooling]
  B --> C{Publication requested?}
  C -->|Yes| D[Verify committed package inventory]
  C -->|No| E[Record admission as not applicable]
  D --> F[Release dependent validation jobs]
  E --> F
  F --> G[Retain execution plan and evidence]
Loading

Decision needed

Question Recommendation
Can the updated helpers reject every new FRV request using pre-admission frozen tooling, including follow-up requests for active releases? Accept the documented cutover: Land once release owners confirm active frozen releases can retain their tooling and recovery paths without needing new requests through the updated helper.

Why: The code deliberately rejects those requests without changing their frozen SHA; source review cannot establish whether active releases still need them.

Before merge

  • Resolve merge risk (P1) - Updating the dispatch helper makes new requests against older frozen Tooling SHAs fail before dispatch; retained recovery is covered, but the effect on active release operations has not been established.
  • Complete next step (P2) - Confirm that active releases can tolerate rejection of fresh requests on older frozen tooling before landing.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +2665, Docs +101, Config +106, Other +1586. Total +4458 across 33 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 11 2871 206 +2665
Docs 9 116 15 +101
Config 1 113 7 +106
Generated 0 0 0 0
Other 12 1658 72 +1586
Total 33 4758 300 +4458

Review metrics

Metric Value Why it matters
Production versus regression coverage Production/tooling net +1,692 lines; tests net +2,665 lines Growth implements admission and evidence binding across existing release owners, with substantial workflow and recovery regression coverage.
Operator input contract 4 explicit purposes; 1 new checklist flag; 25 hosted dispatch inputs retained Publication intent is explicit without exceeding the existing workflow input limit.

Stored data model

Persistent data-model change detected: serialized state: scripts/full-release-publication-admission.mts, serialized state: scripts/full-release-publication-contract.mjs, unknown-data-model-change: scripts/full-release-publication-admission.mts, unknown-data-model-change: scripts/full-release-publication-contract.mjs, unknown-data-model-change: scripts/validate-full-release-validation-evidence.mjs. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #147047
Summary: This PR is the explicit candidate fix for the linked, still-open source-admission issue.

Members:

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

Merge-risk options

Maintainer options:

  1. Coordinate the frozen-tooling cutover (recommended)
    Accept the deliberate rejection of older-tooling fresh requests after confirming active release operators have a supported continuation path.
  2. Wait for active frozen releases
    Pause landing if an active release still needs fresh dispatches through the updated helper against its older frozen tooling.

Technical review

Best possible solution:

Use the existing inventory owner for early rejection, preserve historical recovery, and make the frozen-tooling cutover an explicit release-owner decision.

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

Yes, source inspection supports the committed missing-README scenario: main can finish root resolution without invoking publication inventory validation. The PR contains a production-workflow fixture for that path; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes for the stated source-only increment: it reuses the inventory and identity owners and preserves historical recovery. Complete publisher-selection enforcement remains an explicitly separate follow-up.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This prevents invalid release metadata from consuming dependent validation work, with no demonstrated emergency or end-user outage.
  • merge-risk: 🚨 compatibility: The updated helper intentionally refuses fresh dispatches using older frozen tooling, which can affect ongoing release operations.
  • 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 MEMBER-authored PR is exempt from ordinary contributor proof. Inspected fixtures exercise production workflow admission against committed metadata with controlled GitHub responses; the reported results do not claim hosted FRV or publication execution.

Evidence

What I checked:

  • Current main still lacks publication-source admission: The fetched main workflow performs frozen-contract admission and then summarizes the target; the new publication-source contract file is absent. This remains distinct work for the open linked issue. (.github/workflows/full-release-validation.yml:541, 0ac8a700e43e)
  • Latest release does not contain the new gate: The v2026.9.4 release API confirms publication on September 11; its workflow contains no FULL_RELEASE_SOURCE_ADMISSION_CONTRACT marker. (.github/workflows/full-release-validation.yml:530, 3a9d69db306c)
  • Prior beta-tag finding addressed: Stable and correction versions now allow beta or latest publication. Windows validation accepts those tags while still requiring a stable version; workflow-boundary cases cover normal and prepared publication. (scripts/full-release-publication-admission.mts:191, 7b903f6a94a6)
  • Prior canonical-branch finding addressed: Inventory-only collection uses the existing canonical identity resolver and exact remote branch/SHA verification. Publication-plan production retains its protected-tag requirement. Tests cover divergent release and extended-stable tooling. (scripts/release-plan-producer-core.mts:588, 7b903f6a94a6)
  • Intentional frozen-tooling cutoff: Fresh helper requests require source-admission-capable tooling before creating remote state. Historical retained requests remain readable without rewriting their bytes; new and historical recovery cases are covered in the helper tests. This changes which new requests release operators can submit. (scripts/full-release-validation-at-sha.mts:983, 7b903f6a94a6)
  • Proof scope and publication boundary: The captured PR body reports causal workflow-body regressions and explicitly excludes hosted FRV or publication execution. Inspected fixtures invoke production admission commands against committed Git metadata with controlled GitHub responses. The publisher CLI still omits expectedPublicationSelection; the body explicitly defers that existing boundary rather than claiming complete publication authorization. (scripts/validate-full-release-validation-evidence.mjs:465, 7b903f6a94a6)

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: 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-13T13:23:59.130Z sha 1d59f9b :: blocked before merge. :: [P1] [P1] Preserve final-version publication to the beta tag | [P1] [P1] Preserve canonical release-branch source admission

@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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 13, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Maintainer cutover disposition for 7b903f6a94a6be7c2a4eb9b66916e7dcee5e5cc6: the planned fresh-request cutoff is accepted within the already-approved source-admission scope. The PR body now records this decision.

The updated helper rejects pre-admission tooling before remote state; retained requests reconcile first. Compatibility proof covers unchanged bytes and GET-only recovery, old-tooling refusal without writes, and existing historical durable/seal-restore evidence.

Eligible continuation retains frozen identity. A fresh pre-admission-tooling parent requires a release-compatible pinned execution route or separately approved tooling change; we do not assert every operator has that runtime. No upgrade is approved/performed, no future bypass is implied, and this is not an operational census. Exact-head CI passed; the required downstream publisher/registry follow-up remains separate.

@vincentkoc
vincentkoc merged commit 7bf4e2e into main Sep 13, 2026
145 of 147 checks passed
@vincentkoc
vincentkoc deleted the fix/frv-source-admission-20260913 branch September 13, 2026 14:10
@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 14, 2026
…47049)

* fix(ci): reject invalid release sources before FRV fanout

* fix(ci): preserve supported FRV source admission routes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation 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.

FRV can fan out before validating selected publication source

1 participant