feat: Remote SSH PRD: Phase 2 — Sprites provisioning - #368
Merged
Conversation
Adds the Fly Sprites ManagedComputeProvider adapter (create/get/wake/ replace/delete against the Fly Machines REST API, idempotency headers, normalized state/error mapping) plus unit tests against a mocked HTTP server. Adds a versioned, idempotent boot-manifest bootstrap script mechanism tied to instance generation. Adds the remote-instance Supabase Edge Function (ensure/status/wake/reprovision/delete/list catalogs) with server-side ownership checks, idempotency-key deduplication via remote_instance_operations, managed endpoint and host-key rotation recording, and audit event logging, plus a Deno-side stub adapter for local testing without live Fly credentials.
Contributor
|
🚀 Web preview: https://preview-368.treq-9zy.pages.dev |
This was referenced Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Phase 2 of
prds/remote-ssh.md("Sprites provisioning") on top of the merged Phase 1 domain/control-plane contracts.ManagedComputeProvideradapter (src-tauri/src/core/remote_provider_sprites.rs) with idempotent create/get/wake/replace/delete against a Fly Machines-style REST API.src-tauri/src/core/remote_bootstrap.rs): versioned, idempotent init script tied to manifest version/generation.remote-instance(ensure/status/wake/reprovision/delete/list_regions/list_sizes) with server-side ownership checks, idempotency viaremote_instance_operations, generation increments on reprovision, and audit events.REMOTE_SPRITES_STUB=1), mirroring the existingstub-github-adapter.tspattern.Known gaps
deno check/deno lintinstead.Test plan
cargo buildcargo test --lib remote_(adapter + bootstrap unit tests againstwiremock)cargo fmt --check,cargo clippy(scoped to new files, no warnings)deno check/deno linton new Edge Function filesStacked PR: Phase 3 (SSH trust and authentication) branches from this one and will retarget once this merges.
Generated by Claude Code