IronClaw · OOBE Integration
Proposal & plan review

Reviewer's guide · WebChat v2 first-run

Bringing OOBE & onboarding into IronClaw

A two-phase plan to turn the onboarding prototype into shipped product — a near-term Foundational track that rides rails already on main, and a north-star Vision track that follows. This page renders the parts a reviewer scans: what extends shipped code vs. what is net-new, how it wires into the existing five layers, and every dependency with its implementation approach.

Benchmarked onPR #6918 doc set
GovernanceAPDD design/dev kit
PrototypePR #6994 · Issue #6993
InteractiveMockup ↗
01

Foundational scope — shipped vs. net-new

The framing the review turns on. Most of Foundational is a thin layer over functionality that already ships — it adds no new auth path, no new approval system, no new streaming indicator, and no new automations manager. The genuinely new surface is small and testable.

Reuse / extend code shipped on main Net-new feature or surface Vision-only (deferred, additive)
Builds on preexisting 7 capabilities
P1
Landing surface for the cardsempty-state.tsx — hero + composer, untouched
P2
Card busy / “Automating…” stateNearProcessIndicator (#6901) — reused verbatim
P3
Per-card Connect CTA + OAuthextension-pairing-api · product-auth-oauth-events
P4
Agent modes (Suggest / Plan / Auto)new UI over resolve_gate · global_auto_approve
P5
“Done for you” → manage itpages/automations/ management page
P6
Approve / Modify / Cancel · RevertTaskActionBar generalizes ApprovalCard
P7
Brand logos + themingv2 design tokens — no new token system
Net-new in Foundational 6 pieces
N1
Suggested-task card + carousel / drawerfrontend · prototype exists (mock) in #6994
N2
Pills-collapse drawer + dismiss + restorenew interaction model
N3
AutomationTask events + projectionironclaw_event_log · ironclaw_event_projections
N4
5 HTTP routes + 5 facade methodswebui_v2 · ProductSurface (mediated)
N5
First-run suggestion producerthe load-bearing new mechanism → triggers
N6
Agent-mode persistence + typed gategeneralizes global_auto_approve per-kind
02

How it wires into the existing five layers

A WebChat v2 feature crosses webui → ProductSurface → product → composition → runtime. Each layer already carries shipped machinery (left); OOBE adds a small, well-placed increment (right). Effects run through the mediated capability host — no bypass of authorization, approvals, or accounting.

ironclaw_webuiSPA · frontend/

On main

  • empty-state.tsx
  • NearProcessIndicator
  • extension-pairing-api
  • pages/automations/

OOBE adds

  • N1 N2 suggestion drawer + task cards
  • P3 Connect CTA → existing OAuth flow
  • P2 P5 busy state + manage deep-link
  • P4 agent-mode pill
webui_v2HTTP routes

On main

  • webui_v2_routes() descriptors
  • authenticated caller scoping

OOBE adds

  • N4 5 task routes (list/approve/modify/cancel/revert)
  • N6 agent-mode settings route
ProductSurfaceironclaw_product_contracts

On main

  • ProductSurface* types
  • typed capability commands

OOBE adds

  • N4 5 AutomationTask DTOs / commands
ironclaw_assistantfacade + effects

On main

  • mediated capability facade
  • product adapters (Gmail / Calendar)

OOBE adds

  • N4 5 facade methods — server-confirmed, mediated
  • P6 Modify re-runs on automated tasks
compositionapp/ironclaw_composition

On main

  • storage / runtime wiring by profile

OOBE adds

  • N3 N5 wire projection + suggestion producer
runtimeevents · projections · streams · triggers

On main

  • runtime_event.rs · projections · streams
  • triggers trusted-fire
  • resolve_gate · global_auto_approve

OOBE adds

  • N3 5 AutomationTask events + projection (tenant,user)-scoped
  • N5 first-run suggestion producer
  • N6 typed per-kind auto-approve

Family folders now on main (the #6918 reorg has landed): events + projection → crates/events/ · facade + DTOs → crates/product/ironclaw_assistant · routes → crates/product/ironclaw_webui · suggestion producer → crates/domains/ironclaw_triggers. This branch is merged up to date with that reorg — no second move needed.

03

Phasing

Foundational ships first, phase by phase; Vision follows and is strictly additive — every Vision piece is a superset of a Foundational one, so nothing is redone.

Foundational — ships against current main
F0De-risk & unblockGate the mock carousel (D-F5) so #6994 can merge; reconcile the contract.
F1Task backend5 events · projection + isolation test · 5 routes · 5 facade methods. D-F1
F2Suggestion producerComplete in PR #7694. Fresh users get durable proposals. D-F2
F3Connect + modeReuse ext-auth; wire the 3 modes into the gate. D-F3 D-F4
F4E2E + CUJFull decision loop; add the onboarding Critical User Journey.
F5Design trackOptional, parallel: DESIGN.md + card workbench. D-F6
Vision — north-star, after Foundational
V1Reveal + anticipatoryai-spark reveal on AutomationTaskAutomated; “working on it” states.
V2Cold-start connectQueued multi-tool OAuth over the same pairing infra.
V3Docked drawerComposer-docked bordered frame; reuses the drawer state machine.
V4Name + BypassUsername derivation + the 4th (Bypass) gate mode.
04

Dependencies & implementation approach

Every dependency states what it needs and how to build it. The frontend data seam is already shaped for all of these — wiring is a mock→fetch body swap with no component change.

Foundational

D-F1Task backend

Needs: the durable source of truth. Approach: 5 redacted events → (tenant,user)-scoped projection (+ isolation test) → 5 routes + descriptor rows → 5 mediated facade methods returning server-confirmed records.

D-F2Suggestion producer⚠ load-bearing

Needs: something must emit the first proposals — not covered by the existing contract. Approach: ship a deterministic starter set gated on admin-whitelisted tools; design the triggers-hosted suggester as the Vision upgrade.

D-F3Connect wiring

Needs: authorize the user's account per tool. Approach: route the card into the existing extension-auth flow via the shared extension_name resolver — no new auth path, no frontend-only fallback.

D-F4Agent mode + gate

Needs: durable mode + real gate behavior. Approach: settings endpoint + session hydration; auto = typed per-kind generalization of global_auto_approve, with gate-suppression tests + audit trail.

D-F5Carousel data safety

Resolved: the always-available surface reads the durable projection and renders no fabricated cards when the feed is empty.

D-F6DESIGN.md + tokens

Needs: IronClaw has no design constitution yet. Approach: seed DESIGN.md with the v2 tokens + card taxonomy; the OOBE cards are the natural pilot. Cross-cutting, deferrable.

Vision (additional)

D-V1Queued OAuth

Superset of D-F3. Batched multi-tool orchestration over the same pairing infra. Frontend-heavy; no new backend auth path.

D-V2Reveal animation

Superset of the static first card. ai-spark sweep on AutomationTaskAutomated (already emitted by D-F1); honored under prefers-reduced-motion.

D-V3Anticipatory states

Superset of the empty landing. “No automations yet” / “working on the first one” projection states through the stream path (#6993).

D-V4Docked drawer

Superset of the pills-collapse drawer. New docked-container component + composer layout; reuses the Foundational state machine.

D-V5Username derivation

Superset of the nameless greeting. Resolve a deterministic source with documented precedence + fallback. Open decision.

05

Documentation & development framing applied

The package deliberately mirrors two references — the framing of merged PR #6918 and the APDD product/design governance kit — so it reads the way this team already reviews architecture work.

APDD-Kit

product/design governance · docs-first workflow

  • ✓Docs-first feature workflow — spec → team review → plan → test, before code.
  • ✓Feedback & Decisions anchor stays open until review is folded in (PROPOSAL §10).
  • ✓Critical Bug Fix Log seeded per Rule 2 — every future critical fix logs + tests in the same diff.
  • ✓Design track — DESIGN.md + tokens + a Storybook workbench proposed with the OOBE cards as pilot.
  • ✓Critical User Journey baseline — a first-run onboarding CUJ added to regression (§8.4).

PR #6918

target-architecture · execution discipline

  • ✓Four-doc set — executive README → evidence-backed PROPOSAL → sequenced PLAN → definition-of-done CHECKLIST.
  • ✓Move-only / mock→real PRs are behavior-free and reviewed as such — semantic change never rides along.
  • ✓Guidance travels with the change — contract, rules, and plan status update in the same diff.
  • ✓main stays shippable after every PR — the carousel gate holds until the projection is real.
  • ✓Lands in the family folders now on main — the #6918 reorg landed; branch merged up to date, no second move.
06

Decisions reviewers should weigh

These gate the phases they belong to and are cheap to hold, expensive to skip. Full context in PROPOSAL §10.

Phase boundary.

Is the Foundational cut correct, or should a Vision piece (docked drawer, reveal) graduate into Foundational?

The suggestion producer (D-F2).

Deterministic starter set vs. triggers-hosted suggester vs. agent-driven — the one genuinely new mechanism and biggest open question.

Agent-mode gate semantics (D-F4).

Confirm auto as the typed generalization of global_auto_approve, and the bounds of “approved task types” (per-tool / per-action / caps).

Carousel data safety (D-F5).

Resolved: real durable suggestions only; the mock path is removed.

DESIGN.md pilot (D-F6).

Adopt the APDD design track here (DESIGN.md + tokens now, Storybook later), or defer?