Skip to content

fix(release): reuse changelog evidence across advancing main admission tooling - #179193

Merged
RomneyDa merged 2 commits into
mainfrom
fix/reuse-admission-p-descendant
Oct 21, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/reuse-admission-p-descendant

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Problem

split-changelog-release-v1 evidence reuse never applies to candidate-owned (Q=C) Full Release Validation runs, which is every release FRV dispatched through scripts/full-release-validation-at-sha.mjs.

The qualification admission (P) is dispatched on the main ref, so it always executes at the current main tip; the helper even logs Admission P advanced with main: <old> -> <new> when main moves. qualificationReusePolicyIdentity compared publisher.workflowSha exactly, so a changelog-only descendant (necessarily admitted later, by a newer P) was always rejected with Qualification reuse requires exact admitted C/Q/P, coverage and inputs.

Observed on 2026.10.6: green FRV https://github.com/openclaw/openclaw/actions/runs/39533087436 (candidate 034b54080e6, P b6bf52d83e8) could not be reused by FRV https://github.com/openclaw/openclaw/actions/runs/39557142899 for changelog-only descendant 17a066f3eca (P advanced to ed2093257987). Diffing the two admission records showed P as the only identity difference after the existing candidate masking; coverage, baseline policy, lane inputs, and both source digests were identical.

Solution

  • In qualificationReusePolicyIdentity (changelog-descendant path only), mask publisher.workflowSha when the admission was published from refs/heads/main.
  • Add isTrustedMainDescendantAdmission: the requested P must equal the selected P, or both must be refs/heads/main admissions with the requested P a verified strict descendant (compareCommitLineage status ahead, merge base = selected P).
  • Unchanged: exact-target reuse still compares exact C/Q/P; protected-tag admissions keep exact P; coverage, baselines, complete inputs, workflowSourceDigest, policySourceDigest, and the existing requestedAdmission.producer.workflowSha === verifier.sourceSha check still apply.

Impact

Release-tooling only (scripts/release-ci-summary.mjs verifier, runs from trusted P on main). Changelog-only release fixes stop forcing a full multi-hour FRV. No candidate/product code changes.

Evidence

  • New cases in test/scripts/release-ci-summary.qualification.test.ts: newer main P descendant is accepted; diverged main P is rejected. The accept case fails on main without this change (red) and passes with it (green).
  • pnpm test test/scripts/release-ci-summary.qualification.test.ts test/scripts/release-qualification-admission.test.ts --maxWorkers=1: 54/54 passed, 2.6s wall.
  • Fixture support: publisherSha option on the admission fixture and protectedTag option on the candidate publication fixture (defaults unchanged).

Pre-existing main failure (not caused by this PR)

check-test-types-core-2 also reports test/scripts/ci-changed-node-test-plan.test.ts(813,33) and (891,33): Argument of type 'CompactNodeTestShard' is not assignable to parameter of type 'ChangedNodeTestShard'. Reproduced on a clean main checkout at 54db47573b4 with node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.tooling.json; this PR does not touch that file. This PR's own type error (release-ci-summary.qualification.test.ts:244) is fixed in 0cd3fa42ab2.

…n tooling

A main-dispatched qualification admission always runs at the main tip, so
a changelog-only descendant is always admitted by a newer P. The
split-changelog reuse identity compared P's exact SHA, which made
candidate-owned changelog reuse unreachable in practice.

Mask P's SHA in the changelog-descendant policy identity only for main
admissions, and require the requested P to be a verified main descendant
of the selected P. Coverage, baselines, inputs and source digests stay
exact; protected-tag admissions keep exact P.
@clawsweeper

clawsweeper Bot commented Oct 21, 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 scripts Repository scripts size: S labels Oct 21, 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: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Allow changelog-only release descendants to reuse qualification evidence when their main admission tooling has advanced along verified ancestry.

Example: Reuse candidate 034b540 qualification for changelog-only descendant 17a066f after admission tooling advances from b6bf52d to ed20932.

  • Before: Exact publisher-SHA comparison rejects reuse despite matching coverage, inputs, and source digests.
  • After: Reuse can pass when both admissions authenticate and GitHub verifies forward publisher ancestry.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused implementation has no discrete finding, but mocked verifier coverage does 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 cannot reuse otherwise matching qualification after a changelog-only candidate change when main admission tooling advances.
Reason: The maintainer-authored direction restores intended reuse with a focused change while retaining independent admission authentication and coverage checks.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this maintainer-authored PR addresses a current release-evidence reuse failure, and no discrete introduced correctness defect was found.

Priority: P2
Reviewed head: 0cd3fa42ab2c94c61afeb52ca4338fd1e2fc12b2

Before merge

  • Add real behavior proof - Authority-chain proof required: the changed verifier is exercised by mocked GitHub admission and ancestry fixtures; supplied historical FRV links do not show this patch accepting advancing-main reuse or rejecting read-only and revoked operators before final release-consumer I/O, including recovery. 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 cross-admission acceptance requires final-effect authorization evidence.
  • Resolve merge risk - Cross-admission reuse broadens acceptance of authority-bearing release evidence; rejection of unauthorized or revoked operators at the final release effect remains unverified.

Findings

None.

Tests

  • Missing end-to-end proof: Supply nonpublishing changed-path evidence for advancing-main reuse, with unauthorized and revoked operators rejected before final release-consumer I/O; redact credentials and non-public endpoints.
Agent review details

How this fits together

The release-evidence verifier receives retained qualification records and a current candidate admission, authenticates their identities and coverage, and returns validated evidence for release planning and artifact consumers.

flowchart TD
  A[Current candidate admission] --> C[Release evidence verifier]
  B[Retained qualification evidence] --> C
  D[GitHub identity and ancestry checks] --> C
  C --> E[Validated reuse selection]
  E --> F[Release plan and artifact consumers]
Loading

Technical review

Best possible solution:

Keep the focused repair in the existing verifier, preserving exact-target and protected-tag identity checks alongside authenticated forward-main ancestry.

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

Source confirms that advancing admission P changes the exact identity retained by current main; the author supplies a red/green verifier regression and identifies affected FRV runs, but this review executed no target code.

Is this the best way to solve the issue?

The patch repairs the comparison at its existing owner, reuses the established ancestry client, and adds distinct acceptance and divergence cases without introducing parallel state or policy.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Prove cross-admission authority before merge (recommended)
    Supply a nonpublishing production-path trace showing allowed descendant reuse and rejection of a read-only or revoked operator before release-consumer I/O, including delayed recovery.

Provenance checked

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete authority bypass was found, but cross-admission acceptance requires final-effect authorization evidence.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit f2df9d0 adds scripts/release-ci-summary.mjs:2445 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f2df9d01fb1a; files: scripts/release-ci-summary.mjs)
  • Vincent Koc: Raw commit 11f0d10 adds scripts/release-ci-summary.mjs:2453 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 ed39f65 adds scripts/release-ci-summary.mjs:1055 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ed39f6540f9f; files: scripts/release-ci-summary.mjs)

PR surface

Tests +98, Other +31. Total +129 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 106 8 +98
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 32 1 +31
Total 4 138 9 +129

Labels

Label changes:

  • add P2: The failure repeats expensive release qualification after changelog-only changes without affecting the shipped agent runtime.
  • add merge-risk: 🚨 security-boundary: The patch permits retained qualification evidence under a different authenticated publisher revision.
  • add merge-risk: 🚨 automation: The changed verifier determines whether release automation reuses validation evidence instead of running qualification children.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: The failure repeats expensive release qualification after changelog-only changes without affecting the shipped agent runtime.
  • merge-risk: 🚨 security-boundary: The patch permits retained qualification evidence under a different authenticated publisher revision.
  • merge-risk: 🚨 automation: The changed verifier determines whether release automation reuses validation evidence instead of running qualification children.
  • 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 a read-only operator and prove revoked authority invalidates advancing-main reuse before release-consumer I/O, including delayed recovery.

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.

Reviewed October 21, 2026, 3:39 AM ET / 07:39 UTC.

@RomneyDa

Copy link
Copy Markdown
Member Author

Landing for the active 2026.10.6 release (release-tooling PR; only red checks are the pre-existing main type error in ci-changed-node-test-plan.test.ts, reproduced on clean main 54db47573b4, plus the aggregate gate).

On the review's authority concern: this change only relaxes the P SHA equality inside the changelog-descendant policy identity. The requested admission is still fully authenticated by verifyQualificationAdmission before the comparison (operator permission/ancestry, P on main), the requested P must be a verified strict main descendant of the selected P, and coverage/baselines/inputs/source digests stay exact. Final publication effects re-check live authority independently. Real-run proof follows immediately: redispatching 2026.10.6 FRV for changelog-only descendant 17a066f3eca against green FRV 39533087436; I'll link the reuse result here.

@RomneyDa
RomneyDa merged commit 319e903 into main Oct 21, 2026
118 of 121 checks passed
@RomneyDa
RomneyDa deleted the fix/reuse-admission-p-descendant branch October 21, 2026 07:41
@RomneyDa

Copy link
Copy Markdown
Member Author

Real-run proof: after this merged, 2026.10.6 FRV https://github.com/openclaw/openclaw/actions/runs/39566644573 (changelog-only descendant 17a066f3eca, admitted by advanced main P 97335d7dc58) logged [evidence-reuse] reusing split-changelog-release-v1 run 39533087436 against green FRV 39533087436 (admitted by P b6bf52d83e8). Before this change the same request was rejected with Qualification reuse requires exact admitted C/Q/P (FRV 39557142899).

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…n tooling (openclaw#179193)

* fix(release): reuse changelog evidence across advancing main admission tooling

A main-dispatched qualification admission always runs at the main tip, so
a changelog-only descendant is always admitted by a newer P. The
split-changelog reuse identity compared P's exact SHA, which made
candidate-owned changelog reuse unreachable in practice.

Mask P's SHA in the changelog-descendant policy identity only for main
admissions, and require the requested P to be a verified main descendant
of the selected P. Coverage, baselines, inputs and source digests stay
exact; protected-tag admissions keep exact P.

* test(release): fail unexpected lineage comparisons directly
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: S 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.

1 participant