Skip to content

fix(release): isolate first-hop controls per source - #157680

Merged
RomneyDa merged 1 commit into
mainfrom
fix/update-fixture-source-contracts
Sep 25, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/update-fixture-source-contracts

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: first-hop compatibility validation can remove the wrong lazy chunk or report a false second-hop result when validating multiple frozen source releases.

Related: #157608

User Impact

User impact: release validation now proves each frozen source against its own exact missing-chunk control and reports the chunks actually retained by the future package.

Why This Change Was Made

The negative fixture was shared across all source releases and removed the candidate's complete recorded compatibility set. Each source now receives a dedicated fixture that removes only its selected import. The future fixture receipt carries the actual removed and retained chunks into the summary instead of hard-coding absence.

The production-script delta is +31 lines. The growth establishes the missing owner boundary: per-source fixture creation plus producer-recorded compatibility facts. The existing shared fixture and inferred summary paths are removed.

Evidence

  • Reproduced the two accepted ClawSweeper findings from merged fix: plugin update validation selects stale compatibility chunks #157608 in the explicit 2026.8.2 path and the multi-source recorded path.
  • OPENCLAW_VITEST_MAX_WORKERS=1 pnpm test test/scripts/update-first-hop-package-fixtures.test.ts — 32/32 passed; 17.55 s wall on the final exact branch.
  • bash -n scripts/e2e/update-first-hop-compat-docker.sh scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh — passed.
  • Fresh P0–P2 autoreview — scoped clean after repairing its two findings (per-source fixture isolation and exact single-chunk removal).
  • node scripts/check-changed.mjs -- <changed paths> — every applicable gate passed except the unrelated current-main UpdateStepResult export regression; fix(update): restore npm-pack helper typechecking #157659 is the active owner fix.

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

@RomneyDa
RomneyDa marked this pull request as ready for review September 24, 2026 23:18
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: S labels Sep 24, 2026
@RomneyDa
RomneyDa force-pushed the fix/update-fixture-source-contracts branch 2 times, most recently from 5daed0b to d5554d1 Compare September 24, 2026 23:48
@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 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 24, 2026, 11:16 PM ET / September 25, 2026, 03:16 UTC (Revision 3).

ClawSweeper review

What this changes

The branch creates a missing-chunk control for each frozen source release and records the future package’s removed and retained compatibility chunks in the release-validation summary.

Merge readiness

⛔ Blocked before merge - 1 item remains

Current main still has the reported release-validation defect. The current PR addresses the prior review’s proof gap with a successful recorded-source Docker run, and this review found no blocking defect.

Priority: P2
Reviewed head: 02e938eedc6b30bb3bbfd83908036a111bed12d5

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The focused patch has regression coverage, green exact-head checks, and a successful real Docker survivor run across the recorded sources.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The linked run exercised all six recorded-source Docker survivor lanes using the selected PR source, including the changed path that reads the lane-mounted future receipt and writes the final summary after both upgrade hops. The job results and artifact metadata are visible; the artifact bytes were unavailable for an independent value-by-value comparison. The receipts are ephemeral release evidence, so no stored product data migration applies.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The linked run exercised all six recorded-source Docker survivor lanes using the selected PR source, including the changed path that reads the lane-mounted future receipt and writes the final summary after both upgrade hops. The job results and artifact metadata are visible; the artifact bytes were unavailable for an independent value-by-value comparison. The receipts are ephemeral release evidence, so no stored product data migration applies.
Evidence reviewed 7 items Current-main behavior: Current main prepares one negative tarball before the source loop; its survivor summary hard-codes the absence of legacy compatibility chunks. The reviewed head changes both paths.
Fixture selection: The changed fixture helper selects the source’s expected missing chunk, removes that file from the fixture inventories, and returns the removed path in its receipt.
Survivor summary path: The Docker lane mounts its own fixture artifacts; after the upgrade checks, the survivor reads the mounted future-fixture receipt and writes its chunk facts to the final summary before printing success.
Findings None None.
Security None None.

How this fits together

OpenClaw’s release validation tests upgrades from frozen published packages to a candidate package. Its fixture builder prepares test packages, Docker survivor lanes perform the upgrades, and their summaries feed release evidence.

flowchart LR
  A[Frozen source releases] --> B[Source compatibility inventory]
  B --> C[Per-source missing-chunk fixture]
  D[Candidate package] --> C
  D --> E[Future package fixture]
  C --> F[Docker upgrade survivor]
  E --> F
  F --> G[Release summary]
Loading

Before merge

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

Security

None.

PR surface

Tests +40, Other +32. Total +72 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 56 16 +40
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 54 22 +32
Total 4 110 38 +72

Review metrics

Metric Value Why it matters
Recorded-source proof 6 of 6 Docker lanes passed The linked run exercised the release-validation path across every recorded frozen source.
Code growth production +32 net lines, tests +40 net lines The production growth is tied to separate source controls and producer-recorded fixture facts.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh, serialized state: scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh, serialized state: scripts/e2e/update-first-hop-compat-docker.sh, unknown-data-model-change: scripts/e2e/update-first-hop-compat-docker.sh. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #157680
Summary: The earlier merged PR repaired recorded-chunk selection; this follow-up addresses the remaining per-source control and summary behavior in the same release-validation path.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Land the per-source control and receipt-backed summary through the normal reviewed release-validation path.

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

Yes, from source: current main creates one negative fixture before iterating frozen releases, although each release can identify a different missing chunk. I did not execute a failing current-main run.

Is this the best way to solve the issue?

Yes. The patch uses the existing fixture producer and Docker survivor path to bind controls to each source and report facts from the package receipt.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6b5fb4b23509.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The linked run exercised all six recorded-source Docker survivor lanes using the selected PR source, including the changed path that reads the lane-mounted future receipt and writes the final summary after both upgrade hops. The job results and artifact metadata are visible; the artifact bytes were unavailable for an independent value-by-value comparison. The receipts are ephemeral release evidence, so no stored product data migration applies.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: This repairs a bounded release-validation defect that can otherwise give misleading upgrade evidence.
  • merge-risk: 🚨 automation: The changed fixture and summary scripts determine whether first-hop release-validation lanes pass and what they report.
  • 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): The linked run exercised all six recorded-source Docker survivor lanes using the selected PR source, including the changed path that reads the lane-mounted future receipt and writes the final summary after both upgrade hops. The job results and artifact metadata are visible; the artifact bytes were unavailable for an independent value-by-value comparison. The receipts are ephemeral release evidence, so no stored product data migration applies.
  • proof: sufficient: Contributor real behavior proof is sufficient. The linked run exercised all six recorded-source Docker survivor lanes using the selected PR source, including the changed path that reads the lane-mounted future receipt and writes the final summary after both upgrade hops. The job results and artifact metadata are visible; the artifact bytes were unavailable for an independent value-by-value comparison. The receipts are ephemeral release evidence, so no stored product data migration applies.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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-24T23:55:11.242Z sha d5554d1 :: blocked before merge. :: [P1] Mount the future receipt in each recorded Docker lane
  • reviewed 2026-09-25T02:05:05.127Z sha 02e938e :: blocked before merge. :: none

@RomneyDa
RomneyDa force-pushed the fix/update-fixture-source-contracts branch from d5554d1 to 02e938e Compare September 25, 2026 01:59
@RomneyDa

Copy link
Copy Markdown
Member Author

Exact-head repair evidence for 02e938eedc6b30bb3bbfd83908036a111bed12d5:

  • First-hop package fixture suite: 32/32 passed in 39.31s.
  • Changed gate passed before the mechanical rebase; post-rebase focused proof is green.
  • Fresh P0-P2 autoreview: scoped clean.
  • Rebased onto current main; branch is conflict-free and non-draft.

The accepted review finding is fixed: every recorded-source lane now receives the second-hop fixture inside its own mounted artifact directory, and the owner test verifies each per-source copy against the root receipt.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 25, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Exact-head production-boundary proof is now green: https://github.com/openclaw/openclaw/actions/runs/36087351050

  • Selected checkout: 02e938eedc6b30bb3bbfd83908036a111bed12d5 (the current PR head).
  • All six recorded-source survivor jobs (2026.9.1 through 2026.9.6) completed successfully.
  • Representative source 2026.9.3: https://github.com/openclaw/openclaw/actions/runs/36087351050/job/107924492614 — the real Docker survivor exited 0 after both update hops and its terminal summary writer.
  • That terminal writer reads the lane-mounted second-hop-fixture.json receipt and records both secondHop.retainedLegacyCompatibilityChunks and secondHop.removedCompatibilityChunks; failure before or during that write cannot reach the lane's final success marker.
  • This is ephemeral release-validation evidence, not a persisted product data model or migration surface.

The exact-head PR CI gate is also green, GitHub reports the PR non-draft and MERGEABLE/CLEAN, and the prior ClawSweeper review found no code findings (patch quality platinum). This run supplies the requested production-boundary survivor proof.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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 25, 2026
@RomneyDa
RomneyDa merged commit bfa7e8d into main Sep 25, 2026
104 checks passed
@RomneyDa
RomneyDa deleted the fix/update-fixture-source-contracts branch September 25, 2026 04:29
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling 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. scripts Repository scripts size: S 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