Skip to content

feat: apply release waivers after completed validation - #193121

Open
tideclaw-bot wants to merge 2 commits into
mainfrom
openclaw/release-retrospective-waivers
Open

tideclaw-bot wants to merge 2 commits into
mainfrom
openclaw/release-retrospective-waivers

Conversation

@tideclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

A provider outage diagnosed after Full Release Validation currently requires another validation cycle just to apply an approved waiver.

User Impact

Release managers can land an exact retrospective waiver in trusted release tooling, then reuse the original completed candidate validation without rerunning its tests. No active retrospective grants are included in this PR.

Why This Change Was Made

  • Reuse the existing waiver evaluator and strict publication verifier. Bind each new grant to the parent run, attempt, candidate SHA, version, child role, and exact supported provider/Telegram job.
  • Retain the immutable attempt-specific manifest before the final policy verdict, after sealed-candidate integrity verification. Never rewrite the original manifest, failures, or admission records.
  • Emit a separate verified policy evaluation with the new tooling SHA. Checklist and publication preflight consume that same verdict.
  • Preserve hard gates: complete authenticated child evidence, exact aggregate failure causes, successful diagnostics and candidate integrity, and independently successful npm/Docker artifact producers. Only direct all-group candidate-owned evidence qualifies; old failures without the retained snapshot and evidence-reuse chains do not.

Updated the release contract and release-maintainer instructions. This adds no workflow, runtime waiver flag, state store, or competing validation pipeline. Net change: +206 production/workflow/declaration lines and +132 test lines; the rest is documentation and the explicit test allocation.

Evidence

  • Final committed release consumer suites: 6 files, 454 passed and 2 existing skips; 11.99 seconds wall time.
  • Regression coverage exercises retrospective publication authentication and npm lineage with the original failing parent/child conclusions and unchanged manifest. Rejects wrong attempts/targets, Gateway E2E grants, package failures, and skipped candidate integrity verification.
  • Base/fixed workflow comparison: the original manifest upload followed the failing verdict; the new snapshot precedes that verdict and follows candidate integrity verification. The ordering is covered by a committed workflow test.
  • Scripts typecheck and tooling-test typecheck passed. Focused script/test lint, formatting, documentation formatting/content, test-line ratchet, and diff checks passed.
  • Fresh independent read-only review found two hard-gate issues; both were repaired and independently re-reviewed clean. Local canonical autoreview (OpenClaw engine, P0–P2, final staged snapshot against base 8c41165) completed scoped-clean. Its supplied-diff assessment did not execute code; independent review traced the unchanged owners too.

Validation gaps: no live release workflow or publication was dispatched. Local full workflow lint could not start because the host lacks pinned actionlint/Go and Python venv/pre-commit support. An additional package-acceptance subset had 34 passing tests and one setup failure because zip is unavailable; it did not establish a product failure. CI and release-manager review remain required before landing.

Worked on by

tideclaw-bot and others added 2 commits November 5, 2026 01:43
Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: b218044c-4462-4900-9c23-29de1de4927a
@clawsweeper

clawsweeper Bot commented Nov 5, 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 docs Improvements or additions to documentation scripts Repository scripts size: L labels Nov 5, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature 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:feature Preliminary submission classification; full source review pending. labels Nov 5, 2026
@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR lets trusted release tooling apply exact retrospective waivers to retained evidence from completed failed validation runs.

Example: A provider outage is diagnosed after validation of version 2026.11.1 completes.

  • Before: An approved waiver requires another validation cycle.
  • After: A grant bound to the original run, attempt, candidate SHA, version, role, and job can qualify its retained evidence without rerunning tests.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The implementation is focused and exact-head CI is green, but the required publication-authority evidence is absent.
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: Feature · Worth it: Yes · Fix scope: Complete
User problem: Release managers must repeat validation to apply a provider-outage waiver approved after a run completes.
Reason: The maintainer-authored direction avoids redundant validation while preserving exact evidence, candidate identity, and non-waivable gates.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this maintainer-authored PR adds useful release recovery through existing owners, and source review found no concrete introduced defect.

Priority: P2
Reviewed head: 191bfdc4cfc55f8c220be592bf8eeeaef62cefeb

Before merge

  • Add real behavior proof - Authority-chain proof required: synthetic evidence clients exercise the strict verifier and npm lineage for a retrospective grant, but no supplied production-boundary trace shows allowed publication and rejection of unauthorized or revoked qualification authority before npm and Docker registry I/O; redact credentials and non-public endpoints from that evidence. 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 concern: Retrospective authority lacks final-effect evidence - The new failed-run verdict reaches candidate artifact authentication, which retains authority revalidation callbacks; supplied retrospective coverage stops at fixture-driven authentication and npm lineage rather than proving registry-bound rejection after revocation.
  • Resolve merge risk - Before merge, the PR owner must establish that retrospective publication eligibility cannot survive revoked qualification authority and reach a registry write.

Findings

  • [medium] Retrospective authority lacks final-effect evidence — scripts/validate-full-release-validation-evidence.mjs:648

Tests

  • Missing end-to-end proof: The supplied evidence does not show retrospective eligibility reaching the production publication boundary with allowed authority and rejecting unauthorized or revoked authority before I/O.
Agent review details

How this fits together

Release tooling authenticates candidate validation and artifact evidence, evaluates checked-in waiver policy, and supplies publication eligibility to the checklist and publishers.

flowchart TD
  A[Candidate validation] --> B[Immutable evidence snapshot]
  C[Trusted waiver policy] --> D[Strict evidence verifier]
  B --> D
  D --> E[Checklist and publication preflight]
  E --> F[Publication owners]
  G[Current admission authority] --> F
Loading

Technical review

Best possible solution:

Keep the existing verifier as the single policy owner and establish allowed and forbidden final-effect behavior for retrospective eligibility.

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

This is a new release capability; current-main source confirms that failed parent conclusions remain ineligible, and no target code was executed during this read-only review.

Is this the best way to solve the issue?

The patch is a focused extension of the existing waiver and evidence owners, preserves raw results, and introduces no unnecessary parallel pipeline.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Prove retrospective publication authority (recommended)
    The PR owner should exercise the production publication boundary with an exact allowed grant, then show that an unauthorized or revoked qualification principal is rejected before npm and Docker registry I/O.

Provenance checked

  • Successful-parent publication requirement changes intended behavior with a stated reason (cbe3731: fix(release): make validation proof no-write #103737 established strict immutable publication evidence and separated validation from publication.)
  • Trusted-tooling waiver evaluation changes intended behavior with a stated reason (2a12851: fix(release): move validation waivers into trusted tooling #173437 placed reviewed waiver policy in trusted tooling and required successful FRV; this PR explicitly explains its exact retrospective extension.)
  • Manifest upload ordering changes intended behavior with a stated reason (cbe3731: The immutable attempt artifact previously followed successful verification; retaining failed evidence now requires uploading before the verdict while preserving candidate verification first.)

Testing

Proof path: in-process harness.

Security

Needs attention: No reachable bypass was established, but the expanded publication-authority path needs final-effect evidence.

Evidence

Security concerns:

  • [medium] Retrospective authority lacks final-effect evidence — scripts/validate-full-release-validation-evidence.mjs:648
    The new failed-run verdict reaches candidate artifact authentication, which retains authority revalidation callbacks; supplied retrospective coverage stops at fixture-driven authentication and npm lineage rather than proving registry-bound rejection after revocation.
    Confidence: 0.97

What I checked:

PR surface

Tests +132, Docs +46, Config +2, Other +206. Total +386 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 142 10 +132
Docs 3 62 16 +46
Config 1 57 55 +2
Generated 0 0 0 0
Other 9 231 25 +206
Total 15 492 106 +386

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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This improves release-manager recovery without an established urgent user-facing regression.
  • merge-risk: 🚨 security-boundary: Failed validation evidence can newly authorize publication, making final-effect qualification authority consequential.
  • 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 qualification principal and prove revocation invalidates retrospective eligibility before npm and Docker registry 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.

Reviewed November 4, 2026, 8:59 PM ET / November 5, 2026, 01:59 UTC.

This branch has not been deployed

No deployments
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: 🚨 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