Skip to content

fix(release): consent to staged Codex onboarding companion - #131298

Merged
steipete merged 5 commits into
mainfrom
codex/fix-npm-onboard-capability-consent
Aug 28, 2026
Merged

steipete merged 5 commits into
mainfrom
codex/fix-npm-onboard-capability-consent

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Release-validation npm onboarding stopped when the required Codex plugin correctly requested capability consent that silent onboarding cannot grant. After explicit preparation fixed that, the real candidate Discord agent turn exposed a second fixture defect: npm-pack: installed matching bytes but did not establish official provenance required by openKeyedStore.

The original pnpm-migration Package Acceptance failure, additional consent reproduction, and Discord provenance failure are preserved. These failures do not establish a pnpm defect. This completes the onboarding-specific repair using the merged shared fixture/harness repair.

Why This Change Was Made

The fixture owns preparation of reviewed artifacts. Production consent and trust guards are correct and stay unchanged. The scenario now explicitly prepares Codex before non-interactive onboarding, then the selected external channel after onboarding and the existing dependency-absence assertion. The actual CLI command help determines consent support; displayed package versions are not a reliable feature boundary.

Candidate Discord/Slack companions join Codex in the existing planner-owned immutable prerelease registry. The producer verifies source SHA, candidate version, package identity and hashes; the container requires the selected companions before any OpenClaw call. Exact pinned official npm specs retain candidate bytes and normal catalog-backed provenance. Source mode without the verified registry fails clearly, rather than selecting another source.

Removed: archive packing, temporary archive cleanup/mounts, source install overrides and the direct npm-pack: channel path. Published/no-registry catalog selection, historical automatic setup, bundled channels, bounded failed/timed-out probes, JSON/ref-auth assertions, and model configuration after onboarding remain intact. No global acceptance, manually stamped trust, runtime policy change, new public config, schema change, dependency override or Codex protocol change.

User Impact

Release tooling can validate modern and historical candidates without weakening plugin capability consent. Non-interactive operators now have explicit preparation and retry guidance in CLI onboarding and wizard automation. --accept-risk remains separate from plugin capability consent.

Product runtime LOC: +0/-0. Release tooling: +49/-46, net +3. Tests: +403/-34. Docs: +61/-1. Total: +513/-81 across eight files. The provenance follow-up removes 27 net tooling lines by using the existing registry instead of maintaining a second archive flow.

Evidence

Reviewed source: 8ceb4b12e8591516c73816f9593cce10a16eeea8. Final head 5f2d7aff42c2aab61438a3a2c1391cd753e09686 preserves Vincent's follow-up commits and has the identical complete Git tree, 0a785e549191d8ef14575b839b5e20704a84fa6f. Package proof and the clean whole-diff review below are explicitly reused on identical bytes, not represented as executions at a different SHA.

Proof Observed result
Exact final-head CI Passed at 5f2d7aff42c2aab61438a3a2c1391cd753e09686
Reviewed-head CI Passed at 8ceb4b12e8591516c73816f9593cce10a16eeea8
Frozen-candidate Package Acceptance All three real Docker onboarding/channel/agent lanes passed: Telegram, candidate Discord, candidate Slack
Published-package Testbox proof Exact [email protected], no staged registry; all three real Docker flows passed. Blacksmith Testbox tbx_01m13ewth0r13g54bd771z67rt, wrapper exit 0, lease verified completed
Regression proof Original consent sequence: 11 intended failures / 6 passing controls. Provenance expansion on 760fe344e8a54893a2725df4c197e168c02a52fe: 10 intended failures / 75 passing controls. Repaired focused suite: 164 passed; existing installer/registry suite: 133 passed
Independent whole-final-diff Codex P0–P2 autoreview Passed, no findings; review is static, with test executions recorded separately
Changed gates and docs Format, script/test types, lint and repository guards passed; Bash syntax and git diff --check passed; MDX passed; canonical audit checked 6,917 links with zero broken

Frozen proof retains original source 76feb368b5aa4122af8fb4e2f08b457d3ab8d460, artifact 9658437294 from run 33099873637, and package SHA-256 e1e2b2bea928ac3f628f21aae72f26808b89c10ad6d69246a05c9fc36f9f1a0d. All three downloaded lane summaries and complete logs were inspected: each actually executed and returned status 0. Published-package bytes were separately checked against npm integrity. No candidate substitution or artifact-validator bypass.

The earlier contributor-reported 140-test run is retained as additional evidence; the final 164-test owner/sibling run and 133-test trust run above are the expanded maintainer proof. The separate Full Release Validation parent belongs to the broader migration and is not claimed complete here.

Exact focused commands

node scripts/run-vitest.mjs test/scripts/npm-onboard-channel-agent-shell.test.ts test/scripts/npm-onboard-channel-agent-assertions.test.ts test/scripts/prepublish-plugin-registry-shell.test.ts test/scripts/openclaw-e2e-instance.test.ts test/scripts/docker-e2e-plan.test.ts test/scripts/plugin-prerelease-test-plan.test.ts test/scripts/prepublish-plugin-registry-artifact.test.ts --reporter=verbose
node scripts/run-vitest.mjs src/cli/plugin-install-plan.test.ts src/plugins/manifest-registry.test.ts --reporter=verbose
node scripts/check-changed.mjs -- docs/cli/onboard.md docs/start/wizard-cli-automation.md scripts/e2e/npm-onboard-channel-agent-docker.sh scripts/lib/docker-e2e-scenarios.mts test/scripts/npm-onboard-channel-agent-shell.test.ts test/scripts/docker-e2e-plan.test.ts test/scripts/plugin-prerelease-test-plan.test.ts test/scripts/prepublish-plugin-registry-artifact.test.ts
node scripts/check-docs-mdx.mjs docs/cli/onboard.md docs/start/wizard-cli-automation.md
node scripts/docs-link-audit.mjs
git diff --exit-code 8ceb4b12e8591516c73816f9593cce10a16eeea8 5f2d7aff42c2aab61438a3a2c1391cd753e09686

Published proof ran the canonical pnpm test:docker:npm-onboard-channel-agent separately for each channel with the exact downloaded package, host build disabled, and no prerelease registry/source override. Package/model/channel endpoints were isolated; the model and channel APIs were mocked. This is real package/CLI/state integration proof, not a claim of authenticated provider or live-channel testing.

Review boundaries and remaining limitations

The latest ClawSweeper review requested outer Docker forwarding/candidate-lane proof and maintainer acceptance, with no code findings. The staged and published three-channel runs now supply that proof. No separate rank-up item was left unaddressed. A refresh is requested for the later provenance repair; it is not a substitute for the independent completed review and exact-head CI.

Direct sibling Codex inspection used tag rust-v0.150.1, commit 90854393966b21e9ebfd21b122334eb09a20c93d: codex-rs/app-server/src/request_processors/initialize_processor.rs:44–159 and codex-rs/app-server/src/message_processor.rs:835–901. The OpenClaw pin remains @openai/[email protected]; both failures occur in host artifact preparation before app-server initialization.

Earlier unrelated RPC sanity under saturated host scheduling recorded 302 passing tests and two timing failures; both passed unchanged targeted retry. That is not reported as a clean 304-test run. Those two original RPC failures remain a separate unresolved follow-up; an unchanged targeted retry does not establish their cause, and neither completed repair lane owns an active investigation. No timeouts or unrelated RPC code changed here. Historical full-package checks had separate old-tarball mode/ACPX validation failures before plugin execution; actual historical CLI compatibility passed in the shared repair. The canonical docs audit recognizes the externally owned ClawHub route flagged by generic Mintlify; the valid route was not removed.

Capability consent was introduced by the plugin consent change; validation exposed unprepared fixtures rather than a product-policy defect. Dallin Romney (@RomneyDa) remains the original author, with exact coauthor trailers preserved. Vincent Koc (@vincentkoc) and Peter Steinberger's contributions remain in the history. AI-assisted: yes. Release-note context is recorded here; CHANGELOG.md remains release-generated.

@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: XS maintainer Maintainer-authored PR labels Aug 28, 2026
@steipete

steipete commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer follow-through: the consent and official-provenance repair is complete, with all three staged and all three published-package Docker onboarding/channel/agent flows passing. The shared fixture/harness repair is already merged.

The earlier Discord openKeyedStore failure is fixed at the fixture owner: selected candidate channels now share Codex's verified immutable registry and use exact pinned official npm installs. Archive packing, mounts and install overrides are gone. Production trust and capability-consent policy remain unchanged. Final scope: runtime +0/-0; tooling +49/-46 (net +3); tests +403/-34; docs +61/-1.

  • Frozen-candidate Package Acceptance: Telegram, candidate Discord and candidate Slack all executed successfully against the original 76feb368b5aa4122af8fb4e2f08b457d3ab8d460 package/source. Downloaded lane summaries and complete logs inspected.
  • Published/no-registry proof: exact [email protected]; Telegram, Discord and Slack all passed. Blacksmith Testbox tbx_01m13ewth0r13g54bd771z67rt, wrapper exit 0, lease completed.
  • 164 focused tests plus 133 existing installer/registry tests passed; before-fix regressions failed for the intended consent/provenance reasons. Changed-file gates, MDX and canonical 6,917-link audit passed. Fresh isolated whole-final-diff Codex P0–P2 autoreview completed with no findings.
  • Package proof and review ran at 8ceb4b12e8591516c73816f9593cce10a16eeea8. Vincent's subsequent commits are preserved at 5f2d7aff42c2aab61438a3a2c1391cd753e09686; both heads have the identical complete tree 0a785e549191d8ef14575b839b5e20704a84fa6f. Exact final-head CI is now green on 5f2d7aff42c2aab61438a3a2c1391cd753e09686, attempt 1. Native review artifacts are validated with no findings; proceeding through native preparation and merge.

The PR body now contains exact commands, artifact identity, source/owner reasoning and proof limitations. The model/channel APIs were mocked; this is actual package/CLI/state proof, not authenticated live-channel testing. The earlier unrelated RPC scheduling failures and separate historical full-package validator limitations remain disclosed rather than relabeled as passing.

The latest ClawSweeper outer-Docker proof request is satisfied by these real runs. @clawsweeper re-review for the completed provenance repair beyond the previously reviewed 760fe344e8a54893a2725df4c197e168c02a52fe. Dallin Romney's original authorship and coauthor trailers are preserved, along with Vincent Koc's follow-up work.

@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 2:26 AM ET / 06:26 UTC.

ClawSweeper review

What this changes

Updates the release onboarding Docker fixture and its documentation so candidate Codex and channel plugins are installed from the verified prerelease registry with explicit capability consent when supported.

Regression provenance

Possible regression — probable (failure trace; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open: the branch plausibly repairs the candidate-plugin release fixture without weakening capability consent, but the exact head still needs its candidate Discord/Slack outer-Docker acceptance evidence.

Priority: P2
Reviewed head: 5f2d7aff42c2aab61438a3a2c1391cd753e09686

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation and focused contracts are solid, but exact-head outer-Docker acceptance is the remaining evidence gap.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The PR is member-authored; its supplied package-acceptance evidence remains validation context, while exact-head automation is still pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The PR is member-authored; its supplied package-acceptance evidence remains validation context, while exact-head automation is still pending.
Evidence reviewed 7 items Introduced fixture behavior: The fixture forwards candidate-source mode into Docker, requires the verified prerelease registry and exact companion packages, conditionally installs Codex before onboarding, and installs candidate Discord/Slack through pinned official npm specs.
Runtime contract: Managed plugin installation supports both pinned npm specifications and capability acceptance; onboarding owns managed-source selection and consent prompting.
Artifact trust boundary: The prerelease registry validates candidate artifact identity and required package contents before serving it; the PR uses that existing path rather than bypassing the trusted-plugin guard.
Findings None None.
Security None None.

How this fits together

Release validation builds an immutable prerelease plugin registry, mounts it into Docker onboarding fixtures, and verifies that a packaged CLI can install and configure plugins noninteractively. This change affects the fixture’s candidate-plugin selection and installation path before onboarding invokes the channel setup.

flowchart LR
  A[Candidate plugin packages] --> B[Immutable prerelease registry]
  B --> C[Docker onboarding fixture]
  C --> D[Capability-consent help probe]
  D --> E[Managed pinned plugin install]
  E --> F[Noninteractive onboarding]
  F --> G[Release acceptance result]
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head candidate Discord/Slack package-acceptance and the outer Docker forwarding path remain pending; focused extracted-shell tests do not independently exercise that outer invocation.
Agent review details

Security

None.

PR surface

Tests +369, Docs +60, Other +3. Total +432 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 403 34 +369
Docs 2 61 1 +60
Config 0 0 0 0
Generated 0 0 0 0
Other 2 49 46 +3
Total 8 513 81 +432

Review metrics

Metric Value Why it matters
Production versus test delta product runtime +0/-0; release tooling +49/-46; tests +403/-34; docs +61/-1 The patch changes fixture automation and its coverage, not shipped application runtime behavior.

Merge-risk options

Maintainer options:

  1. Complete exact-head candidate acceptance (recommended)
    Run the candidate Discord and Slack package-acceptance lanes through the outer Docker harness before merging this release-validation change.
  2. Pause for acceptance evidence
    Keep the PR open if exact-head candidate registry coverage cannot be produced, because the remaining uncertainty is in release automation rather than application runtime.

Technical review

Best possible solution:

Retain the single verified prerelease-registry path and merge after exact-head candidate Discord and Slack acceptance proves the outer Docker harness installs the pinned companions.

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

Yes at source level: the reported noninteractive candidate-plugin failure is owned by the reviewed fixture sequence and supported by focused regressions, though an exact-head outer-Docker reproduction is still pending.

Is this the best way to solve the issue?

Yes: planner-owned immutable registry requirements plus pinned managed npm installs preserve candidate provenance and capability consent without bypassing the trusted-plugin boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 533319b6753f.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit. Replaced prior rating: 🐚 platinum hermit.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: This repairs bounded release-validation fixture behavior with no demonstrated end-user runtime regression.
  • merge-risk: 🚨 automation: The changed Docker and prerelease-registry path controls package-acceptance automation, while exact-head outer-harness evidence remains pending.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit. Replaced prior rating: 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The PR is member-authored; its supplied package-acceptance evidence remains validation context, while exact-head automation is still pending.

Evidence

Acceptance criteria:

  • [P1] Run exact-head candidate Discord package acceptance through the outer Docker harness.
  • [P1] Run exact-head candidate Slack package acceptance through the outer Docker harness.

What I checked:

Likely related people:

  • vincentkoc: Authored the reviewed head and related capability-consent release-fixture repair work. (role: recent area contributor; confidence: medium; commits: 5f2d7aff42c2; files: scripts/e2e/npm-onboard-channel-agent-docker.sh, test/scripts/npm-onboard-channel-agent-shell.test.ts)
  • steipete: Available history identifies a prior commit preserving official provenance for candidate channels; supplied context links related merged fixture work. (role: prior related contributor; confidence: medium; files: scripts/e2e/npm-onboard-channel-agent-docker.sh, scripts/lib/docker-e2e-scenarios.mts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Run exact-head candidate Discord and Slack package-acceptance lanes through the outer Docker harness.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-28T00:16:44.281Z sha 8fef30e :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T05:11:13.859Z sha 760fe34 :: needs maintainer review before merge. :: none

RomneyDa and others added 2 commits August 27, 2026 21:49
Use the shared command-help consent helper for the reviewed Codex and
external channel fixtures. Keep exact staged Codex versions pinned, use
official catalog selectors for published packages, and preserve historical
automatic setup when the candidate CLI lacks capability consent.

Replace source-order assertions with shell boundary coverage and document
reviewed plugin preinstallation before retrying noninteractive setup.

Co-authored-by: Dallin Romney <[email protected]>
@steipete
steipete force-pushed the codex/fix-npm-onboard-capability-consent branch from 8fef30e to 760fe34 Compare August 28, 2026 05:03
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M and removed size: XS labels Aug 28, 2026
@vincentkoc vincentkoc self-assigned this Aug 28, 2026
Stage the selected Discord or Slack companion with Codex in the verified
prerelease registry and install its exact pinned npm spec after onboarding.
The former npm-pack path installed matching bytes but could not establish
the official provenance required by trusted plugin state APIs.

Remove local archive packaging and install overrides. Reject missing or
mismatched source companions before CLI use while keeping published catalog
selection and historical automatic setup unchanged.

Co-authored-by: Dallin Romney <[email protected]>
Keep the immutable Codex registry artifact unchanged and serve source Discord/Slack tarballs as separately validated exact npm packages. Remove source install overrides and fail closed without the mounted registry.

Co-authored-by: Dallin Romney <[email protected]>
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 28, 2026
Restore the planner-owned immutable prerelease registry artifact containing Codex and the selected source channel companion. This supersedes the separate tarball mount follow-up.
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit f466dc0 into main Aug 28, 2026
174 checks passed
@steipete
steipete deleted the codex/fix-npm-onboard-capability-consent branch August 28, 2026 06:35
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 28, 2026
…131298)

* fix(release): consent to staged Codex onboarding companion

* fix(e2e): prepare reviewed onboarding plugins explicitly

Use the shared command-help consent helper for the reviewed Codex and
external channel fixtures. Keep exact staged Codex versions pinned, use
official catalog selectors for published packages, and preserve historical
automatic setup when the candidate CLI lacks capability consent.

Replace source-order assertions with shell boundary coverage and document
reviewed plugin preinstallation before retrying noninteractive setup.

Co-authored-by: Dallin Romney <[email protected]>

* fix(e2e): preserve official provenance for candidate channels

Stage the selected Discord or Slack companion with Codex in the verified
prerelease registry and install its exact pinned npm spec after onboarding.
The former npm-pack path installed matching bytes but could not establish
the official provenance required by trusted plugin state APIs.

Remove local archive packaging and install overrides. Reject missing or
mismatched source companions before CLI use while keeping published catalog
selection and historical automatic setup unchanged.

Co-authored-by: Dallin Romney <[email protected]>

* fix(e2e): preserve frozen channel candidate registry

Keep the immutable Codex registry artifact unchanged and serve source Discord/Slack tarballs as separately validated exact npm packages. Remove source install overrides and fail closed without the mounted registry.

Co-authored-by: Dallin Romney <[email protected]>

* fix(e2e): keep candidate plugins in one registry

Restore the planner-owned immutable prerelease registry artifact containing Codex and the selected source channel companion. This supersedes the separate tarball mount follow-up.

---------

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L 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.

3 participants