## Summary
Makes LLM setup explicitly skippable in both the web installer and
`fabro install`, without making omission accidental. A skipped LLM step
lets install complete with zero LLM credentials; later LLM-dependent
workflows keep using the existing provider-not-configured behavior.
`fabro doctor` is intentionally unchanged.
Plan: `docs/superpowers/plans/2026-05-14-optional-llm-install.md`
## Key changes
**Server + API**
- `PUT /install/llm` now accepts `{"providers":[]}` as "LLM step
completed, skipped" — the empty-list rejection is removed; per-provider
validation for non-empty lists is retained.
- OpenAPI: dropped `minItems: 1` from
`InstallLlmProvidersInput.providers`, updated schema descriptions so
empty = skipped and `llm: null` = incomplete. TypeScript client
regenerated.
- `/install/finish` still requires the LLM step to be present, but
tolerates zero credentials — it writes settings, runtime auth secrets,
and GitHub secrets normally and writes no LLM vault entries.
**Web installer**
- New "Skip LLM setup" secondary action on the LLM step (via a
`secondaryAction` prop on `StepPanel`) that records an empty provider
list and advances to GitHub.
- Review screen shows `LLM providers: Skipped` (step completed, empty)
vs `Not configured` (step never completed), via a new
`describeLlmSummary` helper.
- Continue with no API keys still shows the existing validation error —
skipping is only reachable through the explicit skip action.
**CLI**
- Interactive `fabro install` asks "Configure LLM providers now?"
(default yes) before provider selection; declining returns an empty
selection and continues to GitHub.
- Hidden non-interactive `--skip-llm` flag, mutually exclusive with
`--llm-provider` / `--llm-api-key-stdin` / `--llm-api-key-env` via clap
`conflicts_with_all`. Missing LLM flags are still validation errors
unless `--skip-llm` is present. Non-interactive usage text updated with
a skip example.
## Code review
Ran a 12-reviewer `ce:review` pass (correctness, testing,
maintainability, project-standards, agent-native, learnings, security,
api-contract, reliability, adversarial, cli-readiness,
kieran-typescript). No P0/P1 findings; agent-native parity PASS. Applied
fixes in `40a29c591`:
- Re-entrancy guard on `runStepSubmit` so a fast double-click on "Skip
LLM setup" can't fire two requests.
- `validate()` only suggests `--skip-llm` in the missing-provider error
when no credential flag is set (it conflicts with those flags).
- Added tests: all three `--skip-llm` conflict arms, the review screen's
"Not configured" branch, and the skip-button failure path.
One advisory finding left as report-only: an empty `PUT /install/llm`
overwrites previously-saved credentials if a user navigates Back and
clicks Skip — judged acceptable since the button is explicitly labeled
and clicking it is deliberate.
## Testing
- `cargo nextest run -p fabro-server -p fabro-cli -p fabro-install` —
1521 passed
- `cargo build -p fabro-api`, `cargo fmt --check`, `cargo clippy`
(changed crates) — clean
- `bun test` (install-app) — 14 passed; `bun run typecheck` — clean
- New coverage: server accepts empty providers + session shows `llm`
complete with `providers:[]`; finish with skipped LLM persists no LLM
vault credentials but keeps GitHub secrets; web skip button PUTs
`providers:[]` and navigates to GitHub; review renders Skipped / Not
configured; CLI `--skip-llm` requires `--non-interactive`, conflicts
with all credential flags, `validate()` succeeds with `--skip-llm`,
usage text documents `--skip-llm`.
Not added (out of plan scope): an automated test for the interactive
`InstallInputSource` skip branch — `InteractiveInstallInputSource` is
TTY-coupled and has no existing tests; the non-interactive `--skip-llm`
path is fully covered.
## Post-Deploy Monitoring & Validation
This change is install-time only; there is no continuous runtime impact.
Validate during the next install/release smoke:
- **Web installer:** run a fresh browser install, click "Skip LLM setup"
on the LLM step, confirm it advances to GitHub and the review screen
reads `LLM providers: Skipped`. Finish the install and confirm the
server restarts into normal mode with no LLM credentials in the vault
(`secrets.json` has no credential entries) and
GitHub/server/object-store/sandbox settings written normally.
- **CLI:** run `fabro install --non-interactive --skip-llm
--github-strategy token --github-username <user>` and confirm it
completes; run interactive `fabro install` and confirm declining
"Configure LLM providers now?" continues to GitHub.
- **Healthy signals:** install completes (web `/install/finish` → 202;
CLI exits 0), server boots in normal mode, `fabro doctor` runs and
reports no LLM providers configured (expected, unchanged behavior).
- **Failure signals / rollback trigger:** install fails to finish,
server fails to boot after a skipped install, or `/install/finish`
rejects a completed-but-empty LLM step. Rollback = revert this PR;
install behavior returns to requiring at least one LLM provider.
- **Validation window/owner:** next install smoke / release
verification, owned by whoever runs the release.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4.6 KiB
Optional LLM Setup in Installers Implementation Plan
For agentic workers: REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (
- [ ]) syntax for tracking.
Goal: Make LLM setup explicitly skippable in both the web installer and fabro install, while preserving current behavior for users who do configure LLMs.
Architecture: Represent an explicit web-installer skip as a completed LLM step with an empty provider list. Represent an explicit CLI skip with an interactive confirmation path and a hidden non-interactive --skip-llm flag. Runtime model resolution and doctor behavior remain unchanged.
Tech Stack: Rust CLI/server (fabro-cli, fabro-server, fabro-api), OpenAPI-generated clients, React/TypeScript web installer, Bun tests, cargo-nextest.
Summary
Make LLM setup optional without making omission accidental. Users can explicitly skip LLM setup and still complete installation. A skipped LLM step means install can complete with zero LLM credentials; later LLM-dependent workflows keep using existing provider-not-configured behavior. Per product decision, fabro doctor remains unchanged and may report no LLM providers configured.
Key Changes
- Web install API: Treat
PUT /install/llmwith{"providers":[]}as "LLM step completed, skipped."- Remove
minItems: 1fromInstallLlmProvidersInput.providersindocs/public/api-reference/fabro-api.yaml. - Update schema descriptions so empty
providersexplicitly means skipped. - Keep
/install/finishrequiring the LLM step to be completed, but allow the completed step to contain zero providers.
- Remove
- Web UI: Add an explicit "Skip LLM setup" secondary action on the LLM step.
- It sends
putInstallLlm(token, []), refreshes the install session, and advances to GitHub. - Review screen should show
LLM providers: Skipped, notNot configured, whensession.llmexists with an empty provider list. - Keep blank/no-key "Continue" validation unchanged: users cannot accidentally continue with zero providers unless they press the skip action.
- It sends
- CLI installer: Add explicit skip behavior.
- Interactive
fabro install: before provider selection, ask whether to configure LLM providers now, defaulting to yes. Choosing no returns an empty LLM selection and continues to GitHub. - Non-interactive
fabro install: add hidden--skip-llm. It is mutually exclusive with--llm-provider,--llm-api-key-stdin, and--llm-api-key-env. - Keep accidental missing LLM flags as validation errors unless
--skip-llmis present. - Update non-interactive usage text to include a skip example.
- Interactive
- Generated clients/types: After OpenAPI edit, regenerate/build the API surfaces used by Rust and web:
cargo build -p fabro-apicd lib/packages/fabro-api-client && bun run generate
Test Plan
- Server API tests: Add coverage that
PUT /install/llmaccepts an empty providers list, marksllmcomplete in/install/session, and returnsllm.providers: []. - Finish persistence tests: Add a browser-install finish test with skipped LLMs that asserts:
/install/finishreturns202- settings and runtime auth secrets are written
- no LLM credential entries are written to the vault
- GitHub secrets still persist normally
- Web tests: Add/update tests for:
- clicking "Skip LLM setup" calls
PUT /install/llmwithproviders: []and navigates to GitHub - review screen renders skipped LLMs as
Skipped - pressing Continue with no API keys still shows the existing validation error
- clicking "Skip LLM setup" calls
- CLI tests: Add/update unit and integration coverage for:
--skip-llmrequires--non-interactive--skip-llmconflicts with all LLM credential flags- non-interactive validation succeeds with
--skip-llmplus required GitHub/config flags - hidden usage text includes
--skip-llm - existing no-input non-interactive install still fails
- Verification commands:
cargo nextest run -p fabro-server -p fabro-cli -p fabro-installcargo build -p fabro-apicd apps/fabro-web && bun testcd apps/fabro-web && bun run typecheck
Assumptions
- Empty
providersis the install API representation of an explicit LLM skip;llm: nullstill means the step is incomplete. - GitHub, server URL, object store, and sandbox setup remain required.
fabro doctorbehavior is intentionally unchanged after a skipped LLM install.- No changes are made to workflow execution or model resolution beyond allowing install to finish without credentials.