Repository navigation
fix(packaging): reject incompatible prepublish plugin cohorts - #195152
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherRelease 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +233, Other +81. Total +314 across 7 files. Added test files: 1. View PR surface stats
Preflight sourceSource 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
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 8, 2026, 5:26 AM ET / 10:26 UTC (Revision 2). |
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…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) ...
…aw#195152) * fix(packaging): reject incompatible prepublish plugin cohorts * fix(e2e): make copied registry scripts readable * fix(test): correct cohort admission line allocation
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-runnerimage built from signed222311f9f37b1b494fb6873e9797f0f4e7bcd364. Under its defaultappuser(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
a3d7ac1d4c5278a39af6183bc3a8e50365c080a4passed all 44 tests: 17 admission cases, 18 artifact cases, and 9 shell cases. Nativereview-testsrecorded 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
222311f9f37b1b494fb6873e9797f0f4e7bcd364PR 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 signeda3d7ac1d4c5278a39af6183bc3a8e50365c080a4corrects 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 parentcf376b0d000ac25952f553200f6ec982d859b0e7and tested merge2af4e26bf121501f4945873f33af1682a1ca3bee(ordered parents: that main parent, exacta3d7ac1d4c5278a39af6183bc3a8e50365c080a4). 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