Repository navigation
fix(ci): avoid false Projects upgrade reader failures - #157579
Conversation
Use the shared defining-function resolver so generated forwarding chunks do not look like duplicate artifact-preserving state readers. Preserve package integrity, ambiguity checks, and parser cleanup.
|
🦞👀 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: blocked before merge. Reviewed September 24, 2026, 5:32 PM ET / 21:32 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR updates the Projects/Doctor upgrade acceptance harness to select the installed module that defines its state reader when a generated forwarding export is also present. Merge readiness⛔ Blocked before merge - 1 item remains The earlier proof gap is resolved by an exact-head Package Acceptance run, and current main still has the false duplicate-reader rejection. This remains useful work with no actionable patch finding. Priority: P2 Review scores
Verification
How this fits togetherThe published-upgrade acceptance harness installs a frozen OpenClaw package using an older updater, then checks Projects state before and after Doctor runs. Its state reader supplies the observations used by those preservation checks. flowchart LR
A[Published updater] --> B[Installed package]
B --> C[Package identity check]
C --> D[Select defining state reader]
D --> E[Projects snapshots]
E --> F[Doctor preservation result]
Before merge
Agent review detailsSecurityNone. PR surfaceOther +7. Total +7 across 1 file. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Use the existing definition-aware resolver for the installed state reader while retaining package identity checks and the Projects preservation assertions. Do we have a high-confidence way to reproduce the issue? Yes. The earlier Package Acceptance run failed before Doctor when the observer counted both a defining module and its forwarder; current-main source retains that counting path. This read-only review did not rerun it locally. Is this the best way to solve the issue? Yes. Reusing the already-covered unique-definition resolver fixes the observer at its owner without changing package bytes, product behavior, or stored state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 25f07e880f5d. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash auto-merge.
|
Use the shared defining-function resolver so generated forwarding chunks do not look like duplicate artifact-preserving state readers. Preserve package integrity, ambiguity checks, and parser cleanup.
What Problem This Solves
Fixes false Projects upgrade-acceptance failures when a valid installed package contains both a defining state-reader module and a generated forwarding entry.
User Impact
The published-upgrade Projects/Doctor lane can continue to its state-preservation checks. This changes the acceptance harness only; product behavior, package contents, and integrity requirements are unchanged.
Why This Change Was Made
Reuse the existing unique-definition resolver instead of counting every exported alias. The harness still rejects multiple definitions or modified package bytes, closes the native parser, and records the selected module's hash and export.
Evidence
Package Acceptance 36041317055 completed the authentic 2026.9.4 update and installed-candidate identity check, then failed before the explicit Doctor phase because the observer found two exported entries. The accepted tarball contains one definition plus one forwarder; the shared resolver selects the defining module when parsing those exact bytes.
The existing focused suites pass: 15 Projects/Doctor evidence tests and 20 project-worktree ownership tests, including definition/forwarder selection and rejection of ambiguous, malformed, and modified owners. Scoped lint, Docker acceptance boundary checks, normal formatting hooks, and independent P0–P2 review pass.
Live artifact-only recovery 36057461016 passed at this exact head, reusing original artifact
10828298572and package SHA-256c26b3232655af3547840e5ae710d8bc2b2b614843cb27259fa0dd3379a4882c4. The authentic 2026.9.4 updater installed the candidate and preserved Projects inventory. Both subsequent selected Doctor invocations preserved Projects rows/schema, then-current configuration and SQLite bytes, and synthetic files. The lane passed in 161 seconds; phase evidence records every assertion. No new package was built. This also supplies the requested compatibility evidence without implying a stored-data contract change.Required PR CI is temporarily deferred by an independent Full Release Validation priority window. Its canonical restoration remains required before landing; no gate is waived.
Related: #147281.