Skip to content

docs(gui): refresh architecture docs for the sidecar compute path - #213

Merged
CameronBrooks11 merged 1 commit into
mainfrom
docs/gui-sidecar-architecture-refresh
Jun 26, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
docs/gui-sidecar-architecture-refresh

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Follow-up to #194 (PR #212). After #192/#193/#194 the desktop app runs compute (plan/validate/plot) through the bundled FastAPI sidecar via the OpenAPI-typed client, and the Tauri shell is a thin native host. The GUI docs still described the removed invoke→CLI→temp-file compute path; this brings them back in line with the code.

Changes

  • architecture/cli-integration.md — retitled "Backend Integration"; rewritten around the two backends: the HTTP sidecar for compute (process supervision, JSON handshake, the openapi-fetch typed client, CORS) and the Tauri commands that remain (file I/O, stream_program, marlin::*, health). Documents the uniform _up_/bundled-* path resolution (the refactor(gui): consume the API client for compute operations (#193) #208 fix) and the freeze/bundle pipeline. Net ~−375 lines of obsolete code dumps.
  • guides/schemas.md — dropped the removed PlanSummary/Simulation/PlotPreview command schemas; clarified that compute responses are typed by the generated client (no Zod) while Zod still covers user input, .wind files, and the remaining Tauri command responses. Fixed the .wind example to the real WindDefinitionSchema (1.x schemaVersion, Fix schemaVersion schema constraint (const 1.0 rejects future minors) #140).
  • overview.md — updated the architecture diagram + framing to the sidecar + native-host split; listed the new src-tauri modules and the git-ignored bundled-cli/bundled-api artifact dirs.

Verification

  • Docs-only; no code touched.
  • Code-fence balance checked; all internal links point to existing files (mkdocs --strict).
  • Adversarial accuracy review (subagent) against the real code: all load-bearing claims (command/function/file names, handshake JSON, _up_/bundled-* resolution, removed-vs-retained schemas, freeze/bundle) verified correct. It caught one invented field (diagnostics on CliHealthResponseSchema) — fixed by switching that illustration to a generic example.

Out of scope (pre-existing, not regressions): a stale out-of-tree contributing.md link and the simplified discriminated-union teaching examples in schemas.md.

Refs #195.

After #192/#193/#194 the desktop app runs compute (plan/validate/plot)
through the bundled FastAPI sidecar via the OpenAPI-typed client, and the
Tauri shell is a thin native host (files, Marlin serial, sidecar
supervision). The GUI docs still described the removed invoke->CLI->temp
-file compute path.

- Rewrite architecture/cli-integration.md around the two backends: the
  HTTP sidecar for compute (supervision, handshake, typed client) and the
  Tauri commands that remain (files, stream_program, marlin::*). Document
  the uniform `_up_/bundled-*` path resolution and the freeze/bundle flow.
- schemas.md: drop the removed PlanSummary/Simulation/PlotPreview command
  schemas; clarify that compute responses are typed by the generated
  client (no Zod) while Zod still covers user input, .wind files, and the
  remaining Tauri command responses. Fix the .wind example to the real
  WindDefinitionSchema (1.x schemaVersion, #140).
- overview.md: update the architecture diagram + framing to the
  sidecar + native-host split; list the new src-tauri modules and the
  git-ignored bundled-cli/bundled-api artifact dirs.

Refs #194, #195.
@CameronBrooks11
CameronBrooks11 merged commit 97d8705 into main Jun 26, 2026
9 checks passed
@CameronBrooks11
CameronBrooks11 deleted the docs/gui-sidecar-architecture-refresh branch June 26, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant