Skip to content

fix: replace unsupported npm token probe guidance - #199926

Merged
RomneyDa merged 5 commits into
mainfrom
openclaw/ledger-npm-guidance-publish
Nov 17, 2026
Merged

RomneyDa merged 5 commits into
mainfrom
openclaw/ledger-npm-guidance-publish

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Release preflight and its guides recommended a standalone npm token probe that does not exist.

User Impact

Short guidance directs operators to the release credential owner; token liveness remains unverified, and preflight must not publish or rotate credentials.

Why This Change Was Made

Shorten the two diagnostics and linked guides without changing bootstrap eligibility, publication authorization, or credential handling.

Evidence

  • Real registry-404 → bootstrap → rendered-WARN regression: red on the original base, green with the repair; 29 focused tests passed after conflict resolution at deb07827e48360505eed8d1206ad48aac76e7e64.
  • Targeted lint, type, format, documentation-link, and diff checks passed. Reviewed conflict resolution preserves upstream's compact layout and independent qualification/source guidance from main fd8d012d70c786b8fa33fbe296c9709f5238d2e7.
  • Credential-free Linux proof uses fixture-backed GitHub observations and package inventory; no repository token was read or authenticated, and no release workflow or package publication was dispatched.
  • Local ClawSweeper/Codex and bound autoreview were unavailable; no scoped-clean tool review or live token-verification claim is made. Updated-head CI and hosted review are tracked separately.

Worked on by

RomneyDa and others added 2 commits November 16, 2026 03:24
Direct release preflight operators to the repository credential owner while preserving unverified token liveness and publication checks.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 19b4c80d-90f4-49e8-8611-49e8bee3f8d4
@clawsweeper

clawsweeper Bot commented Nov 16, 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 scripts Repository scripts size: S labels Nov 16, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces unsupported npm token-probe instructions with a credential-owner handoff in release diagnostics and their linked guides.

Example: Release preflight receives npm HTTP 404 for @openclaw/[email protected].

  • Before: The report recommends an isolated repository-token whoami probe without an available standalone workflow.
  • After: The report directs the operator to the repository NPM_TOKEN credential owner and explicitly leaves token liveness unverified.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused patch has no actionable findings; the proof tier reflects the outstanding real-behavior gate.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators are directed toward an unavailable standalone repository-token probe.
Reason: The maintainer-authored direction replaces a dead-end instruction while preserving explicit uncertainty and existing publication safeguards.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR repairs misleading bootstrap guidance still present on main, with no actionable correctness or security findings.

Priority: P3
Reviewed head: d6985964a740d6854b34cff1792b9fc2b4051776

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supply redacted terminal output or a terminal screenshot from the real preflight CLI showing the after-fix bootstrap warnings; the reported base-red/head-green regression was not independently rerun.
Agent review details

How this fits together

Release preflight combines package inventory, registry observations, and publication evidence into a diagnostic report and proposed dispatch command; protected workflows retain publication authority.

flowchart TD
  A[Release inputs] --> B[Publication preflight]
  C[Package inventory] --> B
  D[npm registry observations] --> B
  B --> E[Diagnostic report]
  E --> F[Credential owner handoff]
  E --> G[Protected publication workflow]
Loading

Technical review

Best possible solution:

Keep the existing diagnostic owners and protected publication checks, replacing only unsupported remediation and its linked guidance.

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

Current-main source deterministically emits the unsupported instructions for bootstrap candidates; the author reports a base-failing regression, but no target code was executed during this read-only review.

Is this the best way to solve the issue?

The patch is the smallest complete repair: both existing message producers and their linked guidance agree on supported remediation without adding a probe, helper, option, or competing owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Bootstrap diagnostic and verification guidance changes intended behavior with a stated reason (dcb4847: The original preflight exposed prerequisites before publication and required actual repository-token evidence rather than trusting local npm credentials.)
  • Release-guide ownership and links keeps the original intent (348bd81: Maintainer procedures were moved into release skills while preserving publication policy; this PR updates the existing owning locations and retains the bootstrap anchor.)
  • Existing preflight test isolation keeps the original intent (b4a70ce: Fixtures isolate unrelated GitHub and publication evidence while real production owners evaluate the behavior under test; the added case follows that boundary.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit dcb4847 adds scripts/lib/release-publish-state.mts:213 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dcb4847e4832; files: scripts/lib/release-publish-state.mts)
  • Dallin Romney: Raw commit b4a70ce adds scripts/release-publish-preflight.mts:518 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b4a70cebd318; files: scripts/release-publish-preflight.mts)
  • Vincent Koc: Raw commit 1b7f27d adds .agents/skills/release-openclaw-ci/SKILL.md:62 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 1b7f27dafbad; files: .agents/skills/release-openclaw-ci/SKILL.md)

PR surface

Tests +55, Docs +10, Other 0. Total +65 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 58 3 +55
Docs 2 22 12 +10
Config 0 0 0 0
Generated 0 0 0 0
Other 2 2 2 0
Total 5 82 17 +65

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:

  • P3: This improves advanced release-operator diagnostics without changing publication behavior or normal user workflows.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 15, 2026, 10:45 PM ET / November 16, 2026, 03:45 UTC.

RomneyDa and others added 3 commits November 17, 2026 00:31
Co-authored-by: vincentkoc <[email protected]>

Co-authored-by: RomneyDa <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: a76181b5-9279-4d28-bdd5-05944c91dd5b
Merge pinned main fd8d012; retain independent qualification guidance and concise credential-owner handoff.

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
@RomneyDa
RomneyDa merged commit ed8c998 into main Nov 17, 2026
109 checks passed
@RomneyDa
RomneyDa deleted the openclaw/ledger-npm-guidance-publish branch November 17, 2026 08:58
RomneyDa added a commit that referenced this pull request Nov 17, 2026
Direct release preflight operators to the repository credential owner while
preserving unverified token liveness and all publication checks.

Release adaptation: keep the source regression on the signed baseline test
fixtures; omit unrelated newer extended-stable fixture scaffolding. The four
production/documentation files retain the source changes without adaptation.

Companion audit: later overlapping #200551 documentation is already included.
No further required dependency found. Self-review: guidance only, no weakened
authority checks, token probes, credential writes, or new state owners.

(cherry picked from commit ed8c998)

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
* fix: replace unsupported npm token probe guidance

Direct release preflight operators to the repository credential owner while preserving unverified token liveness and publication checks.

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

* fix: replace unsupported npm token probe guidance

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 19b4c80d-90f4-49e8-8611-49e8bee3f8d4

* fix: shorten release credential handoff guidance

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

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

* Publish openclaw/ledger-npm-guidance-publish

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: a76181b5-9279-4d28-bdd5-05944c91dd5b

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 19, 2026
* fix: replace unsupported npm token probe guidance

Direct release preflight operators to the repository credential owner while preserving unverified token liveness and publication checks.

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

* fix: replace unsupported npm token probe guidance

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 19b4c80d-90f4-49e8-8611-49e8bee3f8d4

* fix: shorten release credential handoff guidance

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

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

* Publish openclaw/ledger-npm-guidance-publish

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: a76181b5-9279-4d28-bdd5-05944c91dd5b

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit ed8c998)
(cherry picked from commit 5dcc029cd7a887818e543e07c889de003e51a217)
RomneyDa added a commit that referenced this pull request Nov 19, 2026
* fix(release): reject unadmitted historical release evidence

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

* fix(release): reject unadmitted historical release evidence

OpenClaw-Publication: cbafcd1e-ccb8-4ee8-a827-e8a86f72caa6

* test(release): migrate acceptance fixtures to admitted evidence

Preserve real admission, selection, retry, and publication-authority coverage after retiring historical evidence paths.

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

* Publish openclaw/neat-langoustine

OpenClaw-Publication: 0e1a6b24-7f54-4a9b-a85d-c6f70d0936e1

* Publish openclaw/neat-langoustine

OpenClaw-Publication: 1bf160f6-58d8-460e-ba27-ec4c1fc0ffa7

* test(release): authenticate release-ready recovery fixtures

Generate qualification through the admission owner and preserve recovery, immutable artifact, and CLI publication assertions.

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

* Publish openclaw/neat-langoustine

OpenClaw-Publication: 96910d4b-53a2-4223-b721-a6f87f3677f6

* Publish openclaw/neat-langoustine

OpenClaw-Publication: 17afef4e-fd21-4f9d-be30-9cbafe1035d1

---------

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 5fb2315)

Release adaptation: retain the baseline core-npm preflight fixture scope while migrating its extended-stable evidence to candidatePublicationFixture; omit unrelated later plugin test imports.

(cherry picked from commit 22bc0898a7885d0e862b1209c02e22c4de4cc46e)

Release adaptation (integration): retain credential-owner preflight coverage from #199926 while migrating historical evidence to candidatePublicationFixture; preserve npmPlugins and typed publication-state mocks. Initial local conflict-marker commit was corrected and replaced before further integration; final tracked diff has no conflict markers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant