Skip to content

fix(ci): avoid false Projects upgrade reader failures - #157579

Merged
steipete merged 1 commit into
mainfrom
codex/doctor-147281-projects-reader
Sep 24, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/doctor-147281-projects-reader

Conversation

@steipete

@steipete steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

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 10828298572 and package SHA-256 c26b3232655af3547840e5ae710d8bc2b2b614843cb27259fa0dd3379a4882c4. 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.

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.
@clawsweeper

clawsweeper Bot commented Sep 24, 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 24, 2026, 5:32 PM ET / 21:32 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 9109ef0ec665fcdff96fc65c33a42742ebb780c2

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused reuse of the existing resolver now has exact-head published-upgrade proof for the previously blocked path.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): At PR head 9109ef0, the published-upgrade harness used the authentic 2026.9.4 updater with a reused frozen candidate package. The targeted Docker acceptance job succeeded, and the PR body records preserved Projects rows, schema, configuration, SQLite bytes, and files after two Doctor invocations. GitHub job and artifact metadata were verified; the sandbox could not open the separate job-log host. No stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): At PR head 9109ef0, the published-upgrade harness used the authentic 2026.9.4 updater with a reused frozen candidate package. The targeted Docker acceptance job succeeded, and the PR body records preserved Projects rows, schema, configuration, SQLite bytes, and files after two Doctor invocations. GitHub job and artifact metadata were verified; the sandbox could not open the separate job-log host. No stored-data contract changes.
Evidence reviewed 8 items Introduced harness change: The pinned PR delta replaces export counting with the shared definition-aware resolver, closes the parser, and checks the selected module hash before import.
Current-main behavior: Fetched main still counts every matching exported alias and requires exactly one match, so it does not contain this repair.
Shared resolver contract: The existing resolver verifies package paths and hashes, parses candidate modules, rejects malformed or multiple definitions, and returns the sole defining owner.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Other +7. Total +7 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 29 22 +7
Total 1 29 22 +7

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/projects-doctor.mjs, serialized state: scripts/e2e/lib/upgrade-survivor/projects-doctor.mjs, unknown-data-model-change: scripts/e2e/lib/upgrade-survivor/projects-doctor.mjs. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A false failure blocks a bounded package-upgrade acceptance scenario without changing product runtime behavior.
  • merge-risk: 🚨 automation: The patch changes how automated upgrade acceptance chooses an installed state reader; integrity and unique-definition checks constrain that selection.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): At PR head 9109ef0, the published-upgrade harness used the authentic 2026.9.4 updater with a reused frozen candidate package. The targeted Docker acceptance job succeeded, and the PR body records preserved Projects rows, schema, configuration, SQLite bytes, and files after two Doctor invocations. GitHub job and artifact metadata were verified; the sandbox could not open the separate job-log host. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. At PR head 9109ef0, the published-upgrade harness used the authentic 2026.9.4 updater with a reused frozen candidate package. The targeted Docker acceptance job succeeded, and the PR body records preserved Projects rows, schema, configuration, SQLite bytes, and files after two Doctor invocations. GitHub job and artifact metadata were verified; the sandbox could not open the separate job-log host. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit ec66133 adds scripts/e2e/lib/upgrade-survivor/projects-doctor.mjs:165 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ec66133ba007; files: scripts/e2e/lib/upgrade-survivor/projects-doctor.mjs)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-24T20:54:03.256Z sha 9109ef0 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 24, 2026
@steipete
steipete enabled auto-merge (squash) September 24, 2026 22:31
@steipete
steipete merged commit cbf84b4 into main Sep 24, 2026
164 of 165 checks passed
@steipete
steipete deleted the codex/doctor-147281-projects-reader branch September 24, 2026 22:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. 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