Skip to content

release: publish recovery gaps (postpublish EPIPE, orphan bootstrap child, resume command, publish watcher) #192564

Closed

Description

@RomneyDa

Problem

2026.11.5-beta.1 publish parent 41764249210 hit these recovery gaps:

  1. openclaw-npm-postpublish-verify passed signature, provenance, fresh exact install and install paths, then failed the parent on a transient fetch failed: write EPIPE. Docker and the GitHub Release were skipped, so a resume was required. This is a repeat; 2026.9.36 and 2026.10.10-beta.5 hit the same failure.
  2. The failed parent left Plugin ClawHub New bootstrap child 41765136531 waiting on its clawhub-plugin-bootstrap gate, which blocked the resume checklist (FAIL concurrency.plugin-clawhub-new.yml.41765136531) until someone manually rejected it.
  3. On resume, release:candidate printed a fresh-publish command without openclaw_npm_resume_run_id. It also warned Candidate tag has not been published yet for an already-pushed tag.
  4. There is no supported publish watcher. Hand-rolled monitors missed a child's environment gate and a failed child job (Windows notify) for about 20 min.
  5. release:candidate needed three passes: SDK acknowledgement, then a missing tooling tag for the defaulted P, then --workflow-sha.

Proposed

  • Add bounded retries to the registry fetches in the postpublish verifier.
  • The npm-children failure cleanup also rejects or cancels pending bootstrap children.
  • The checklist detects a successful core npm child for the tag, prints the resume command, and reads the remote tag.
  • Add a scripts/ publish watcher (like frv watch) that discovers children by their recorded parent and reports child gates and failed jobs.
  • release:candidate prints every required flag in one failure and mints or reuses the tooling tag when P is unpinned.

Source: 2026.11.5-beta.1 retrospective, findings 8, 10 and 13.

Activity

  1. added
    clawsweeper:intake:feature
    P2
    clawsweeper:needs-live-repro
    impact:other
    issue-rating: 🐚 platinum hermit
    and removed
    clawsweeper:intake:feature
    on Nov 4, 2026
  2. clawsweeper commented on Nov 4, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    Keep open: this maintainer-authored issue identifies remaining publication-recovery gaps, although main already implements parts of the requested retry, resume, and watcher behavior.

    Reproducibility: Source establishes the omitted bootstrap cleanup, unconditional planned-tag warning, and stable-only watcher entrypoint; job metadata corroborates the publication failure, but no live reproduction or exact EPIPE trace was obtained.

    Next step
    The release owner should establish failing regressions for bootstrap cleanup and published-tag detection, identify the EPIPE boundary, and scope beta monitoring around the existing watcher.

    Review details

    Best possible solution:

    Repair the remaining lifecycle and diagnostic defects in their existing owners, then extend the supported watcher to cover the reported publication flow.

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

    Source establishes the omitted bootstrap cleanup, unconditional planned-tag warning, and stable-only watcher entrypoint; job metadata corroborates the publication failure, but no live reproduction or exact EPIPE trace was obtained.

    Is this the best way to solve the issue?

    The proposed direction is useful, but reuse the existing retry, resume-discovery, and watcher owners rather than introducing parallel mechanisms, and establish failing regressions for the incident-specific gaps first.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The exact failing network read is unverified; adding another provenance retry could leave the reported EPIPE path unchanged.
    • Bootstrap cleanup must distinguish a waiting gate from an active publisher and preserve intentional detached publication.
    • The missing resume argument needs an incident-specific regression because current preflight already discovers and emits it.

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

    Label changes

    Label changes:

    • add P2: Publication recovery has a demonstrated failure and manual workaround, with impact limited to release operators.
    • add impact:other: The impact is interrupted release publication and additional operator recovery work.
    • add issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.
    • add clawsweeper:needs-live-repro: Current issue advisory state selects this label.

    Label justifications:

    • P2: Publication recovery has a demonstrated failure and manual workaround, with impact limited to release operators.
    • impact:other: The impact is interrupted release publication and additional operator recovery work.
    Evidence reviewed

    What I checked:

    • Maintainer-authored incident report: The author association is MEMBER; the report names an actual failed publication parent and bootstrap child, and the only discussion comment is automated review status.
    • Publication failure confirmed: Parent 41764249210 failed in Complete publish workflows; Docker publication and GitHub release activation/finalization were skipped. Bootstrap child 41765136531 is now cancelled. Job-log retrieval was blocked by the artifact host allowlist, so the exact EPIPE call site remains unverified. (.github/workflows/openclaw-release-publish.yml, ff8fe07318eb)
    • Failure cleanup omits bootstrap children: The failure/cancellation cleanup step passes only plugin npm and core npm run IDs to cleanup_waiting_npm_children; that helper iterates only those two children. Separate ClawHub cleanup and pending-deployment rejection helpers exist but are not invoked by this step. (.github/workflows/openclaw-release-publish.yml:2213, ff8fe07318eb)
    • Retries already exist at one boundary: The postpublish entrypoint wraps registry provenance verification in a bounded retry that recognizes fetch failures; existing tests cover incomplete provenance and permanent integrity failures. This does not establish coverage of the later reported EPIPE. (scripts/openclaw-npm-postpublish-verify.ts:1447, ff8fe07318eb)
    • Resume discovery exists but tag warning remains unconditional: Preflight verifies existing package bytes and provenance, discovers the original successful npm publisher, and includes its resume ID in the command. However, allowPlannedTag unconditionally produces the unpublished-tag warning, and the candidate checklist always supplies that flag. (scripts/release-publish-preflight.mts:195, ff8fe07318eb)
    • Existing watcher has a narrower contract: feat(release): add publication watcher #187994 added a supported watcher documented at https://docs.openclaw.ai/reference/RELEASING; it requires retained stable-orchestrator state, observes four npm/ClawHub child workflows, and reports terminal failed runs rather than individual failed jobs. The CLI accepts only final stable versions, leaving the reported beta invocation outside its supported entrypoint. (scripts/release-stable.mts:81, ff8fe07318eb)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed November 4, 2026, 12:38 AM ET / 05:38 UTC.

  3. RomneyDa commented on Nov 5, 2026

    @RomneyDa
    MemberAuthor

    Covered by #192589 (EPIPE readback retries, gated ClawHub child cleanup), #192590 (core npm resume command, required candidate flags reported together), and #192607 (read-only release:watch for publish parents).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:needs-live-reproimpact:otherissue-rating: 🐚 platinum hermit

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions