Skip to content

docs(ai-autopilot): end-to-end quickstart example (the four layers composed)#105

Merged
suleimansh merged 1 commit into
mainfrom
suleimansh/feat/ai-autopilot-example
Jul 2, 2026
Merged

docs(ai-autopilot): end-to-end quickstart example (the four layers composed)#105
suleimansh merged 1 commit into
mainfrom
suleimansh/feat/ai-autopilot-example

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Capstone for epic #97. Not a child issue — the proof that the three shipped layers actually compose.

What

A runnable, offline example (@gemstack/example-autopilot-quickstart) that wires all four ai-autopilot layers into one build-a-feature flow:

personas  →  Supervisor  →  runner (sandbox)  →  surfaces

A lead planner decomposes "Add a paginated Orders page backed by an orders table" and routes each subtask to a stack persona (universal-orm-modeler, vike-page-builder, ui-intent-designer). The Supervisor dispatches them; each persona worker writes Vike/ORM files inside a FakeRunner sandbox via runnerTools; progress is rendered through terminalSink (live) and a launchAutopilot background handle. AiFake scripts the model, so it runs with no API key and is deterministic.

Why

It's the integration contract: it exercises personaInstructions/personaTools + runnerTools + agentPlanner(personaRoster(...)) + Supervisor + surfaces together — so it doubles as the exact end-to-end a real FlueRunner must satisfy. Going real is a two-line change (drop AiFake, swap FakeRunner for a real adapter); nothing else in the flow moves.

Verified

pnpm --filter @gemstack/example-autopilot-quickstart start prints the live plan, the files written into the sandbox, a build + preview URL, and the synthesized result. Test suite (2 tests) asserts the layers compose: plan routes by persona, files land in the sandbox, surfaces capture the event stream. Private workspace example, in turbo typecheck + test.

Epic status after this

#98 personas, #100 surfaces, #101 teardown, and #99's runner interface are all shipped. The only remaining epic work is the real runner adapters (FlueRunner/WebContainer/Docker) on #99 — infra-gated (needs a live sandbox to verify honestly).

…sor + runner + surfaces)

A runnable, offline (AiFake) example that composes all four epic layers into
one build-a-feature flow: a planner routes subtasks to stack personas, the
Supervisor dispatches them, each worker writes Vike/ORM files inside a runner
sandbox via runnerTools, and the surfaces render live progress + a background
handle. Doubles as the integration contract a real FlueRunner must satisfy.

Private workspace example (@gemstack/example-autopilot-quickstart), in turbo
typecheck+test. Capstone for epic #97.
@suleimansh suleimansh added the documentation Improvements or additions to documentation label Jul 2, 2026
@suleimansh suleimansh self-assigned this Jul 2, 2026
@suleimansh suleimansh merged commit e9b66fe into main Jul 2, 2026
2 checks passed
@suleimansh suleimansh deleted the suleimansh/feat/ai-autopilot-example branch July 2, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant