Repository navigation
fix(release): admit first-hop sources by candidate schemas - #169012
Conversation
Record release schema metadata and exclude unsupported first-hop sources and registry coverage obligations. Keep historical v1 inventories and supported-source refresh guidance intact. Fixes #168257. Supersedes #168280. Co-authored-by: Dallin Romney <[email protected]>
|
🦞👀 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 changes before merge. What this changesThis PR records publication schemas and filters first-hop sources and registry coverage requirements against the candidate’s supported schemas. Example: A candidate supports state=1 and agent=1; recorded 2026.10.1-beta.1 requires state=2 and agent=1.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains This PR addresses a concrete release-tooling defect, but its newly admitted empty-source case breaks the Docker caller and needs one focused correction. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherRelease tooling reads candidate manifests, publication inventories, and npm metadata to select historical upgrade sources and require coverage for supported publications. flowchart TD
A[Publication manifests] --> B[Compatibility inventory]
C[Candidate manifest] --> D[Schema support check]
B --> D
E[Npm tagged publications] --> D
D --> F[First hop source selection]
D --> G[Registry coverage requirements]
F --> H[Docker upgrade lanes]
Technical reviewBest possible solution: Keep the shared schema check and serialize zero admitted sources as zero CLI records so the Docker wrapper records an empty source set. Do we have a high-confidence way to reproduce the issue? Source inspection establishes both the original unconditional admission and the introduced empty-set failure; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? Sharing schema eligibility between selection and registry coverage is a focused repair, provided its empty result survives the existing CLI and shell boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c96fac1cc6a4. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests +55, Other +92. Total +147 across 7 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
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 Reviewed October 11, 2026, 4:41 AM ET / 08:41 UTC. |
…claw#169012) Release tooling recorded every published release as a supported first-hop upgrade source, including newer-schema betas an older candidate cannot read, and demanded registry coverage for every npm tag regardless of schema. The inventory now records each release's schema, and first-hop selection and registry coverage share one schema-admission check. Fixes openclaw#168257. Supersedes openclaw#168280, thanks @RomneyDa.
) Release tooling recorded every published release as a supported first-hop upgrade source, including newer-schema betas an older candidate cannot read, and demanded registry coverage for every npm tag regardless of schema. The inventory now records each release's schema, and first-hop selection and registry coverage share one schema-admission check. Fixes #168257. Supersedes #168280, thanks @RomneyDa. (cherry picked from commit 4d96196)
…ort) Records published stable 2026.10.2 in the update-compat inventory so the candidate admits it as a first-hop upgrade source, mirroring how main recorded it in its 2026.10.2 closeout. Regenerated with the branch's owning generator (`pnpm update:compat:gen`) from integrity-verified npm tarballs of every recorded release; main's 2026.10.2 entry is not copied because main's generator changed after the cut (#169268 and related), so its chunk list differs (51 vs 56 chunks). All previously recorded releases are unchanged in content; the only other change is the generator's canonical key order, which places `schemaVersions` (added by the #169012 backport) before `chunks`, exactly as main's regeneration did. 2026.10.3 is unpublished and not recorded. Extracted-from: 9a1b712
First-parent upstream c96fac1..d9eba8a (10 PRs: openclaw#168948 GitHub connection authority to workers, openclaw#168975, openclaw#168772 cron receipt custody removal, openclaw#169012, openclaw#169006, openclaw#169009, openclaw#168283 test batch d042, openclaw#168994, openclaw#168964, openclaw#168855 approval/placement state in workers). Conflicts: - docs/reference/database-schemas/worker-access-inventory.md: took upstream, then regenerated (db:worker-inventory:gen, 633 files / 2449 calls) instead of hand-merging. - src/agents/embedded-agent-runner/compact-reasons.test.ts: upstream openclaw#168283 deleted low-value cases; kept upstream's file plus our own additions only (unknown_model, empty reason, closed-union check and the isCompactionSkipCode block). session-reset-service.ts auto-merged: upstream's awaited placement retirement (assertCurrent) is disjoint from our continuation-cancellation cleanup reason. Refs #1475 Co-Authored-By: Claude Opus 5.5 <[email protected]>
What Problem This Solves
Fixes release preparation treating a recorded newer-schema publication as a supported first-hop source, and requiring older-schema candidates to cover newly tagged packages they cannot upgrade from.
Fixes #168257. Supersedes #168280, thanks @RomneyDa.
User Impact
Release maintainers get first-hop sources within the candidate's state and agent schema range. Supported but uncovered npm tags still require verified package coverage and print the existing refresh command. Updater runtime behavior, database schemas, and recovery are unchanged.
Why This Change Was Made
Record the exact package schema pair alongside each inventory entry, and share one schema-support check between first-hop selection and registry coverage. Existing v1 inventories without schema metadata retain their shipped admitted-source behavior; the inventory format and bridge generation remain unchanged. The 12 recorded versions were checked against their exact npm manifests, including matching recorded SHA-512 integrity.
Tooling LOC: +44 net; generated inventory metadata: +48 net; tests: +55 net. The duplicate local object-record guard in the inventory owner was removed in favor of the existing shared guard. No unrelated CI or diagnostics changes from the contributor PR are included.
Evidence
pnpm update:compat:checkpasses for all 12 recorded publications. Live npm confirms the schema field's singleton-array response; the existing npm normalizer handles it. Both npm 11 and npm 12 fixture shapes pass.node scripts/check-changed.mjs --base cf534960545d3fa8c020450da474d67c269ceb00passes, including script/root-test types, all three export scans, lint, and guard checks.pnpm check:madge-import-cycles: zero cycles.git diff --checkpasses.package-acceptance-workflow.test.ts/keeps every tracked repository skill visible to Git-aware syncssees.agents/in the shared checkout's private.git/info/exclude(line 47). The repository test and ignore rules are unchanged; the private setting was not modified.reviewer_unavailable, exit 124, and no report. Lead review of the published head remains required. No review success is claimed.Published head:
5f38ce8bd23c35205c40805e84aa0d681387b54e. Hosted CI is pending at this authoring handoff.