Skip to content

release: plugin security-scan reviewed hashes drift with main's toolchain and only fail at publish #192563

Closed

Description

@RomneyDa

Problem

2026.11.5-beta.1 publishes 41757100833 and 41759831231 failed before publishing anything. @openclaw/openshell-sandbox reported "unreviewed critical findings in exact npm artifact": dist/.setup/worker-cli-*.mjs hashed to c5050d40…, not the reviewed 799a34cf… in REVIEWED_CRITICAL_FINDING_CONTENT_SHA256.

The normal publish route repacks plugins with the publisher tooling's (P) toolchain. Main moved to tsdown 0.23.2 / rolldown 1.2.15 in #188576, so main's own build had failed this scan since 10-30 without anything noticing. The FRV tarball, built with the candidate's toolchain, still hashed to 799a. #192489 updated the hash after review; the diff was cosmetic (chunk name and region comments). Cost: about 50 min plus an extra approval.

Proposed

  • Run scripts/plugin-npm-security-scan.mts against main-built packs in main CI, so a toolchain bump that changes a reviewed hash fails on main.
  • In release:candidate / publish preflight, pack and scan with P's toolchain, not only the FRV tarball.
  • In publication-recovery.md: on a reviewed-hash mismatch, reproduce under P's .release-tooling before any redispatch.

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

Activity

  1. added
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    P2
    clawsweeper:source-repro
    impact:other
    issue-rating: 🦞 diamond lobster
    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 this issue open: the merged hash repair fixes the immediate rejection, but current main still lacks the requested earlier detection of publisher-toolchain drift; maintainer authorship also prevents automatic closure.

    Reproducibility: Current source establishes the missing earlier scan and publisher-owned build path; the historical hash rejection was reported and repaired, not reproduced during this read-only review.

    Next step
    Release tooling owners should add bounded earlier scans and recovery guidance, first establishing a failing regression for candidate-versus-publisher toolchain drift.

    Security
    None.

    Review details

    Best possible solution:

    Detect reviewed-hash drift before publication using the selected publisher toolchain while preserving strict content review and candidate qualification identities.

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

    Current source establishes the missing earlier scan and publisher-owned build path; the historical hash rejection was reported and repaired, not reproduced during this read-only review.

    Is this the best way to solve the issue?

    Reuse the existing exact-artifact pack-and-scan boundary for earlier checks, with a regression where candidate qualification passes but changed publisher-built bytes fail before publication; do not normalize away hash differences or replace Q=C.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The historical tarball contents and cosmetic-only bundle difference were not independently replayed.

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

    Label changes

    Label changes:

    • add P2: A demonstrated release workflow gap caused publication failures, but the immediate hash mismatch is repaired and no installed-user outage is established.
    • add impact:other: The impact is delayed release publication and repeated operator intervention.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.

    Label justifications:

    • P2: A demonstrated release workflow gap caused publication failures, but the immediate hash mismatch is repaired and no installed-user outage is established.
    • impact:other: The impact is delayed release publication and repeated operator intervention.
    Evidence reviewed

    What I checked:

    Likely related people:

    • Dallin Romney: Raw commit ed1bb72 adds scripts/plugin-npm-security-scan.mts:84 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ed1bb7298985; files: scripts/plugin-npm-security-scan.mts)
    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:39 AM ET / 05:39 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:source-reproimpact:otherissue-rating: 🦞 diamond lobster

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions