Skip to content

fix: plugin prerelease onboarding proof follows shared auth storage - #126958

Merged
RomneyDa merged 1 commit into
mainfrom
fix/npm-onboard-agent-dir
Aug 21, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/npm-onboard-agent-dir

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where the plugin prerelease Docker onboarding lanes failed after successful fresh-install onboarding because their release assertion still required the retired main-agent auth database.

Why This Change Was Made

Fresh installs intentionally persist shared credentials in state/openclaw.sqlite after #126783. The release assertion now reads the canonical shared auth-profile row and rejects accidental recreation of the legacy per-agent database.

User Impact

No product behavior changes. Release validation once again accurately proves npm onboarding for the generic, Discord, and Slack candidate-package lanes.

Evidence

  • Failure: Plugin Prerelease run 32439986043, all three onboarding lanes stopped at onboard did not create main agent dir after onboarding returned ok: true and wrote canonical config.
  • Root cause: fix(auth): create a fresh install with canonical shared-auth ownership #126783 moved fresh shared-auth ownership to the state database; the harness still read agents/main/agent/openclaw-agent.sqlite.
  • Focused assertion coverage now proves the shared row, env SecretRef, absence of inline key material, and absence of the retired agent database.
  • Autoreview: clean, no accepted/actionable findings.
  • Exact-head remote Docker proof: pending.

@clawsweeper

clawsweeper Bot commented Aug 21, 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 size: S maintainer Maintainer-authored PR labels Aug 21, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Exact-head evidence for 93be8703458f79f32377ed43c8835ee9693aaac4:

Owner-boundary check: fresh shared auth is persisted in state/openclaw.sqlite, table auth_profile_stores, key shared (src/state/openclaw-state-schema.sql:1). The release assertion reads that canonical row and explicitly rejects recreation of the retired per-agent auth database. Production script delta +16/-10; test delta +38/-12.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa
RomneyDa merged commit be891d2 into main Aug 21, 2026
151 checks passed
@RomneyDa
RomneyDa deleted the fix/npm-onboard-agent-dir branch August 21, 2026 03:01
@RomneyDa

Copy link
Copy Markdown
Member Author

Post-merge live-proof correction: run 32441751462 selected the PR target SHA for packaging, but its workflow tooling came from earlier main head 630175d87f09, so the Docker harness still executed the pre-fix assertion (onboard did not create main agent dir). That run cannot evaluate this repair. I started the equivalent no-publish validation from current main tooling against merge commit be891d2ac0ab11bf84cac8b4584127a044eca4e6, which contains the landed assertion: https://github.com/openclaw/openclaw/actions/runs/32443181960

@RomneyDa

Copy link
Copy Markdown
Member Author

Post-merge live proof complete for the repaired owner path in run 32443181960: both targeted jobs passed with current workflow tooling and landed commit be891d2ac0ab11bf84cac8b4584127a044eca4e6:

  • generic + Discord candidate onboarding: success
  • Slack candidate onboarding + doctor switch: success

These are the three release lanes that previously stopped on the retired per-agent database assertion. I cancelled the remaining unrelated broad plugin matrix after the required lanes passed to release CI capacity.

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

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant