Skip to content

fix(ci): successful upgrade checks omit detailed receipts - #148245

Merged
steipete merged 2 commits into
mainfrom
codex/fix-upgrade-success-receipts
Sep 14, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/fix-upgrade-success-receipts

Conversation

@steipete

@steipete steipete commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Successful published-upgrade checks omitted their detailed receipts from Docker artifacts. Reusing an artifact directory could also attach a previous run's repair or recovery logs to a later successful check.

User Impact

Maintainers can inspect the current invocation's initial update, subsequent recovery and phase timings. Missing observations remain unknown, and earlier public receipts remain available.

Why This Change Was Made

The existing host publisher projects and redacts successful receipts after Docker joins. Its existing preparation step clears only the three named per-run input logs before reuse. Initial post-core observations stay separate from later recovery.

These are temporary CI artifacts. Operator storage schemas and installed update, Doctor, migration and restart behavior do not change.

Evidence

The same-directory regression failed on the original stale-log defect and passed after the producer reset. The 20 selected cases and scoped checks passed; the overlapping wrapper cohort exercised 2 cases across 8 invocations. Independent P2 review completed five context batches with no actionable findings. The unchanged redaction registry implementation was omitted from that review context.

CI on 60150218 passed 79 jobs, with 15 skipped. Package Acceptance on the same head passed 9 jobs, with 15 skipped, through normal source validation and frozen admission. Its single 2026.9.3/base Docker cell reused the existing 2026.9.4 candidate artifact and passed in 307 seconds. All 37 phase pairs passed. The uploaded docker-e2e-published-upgrade-survivor artifact contains the verified 27,317-byte nested host receipt.

That receipt captures initial post-core exit 0 and normal first-hop plugin repairs, with no subsequent update recovery; optional repair/recovery logs are null. This is manual/no-restart evidence, not updater-owned restart proof. Update stdout retains the existing 16 KiB complete-line bound, while the structured first-hop outcome remains separate. Synthetic wrapper controls cover concrete masking; this was not live-credential testing.

The preceding 5caa replay remains separate evidence. The earlier run with missing detailed receipts still has an unknown first-hop outcome; the new result does not reclassify it.

Related: #147834.

Publish bounded, host-redacted receipts after successful published-baseline
upgrade runs. Reuse the diagnostic owner and retain the initial post-core
result separately from repair and recovery output. Preserve Docker outcomes
and existing failure reports.
@clawsweeper

clawsweeper Bot commented Sep 14, 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 docs Improvements or additions to documentation scripts Repository scripts docker Docker and sandbox tooling size: M maintainer Maintainer-authored PR labels Sep 14, 2026
@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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 14, 2026, 3:47 PM ET / 19:47 UTC (Revision 3).

ClawSweeper review

What this changes

Publishes redacted receipts for successful Docker upgrade checks while keeping initial update observations separate from recovery and excluding previous-run logs.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains a useful, focused fix with no blocking findings. The prior stale-log defect is addressed; the earlier migration-proof blocker does not apply to temporary CI artifacts.

Priority: P2
Reviewed head: 60150218a7bdf4cb9ac75235fab1d7b47d7876e9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful regression coverage and matching Docker-run evidence; no actionable blockers remain.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The recorded Docker package run exercises the changed success-publication path and reports the resulting host receipt with initial post-core exit 0 and absent recovery logs; GitHub verifies the run and artifact on this head. Artifact-byte inspection was blocked by the reviewer network policy, not missing contributor evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The recorded Docker package run exercises the changed success-publication path and reports the resulting host receipt with initial post-core exit 0 and absent recovery logs; GitHub verifies the run and artifact on this head. Artifact-byte inspection was blocked by the reviewer network policy, not missing contributor evidence.
Evidence reviewed 8 items Current-main necessity: Fetched main still publishes diagnostics only for nonzero Docker outcomes and does not clear the three optional receipt input logs.
Latest release still lacks successful publication: The v2026.9.4 wrapper likewise invokes publication only on failure; the requested success receipt is not already provided by that release.
Publication and security boundary: The success path reuses owned-file reads, explicit field projection, tools-mode host redaction, complete-line output bounds, and exclusive report creation. It does not change dependencies, permissions, installed update execution, or authorization.
Findings None None.
Security None None.

How this fits together

The upgrade-survivor harness tests a published OpenClaw installation against a candidate package in Docker. Its host-side publisher turns private run observations into bounded, redacted artifacts for release reviewers.

flowchart LR
  A[Published installation and candidate] --> B[Docker upgrade check]
  B --> C[Initial update and recovery observations]
  B --> D[Completed run outcome]
  C --> E[Host validation and redaction]
  D --> E
  E --> F[Success receipt or failure report]
Loading

Before merge

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

Security

None.

PR surface

Tests +178, Docs +3, Other +120. Total +301 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 202 24 +178
Docs 1 3 0 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 5 148 28 +120
Total 7 353 52 +301

Review metrics

Metric Value Why it matters
Implementation and regression coverage Tooling net +120 lines; tests net +178 lines Tooling growth implements bounded success-receipt projection; regression coverage checks invocation isolation, redaction, and outcome preservation.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/diagnostics.mjs, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/run.sh, migration/backfill/repair: scripts/e2e/upgrade-survivor-docker.sh, migration/backfill/repair: scripts/lib/upgrade-survivor-diagnostics.sh, serialized state: scripts/e2e/lib/upgrade-survivor/diagnostics.mjs, serialized state: scripts/e2e/lib/upgrade-survivor/run.sh, and 2 more. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep one host-owned publisher for bounded, redacted, invocation-specific receipts while preserving Docker outcomes and explicitly unknown observations.

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

Yes, from source: current main's outer cleanup publishes only failed runs, so successful published-upgrade checks omit host receipts. No target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Yes. Extending the existing publisher and resetting its per-run inputs addresses both omissions and stale evidence without creating another diagnostic owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Missing or stale upgrade receipts impair release diagnosis, with a limited CI-artifact blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The recorded Docker package run exercises the changed success-publication path and reports the resulting host receipt with initial post-core exit 0 and absent recovery logs; GitHub verifies the run and artifact on this head. Artifact-byte inspection was blocked by the reviewer network policy, not missing contributor evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The recorded Docker package run exercises the changed success-publication path and reports the resulting host receipt with initial post-core exit 0 and absent recovery logs; GitHub verifies the run and artifact on this head. Artifact-byte inspection was blocked by the reviewer network policy, not missing contributor evidence.

Evidence

What I checked:

  • Current-main necessity: Fetched main still publishes diagnostics only for nonzero Docker outcomes and does not clear the three optional receipt input logs. (scripts/lib/upgrade-survivor-diagnostics.sh:3, b47979ccdd6f)
  • Latest release still lacks successful publication: The v2026.9.4 wrapper likewise invokes publication only on failure; the requested success receipt is not already provided by that release. (scripts/e2e/upgrade-survivor-docker.sh:26, 3a9d69db306c)
  • Publication and security boundary: The success path reuses owned-file reads, explicit field projection, tools-mode host redaction, complete-line output bounds, and exclusive report creation. It does not change dependencies, permissions, installed update execution, or authorization. (scripts/e2e/lib/upgrade-survivor/diagnostics.mjs:725, 60150218a7bd)
  • Prior finding resolved: Preparation removes current-run summary and update/repair/recovery inputs. The extended wrapper regression performs two invocations in the same directory, checks absent optional logs become null, and verifies the earlier public receipt remains unchanged. (test/scripts/docker-build-helper.test.ts:5586, 60150218a7bd)
  • Upgrade-safety and review continuity: The introduced summary field reads the initial invocation's post-core snapshot without substituting later recovery. These files are named CI artifacts, not operator database schemas or migration inputs, so the previous review's generic migration-proof request is not a remaining blocker. (scripts/e2e/lib/upgrade-survivor/run.sh:318, 60150218a7bd)
  • Real Docker evidence on the reviewed head: The captured PR body reports a 307-second published 2026.9.3/base upgrade, 37 passed phase pairs, and a 27,317-byte nested host receipt with initial post-core exit 0 and null optional recovery logs. GitHub independently confirms https://github.com/openclaw/openclaw/actions/runs/34869812359 succeeded on the reviewed SHA and lists the unexpired docker-e2e-published-upgrade-survivor artifact. Downloading its bytes was blocked by the reviewer's artifact-storage allowlist; the receipt contents remain contributor-reported rather than independently inspected. (60150218a7bd)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

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 (2 earlier review cycles)
  • reviewed 2026-09-14T12:39:23.171Z sha 5caa7d1 :: blocked before merge. :: [P2] Clear optional logs before publishing a new run's receipt
  • reviewed 2026-09-14T16:50:24.992Z sha 6015021 :: blocked before merge. :: none

Publish host-redacted success receipts and clear each invocation’s private input logs before reuse. Preserve initial update observations, failure outcomes, and earlier public receipts.

Validated the reused-directory regression, 20 related cases, scoped checks, and fresh P2 review.
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 14, 2026
@steipete
steipete merged commit 1ac3cf6 into main Sep 14, 2026
169 of 170 checks passed
@steipete
steipete deleted the codex/fix-upgrade-success-receipts branch September 14, 2026 20:01
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
)

Publish bounded, host-redacted receipts after successful published-baseline
upgrade runs. Reuse the diagnostic owner and retain the initial post-core
result separately from repair and recovery output. Preserve Docker outcomes
and existing failure reports.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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