Skip to content

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

Closed
lg2m wants to merge 7 commits into
mainfrom
docs/eng-922-fleet-clients-plan
Closed

lg2m wants to merge 7 commits into
mainfrom
docs/eng-922-fleet-clients-plan

Conversation

@lg2m

@lg2m lg2m commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Refs ENG-922.

Problem and result

The fleet-client plan left gaps in authorization, summary replay, cache durability, task ordering and resource bounds. This replacement preserves the existing Leptos CSR/Tauri 2 proposal and repairs the eighteen current review findings as explicit future contracts.

The amended plan assigns approval requests and resolutions to the summary tier, keeps full/summary cursors separate, and defines snapshot expiry recovery. It sequences U1/W3/S7 → W4 → U5 → U6, shares apps/shell/, and assigns background fetch/local-notification tests to M3 while remote push remains held.

Enrollment returns granted scopes. Run-only credentials can use ReadOnly/Ask within the server ceiling; Auto/Full and authority loosening require approve. Workspace resolution requires run/read because it is journaled. Revocation fences stream admission, durably records revocation, and drains active SSE before acknowledgement with a bounded pending/retry result. Native self-signed enrollment validates the QR certificate pin before its first HTTPS exchange; browsers retain their trust validation.

Subscriptions, summary snapshots, cached bodies, trusted endpoint sets and IPC queues have explicit count/byte limits. Projection/cursor/approval-preview writes are atomic. S5 owns a bounded authoritative run listing, and FleetPatch replacement uses bounded revisioned chunks with atomic apply.

Scope

Planning Markdown and proposed ADR0015 only. No fleet runtime, enrollment route, client UI, protocol implementation, migration, framework change or deployment. Credential-storage decision6 remains open; remote-push decision12 remains held. The confirmation spike and browser/mobile performance gates remain future acceptance.

Current verification

Candidate 1df63e26634f85dd9337811ab34aaca40fad8a58 normally integrates main 03077dfaad966f6b69a5e1984ae7826c864126fa and preserves published replacement f43d3e6d47374405d396c3235cefea3b06410892.

  • Independent non-author source and evidence review accepted all eighteen findings at this exact candidate as future planning contracts.
  • A repeatable checker parsed the complete task table: 27 nodes, 50 edges, zero cycles, nine required edges and ten matching section-input declarations. Three relative Markdown links across four edited files resolve.
  • git diff --check, git show --check, both ancestor checks and a clean worktree passed.
  • Hosted CI on this exact head passed all three required jobs: Linux formatting/Clippy/default-workspace and minimal-core tests/embedding, wasm client, and native Windows teardown. Main-only release-size is skipped.
  • All eighteen supported original review threads are resolved.
  • Full checker source, raw stdout, original eighteen comments, dispositions and integration identity are retained in the existing manager review packet.

The copied October4 receipts and twenty-five original #227 thread dispositions describe their historical source only. They do not qualify this replacement head. No unchanged local Rust suite, future feature fixture, benchmark or provider call was run for this documentation-only repair.

Proposed client flow

flowchart LR
  A[Browser or shared Tauri shell] --> B[One connection owner]
  B --> C[Durable cache and command outbox]
  C --> D[Shared reducer and UI]
  B --> E[QQ HTTP and SSE]
  E --> F[Existing session runtime]
Loading

This delivers a reviewable plan. It does not establish implemented clients, measured performance, merge, deployment or customer acceptance.

lg2m and others added 4 commits October 5, 2026 03:08
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.
@lg2m

lg2m commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator Author

Reopens #227, which was merged without approval and reverted in #246.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 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-05T03:22:55.141804Z f43d3e6 PR opened
ℹ️ 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: f43d3e6d47

ℹ️ 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/multi-surface-clients.md Resolved
Comment thread docs/plans/multi-surface-clients.md Resolved
Comment thread docs/plans/multi-surface-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
@lg2m lg2m closed this Oct 16, 2026
@lg2m
lg2m deleted the docs/eng-922-fleet-clients-plan branch October 16, 2026 03:40
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.

2 participants