Skip to content

Commit ab093bd

Browse files
authored
docs(onboarding): finalize phase status and phase 7 decision (#110543)
* docs(onboarding): final phase status and phase 7 decision * docs(onboarding): remove shipped refresh follow-up * docs(onboarding): remove shipped browser follow-up
1 parent deccdb5 commit ab093bd

2 files changed

Lines changed: 67 additions & 37 deletions

File tree

‎docs/docs_map.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9345,10 +9345,10 @@ Do not edit it by hand; run `pnpm docs:map:gen`.
93459345
- H3: Phase 1 — app recommendations (PR #109668)
93469346
- H3: Phase 2 — CLI custodian spine (PR #109841)
93479347
- H3: Phase 3 — browser-first handoff (PR #110054, merged)
9348-
- H3: Phase 4 — web custodian surface (planned)
9349-
- H3: Phase 5 — hatch and bootstrap (planned)
9350-
- H3: Phase 6 — custodian presence (planned)
9351-
- H3: Phase 7 — resilience (follow-up)
9348+
- H3: Phase 4 — web custodian surface (merged: #110141, #110242)
9349+
- H3: Phase 5 — hatch and bootstrap (merged: #110173, #110331)
9350+
- H3: Phase 6 — custodian presence (PR1 merged: #110269; commentary/summon are PR2)
9351+
- H3: Phase 7 — resilience (needs an owner decision before building)
93529352
- H2: Testing and landing playbook (hard-won; read before phases 4-6)
93539353
- H2: Decision log
93549354
- H2: Known gaps and follow-ups

‎docs/start/onboarding-redesign.md‎

Lines changed: 63 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ Remote-gateway onboarding keeps its legacy conversational handoff
8383

8484
## Phases
8585

86-
| # | Phase | Surface | Status |
87-
| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | --------------------------------------------------------------------------------------------------------------- |
88-
| 1 | Installed-app plugin recommendations (scan, candidates, AI matcher, wizard step, `device.apps` node command) | classic + guided CLI | merged ([#109668](https://github.com/openclaw/openclaw/pull/109668)) |
89-
| 2 | CLI custodian spine (question zero, discovery theater, auto-apply + hatch) | guided CLI | merged ([`a83ed13204f1`](https://github.com/openclaw/openclaw/commit/a83ed13204f118adf1009e5ac88d5afe1905b86c)) |
90-
| 3 | Browser-first handoff (GUI-session detection, wait-for-dashboard-connect, TUI as fallback) | CLI → web | merged ([#110054](https://github.com/openclaw/openclaw/pull/110054)) |
91-
| 4 | Web custodian surface (option-card renderer shared with the question tool, scripted pre-AI states over `openclaw.chat`, post-wizard chat handoff) | Control UI | planned |
92-
| 5 | Hatch and bootstrap (blank-agent creation, self-naming, self-drawn avatar via image-gen when available, recommendations as the last bootstrap step, self-learning opt-in) | agent bootstrap | planned |
93-
| 6 | Custodian presence (pinned sidebar entry, Settings dock with event-reactive commentary, channel summon and agent-down recovery, weak-model script) | web + channels | planned |
94-
| 7 | Resilience (custodian reachable on broken config, partial-surface salvage, auto-doctor) | gateway | follow-up |
86+
| # | Phase | Surface | Status |
87+
| --- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
88+
| 1 | Installed-app plugin recommendations (scan, candidates, AI matcher, wizard step, `device.apps` node command) | classic + guided CLI | merged ([#109668](https://github.com/openclaw/openclaw/pull/109668)) |
89+
| 2 | CLI custodian spine (question zero, discovery theater, auto-apply + hatch) | guided CLI | merged ([`a83ed13204f1`](https://github.com/openclaw/openclaw/commit/a83ed13204f118adf1009e5ac88d5afe1905b86c)) |
90+
| 3 | Browser-first handoff (GUI-session detection, wait-for-dashboard-connect, TUI as fallback) | CLI → web | merged ([#110054](https://github.com/openclaw/openclaw/pull/110054)) |
91+
| 4 | Web custodian surface (option cards, typed `question` field on `openclaw.chat`, wizard-step mirroring, first-run handoff) | Control UI | merged ([#110141](https://github.com/openclaw/openclaw/pull/110141), [#110242](https://github.com/openclaw/openclaw/pull/110242)) |
92+
| 5 | Hatch and bootstrap (recommendations store with once-semantics, self-naming birth sequence, auto-hatch handoff after fresh setup; avatar ladder deferred) | agent bootstrap | merged ([#110173](https://github.com/openclaw/openclaw/pull/110173), [#110331](https://github.com/openclaw/openclaw/pull/110331)) |
93+
| 6 | Custodian presence PR1 (pinned sidebar entry, Ask OpenClaw in Settings, normal-chrome caretaker greeting; event commentary and channel summon are PR2) | web + channels | merged ([#110269](https://github.com/openclaw/openclaw/pull/110269)) |
94+
| 7 | Resilience (custodian reachable on broken config, partial-surface salvage, auto-doctor) | gateway | follow-up |
9595

9696
## Implementation notes per phase
9797

@@ -171,19 +171,22 @@ Remote-gateway onboarding keeps its legacy conversational handoff
171171
terminal hatch. An earlier "token mismatch" hold was a test-harness
172172
artifact — see the testing playbook below.
173173

174-
### Phase 4 — web custodian surface (planned)
174+
### Phase 4 — web custodian surface (merged: #110141, #110242)
175175

176-
- One option-card component (header, question, 2-4 cards, one recommended,
177-
always skippable) shared by scripted onboarding and the agent question tool
178-
(`src/agents/harness/user-input-bridge.ts` shapes).
179-
- Scripted pre-AI dialogue as a small state machine consumed by CLI and web;
180-
the web page runs over the existing `openclaw.chat` RPC in the chrome-hiding
181-
onboarding mode. The model-setup wizard pages remain as the "More options"
182-
fallback, embedded as cards.
183-
- Browser handoff should deep-link into the onboarding-mode custodian chat
184-
once this exists (today it lands on the normal dashboard).
176+
- `/custodian` page over `openclaw.chat` with the option-card component
177+
(2-4 cards, one recommended max, always skippable); onboarding chrome via
178+
`?onboarding=1`; model-setup first-run completion hands off into it.
179+
- Structured questions are a typed additive `question` field on
180+
`SystemAgentChatResult` (per-option `reply` text; prose always stands alone
181+
for the macOS app/TUI). Producers: both onboarding welcome variants and
182+
hosted wizard select/confirm steps with 2-4 closed options — real channel
183+
wizards render as cards. The PR1 string-marker stopgap was deleted.
184+
- Session ownership is scoped to gateway URL + every presented credential
185+
(token, password, bootstrap token, stored device token — sticky across
186+
transient hello drops); failed user turns are never replayable; sensitive
187+
input is sent verbatim and masked in the transcript.
185188

186-
### Phase 5 — hatch and bootstrap (planned)
189+
### Phase 5 — hatch and bootstrap (merged: #110173, #110331)
187190

188191
- Custodian creates a nameless agent (tool call); the agent's bootstrap opens
189192
with self-naming. PR1 ships the ceremony capped at three beats (name → soul
@@ -204,14 +207,20 @@ Remote-gateway onboarding keeps its legacy conversational handoff
204207
- Self-learning is asked, not announced, and doubles as skill-workshop
205208
consent; describe ClawHub's release-trust, scan, verification, and integrity
206209
checks plus the publisher-code warning — never imply every release is signed.
207-
- Zero agents on first run auto-hatches with the announcement; zero agents
208-
after deletion offers instead (the emptiness was intentional).
209-
210-
### Phase 6 — custodian presence (planned)
211-
212-
- Pinned sidebar entry (permanent session — it is the config audit trail) and
213-
Settings landing pane docked with the same session; replies deep-link into
214-
settings sections. The surface keeps the name "Settings".
210+
- Auto-hatch shipped: a fresh-install setup apply announces the hatch and
211+
hands off (terminal TUI / `open-agent` for gateway clients); the web page
212+
lands in agent chat with the "Wake up, my friend!" draft prefilled. The
213+
handoff fires only on clean post-write verification. Zero agents after
214+
deletion offering (instead of auto) remains follow-up polish.
215+
216+
### Phase 6 — custodian presence (PR1 merged: #110269; commentary/summon are PR2)
217+
218+
- Shipped in PR1: default-pinned "OpenClaw" sidebar entry (fresh profiles;
219+
existing users keep saved pins and reach it via customize/More), "Ask
220+
OpenClaw" as the first Settings entry, and normal-chrome `/custodian` visits
221+
that request the caretaker greeting (no onboarding welcome variant), with
222+
Exit setup rendered only in onboarding mode. A docked inline Settings pane
223+
needs shared conversation-view extraction (follow-up).
215224
- Event-reactive commentary with anti-Clippy guardrails: consequential or
216225
failed changes only, at most once per settings visit unless asked. The same
217226
event seam makes the custodian the voice for degraded auth or broken
@@ -224,11 +233,32 @@ Remote-gateway onboarding keeps its legacy conversational handoff
224233
- The custodian knows its internal nickname ("some folks call me the
225234
custodian — OpenClaw's fine") and always refers to the agent by name.
226235

227-
### Phase 7 — resilience (follow-up)
228-
229-
- The custodian must be reachable no matter how broken the config is: salvage
230-
working surfaces (per the gateway's degraded-start SecretRef rules), say
231-
plainly what is broken, and run `openclaw doctor` automatically.
236+
### Phase 7 — resilience (needs an owner decision before building)
237+
238+
The original sketch — "the custodian must be reachable no matter how broken
239+
the config is" — collides with the repo's security policy: the root guide
240+
states the Gateway **refuses startup** when config is structurally invalid,
241+
and only SecretRef-owner failures degrade into configured-unavailable
242+
capabilities. Serving any surface from an invalid config is a policy change,
243+
not an implementation detail. Two scopes, pick one:
244+
245+
- **Option A (recommended, policy-compliant): CLI-side auto-doctor.** When a
246+
gateway or CLI start fails with a known-shape invalid config, the CLI offers
247+
(or with consent runs) `openclaw doctor --fix`, then retries once and
248+
reports plainly. No gateway behavior changes; the custodian stays reachable
249+
through the existing degraded-SecretRef path and the terminal.
250+
- **Option B (needs explicit owner sign-off + security review): gateway
251+
minimal-surface mode.** On structurally invalid config, start a locked-down
252+
surface serving only the custodian conversation and doctor actions. This
253+
rewrites the fail-closed startup contract and must define its own ingress
254+
protection story before any code.
255+
256+
Remaining follow-ups from phases 4-6 (tracked, unscheduled): avatar/image-gen
257+
ladder for the hatch; macOS app rendering of the typed `question` field; a
258+
docked inline Settings pane for the custodian (needs shared conversation-view
259+
extraction); event-reactive commentary and channel summon/agent-down recovery
260+
(phase 6 PR2); automatic `localModelLean` for weak models; whether existing
261+
users' saved sidebar pins should adopt the OpenClaw entry.
232262

233263
## Testing and landing playbook (hard-won; read before phases 4-6)
234264

0 commit comments

Comments
 (0)