Skip to content

fix(release): unblock historical upgrade transcript and plugin checks - #132816

Merged
steipete merged 3 commits into
mainfrom
codex/frv-meeting-export-phase-current
Aug 29, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/frv-meeting-export-phase-current

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where historical upgrade verification rejected successful migration and expected fixture consent recovery. In the frozen full release run, seven meeting-transcript cases rejected their own exported artifact, and thirteen Feishu/ACP cases stopped before Gateway startup because their explicitly configured fixture plugins were absent from the harness's reviewed recovery set.

Why This Change Was Made

Migration checks now stay observational through every repeated survival check. The unchanged explicit transcript export assertions run once, after consent recovery finishes, so exporting the expected user artifact cannot invalidate a later migration assertion.

The ACP recipe now also declares its candidate package requirement. The planner collects that requirement during the same baseline-filtered recipe traversal it uses for channels, so unsupported baselines and unrelated scenarios do not stage ACP. This fixes the older-package selection exposed after consent admission was repaired; the exact version assertion remains intact.

The finite reviewed fixture set now includes acpx and feishu, which the scenario recipes already configure. The harness still requires the exact consent error codes/messages, a completed core swap, the expected baseline and installed versions, no integrity drift, and no unrelated plugin failures. It still rejects unknown plugins; it does not trust arbitrary configured entries.

The repeated meeting survival calls became visible in #132470 and were carried forward in #132529. The incomplete finite consent list originated in #132529. Blamed commits are 56ffe5bc2efbc73eeb5f90f8d4d10ad0ce7488c2 and 21890efc87fd3c3678f01c602ed4d2db57d5a133, both authored by Peter Steinberger; the former credits Dallin Romney. The channel-only companion planner was introduced in #120107 (a0deb8edae1a72acc8d70d2b98298fc1de3376c0, authored by Vincent Koc), after ACP had already been externalized by 010f7a58a1aaa0efff541a6844c7b3d684a2bacc. These are harness lifecycle/fixture omissions, not product migration or consent-policy defects.

User Impact

No runtime, SQLite schema, persistence policy, configuration, timeout, or retry behavior changes. Release verification keeps the same migration, archive, export, recovery, and Gateway assertions without failing because of its own fixture ordering or incomplete fixture inventory.

Production LOC: +0/-0. Test infrastructure and tests: +171/-43 across eight files.

Evidence

  • The original-order meeting regression fails before the export phase split and passes afterward.
  • Replayed all thirteen captured full update reports from the failed release jobs: 13/13 rejected before the fixture-set correction, 13/13 admitted afterward. Historical split reports retain their actual result/exit-code fields; only the artifact-root path was relocated for replay.
  • Four new error/ok consent cases fail before and pass after; negatives preserve rejection of unreviewed plugins, non-consent codes, unrelated failures, integrity drift, wrong versions, and incomplete updates.
  • Focused tests: four files, 329 passing tests across both canonical runner projects. Full changed-file gate passed. Independent Codex reviews reported no actionable findings.
  • The new planner regression failed before the fix; the original six-package artifact is explicitly rejected when ACP is required. Planner, recipe, and registry tests: 96 passed; combined changed-file gate and independent review passed.
  • Testbox proof, harness e5dc9df95928012aca0b5b519a7690d4bcacd4ca: real packaged 2026.4.15 meeting and 2026.4.23 Feishu scenarios passed against the sealed candidate. ACP reached completed repair, then exposed the missing companion artifact through the unchanged exact-version assertion.
  • Final ACP Testbox proof, exact harness 50a14d6c2dad7ce10f82a8cec037f882522a238d: the ordinary 2026.4.23 ACP upgrade passed in 193.876 seconds, including explicit repair, exact package-version and artifact-bound consent checks, four complete ClawHub audit cycles, and Gateway health/status. It uses the unchanged sealed d9fe780239a2cb7158aad437112156605e8d375c core candidate with the final harness source and an explicitly composed new registry: the original six tarballs remain byte-identical, and ACP is normally built and packed from the exact frozen candidate source. The canonical validator checks all seven packages; this is a new manifest identity, not the original artifact seal or a single-producer attestation. The next full release run will use the fixed planner to build the complete registry normally. This is not a claim that the full historical matrix or full release verification is green.

