Skip to content

fix(packaging): reject incompatible prepublish plugin cohorts - #195152

Merged
vincentkoc merged 3 commits into
mainfrom
fix/prepublish-plugin-cohort-admission-20261108
Nov 8, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/prepublish-plugin-cohort-admission-20261108

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Prepublish candidate preparation can build and copy an official runtime plugin cohort that the selected source itself refuses to load.

User Impact

Qualification now stops before producing that incompatible cohort. Existing release versions, compatibility floors, and shipped runtime behavior are unchanged. This admission check does not repair an already incompatible release cohort; release owners must align it through the existing version workflow.

Why This Change Was Made

The producer reads the tracked selected-source runtime policy in a fresh synchronous child and reuses the release-version comparator. It validates every required source identity and prepared tarball before output, copying, or plugin builds. Historical selected trees without that policy keep their historical behavior; invalid tracked policies fail explicitly. Copied producer consumers include the comparator dependency. The shared image also sets explicit readable modes on both registry-script COPY rows, repairing the observed default-user permission failure without depending on checkout modes.

Evidence

  • Real plain-Node producer reproduction: baseline started the first builder and created output despite a later incompatible runtime; candidate reports the package/version/floor/source SHA with no build or output side effects.

  • Pinned Bun child invocation verified against the selected pin: exact eval arguments and native TypeScript policy loading passed.

  • Actual e2e-runner image built from signed 222311f9f37b1b494fb6873e9797f0f4e7bcd364. Under its default appuser (uid 1001), Node 24.22.1 with networking disabled verified all four copied source hashes, executed the real producer verification CLI successfully, and loaded the registry-server module through its expected usage check. This proves the copied-script image boundary; it is not full package or updater two-hop qualification.

  • Independent source review and required fresh autoreview: scoped clean, zero P0-P3 findings after the copied-consumer and explicit Docker-mode corrections. Normal signed commit hooks, syntax, formatting, and diff checks passed.

  • Final-head native focused proof at signed a3d7ac1d4c5278a39af6183bc3a8e50365c080a4 passed all 44 tests: 17 admission cases, 18 artifact cases, and 9 shell cases. Native review-tests recorded the exact candidate/head and observed all three requested suites; output: Test Files 3 passed (3); Tests 44 passed (44); Duration 19.36s. Log SHA-256: 491249f0fda86ff78c0cdc605b0749b04e26cf638e5a1a80ce20c49f6b1b6f9b. The isolated native PR checkout used its own successful frozen install; no shared dependency link was introduced. Focused Testbox attempt failed before its payload: Matrix native-library download HTTP 504, then upstream installer crash. Native lease stopped and settled; no test/type/lint pass is claimed from that attempt.

  • Prior-head 222311f9f37b1b494fb6873e9797f0f4e7bcd364 PR CI passed all test/prod type gates and changed lint. Its two test owners failed downloading pinned Bun metadata before executing tests (HTTP 504); boundary and extension parity guards also failed staging Bun, with the underlying transport detail unavailable. These failures are not reported as passes; actual native focused proof above covers all three affected suites. Production +79 lines provides early cohort admission; test and fixture sources add 233 lines; the ratchet counts 169 because it excludes the 64 fixture lines. Final signed a3d7ac1d4c5278a39af6183bc3a8e50365c080a4 corrects only the allocation to 169. All production, test, fixture, Docker, manifest, and lock inputs are byte-identical to the observed 222-head proof; those receipts retain their original revision. The shared scalar and inherited debt are unchanged. Current-head ordinary PR CI, attempt 2 retains nine failed root jobs and a failed aggregate. Four unit setup jobs fail before tests downloading pinned Bun metadata (HTTP 504 / exit 22); five boundary, formatting, and lint jobs fail staging Bun for parity (format/lint staging), with child transport diagnostics unavailable. All eight controlling setup/stager/pin/format/lint source blobs are identical between the actual CI main parent cf376b0d000ac25952f553200f6ec982d859b0e7 and tested merge 2af4e26bf121501f4945873f33af1682a1ca3bee (ordered parents: that main parent, exact a3d7ac1d4c5278a39af6183bc3a8e50365c080a4). Independent security-fast passed. Correction: the final hosted core lint stripe was cancelled, not passed; its log contains three Bun-staging failures and incomplete later coverage. Its workflow owner disables fail-fast and has a 15-minute timeout. The native landing guard refused this unqualified cancellation before merge dispatch. One specifically authorized rerun of only that job and its dependents completed on the same head: attempt 2 core lint passed all six planned leaves across three groups, with zero staging errors. Attempt 2 is terminal red: 21 successful, 29 skipped, nine carried root failures plus the failed aggregate, and zero cancelled jobs. The nine failures, independent security pass, and preflight retain exactly the original execution timestamps and full steps under their actual attempt-2 result IDs; they were not newly executed. The native failed-CI route still owns final admission. This is concrete unchanged-input attribution, not an executed main replay or passing CI claim.

  • ClawSweeper rank-up follow-through: the affected producer/shell suites now execute on the final head, and each failed CI surface is attributed above. Raw producer/image trace links are omitted because those runs produced no public artifact; their observed outputs and proof limits are recorded above.

Related: #195104

@vincentkoc vincentkoc self-assigned this Nov 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 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 scripts Repository scripts docker Docker and sandbox tooling size: M labels Nov 8, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 8, 2026 09:40
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 8, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR rejects incompatible plugin cohorts before artifact creation and includes the comparator dependency in copied Docker tooling.

Example: Prepare @openclaw/[email protected] when the selected source requires at least 2026.11.5-beta.1.

  • Before: Preparation can build and copy a cohort that runtime loading rejects.
  • After: Preparation reports the package, candidate version, required floor, and source SHA before building or creating output.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused and source-consistent repair with reported final-head regression coverage; standalone behavior evidence remains narrative rather than a published trace.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate: its body reports plain-Node rejection before side effects, pinned-Bun policy loading, and default-appuser Docker verification, while explicitly disclosing absent raw artifacts and no full updater qualification.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release owners can prepare plugin artifacts that the selected OpenClaw source subsequently refuses to load.
Reason: Early rejection prevents wasted qualification work and misleading artifacts; the maintainer-authored direction explicitly preserves compatibility floors and leaves release-version alignment outside this repair.

Merge readiness

✅ Ready for maintainer review

This PR addresses a current packaging defect and preserves the runtime compatibility policy; no actionable patch findings remain, but required CI is still red.

Priority: P2
Reviewed head: a3d7ac1d4c5278a39af6183bc3a8e50365c080a4

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The reported standalone producer and default-user image runs have no published raw trace; their described outcomes are inspectable only through the PR narrative.
Agent review details

How this fits together

Release candidate preparation combines selected source and prepared package archives into a verified companion registry consumed by package and upgrade qualification.

flowchart TD
  A[Selected source] --> C[Artifact producer]
  B[Prepared archives] --> C
  D[Selected runtime policy] --> C
  C --> E[Compatibility admission]
  E --> F[Verified companion registry]
  F --> G[Package and upgrade qualification]
Loading

Technical review

Best possible solution:

Keep admission in the existing artifact producer, reuse the selected runtime policy and release comparator, and reject incompatible cohorts before side effects.

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

Current-main source permits a candidate below the selected runtime floor to reach packaging, and the linked qualification report records the resulting Doctor rejection; no target code was executed during this review.

Is this the best way to solve the issue?

The patch repairs the producer invariant using existing owners, preserves historical selected trees without runtime policy, and carries the new import into copied consumers without introducing another policy source.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Admission precedes side effects: Required source identities, prepared archive hashes and identities, and selected-source runtime floors are checked before output creation, copying, and plugin builds. (scripts/prepublish-plugin-registry-artifact.mjs:280, a3d7ac1d4c52)
  • Current main still lacks producer admission: Fetched main creates output and begins packaging without checking the selected runtime floor; the runtime policy requires Codex 2026.11.5-beta.1. (scripts/prepublish-plugin-registry-artifact.mjs:278, f89b123d7fee)
  • Reported qualification failure: The related diagnostic-refactor PR records Doctor rejecting candidate Codex 2026.11.1 against the 2026.11.5-beta.1 floor: refactor(update): share diagnostic line framing #195104.
  • Accepted scope and proof limits: The maintainer-authored body explicitly accepts early qualification rejection, leaves cohort alignment to release owners, reports producer and default-user image verification, and distinguishes those runs from full updater qualification; raw producer/image artifacts are not published. (a3d7ac1d4c52)
  • Re-review delta: Only the allocation changes from 233 to 169 since the previous review; the body reports all 44 affected tests passing on the final head. (config/test-lines-allocations/prepublish-plugin-cohort-admission.txt:1, a3d7ac1d4c52)
  • CI remains failed: Job metadata confirms four test jobs failed during Bun setup; CodeQL annotations confirm HTTP 504 during initialization. Core lint also reports file-length failures in four files whose blobs are identical in the CI base parent and test merge. Other lint/boundary failures are not fully independently attributed; full job-log retrieval was blocked at its storage redirect. (a3d7ac1d4c52)

Likely related people:

  • Dallin Romney: Raw commit 2bb5638 adds scripts/e2e/Dockerfile:22 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 2bb563800145; files: scripts/e2e/Dockerfile)

PR surface

Tests +233, Other +81. Total +314 across 7 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 289 56 +233
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 103 22 +81
Total 7 392 78 +314

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test growth Production +101/-22; tests and fixtures +289/-56. Growth supplies producer-side admission and distinct rejection boundaries while extracting existing fixture setup for reuse.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Prevents incompatible release-validation artifacts without changing shipped runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • If retained, attach the existing redacted producer rejection and default-user image output to make those reported runs independently inspectable.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-08T09:57:32.004Z sha 222311f :: needs maintainer review before merge. :: none

Reviewed November 8, 2026, 5:26 AM ET / 10:26 UTC (Revision 2).

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head a3d7ac1d4c5278a39af6183bc3a8e50365c080a4. The only change since the reviewed head is the corrected test-line allocation (233 to 169); all production, test, fixture, Docker, manifest, and lock inputs are unchanged. Final-head native proof now passed all 44 producer/artifact/shell tests and is recorded in the PR body. Current CI failures remain under attribution and are not claimed as passing.

@clawsweeper

clawsweeper Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 8, 2026
@vincentkoc
vincentkoc merged commit be0b106 into main Nov 8, 2026
184 of 210 checks passed
@vincentkoc
vincentkoc deleted the fix/prepublish-plugin-cohort-admission-20261108 branch November 8, 2026 10:55
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

vincentkoc added a commit that referenced this pull request Nov 8, 2026
…tooling-lint-selection-20261108

* commit 'b0e90e6a4b359fff7756698067fdce4758b1907b': (38 commits)
  fix(android): Talk button demands a realtime provider on a native Talk setup (#191194)
  chore: trace first-run Gateway work and verify later replies (#195185)
  fix(knowledge): keep deleted messages out of reply previews (#195126)
  fix(agents): preserve streamed replies across Gateway restarts (#195164)
  perf(ci): reuse SDK transport path boundaries (#195180)
  fix(sandbox): avoid pauses for unchanged command checkpoints (#195120)
  fix(test): make retention checks portable across runtimes (#195091)
  fix(knowledge): clarify temporal kind filters (#194995)
  improve: reduce Gateway allocation while draining SQLite receipts (#195129)
  fix: reduce streaming CPU after reply and voice directives (#195145)
  fix: reduce Markdown reparsing during streamed tool-call checks (#195161)
  fix: restore the main dead-export gate (#195158)
  improve(ci): pack small UI selections into fewer jobs (#195107)
  fix(muse): quota and sign-in failures end with no reply (#195148)
  fix: allow first release push with shipped patch bytes (#195174)
  fix(ci): narrow single-config tooling selections (#195147)
  fix(packaging): reject incompatible prepublish plugin cohorts (#195152)
  fix(ci): prepare verified Bun before parity checks (#195155)
  fix: Incognito agent turns stall before execution (#195005)
  fix: credentialed search and speech providers work without picking a provider (#195169)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 9, 2026
…aw#195152)

* fix(packaging): reject incompatible prepublish plugin cohorts

* fix(e2e): make copied registry scripts readable

* fix(test): correct cohort admission line allocation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M 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