Skip to content

fix(release): allow approved retired-line maintenance publication - #196657

Merged
RomneyDa merged 1 commit into
mainfrom
fix/release37-retired-line-publication
Nov 10, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/release37-retired-line-publication

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

The documented explicit-maintainer-decision path for a retired extended-stable line was not represented in the shared publisher. The already-qualified 2026.9.37 candidate therefore cannot be published in November without either changing its frozen source or bypassing the ordinary active-line rejection. Neither is appropriate.

User Impact

Release managers can publish an explicitly approved retired maintenance release without changing its qualified source or bypassing existing human approval and live publication guards. No application behavior, package bytes, public SDK, or user configuration changes.

Why This Change Was Made

Carry an optional retired-line publication reason in the existing environment-approved parent receipt. Ordinary v1 receipts retain their behavior; only authenticated v2 receipts can authorize this narrowly scoped exception. Core and plugin publication retain their live parent, human approval, exact source, artifact, and protected publisher checks. Trusted publisher policy evaluates the unchanged candidate rather than executing its older policy implementation. Release notes describe the retired maintenance line accurately.

Remove the stale unconditional extended-stable exclusion in publication preflight while retaining the existing exact sealed-route and provenance checks.

Scope and risk

This is publisher-only recovery for the explicitly authorized 2026.9.37 extended-stable release. Candidate/qualification source remains 81da850; original admitted tooling remains e7bbd05. Original FRV 42782249510/2 and all sealed payloads remain unchanged. No tag, package, selector, environment protection, or publication has been changed by this PR.

The default rejection remains unchanged. The reason is bounded single-line data, not shell code or a new child bypass flag. Publication still requires the existing live approval flow.

Evidence

  • Original FRV 42782249510/2 independently verified: exit 0, valid:true.
  • Both isolated native upgrades (2026.8.35 and 2026.9.36) passed against the exact qualified payload, including restart, health/RPC, identity and state preservation.
  • Authenticated child-flow regression fails on the original workflow and passes with this change; v1 and cancelled-parent negatives remain rejected.
  • Final author suite: 175 focused tests across eight files passed; script and tooling-test typechecks, scoped lint, formatting, shell syntax and available workflow subchecks passed.
  • Lead independently reran the two changed preflight/public-page recovery suites: 30 tests passed. Exact-route, mismatched-seal, malformed/wrong-channel reason, and active/retired public-page recovery cases are covered.
  • Fresh independent review identified two findings (omitted CLI argument handling and canonical public-page notice context); both were repaired with boundary regressions. Final independent re-review is clean, covering the complete tracked diff (b868d5b07559c3cf571fbae386a7261e22827faebc422b24844db1592e50b650) and test allocation. Review used the operator-authorized independent-subagent route; it is not claimed as local ClawSweeper evidence.
  • Seven existing publication-authority fixture failures reproduced on the unchanged base before reaching their intended revocation/write assertions. These remain explicit coverage gaps, not passing authority proof. The final production authority guard is preserved; actual publisher verification against the original sealed qualification remains mandatory before publication.
  • Full local actionlint/zizmor unavailable with qualified tooling; PR CI must cover these checks.

@clawsweeper

clawsweeper Bot commented Nov 10, 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 November 10, 2026 12:14
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: L labels Nov 10, 2026
@RomneyDa
RomneyDa enabled auto-merge (squash) November 10, 2026 12:17
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature 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:feature Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR carries explicit retired-line publication approval through the existing parent receipt, child publishers, preflight command, and release notes.

Example: Publish v2026.9.37 while main is on 2026.11.2.

  • Before: The shared retirement guard rejects the September release despite an explicit maintainer decision.
  • After: An authenticated v2 receipt containing the decision permits the exact release while ordinary approvals remain insufficient.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The implementation is coherent on source inspection, but supplied authority evidence stops before the publication effect.
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 managers cannot publish an explicitly approved retired maintenance candidate through the shared publisher without changing qualified source or bypassing guards.
Reason: The maintainer-authored direction implements the documented exception using existing approval machinery and preserves the default one-line retirement policy.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this maintainer-authored PR addresses a documented release-policy gap, and source review found no definite introduced defect.

Priority: P2
Reviewed head: 5767d1467f045baf181c17a346a18cd4edbb7a9e

Before merge

  • Add real behavior proof - Authority-chain proof required: the supplied child regression runs trusted admission code with synthetic GitHub, Git, and artifact responses, but does not reach core or plugin npm publication. The body acknowledges that seven inherited fixtures fail before revocation/write assertions. Provide redacted production-boundary evidence for the approved exact candidate and for ordinary, mismatched, and revoked parent approval being rejected before npm I/O; candidate upgrade and qualification claims do not exercise this changed publisher path. 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 - The receipt now delegates retirement publication authority, whose final-effect rejection remains unproven.
  • Resolve merge risk - The PR owner must establish that delegated retirement approval cannot permit core or plugin publication after the approving parent is revoked or replaced.

Findings

None.

Tests

  • Missing end-to-end proof: Supply final-publication traces for approved and forbidden retirement authority, including revocation after admission; the reported red/green child regression establishes admission only.
Agent review details

How this fits together

The release parent consumes qualified artifacts and human approval, issues a release-bound receipt, and dispatches core and plugin publishers that enforce publication authority before npm writes.

flowchart TD
  A[Qualified release artifacts] --> C[Approved release parent]
  B[Maintainer retirement decision] --> C
  C --> D[Versioned approval receipt]
  D --> E[Core and plugin guards]
  E --> F[npm publication]
  C --> G[Canonical GitHub release notes]
Loading

Technical review

Best possible solution:

Extend the existing approval receipt and shared retirement owner while preserving frozen candidate bytes and live authorization before every publication.

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

Current main visibly rejects 2026.9.37 against 2026.11.2, and its publication preflight still unconditionally excludes extended-stable core publication; no target code was executed during this review.

Is this the best way to solve the issue?

The patch uses the existing approval and retirement owners, preserves ordinary rejection, and shares canonical note context across rendering and readback; no unnecessary parallel owner or definite simplification defect was identified.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Prove authorization at publication (recommended)
    The PR owner should supply an authorized production-path harness trace showing approved retirement publication and rejection of ordinary, mismatched, and revoked approval before core and plugin npm writes.

Provenance checked

  • Trailing-month retirement policy changes intended behavior with a stated reason (3d35108: The historical change restored one trailing maintenance month after temporary two-month eligibility; earlier policy commit bbeedd9 explicitly distinguished normal retirement rejection from approved exceptions.)
  • Parent approval receipt keeps the original intent (feat(release): one approval per release via an attested parent approval receipt #157911: Propagate the parent's human environment approval through an attested, exact-release receipt rather than delegating a persistent approval credential.)
  • Extended-stable preflight exclusion changes intended behavior with a stated reason (dcb4847: The original preflight directed extended-stable publication to its canonical workflow; feat(release): add non-Latest extended-stable releases #154515 subsequently established shared non-Latest publication, making the unconditional exclusion inconsistent with that owner.)
  • Canonical extended-stable release notice keeps the original intent (fix(release): explain extended-stable release context #155210: Identify the maintenance source month and regular stable version consistently across creation, recovery, and proof attachment.)

Testing

Proof path: in-process harness.

Security

Needs attention: The receipt now delegates retirement publication authority, whose final-effect rejection remains unproven.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 25d7402 adds scripts/release-approval-receipt.mjs:105 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 25d74027a95d; files: scripts/release-approval-receipt.mjs)

PR surface

Tests +455, Docs +4, Config +21, Other +146. Total +626 across 21 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 7 472 17 +455
Docs 1 5 1 +4
Config 3 30 9 +21
Generated 0 0 0 0
Other 10 186 40 +146
Total 21 693 67 +626

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Operator controls One optional workflow input and two CLI flags The publication reason enters through the parent workflow and preflight CLI; the renderer receives the same reason through its own flag.

Labels

Label changes:

  • add P2: This repairs a release-manager workflow with limited direct user blast radius.
  • add merge-risk: 🚨 security-boundary: A versioned parent receipt grants children permission to publish a retired release line.
  • add merge-risk: 🚨 automation: The patch changes release workflow admission and the policy executed by automated npm publishers.
  • 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: This repairs a release-manager workflow with limited direct user blast radius.
  • merge-risk: 🚨 security-boundary: A versioned parent receipt grants children permission to publish a retired release line.
  • merge-risk: 🚨 automation: The patch changes release workflow admission and the policy executed by automated npm publishers.
  • 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 ordinary or mismatched approval and show that parent revocation after admission prevents both core and plugin npm writes.

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 November 10, 2026, 7:32 AM ET / 12:32 UTC.

@RomneyDa
RomneyDa merged commit ad73036 into main Nov 10, 2026
198 checks passed
@RomneyDa
RomneyDa deleted the fix/release37-retired-line-publication branch November 10, 2026 12:35
@RomneyDa

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation 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.

1 participant