The final proof verifies all 35,205 tracked source paths, bytes, executable/symlink modes, and the Git tree before installation and afterward. The fixed planner requests ACP only for its supported recipe. Both proof leases were stopped and verified completed. The composed registry manifest is 003a8318377e78547525c97697ce25d6d71a18dc73294f37417f0d504e36d4dc; the newly built ACP tarball is a19133a6b0cdfe350126a538cbe725a38fb12b2fcf333651b6662c5a4b55cc80.

The linked Actions pages identify the Testbox leases. The recorded wrapper command exits and source guards are the proof results; lease cleanup can leave the hydration workflow cancelled.

@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: M maintainer Maintainer-authored PR labels Aug 29, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Aug 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 6:02 PM ET / 22:02 UTC.

ClawSweeper review

What this changes

The PR moves meeting-transcript export after repeated migration-survival checks and has the upgrade planner stage ACPX plus recognize ACPX/Feishu consent outcomes for applicable historical scenarios.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for normal maintainer merge handling. The reviewed changes repair two release-harness ordering/inventory defects without an introduced correctness finding, but exact-head CI is still in progress and the newer fetched-main object could not be hydrated locally.

Priority: P2
Reviewed head: 349974f7e93ac7bb44d03a5140cbf16b21aa2380
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused owner-boundary repair with meaningful regression coverage and supplied packaged-run evidence; current-head validation remains the merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is exempt from the external-contributor proof gate; the supplied Testbox links remain useful evidence for the real packaged upgrade path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the external-contributor proof gate; the supplied Testbox links remain useful evidence for the real packaged upgrade path.
Evidence reviewed 6 items Pre-PR transcript assertion mixed observation and materialization: The base assertion first requires the legacy transcript source to be absent, then invokes the export command that recreates that same path; later survival checks can therefore reject the harness’s own export side effect.
Lifecycle owner now completes repeated checks before export: Consent recovery can run survival assertions again; the new phase invokes transcript export only after that entire recovery routine, preserving the migration invariant through every repeated check.
Planner now consumes declarative recipe requirements: The ACPX recipe declares its required candidate package, and the planner reads requirements from the same baseline-adapted recipe traversal used for channel-derived packages.
Findings None None.
Security None None.

How this fits together

Historical-upgrade scenarios install an older OpenClaw version, update it to a candidate, then check migrated state, plugin recovery, and Gateway health. The Docker planner supplies candidate plugin packages required by those scenario recipes before the update runs.

flowchart LR
  A[Historical baseline] --> B[Upgrade scenario recipe]
  B --> C[Docker release planner]
  C --> D[Candidate plugin registry]
  D --> E[Updater and doctor]
  E --> F[State and consent checks]
  F --> G[Transcript export and Gateway checks]
Loading

Decision needed

Question Recommendation
After exact-head CI completes, should the release-harness owner merge this member-authored repair against the current main revision? Complete exact-head validation, then merge: Merge once the current head is cleanly validated against current main and its required release-harness checks pass.

Why: The source repair is coherent, but the final current-main merge context could not be inspected locally and the exact-head check suite remains in progress.

Before merge

  • Resolve merge risk (P1) - The reviewed test merge is against base b33e6aa while the supplied fetched-main SHA is newer and unavailable in this partial checkout; finish exact-head CI and refresh merge validation before landing.
Agent review details

Security

None.

PR surface

Tests +116, Other +12. Total +128 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 129 13 +116
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 4 42 30 +12
Total 8 171 43 +128

Review metrics

Metric Value Why it matters
Production versus test-support delta production +0/-0; test support/tests +171/-43 The patch changes release verification and regression coverage without changing shipped application runtime code.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/config-recipe.mts, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/run.sh. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Complete exact-head validation (recommended)
    Wait for the current head’s required checks and current-main merge validation before landing the release-harness change.
  2. Pause for planner-boundary changes
    Pause the PR if a newer main revision changes recipe resolution or candidate-registry behavior before validation completes.

Technical review

Best possible solution:

Retain the lifecycle split and recipe-declared package requirement, then merge only after the exact current head has completed its release-harness validation.

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

Yes, from source: the base assertion materializes the legacy transcript path after asserting it absent, while consent recovery invokes survival checks again. The supplied PR evidence also reports the corresponding packaged historical-upgrade failures, but this read-only review did not rerun them.

Is this the best way to solve the issue?

Yes. Separating the side-effecting export from the observational migration assertion fixes the lifecycle owner, and declaring ACPX on its scenario recipe avoids guessing package needs from channel-only configuration.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 288352be04f2.

Labels

Label changes:

  • add merge-risk: 🚨 automation: The PR changes the Docker release planner and upgrade-survivor phase ordering that govern candidate-package validation.

Label justifications:

  • P2: This is a bounded repair to historical release verification rather than a current application-runtime outage.
  • merge-risk: 🚨 automation: The PR changes the Docker release planner and upgrade-survivor phase ordering that govern candidate-package validation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is exempt from the external-contributor proof gate; the supplied Testbox links remain useful evidence for the real packaged upgrade path.

Evidence

What I checked:

  • Pre-PR transcript assertion mixed observation and materialization: The base assertion first requires the legacy transcript source to be absent, then invokes the export command that recreates that same path; later survival checks can therefore reject the harness’s own export side effect. (scripts/e2e/lib/upgrade-survivor/assertions.mjs:822, b33e6aa5e09a)
  • Lifecycle owner now completes repeated checks before export: Consent recovery can run survival assertions again; the new phase invokes transcript export only after that entire recovery routine, preserving the migration invariant through every repeated check. (scripts/e2e/lib/upgrade-survivor/run.sh:1431, 349974f7e93a)
  • Planner now consumes declarative recipe requirements: The ACPX recipe declares its required candidate package, and the planner reads requirements from the same baseline-adapted recipe traversal used for channel-derived packages. (scripts/lib/docker-e2e-plan.mts:545, 349974f7e93a)
  • Regression coverage protects ordering and baseline selection: Tests exercise two survival checks before transcript export, admit only the newly reviewed consent cases while rejecting non-consent failures, and verify ACPX staging for a supported baseline but not an unsupported one. (test/scripts/upgrade-survivor-assertions.test.ts:822, 349974f7e93a)
  • Merged history establishes the adjacent repair lineage: The checked history places this work after the merged historical-boundary and consent-recovery repairs; it is a distinct completion of that release-harness path rather than a duplicate of either. (scripts/e2e/lib/upgrade-survivor/assertions.mjs:812, 349974f7e93a)
  • Current-main source could not be hydrated: The supplied fetched-main SHA is newer than the verified PR base, but this partial checkout could not fetch that object because github.com DNS resolution failed. No claim is made that current main already contains this repair.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let exact-head CI and current-main merge validation complete before merging.

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-08-29T19:52:13.022Z sha 50a14d6 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/frv-meeting-export-phase-current branch from 50a14d6 to 349974f Compare August 29, 2026 21:56
@steipete

Copy link
Copy Markdown
Contributor Author

Mechanically refreshed onto current main to include the merged shutdown-profile fixture repair in #132820. The historical-upgrade harness patch remains unchanged; the patch identity and changed file blobs are checked against the previous head. The published focused, original-order migration, finite-consent and packaged upgrade proofs remain historical evidence for that patch. The final ACP proof used the explicitly documented seven-package composition, not the earlier six-package artifact seal. Fresh exact-head CI is required before landing.

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Aug 29, 2026
@steipete
steipete merged commit f12dab5 into main Aug 29, 2026
153 checks passed
@steipete
steipete deleted the codex/frv-meeting-export-phase-current branch August 29, 2026 22:10
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
…openclaw#132816)

* test(upgrade): defer transcript export until survival checks finish

* test(upgrade): admit reviewed scenario consent recovery

* test(release): stage ACP companion for historical upgrades
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. 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