Skip to content

release: Windows Gateway notification fails on npm replication lag (readback 404) #192565

Closed

Description

@RomneyDa

Problem

In the 2026.11.5-beta.1 core npm child 41767438818, job 126373157242 ("Notify Windows of published Gateway packages") failed with Exact registry readback returned HTTP 404 for [email protected] 19 seconds after publication. This is npm replication lag; a later rerun passed. The job is non-gating, but every release has to notice it and rerun it by hand.

Proposed

Poll the exact registry readback with bounded backoff (for example, up to about 5 minutes) before reporting a notification failure.

Source: 2026.11.5-beta.1 retrospective, finding 10.

Activity

  1. added
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    P2
    clawsweeper:fix-shape-clear
    clawsweeper:queueable-fix
    clawsweeper:source-repro
    impact:other
    issue-rating: 🦞 diamond lobster
    no-stale
    and removed
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    on Nov 4, 2026
  2. clawsweeper commented on Nov 4, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    Keep open: current main still aborts notification on the first registry 404, and the reported job failed before succeeding on rerun; this issue is also maintainer-authored.

    Reproducibility: Current source deterministically fails on an initial exact-version 404 without retrying; GitHub confirms the reported failed job and successful rerun, but no live reproduction was run and the detailed logs were inaccessible.

    Next step
    Fix the one-shot registry readback and first establish a failing regression where an initial 404 becomes valid metadata before notification.

    Review details

    Best possible solution:

    Allow transient registry invisibility to recover within a shared notification deadline while preserving exact integrity checks and single-attempt dispatch.

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

    Current source deterministically fails on an initial exact-version 404 without retrying; GitHub confirms the reported failed job and successful rerun, but no live reproduction was run and the detailed logs were inaccessible.

    Is this the best way to solve the issue?

    Bounded retry of read-only registry visibility is appropriate; retrying the entire dispatch operation could duplicate external effects, and five minutes per package would exceed the existing job budget.

    AGENTS.md: found and applied where relevant.

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

    Label changes

    Label changes:

    • add P2: The failure requires release-operator recovery but does not invalidate npm publication or block the release; nightly reconciliation remains the fallback.
    • add impact:other: Release automation loses immediate Windows monitoring notification when registry visibility lags.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:queueable-fix: Current issue advisory state selects this label.
    • add clawsweeper:fix-shape-clear: Current issue advisory state selects this label.

    Label justifications:

    • P2: The failure requires release-operator recovery but does not invalidate npm publication or block the release; nightly reconciliation remains the fallback.
    • impact:other: Release automation loses immediate Windows monitoring notification when registry visibility lags.
    Evidence reviewed

    Acceptance criteria:

    • Establish a red-on-base regression for initial registry 404 followed by matching metadata and exactly one dispatch.
    • Prove deadline exhaustion sends no dispatch, integrity mismatch remains rejected, and ambiguous dispatch is not retried.
    • pnpm test test/scripts/gateway-publication-notify.test.ts test/scripts/release-publish-parent.test.ts test/scripts/release-beta-verifier.test.ts
    • node scripts/run-oxlint.mjs scripts/gateway-publication-notify.mjs
    • pnpm exec oxfmt --check scripts/gateway-publication-notify.mjs test/scripts/gateway-publication-notify.test.ts

    What I checked:

    • Current source establishes the failure: dispatchPublication performs one exact-version GET and immediately throws on any non-success status, including 404, before sending the notification. (scripts/gateway-publication-notify.mjs:79, ff8fe07318eb)
    • Reported release job and recovery verified: GitHub records job 126373157242 in run 41767438818 as failed at Notify exact published packages; attempt 2 records the notification job as successful. The report supplies the exact 404 message; direct log retrieval was blocked by the artifact host allowlist.
    • Notification is optional and time bounded: The notification job has continue-on-error enabled and a five-minute timeout covering checkout, Node setup, token creation, and notifications for up to two packages. (.github/workflows/openclaw-npm-release.yml:1007, ff8fe07318eb)
    • Existing safety contracts: Tests cover exact package identity, integrity mismatches, both packages, and no repeated dispatch after rejected or ambiguous delivery; registry-visibility recovery is missing. (test/scripts/gateway-publication-notify.test.ts:111, ff8fe07318eb)
    • Feature history and original intent: feat: notify Windows monitoring after Gateway package publication #173567 introduced the sender and the responsible one-shot readback. Its documented intent preserves optional notification, exact integrity verification, nightly reconciliation, and no automatic POST retry. (scripts/gateway-publication-notify.mjs:79, 7d31fe01b636)
    • Current discussion and ownership guard: The issue author association is MEMBER; its only comment is an automated review-status message, with no maintainer decision to close.

    Likely related people:

    • Karen: Raw commit 7d31fe0 adds scripts/gateway-publication-notify.mjs:79 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7d31fe01b636; files: scripts/gateway-publication-notify.mjs)
    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.

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:fix-shape-clearclawsweeper:queueable-fixclawsweeper:source-reproimpact:otherissue-rating: 🦞 diamond lobsterno-stale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions