Repository navigation
fix(ci): gate source package producers - #128463
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 12:56 AM ET / 04:56 UTC. ClawSweeper reviewWhat this changesThis 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 provenancePossible regression — probable (reviewed change; reproduction). No predecessor PR is attributed. Merge readinessNo 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 Review scores
Verification
How this fits togetherRelease 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]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +803, Config +104, Other +230. Total +1137 across 17 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
@clawsweeper re-review Exact correction head: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact correction head: This head moves the default live/E2E source preflight before |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head: The live/E2E producer now keeps prepare-only preflight before harness setup, |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head: The remaining live/E2E package validator now consumes artifact tuple fields |
d855453 to
2ccd39b
Compare
|
@clawsweeper re-review Exact head: The signed six-commit series rebased cleanly onto current main. Post-rebase |
|
🦞👀 Re-review progress:
|
2ccd39b to
5c506bb
Compare
|
@clawsweeper re-review Exact head: The signed six-commit series rebased cleanly onto current main. Post-rebase |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
Exact-head closeout proof for
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. |
|
Merged via squash.
|
* 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
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-privateexclusion, and dependency value-type checks.Trusted source validation now runs before candidate dependency installation at
the canonical
resolveCandidate(source=ref)and cross-OSprepareCandidateproducer 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, orartifact. 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_jsonandrelease_package_spectherefore remain sourcemode 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 andplugin 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 alterbeta, 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
passed.
passed.
partial-jsonmanifest drift regression: passed before candidatedependency installation.
passed.
raw tuple fields do not select artifact paths or metadata comparisons.
non-whitespace package names in Docker summary and failure JSON.
gated by
needs_package.regressions: passed.
git diff --check: passed.pnpm tsgo:scriptsreaches only the unrelated existingui/vite.config.tsmissing declaration forpako.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.