Skip to content

fix(release): preserve publication and source provenance contracts - #164595

Merged
steipete merged 2 commits into
mainfrom
fix/release-proof-contracts-20261003
Oct 3, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/release-proof-contracts-20261003

Conversation

@steipete

@steipete steipete commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

The release compatibility cleanup in #164196 left a July extended-stable fixture paired with September main, and removed Gateway network E2E checkout validation along with the obsolete layout resolver. The first made publication tests reject a retired line; the second let missing or mismatched selected source reach Docker.

Use the valid August fixture while retaining the exact release-note assertion and the one-month publication policy. Restore the existing source reader's validation before Docker, independently of omission permission. Keep obsolete compatibility, omission, and legacy-library paths absent, and preserve the suspension checks.

Validation:

  • Release-publication file: 15 tests passed in each of three runs (8.67–10.31s Vitest).
  • Install-smoke file: 16 tests passed in each of three runs (8.55–9.31s), including wrong/missing checkout rejection before any Docker call with omission permission both off and on.
  • Docker-helper file: 147 passed, two existing skips (115.70s).
  • Full Linux tooling configs could not start: Testbox allocation timed out; AWS and Hetzner provisioning failed in the provider coordinator. No remote gate is claimed as passed. This is a ready PR rather than a direct main push because the remote proof floor remains incomplete.
  • node scripts/check-changed.mjs --base 93450db8d497 --timed passed locally, including all four root test type graphs, scripts lint, changed-test lint, formatting, ratchets, and all three dead-export scans.
  • Explicit boundary lint passed. Independent P2 review is clean.

Pair the August extended-stable specimen with September protected main,
matching the single trailing-month policy introduced by 3d35108.
Keep the exact publication-entry release-note assertion and policy intact.

Validation: publication file passed all 15 cases in three local runs;
check-changed, boundary lint, and P2 review passed. Remote full-config proof
could not start because Testbox, AWS, and Hetzner provisioning failed.
Removing the retired gateway layout resolver also removed selected-checkout
validation. Use the retained canonical source reader before Docker setup so
a missing or mismatched release source still fails with exit 2 before side
effects, regardless of omission permission. Keep retired compatibility and
legacy suspension paths absent; make their source assertion precise.

Validation: install-smoke file passed all 16 cases in three local runs;
Docker-helper file passed 147 cases with two existing skips. Check-changed,
all four root test type graphs, boundary lint, and P2 review passed locally.
Full Linux tooling and tooling-docker configs could not start: Testbox timed
out and AWS/Hetzner provisioning failed. Use a ready PR rather than a direct
main push with the remote proof floor incomplete.
@clawsweeper

clawsweeper Bot commented Oct 3, 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.

@steipete
steipete enabled auto-merge (squash) October 3, 2026 22:52
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: XS labels Oct 3, 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 Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 6:55 PM ET / 22:55 UTC.

ClawSweeper review

What this changes

The PR restores selected-checkout validation before Gateway network Docker tests and updates release fixtures to preserve the active extended-stable publication contract.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused repair: current main still lacks the checkout validation and retains the invalid publication fixture. No introduced correctness defect was found.

Priority: P2
Reviewed head: f2fa647b426669eb975c83e2babd7b3c5c9d4cc4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful boundary coverage, no actionable findings, and clearly disclosed broader validation limits.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied MEMBER classification exempts this internal tooling repair from external-contributor proof. Reported tests exercise the real workflow and source reader with a Docker stub; full Linux tooling runs remain explicitly unrun. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied MEMBER classification exempts this internal tooling repair from external-contributor proof. Reported tests exercise the real workflow and source reader with a Docker stub; full Linux tooling runs remain explicitly unrun. No stored-data contract changes.
Evidence reviewed 8 items Pinned introduction and actual merge result: The introduced delta contains the source-validation call and three test updates. Raw test-merge parents are exactly the pinned main followed by the pinned PR head; its comparison against main preserves the same intended delta.
Existing source owner reused: The restored call runs before image resolution, cleanup-trap installation, and Docker commands. The existing reader validates a full commit SHA, checkout HEAD, commit and root-tree objects, disables ambient Git routing and lazy fetching, and returns exit 2 on validation errors.
Workflow boundary regression coverage: The existing executable workflow test now covers selected, mismatched tooling, and missing checkout states with omission permission both disabled and enabled. Invalid states must exit 2 without any Docker call; valid states reach image inspection. Docker is a recording stub, so this is boundary regression coverage rather than live Docker proof.
Findings None None.
Security None None.

How this fits together

Release validation combines trusted test tooling with a separately selected source checkout and package image. The network test validates that source identity before Docker work, while publication tests verify release notes against the supported maintenance line.

flowchart TD
  A[Selected source and commit] --> B[Trusted network test runner]
  B --> C[Validate checkout identity]
  C -->|Invalid| D[Exit before Docker]
  C -->|Valid| E[Docker network and suspension tests]
  F[Release version and main version] --> G[Publication policy and release notes]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +6, Other +5. Total +11 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 13 7 +6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 5 0 +5
Total 4 18 7 +11

Review metrics

Metric Value Why it matters
Source-validation coverage 6 scenarios: 4 reject before Docker, 2 reach Docker The matrix checks that omission permission cannot bypass checkout provenance.

Technical review

Best possible solution:

Keep one canonical source reader enforcing checkout provenance and maintain publication fixtures against the active trailing-month policy.

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

Yes, from source: current main pairs a retired July fixture with September publication policy and reaches Docker without checking the selected checkout. Tests were not executed during this read-only review.

Is this the best way to solve the issue?

Yes. Reusing the retained source reader and correcting the fixture repairs the existing contracts without restoring retired compatibility behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs bounded release-validation defects without changing shipped product behavior or publication policy.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER classification exempts this internal tooling repair from external-contributor proof. Reported tests exercise the real workflow and source reader with a Docker stub; full Linux tooling runs remain explicitly unrun. No stored-data contract changes.

Label justifications:

  • P2: This repairs bounded release-validation defects without changing shipped product behavior or publication policy.
  • 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: The supplied MEMBER classification exempts this internal tooling repair from external-contributor proof. Reported tests exercise the real workflow and source reader with a Docker stub; full Linux tooling runs remain explicitly unrun. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduction and actual merge result: The introduced delta contains the source-validation call and three test updates. Raw test-merge parents are exactly the pinned main followed by the pinned PR head; its comparison against main preserves the same intended delta. (scripts/e2e/gateway-network-docker.sh:10, ece14067a6e5)
  • Existing source owner reused: The restored call runs before image resolution, cleanup-trap installation, and Docker commands. The existing reader validates a full commit SHA, checkout HEAD, commit and root-tree objects, disables ambient Git routing and lazy fetching, and returns exit 2 on validation errors. (scripts/lib/frozen-target-source.mjs:10, f2fa647b4266)
  • Workflow boundary regression coverage: The existing executable workflow test now covers selected, mismatched tooling, and missing checkout states with omission permission both disabled and enabled. Invalid states must exit 2 without any Docker call; valid states reach image inspection. Docker is a recording stub, so this is boundary regression coverage rather than live Docker proof. (test/scripts/install-smoke-no-push-workflow.test.ts:463, f2fa647b4266)
  • Publication fixture matches authoritative policy: The fixture pairs August extended-stable with September main and retains the exact release-note assertion. The publication owner requires a calendar-month difference of exactly one; the release policy documents that same trailing-month contract. (scripts/openclaw-npm-extended-stable-release.mjs:205, f2fa647b4266)
  • Current main still needs the repair: Pinned current main has no selected-source validation in the network runner and still uses July 2026 with September tooling in the publication fixture. The supplied latest release predates this October cleanup; no merged fixing PR establishes redundancy. (test/scripts/release-publish-draft.test.ts:153, 8db9539ee84a)
  • Related merged cleanup: chore(release): remove obsolete release-train fixtures #164196 is merged. Its patch removed the compatibility layout resolver and narrowed publication eligibility to one trailing month. This PR preserves that intended retirement while repairing validation and fixture fallout. (scripts/e2e/gateway-network-docker.sh:9, 3d351089a5b3)

Likely related people:

  • steipete: 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)
  • vincentkoc: 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.

@steipete
steipete merged commit 65fe6d9 into main Oct 3, 2026
103 of 106 checks passed
@steipete
steipete deleted the fix/release-proof-contracts-20261003 branch October 3, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS 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