Skip to content

fix(release): backport retrospective repairs through batch 9 - #190034

Merged
RomneyDa merged 39 commits into
release/2026.11.1from
tideclaw/backport-batches-3-7-2026.11.1
Nov 3, 2026
Merged

RomneyDa merged 39 commits into
release/2026.11.1from
tideclaw/backport-batches-3-7-2026.11.1

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes release validation, publication recovery, and queued channel processing failures on release/2026.11.1 by backporting the applicable retrospective repairs through Batch 9.

User Impact

Release operators get current admission, recovery, and verification behavior. Telegram and Discord keep accepted messages admitted through processing instead of refusing them during normal dispatch. No version, tag, candidate, or publication state is changed.

Why This Change Was Made

The backport preserves individual source commits and adapts fixtures to the older release contracts. It also includes the immediate inbound ownership fix (#179200), Telegram continuation fix (#179385), Discord queue ownership fix (#179704), the queued Telegram send context fix (#189457), and the main-first OIDC authority repair (#191641). Publishing recovery rechecks current source and protected tooling authority after acquiring the GitHub token and before requesting an npm credential.

Evidence

  • Retrospective release tooling: 601 passed, 10 skipped across nine focused files; QA artifact tests: 2 passed.
  • Publishing authority and recovery: 146 passed (57 executable workflow cases, 6 token boundary cases, 83 Git lifecycle cases). Both moved-tooling and advanced-source regressions reject before the npm credential request.
  • Channel ownership: 60 focused Telegram/SDK/inbound tests and 17 Discord queue/recovery tests passed. All four previously failing Telegram Gateway cases and all five previously failing Discord Gateway cases pass; two Slack sibling cases also passed.
  • The Telegram command-context QA scenario reproduced the false restart refusal before the repair and passes afterward through the isolated Gateway with mock-openai and the crabline Telegram adapter.
  • The subagent terminal-reply QA scenario reproduced the aborted Telegram fallback before repair and passes afterward, including visible, silent, fallback, private, and restart cases without duplicate delivery. The 28 account-throttler tests and six Discord ingress-recovery tests pass; final targeted lint and types pass.
  • Full build passed before the Discord adaptation; final runtime build, targeted type-aware lint/typechecks, workflow validation, formatting, and diff checks passed. Telegram cold-import screening qualified against clean reviewed head 46af8dcca613 (190 MB peak RSS).
  • Fresh reviews of the complete release diff and each subsequent repair found no actionable P0–P2 findings. Current-head GitHub CI is pending.

The tests use isolated Gateway state and synthetic GitHub/npm transports. No live publication, production credentials, or release approval was exercised. Broad checks and required owner reviews remain GitHub gates.

Retrospective backport inventory

Earlier retrospective batches

Retrospective Batch 8

Retrospective Batch 9

#180219 is already contained in the release branch. openclaw/releases#46 belongs to the separate openclaw/releases repository and is not part of this branch.

@RomneyDa
RomneyDa requested a review from a team as a code owner November 1, 2026 03:24
@clawsweeper

clawsweeper Bot commented Nov 1, 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: XL labels Nov 1, 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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 Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Backports release validation, publication recovery, monitoring, approval, and package-verification improvements to release/2026.11.1.

Example: Publication run 301 has child run 701 waiting for npm-release approval.

  • Before: The release operator must inspect GitHub separately to discover the waiting child.
  • After: release:stable 2026.11.1 --watch --once --json reports the pending approval and exits with code 1.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful backport with no discrete correctness finding and a meaningful live negative trace, but incomplete qualification of material authority changes.
Proof confidence 🦪 silver shellfish (2/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: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Release operators encounter avoidable validation failures, unclear recovery outcomes, and missed publication approvals or failed children.
Reason: The maintainer-authored backport explicitly selects previously merged operational repairs for the release branch, establishing direction without another product approval.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this maintainer-authored backport brings useful, already-merged repairs to the release branch; no concrete introduced correctness bug was established.

Priority: P2
Reviewed head: 77951cda3785fc26e1a6591bb89eb10d97987b0f

Before merge

  • Add real behavior proof - Authority-chain proof required: the linked Linux trace demonstrates superseded-request rejection before release I/O, but does not demonstrate authorized split-SHA publication or cancellation before subsequent writes. The approval helper and OIDC recovery source PRs explicitly exclude live approval and exchange. Supply authorized, redacted production-path evidence for eligible approval and nearest-ineligible or revoked caller rejection at GitHub's final endpoint, and valid recovery plus invalidated tooling/noncanonical source rejection before npm credential exchange; 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 concern: Recovery authority after queueing remains unproven - Admission checks source and tooling before the separate OIDC job obtains package-scoped credentials; supplied executable policy fixtures do not establish rejection after authority changes during that interval.
  • Resolve merge risk - Release and security owners must establish that queued OIDC recovery cannot exchange credentials after its source or tooling authority becomes invalid.

Findings

  • [medium] Recovery authority after queueing remains unproven — .github/workflows/plugin-npm-release.yml:303

Tests

  • Low-value test test/scripts/plugin-npm-extended-stable-workflow.test.ts: Remove the added recovery-guidance string test: it pins prose and command fragments while executable admission tests already protect the meaningful selection and trust boundaries.
  • Missing end-to-end proof: Complete the allowed and forbidden final-effect scenarios for approval, OIDC recovery, and split-SHA Linux publication; the current backport has no supplied red/green execution record for the complete set.
Agent review details

How this fits together

Release tooling consumes pinned source identities, retained orchestration state, package inventories, and GitHub observations to validate artifacts, monitor publication, and perform explicitly authorized release operations.

flowchart TD
 A[Release operator] --> B[Release CLI]
 C[Retained release state] --> B
 B --> D[Validation and publication owners]
 D --> E[GitHub authority checks]
 E --> F[Approval and publication effects]
 D --> G[Status and recovery guidance]
Loading

Technical review

Best possible solution:

Retain the backport through existing release owners, establish the final authority boundaries, and resolve the required-check disposition before release inclusion.

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

Base-source inspection confirms the stale-request rejection, checkout-dependent plugin inventory, and missing monitoring paths; linked repairs provide focused regressions and one live Linux rejection trace, but this review executed no target code.

Is this the best way to solve the issue?

The backport preserves established owners and coherent upstream repairs, including the release-specific verifier import adaptation; the watcher remains observational and the approval helper delegates final authorization to GitHub.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Establish recovery authority through the exchange (recommended)
    The PR owner supplies authorized production-path evidence that invalidated tooling or noncanonical source is rejected before the package-scoped OIDC exchange, adding owner-side revalidation if that evidence exposes a gap.

Provenance checked

  • Linux request and builder identity changes intended behavior with a stated reason (10a86ff: Reject stale requests visibly before selected code runs; the linked repair explains replacing SHA equality with immutable request tooling and independently authorized builder identity.)
  • Published bundled-plugin verification keeps the original intent (dd77dd9: Verify the complete packaged inventory despite build filters; the backport preserves parity while moving expectations to the exact installed package's published inventory.)
  • Installed artifact survivor parity keeps the original intent (3a37a12: Prevent installation from deleting required runtime assets after package validation; bidirectional inventory comparison remains.)
  • Security-review status lifecycle changes intended behavior with a stated reason (c2b8450: Require current maintainer authority for sensitive and dependency changes; pending replaces failure while evaluation or approval waits, with explicit terminal failures retained.)
  • Extended-stable publication admission changes intended behavior with a stated reason (ca6a7d9: Separate trusted tooling from frozen extended-stable source while preserving publication approvals; the linked recovery repair explains the new nonpublishing exchange route.)
  • Stable-release orchestration keeps the original intent (878ee97: Provide resumable release operations without treating child correlation as mutation authority; the watcher consumes existing state and performs reads only.)
  • Compatibility inventory downloads keeps the original intent (a819d2b: Retrieve registry tarballs without installation and verify integrity before extraction; progress-sensitive retry retains those checks and the existing inventory format.)
  • Frozen publication source closure keeps the original intent (6370e01: Include the three runtime diagnostic dependencies required by shutdown-aware retries so isolated publication observation can start.)

Testing

Proof path: shipped entry point.

Security

Needs attention: No concrete authorization bypass was established, but the changed final authority boundaries remain incompletely qualified.

Evidence

Security concerns:

  • [medium] Recovery authority after queueing remains unproven — .github/workflows/plugin-npm-release.yml:303
    Admission checks source and tooling before the separate OIDC job obtains package-scoped credentials; supplied executable policy fixtures do not establish rejection after authority changes during that interval.
    Confidence: 0.93

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 878ee97 adds scripts/lib/release-stable-state.mts:105 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 878ee97ecda9; files: scripts/lib/release-stable-state.mts)

PR surface

Tests +1162, Docs +99, Config +8, Other +1120. Total +2389 across 50 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 21 1238 76 +1162
Docs 3 107 8 +99
Config 4 46 38 +8
Generated 0 0 0 0
Other 22 1251 131 +1120
Total 50 2642 253 +2389

Review metrics

Metric Value Why it matters
New watcher options 5 Adds --watch, --once, --json, --poll-seconds, and --timeout-seconds without persisting watcher settings.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Useful release-operator repairs with limited operational scope and no established urgent product-runtime regression.
  • merge-risk: 🚨 security-boundary: The backport changes release authority handling and admits recovery paths that obtain package-scoped npm credentials.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish 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 evidence for eligible and revoked approvers, invalid recovery source/tooling, and authorized split-SHA Linux publication with cancellation rejection.

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 31, 2026, 11:53 PM ET / November 1, 2026, 03:53 UTC.

RomneyDa and others added 15 commits November 3, 2026 03:02
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit b6c36ed)
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 0f359b3)
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit d8265d0)
* fix(release): revalidate exact npm versions

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

* test(release): handle exact-version fixture request

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 3580c9f)
* fix(release): explain staged npm recovery

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

* fix(release): recover exact staged npm package

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

* fix(release): avoid portable here-string

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

* fix(release): preserve npm publish diagnostics

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

* test(release): simplify staged publish coverage

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit f708b8b)
* fix(release): pin Linux builder to request SHA

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

* test(release): remove duplicate request harness

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit ca897ec)
* fix(release): require SDK removal notes

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

* fix(release): warn on SDK removal note gaps

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 0453b8c)
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit dbc44d3)
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit a07be30)
* fix(release): enable OIDC recovery preflight

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

* fix(release): enable OIDC recovery preflight

OpenClaw-Publication: 220142ee-cd27-4dc4-9521-b3af12106dce

* fix(release): scope OIDC recovery preflight

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 8100edf)
* fix(ci): mark pending security reviews

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

* fix(ci): fail terminal security reviews

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

* fix(ci): settle standalone guard timeouts

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 84133d3)
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 48b46f1)
* feat(release): add publication watcher

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

* fix(release): satisfy watcher lint

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

* fix(release): enforce watcher contracts

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

* fix(release): preserve zero-backoff retries

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 3c67c5c)
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 749df76)
* feat(release): add bound gate approval helper

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

* fix(release): satisfy approval helper guards

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

* fix(release): make gate approval recoverable

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit fc719e9)
roboclaw-bot and others added 10 commits November 3, 2026 03:08
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 73df503)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit ec6e32f)
Route mock-provider request artifact collection through the plugin SSRF guard, with bounded loopback access and deterministic resource release.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit bfa3e10)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 24f5971)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 122d8e4)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit c938b9b)
Record the Kitchen Sink npm fixture version on each release branch and use it across the plugin and RPC Docker lanes instead of resolving latest. Preserve explicit package overrides and fail closed when a frozen target lacks its version record.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 414e610)
@tideclaw-bot
tideclaw-bot force-pushed the tideclaw/backport-batches-3-7-2026.11.1 branch from 77951cd to 6770998 Compare November 3, 2026 03:17
@tideclaw-bot tideclaw-bot changed the title fix(release): backport retrospective repairs to 2026.11.1 fix(release): backport retrospective repairs through batch 9 Nov 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes docker Docker and sandbox tooling extensions: qa-lab labels Nov 3, 2026
steipete and others added 5 commits November 3, 2026 03:41
)

Reserve a Gateway continuation through debounce dispatch completion so adoption cannot leave the later agent enqueue under a released HTTP request root. Preserve restart and suspension admission checks. Fixes #178554.

(cherry picked from commit 223654c)
Co-authored-by: RomneyDa <[email protected]>
* fix: keep adopted channel turns admitted through completion

Retain the existing Gateway root through the core channel turn. Telegram releases durable ingress at adoption while dispatch continues, so the debounce root must remain live until provider execution and cleanup settle. Preserve suspension and restart admission checks.

* fix: keep Telegram replies owned through dispatch cleanup

Own the full spooled dispatch with the existing detached-work helper while ingress still returns at durable adoption. Include post-core draft cleanup and fallback delivery, and settle refused detached admission retryably. Replace the incomplete core-only retention and prove suspension and restart behavior at the Telegram processor.

* test: keep Telegram ownership proof on public SDK surfaces

Exercise complete detached dispatch and refused settlement through the public SDK in Telegram tests. Keep root ownership, suspension, restart, and inherited-owner negative controls in the core-side helper suite. Remove direct core imports and the repo-only temp-dir bridge.

(cherry picked from commit 7d73272)
Retain dispatch completion ownership without blocking adoption-based steering,
and settle skipped queue jobs before draining. Adapt the existing main fix to
the release branch's extracted message run queue.

(cherry picked from commit 4f1d233)
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: telegram Channel integration: telegram labels Nov 3, 2026
RomneyDa and others added 2 commits November 2, 2026 21:16
Restore the submitting async context before final queue admission and transport dispatch. Preserve live authority checks and cover real grammY/Bottleneck queues for direct and group chats, including caller revocation.

Adapt the regression into a separate release test file to retain the existing account-throttler suite within its lint size budget.

(cherry picked from commit f78c529)
@RomneyDa RomneyDa removed the status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. label Nov 3, 2026
@RomneyDa
RomneyDa merged commit a3716f1 into release/2026.11.1 Nov 3, 2026
249 of 251 checks passed
@RomneyDa
RomneyDa deleted the tideclaw/backport-batches-3-7-2026.11.1 branch November 3, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord channel: telegram Channel integration: telegram cli CLI command changes docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: qa-lab merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants