Skip to content

fix(ci): gate source package producers - #128463

Merged
vincentkoc merged 8 commits into
mainfrom
fix/frv-package-source-preflight
Aug 24, 2026
Merged

vincentkoc merged 8 commits into
mainfrom
fix/frv-package-source-preflight

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Release package producers could install candidate dependencies or start builds
before discovering invalid package versions, missing changelog sections, or
dependency drift between the root package and @openclaw/ai.

Whitespace-only release package inputs could also select source mode initially
but diverge into artifact or published-package behavior later in the reusable
release check.

Why This Change Was Made

This adds one dependency-free, read-only package-source preflight that reuses
the canonical package changelog parser. A shared manifest dependency validator
also owns the Docker packer's accepted exact or workspace:${version}
alignment, private 0.0.0-private exclusion, and dependency value-type checks.

Trusted source validation now runs before candidate dependency installation at
the canonical resolveCandidate(source=ref) and cross-OS prepareCandidate
producer boundaries. Direct release checks, install-smoke packaging, npm
preflight, and live/E2E source packaging are guarded before their source-build
setup.

The reusable release check emits one normalized package mode:
source, published, or artifact. Package setup, resolution, upload,
artifact identity, live registry, Docker image identity, and Package Acceptance
conditions consume that mode and normalized inputs. Whitespace-only
candidate_artifact_json and release_package_spec therefore remain source
mode end to end.

For live/E2E, prepare-only source validation remains before
setup-release-harness, whose composite action installs dependencies.
Non-default Docker lanes plan first, then preflight and set up source only when
the plan reports needs_package=1; no-package lanes such as live models and
plugin binding command escape skip both operations. Artifact tuple presence is
normalized with all shell whitespace, including tabs and newlines. Package
validation, prepared outputs, candidate manifests, and Docker summary/failure
reports consume only the canonical tuple state.

This does not duplicate dist inventory checks, modify
.github/workflows/full-release-validation.yml, dispatch validation, or alter
beta, publication, or release state.

User Impact

Invalid release source now fails at its producer boundary with a specific
diagnostic, before candidate dependency installation or packaging. Product
runtime behavior is unchanged.

Evidence

  • Exact-ref and source-directory preflight against the current package source:
    passed.
  • Package-source, Package Acceptance, and Docker scheduler tests: 238 passed.
  • Cross-OS producer, candidate resolver, and release workflow tests: 189
    passed.
  • Docker package helper E2E: 36 passed, 3 platform skips.
  • Real partial-json manifest drift regression: passed before candidate
    dependency installation.
  • Whitespace-only candidate artifact and release package spec mode regressions:
    passed.
  • Tab/newline-only live/E2E artifact tuple regression: passed.
  • End-to-end whitespace source package pack and validation regression: passed;
    raw tuple fields do not select artifact paths or metadata comparisons.
  • Whitespace source mode emits blank no-package outputs and stable,
    non-whitespace package names in Docker summary and failure JSON.
  • Live/E2E no-package lane regression verifies source preflight and setup remain
    gated by needs_package.
  • Package Acceptance ref-mode and standalone cross-OS source-mode producer
    regressions: passed.
  • Actionlint for the five affected reusable/source workflows: passed.
  • Focused oxlint, oxfmt check, YAML parse, direct preflight, privacy scan, and
    git diff --check: passed.
  • pnpm tsgo:scripts reaches only the unrelated existing
    ui/vite.config.ts missing declaration for pako.
  • No Full Release Validation workflow was dispatched and no beta, publication,
    or release state was changed.

Production/workflow LOC: +420/-86 (net +334) | Tests: +820/-17.
The production growth establishes the shared dependency/preflight owner and
normalizes release package mode across existing producer and consumer paths.

AI-assisted: yes. The implementation follows independently reviewed audit and
correction scopes.

@clawsweeper

clawsweeper Bot commented Aug 24, 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 Aug 24, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M maintainer Maintainer-authored PR labels Aug 24, 2026
@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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 24, 2026
@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 12:56 AM ET / 04:56 UTC.

ClawSweeper review

What this changes

This PR adds a shared package-source preflight and normalizes source, published, and artifact package selection across release, Docker, npm, install-smoke, and candidate packaging workflows.

Regression provenance

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

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking defect was found on the exact rebased head. This active maintainer draft has a coherent shared preflight and normalized package-mode design; exact-head release-workflow validation remains the merge gate.

Priority: P1
Reviewed head: 5c506bb70f6b6ce4711140b39f427221e6103084

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has coherent shared ownership and focused regression coverage, with exact-head release-workflow validation remaining the material confidence reducer.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored release-automation PR is exempt from the external-contributor proof gate; the PR body supplies focused harness evidence, pending exact-head CI confirmation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored release-automation PR is exempt from the external-contributor proof gate; the PR body supplies focused harness evidence, pending exact-head CI confirmation.
Evidence reviewed 6 items Candidate source boundary: The exact head validates the checked-out source immediately before dependency installation in the candidate resolver.
Cross-OS producer ordering: The exact head validates source metadata before pnpm installation; focused coverage asserts dependency drift fails before an installation log exists.
Canonical workflow state: The release workflow emits normalized package mode and gates preflight, package resolution, upload, and artifact identity on it; its added tests cover whitespace-only inputs.
Findings None None.
Security None None.

How this fits together

Release workflows prepare source packages, artifacts, or published packages for validation and distribution. The changed scripts validate package metadata before dependency installation and feed normalized package mode into downstream packaging and Docker steps.

flowchart LR
  A[Release inputs] --> B[Package mode normalization]
  B --> C[Source package preflight]
  C --> D[Candidate and cross-OS producers]
  B --> E[Reusable release checks]
  D --> F[Packaging and Docker]
  E --> F
  F --> G[Release validation outputs]
Loading

Before merge

  • Resolve merge risk (P1) - This bug fix adds net +334 production/workflow lines across release-critical producers; skipped exact-head CI leaves cross-workflow integration unconfirmed.
  • Complete next step (P2) - This active maintainer-owned draft is not an automated repair candidate; the next action is exact-head workflow validation before normal maintainer merge review.
Agent review details

Security

None.

PR surface

Tests +803, Config +104, Other +230. Total +1137 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 820 17 +803
Docs 0 0 0 0
Config 4 177 73 +104
Generated 0 0 0 0
Other 7 243 13 +230
Total 17 1240 103 +1137

Review metrics

Metric Value Why it matters
Production versus test LOC production/workflow +420/-86 (net +334); tests +820/-17 (net +803) The substantial release-automation growth needs exact-head integration evidence despite focused regression coverage.

Stored data model

Persistent data-model change detected: serialized state: scripts/package-source-preflight.mjs, serialized state: test/scripts/openclaw-cross-os-release-checks.test.ts, serialized state: test/scripts/package-source-preflight.test.ts, vector/embedding metadata: .github/workflows/openclaw-npm-release.yml, vector/embedding metadata: test/scripts/openclaw-cross-os-release-checks.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Run the exact-head release workflow suite (recommended)
    Before marking this draft ready, verify the current head’s producer, reusable-workflow, package-acceptance, and Docker scheduling paths with the intended release-automation checks.
  2. Pause the branch
    Keep the draft open if the release owner cannot allocate an exact-head workflow run, because this patch changes shared release package selection.

Technical review

Best possible solution:

Retain the shared preflight and normalized package-mode contract, removing any duplicated consumer condition exposed by exact-head workflow validation.

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

Yes—source establishes the former ordering, and the new cross-OS regression creates mismatched package dependencies and verifies that preflight fails before a dependency-install log exists.

Is this the best way to solve the issue?

Yes—the shared preflight reuses the existing changelog parser and dependency-alignment rule, avoiding per-producer validation copies while preserving source, published, and artifact modes.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: Release package producers can block package validation and release operations when their source or artifact selection is wrong.
  • merge-risk: 🚨 automation: The PR changes reusable GitHub Actions producer sequencing and workflow output conditions.
  • merge-risk: 🚨 compatibility: It changes how existing blank or whitespace-only package and artifact inputs resolve through release workflows.
  • 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: This member-authored release-automation PR is exempt from the external-contributor proof gate; the PR body supplies focused harness evidence, pending exact-head CI confirmation.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Current-main blame assigns the existing Docker E2E package producer and artifact-output contract to this contributor’s commit. (role: recent area contributor; confidence: medium; commits: d4956eb6971b; files: .github/workflows/openclaw-live-and-e2e-checks-reusable.yml)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Run the named exact-head producer and reusable-workflow checks before marking the draft ready.

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-08-24T03:01:40.096Z sha 873eb46 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-24T03:40:07.303Z sha 46ebdc9 :: found issues before merge. :: [P1] Use normalized candidate state for every release-package step
  • reviewed 2026-08-24T04:14:02.982Z sha d8554533c95362202a4fcf9a7ce3eb714f2055cd :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added docker Docker and sandbox tooling size: L and removed size: M labels Aug 24, 2026
@vincentkoc vincentkoc changed the title fix(release): fail early on invalid package source fix(ci): gate source package producers Aug 24, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact correction head: 46ebdc97d47d5d43d1062eba2fa12b9e3ca52292.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. 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 P2 Normal backlog priority with limited blast radius. 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 Aug 24, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact correction head: f4210cf22d77f30b0839daccaf88b7279df321f2.

This head moves the default live/E2E source preflight before
setup-release-harness, normalizes reusable release-check package mode across
all downstream conditions, and preflights canonical Package Acceptance ref and
standalone cross-OS source producers before candidate dependency installation.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: 6e23558df590de0984eac1cef3884e0e833d709b

The live/E2E producer now keeps prepare-only preflight before harness setup,
gates non-default source preflight and setup on needs_package, and normalizes
artifact tuple presence across spaces, tabs, and newlines. Focused workflow,
candidate, cross-OS, and Docker packer proof is recorded in the PR body.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: 5b53858224d5a0b28ace6ec307bff7709f902cee

The remaining live/E2E package validator now consumes artifact tuple fields
only when the canonical artifact-presence output is true. An executable
tab/newline whitespace regression covers source package pack and validation
without artifact path or metadata comparisons.

@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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 24, 2026
@vincentkoc
vincentkoc force-pushed the fix/frv-package-source-preflight branch from d855453 to 2ccd39b Compare August 24, 2026 04:48
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: 2ccd39b7b68fabae9adf12a9d75277001a153a1d
Rebased base: 2480a5265d9c8aafb806a8d53947968d59a24bc6

The signed six-commit series rebased cleanly onto current main. Post-rebase
proof: 238 package/reporting workflow tests, 189 producer/cross-OS tests, and
36 Docker packer tests passed with 3 Windows-only skips. Actionlint, YAML,
oxlint, oxfmt, direct package-source preflight, script erasability, and diff
checks passed. Merge-tree simulations against #128141 and #128458 are
conflict-free.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@vincentkoc
vincentkoc force-pushed the fix/frv-package-source-preflight branch from 2ccd39b to 5c506bb Compare August 24, 2026 04:49
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: 5c506bb70f6b6ce4711140b39f427221e6103084
Rebased base: 353b4b891615e6085ac3372955c376beb84834b4

The signed six-commit series rebased cleanly onto current main. Post-rebase
proof: 238 package/reporting workflow tests, 189 producer/cross-OS tests, and
36 Docker packer tests passed with 3 Windows-only skips. Actionlint, YAML,
oxlint, oxfmt, direct package-source preflight, script erasability, and diff
checks passed. Merge-tree simulations against #128141 and #128458 are
conflict-free.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc marked this pull request as ready for review August 24, 2026 05:02
@vincentkoc
vincentkoc requested a review from a team as a code owner August 24, 2026 05:02
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member Author

Exact-head closeout proof for 8e231de9f4e314d897d949719e319057f16fa4d7:

  • ClawSweeper exact review run 32692943280: complete, no review findings; patch correctness 0.9.
  • Exact-head CI run 32692398003: green, including openclaw/ci-gate.
  • All attached exact-head sibling workflows are green: Blacksmith Testbox, build artifacts, ARM, CodeQL, Workflow Sanity, OpenGrep, and periphery checks.
  • Focused producer/reusable-workflow proof: 515 passed, 3 expected Windows skips.
  • Direct package-source preflight, coercion guard, actionlint, targeted formatting, git diff --check, and fresh autoreview all pass.
  • Native OPENCLAW_TESTBOX=1 scripts/pr prepare-run 128463 passed at the same head.

Rank-up disposition: the controlled nonpublishing release trace is intentionally skipped. This closeout explicitly excludes FRV, publication, or release-state execution; maintainer scope accepts the focused producer proof plus exact-head hosted CI for this deterministic release-automation repair.

@vincentkoc
vincentkoc merged commit 1ece62a into main Aug 24, 2026
153 checks passed
@vincentkoc
vincentkoc deleted the fix/frv-package-source-preflight branch August 24, 2026 05:30
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 25, 2026
* fix(release): preflight package source metadata

* fix(ci): gate source package producers

* fix(ci): preflight canonical package producers

* fix(ci): skip no-package source setup

* fix(ci): normalize source package validation

* fix(ci): normalize Docker package reporting

* fix(ci): avoid generic dependency guard

* test(ci): cover gated package identity
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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. 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.

1 participant