Skip to content

fix(release): reuse admitted changelog descendants - #178152

Merged
RomneyDa merged 2 commits into
mainfrom
fix/rri-12-candidate-changelog-reuse
Oct 20, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/rri-12-candidate-changelog-reuse

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Related: https://github.com/openclaw/maintainers/blob/main/release/retrospectives/issue-ledger.md#rri-12

What Problem This Solves

Fixes candidate-owned Full Release Validation reuse refusing a release candidate whose code parent was already qualified and whose only descendant changes are the selected split changelog files.

User Impact

Release operators can carry product validation forward across a proven changelog-only descendant instead of rerunning every FRV child for hours.

Authority Model

The production request authenticates both revisions independently:

  • retained evidence and its immutable children remain bound to admitted parent A;
  • the executing workflow, current request, and current admission remain bound to descendant B;
  • the existing comparison policy proves merge-base(A, B) = A and permits only the selected changelog paths/statuses;
  • publisher authority, repository, coverage, baselines, policy/source digests, and every non-revision input must remain identical;
  • changed inputs, code deltas, changed publisher authority, and revoked authority all fail before release consumers run.

The shell prefilter checks the retained root against its authenticated A admission, while the shared validator separately authenticates B and proves the A→B delta. Exact-target reuse keeps the stricter full admission-identity equality.

Evidence

  • pnpm exec vitest run test/scripts/find-reusable-release-validation.test.ts test/scripts/release-ci-summary.qualification.test.ts — 65 passed, including real B-dispatch/A-evidence selection and changed-input/P/revoked-P rejection.
  • OPENCLAW_LOCAL_CHECK=0 node scripts/run-tsgo-core-test-shards.mjs --root-stripe 2/4 — passed.
  • pnpm exec oxlint scripts/release-ci-summary.mjs test/scripts/find-reusable-release-validation.test.ts test/scripts/release-ci-summary.qualification.test.ts — clean.
  • pnpm exec oxfmt --check scripts/github/find-reusable-release-validation.sh scripts/release-ci-summary.mjs test/scripts/find-reusable-release-validation.test.ts test/scripts/release-ci-summary.qualification.test.ts — clean.
  • git diff --check — clean.

Independent semantic review found no P0/P1/P2 authority-bypass or binding issue after the repair. The canonical Codex Auto Review command is unavailable on this host because there is no codex executable.

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Oct 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Allows independently admitted changelog-only release descendants to reuse their parent's product-validation evidence.

Example: A qualified 2026.8.28 candidate gains only CHANGELOG/2026.8.28.md and its matching contribution record.

  • Before: Candidate-owned admission identity checks reject reuse and require fresh product validation.
  • After: The descendant can reuse authenticated parent evidence when the changelog delta and all non-revision qualification inputs match.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful, focused repair with the previous code finding resolved; supplied fixtures do not clear the changed authority boundary.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators repeat broad product validation after changelog-only candidate updates despite reusable qualified parent evidence.
Reason: The maintainer-authored direction restores documented changelog-only reuse within the candidate-owned admission model.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open: it repairs a current release-validation limitation, and the latest commit addresses the prior execution-plan finding; no additional concrete code defect was found.

Priority: P2
Reviewed head: e67482c510b421ebee4ed322f062adfe29f89252

Before merge

  • Add real behavior proof - Authority-chain proof required: supplied fixtures mock GitHub comparisons and admission transport, and the collector substitutes its verifier; provide redacted nonpublishing output showing admitted B reusing A through the real workflow and release consumer, with an allowed operator reaching the effect and an unauthorized or revoked operator rejected before I/O, including delayed recovery. Redact credentials, IPs, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security review attention item - No concrete authority bypass was found, but descendant evidence acceptance still requires final-effect verification.

Findings

None.

Tests

  • Missing end-to-end proof: Supply the descendant workflow-to-consumer authority scenario; a red-on-base regression run is also not shown.
Agent review details

How this fits together

Full Release Validation consumes candidate admissions, retained workflow evidence, and GitHub commit comparisons to select reusable product checks and authenticate evidence for release consumers.

flowchart TD
  A[Current candidate admission] --> C[Shared evidence validator]
  B[Retained parent admission and evidence] --> C
  D[GitHub changelog comparison] --> C
  C --> E[Release execution plan]
  E --> F[Release decision]
  F --> G[Publication artifact consumers]
Loading

Technical review

Best possible solution:

Retain the shared admission and changelog-policy owners, preserving separate parent evidence, descendant admission, and exact descendant publication bytes.

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

Current-main source rejects independently admitted changelog descendants through exact qualification identity equality; no target code or tests were executed during this review.

Is this the best way to solve the issue?

The patch repairs selection and execution-plan validation through existing owners while preserving exact-target identity checks and the shared changelog classifier.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete authority bypass was found, but descendant evidence acceptance still requires final-effect verification.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 11f0d10 adds scripts/release-ci-summary.mjs:2429 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 11f0d107b5fd; files: scripts/release-ci-summary.mjs)
  • Peter Steinberger: Raw commit 5997629 adds scripts/release-ci-summary.mjs:2182 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 59976298fff1; files: scripts/release-ci-summary.mjs)
  • Dallin Romney: Raw commit 5584b16 adds scripts/release-ci-summary.mjs:816 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5584b16af910; files: scripts/release-ci-summary.mjs)

PR surface

Tests +103, Other +55. Total +158 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 280 177 +103
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 68 13 +55
Total 5 348 190 +158

Root-cause cluster

Relationship: canonical
Canonical: #178152
Summary: This PR owns the main-branch repair; two open release-train batches explicitly backport it.

Members:

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Avoids unnecessary broad release validation after selected changelog-only changes; product runtime is unaffected.
  • merge-risk: 🚨 automation: Changes release-evidence selection and execution-plan acceptance, which determine whether validation children are reused.
  • merge-risk: 🚨 security-boundary: Broadens cross-revision acceptance of authority-bearing qualification evidence without supplied final-effect proof for the descendant path.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

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

  • Add final-effect proof for an unauthorized operator and prove revocation invalidates descendant reuse before release-consumer I/O.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-20T06:30:03.508Z sha 1ddbc70e402cc1a3cfad90986f42915993e8bd6a :: needs real behavior proof before merge. :: [P2] Handle the descendant identity produced by the admitted workflow
  • reviewed 2026-10-20T07:29:45.505Z sha 640bb82 :: needs real behavior proof before merge. :: [P2] Accept proven descendants through execution-plan validation

Reviewed October 20, 2026, 4:04 AM ET / 08:04 UTC (Revision 3).

@RomneyDa
RomneyDa force-pushed the fix/rri-12-candidate-changelog-reuse branch from 1ddbc70 to 640bb82 Compare October 20, 2026 06:38
@RomneyDa

Copy link
Copy Markdown
Member Author

Repaired the production identity path from the ClawSweeper finding: current dispatch/admission now stay bound to descendant B, retained evidence stays bound to admitted parent A, and reuse requires the existing strict A→B changelog classifier plus identical publisher/policy/coverage/non-revision inputs. The shell prefilter now binds the retained root to its own authenticated A receipt. Full focused suites pass 65/65; the root-scripts type stripe passes; changed input, changed P, and revoked P all reject before release consumers. @clawsweeper re-review

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review repaired head 640bb82ba721.

The production identity mismatch is addressed by authenticating the executing descendant B through the current admission while independently retaining parent A's evidence identity, then requiring the proven changelog-only A→B delta and equality of all non-revision qualification inputs. The production-path fixture now dispatches as B while consuming A evidence, and the qualification suite proves changed inputs, changed publisher identity, and revoked publisher authority are rejected before release consumers.

The PR body contains the authority model and validation evidence (65 focused tests, typecheck shard, lint, format, and diff checks).

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Addressed the descendant-validation finding in e67482c510b:

  • the execution-plan expected-evidence interface is now validated before sealing even when the direct candidate manifest has no explicit reuse request;
  • an authenticated expected descendant is admitted through the same policy identity checks as selection-time reuse;
  • caller-path qualification tests cover both exact and descendant manifests and assert the resulting split changelog/reuse state.

Validation: 29 focused tests passed; pnpm tsgo:scripts and oxlint passed.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@RomneyDa
RomneyDa enabled auto-merge (squash) October 20, 2026 23:14
@RomneyDa
RomneyDa disabled auto-merge October 20, 2026 23:15
@RomneyDa
RomneyDa merged commit f2df9d0 into main Oct 20, 2026
107 checks passed
@RomneyDa
RomneyDa deleted the fix/rri-12-candidate-changelog-reuse branch October 20, 2026 23:15
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
* fix(release): reuse admitted changelog descendants

Co-authored-by: RomneyDa <[email protected]>

* fix(release): validate admitted descendant reuse at seal

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants