Skip to content

docs(plans): design the fleet web and mobile clients (ENG-922) - #227

Merged
integrate-your-mind merged 5 commits into
mainfrom
docs/eng-922-fleet-clients-plan
Oct 5, 2026
Merged

integrate-your-mind merged 5 commits into
mainfrom
docs/eng-922-fleet-clients-plan

Conversation

@lg2m

@lg2m lg2m commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Refs ENG-922.

Problem and resulting behavior

The original fleet-client proposal left security, replay, offline-command, ownership, and cross-slice dependency contracts ambiguous. This revision refreshes the docs onto current main and turns those gaps into explicit, testable contracts while remaining a planning-only change.

The plan now specifies:

  • independent credential scopes with a one-lookup hash/scope cache and a fail-closed route/command matrix;
  • authenticated health/capabilities/models access plus explicit prune, compact, rollback, and approval-delegate scope assignments;
  • browser-trusted TLS versus native certificate pinning, with CORS configured before enrollment;
  • an explicit client-reachable pairing URL from --advertised-url or server.advertised_url, including loopback plus tailscale serve, without deriving the QR URL from the listener bind;
  • one server SSE with per-workspace summary/full subscriptions, tier-matched cursor namespaces, and lossless tier transitions;
  • transcript paging across messages and tool calls plus bounded spill reads;
  • crash-safe dependent offline commands, bounded durable outboxes, and authoritative approval previews;
  • one reducer across Tauri IPC, bounded FleetPatch payloads, and tab ownership;
  • shared UI/mobile path ownership, an explicit W5-to-U4 render-model dependency, performance owners, and a five-server integration gate;
  • a held push design under decision 12 until its trust and relay model is resolved.

Scope

Documentation only. No server behavior, protocol implementation, schema migration, live-provider work, or deployment is included. Existing implementation slices remain future work.

Verification

  • independent non-author review accepted the final exact candidate, including all four later follow-up contracts and the aligned M1 narrative;
  • all 25 current review threads are resolved;
  • git diff --check;
  • focused contract assertions for advertised URLs, mixed per-workspace stream tiers/cursors, UI/mobile path ownership, and the U4/W5 dependency;
  • .github/scripts/test-exact-test.sh;
  • cargo fmt --all -- --check;
  • hosted CI on exact head 7086e5c9d53c04a0fdbe3b748ecd00bc7973699f: Linux fmt/Clippy/workspace tests, wasm32 client, and native Windows teardown all passed (release-size job correctly skipped for this docs-only change).

Current plan boundary and proposed flow — 2026-10-04

docs/plans/fleet-clients.md is the current fleet-client plan. Its Leptos CSR/Tauri 2 recommendation requires the confirmation spike before framework scaffolding. The three-session streaming, 5,000-message interaction, mobile/Safari frame-time and 600 KB Brotli bundle gates are planned acceptance, not demonstrated client behavior. The older multi-surface-clients.md remains a retained compatibility plan; historical #167/#173 spikes do not close the current mobile/bundle/protocol gates.

flowchart LR
  A["Browser tabs or desktop windows"] --> B["Proposed shared connection owner"]
  B --> C["One cache and replay/outbox state"]
  C --> D["Shared qq-client reducer and UI"]
  B --> E["QQ server HTTP and SSE"]
  E --> F["Existing session runtime"]
Loading

This PR delivers a reviewed plan, not the browser or desktop implementation. Exact-head CI passed its three required jobs; main-only release-size was skipped. All 25 review threads are resolved. No client spike, provider session, merge or deployment is claimed by this readiness pass.

Adds docs/plans/fleet-clients.md: the multi-machine experience, a
Leptos + Tauri 2 recommendation for the ADR-0017 spike, speed budgets,
and a gap analysis of the reference harnesses. Maps onto the existing
multi-surface slices and proposes S7, W4, W5 and U8. Docs only.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T04:25:48.190259Z d9f29e4 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ec5efc1613

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/fleet-clients.md Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d9f29e4224

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/fleet-clients.md Resolved
Comment thread docs/plans/multi-surface-clients.md Resolved

@integrate-your-mind integrate-your-mind left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. Docs-only fleet client plan, no runtime or schema changes, and CI is green.

@integrate-your-mind
integrate-your-mind merged commit c151be2 into main Oct 5, 2026
4 checks passed
@integrate-your-mind
integrate-your-mind deleted the docs/eng-922-fleet-clients-plan branch October 5, 2026 00:31
@lg2m

lg2m commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator Author

This was merged without approval and reverted in #246. Reopened as #248 with the same commits (author, message and content unchanged; new SHAs only because the originals are now in main history).

lg2m added a commit that referenced this pull request Oct 5, 2026
* Revert "Merge pull request #243 from retsu-AI/docs/rust-quality-skill"

This reverts commit 54a3dd5, reversing
changes made to c151be2.

* Revert "Merge pull request #227 from retsu-AI/docs/eng-922-fleet-clients-plan"

This reverts commit c151be2, reversing
changes made to 8631882.

* Revert "Merge pull request #231 from retsu-AI/docs/eng-985-decision-architecture"

This reverts commit 8631882, reversing
changes made to 2a672fe.
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.

3 participants