[GH-ISSUE #2050] 3. Remote runtime parity #1000

Closed
opened 2026-10-21 05:24:59 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Xelvanis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2050

Originally assigned to: @Promansis on GitHub.

Target 3: Remote Runtime Parity

target: 3
name: Remote runtime parity
scan_status: reported
parity_verdict: on_par
proof_level: focused_test
scan_refactor: origin/refactor e4d58f88 current closure rescan after Target 3 follow-ups closed
legacy_ref: v1.6.1 server/client runtime behavior
report: https://github.com/Pasta-Devs/Marinara-Engine/issues/1904#issuecomment-4600978411
last_refreshed: 2026-06-04

Scope

Included:

  • Remote command surface.
  • Embedded vs hostable command drift.
  • Security guard shape.
  • Haptics remote policy and support/unsupported contract.
  • Remote import progress events.
  • Remote runtime URL, health, and web-shell bootstrap behavior.
  • Dedicated HTTP routes for streams, managed assets, imports, and LLM cancellation.
  • Remote payload, error, upload, download, and desktop-only fallback contracts.

Not checked:

  • Live browser web-shell run against a running remote server with Basic Auth, bad-runtime setup, and new-chat creation.
  • Native haptic hardware/device pass; Remote Runtime haptics are intentionally unsupported and documented as a divergence.
  • Live repeated-request or oversized-body repro against a running hostable server; batch 10 used focused Rust/client tests and static trace for rate/body/cache policy.
  • Full sidecar provider/inference parity outside the retained /api/sidecar/v1/embeddings compatibility route.

Surface Inventory

Surface ID Surface Bucket Source Legacy owner Refactor owner In scope Notes
03-REMOTE-REMOTE-contract-command-surface Remote allowlist and HTTP dispatcher parity for callable runtime commands, minus documented local-only commands. REMOTE both packages/server/src/routes/*; packages/client/src/lib/api-client.ts; feature API calls src/shared/api/remote-runtime.ts; src-tauri/src/http_dispatch.rs; src-tauri/src/http_server.rs yes Existing command-surface proof is broad; rescan should include storage/profile/import/custom-tool argument and response shapes plus non-remote command exclusions.
03-REMOTE-CONTRACT-runtime-url-auth-normalization Remote Runtime URL trimming/normalization, Basic Auth extraction, CSRF header injection, and invalid URL errors. CONTRACT refactor_only none found; legacy same-origin web client used /api/* directly src/shared/api/remote-runtime.ts; src/shared/stores/ui.store.ts; src/shared/stores/ui/persistence.ts yes Web-shell-specific contract. Include persisted trimmed URL and credentials stripped from base URL.
03-REMOTE-API-client-dispatch-selection Shared client dispatch chooses remote /api/invoke, embedded Tauri IPC, or a visible shell-required failure. API refactor_only none found; legacy used direct HTTP routes src/shared/api/tauri-client.ts; src/shared/api/remote-runtime.ts yes Separate from Rust allowlist parity; client routing can drift independently.
03-REMOTE-ERROR-desktop-only-command-failures Desktop-only commands fail visibly in web-shell/remote mode instead of silently no-oping or fake succeeding. ERROR refactor_only legacy direct server routes where available src/shared/api/tauri-client.ts; src/shared/api/profile-api.ts; src/shared/api/integration-gateway.ts; src-tauri/src/http_dispatch.rs yes Includes native channels, open-folder/file-path helpers, local path import, and haptic/device commands.
03-REMOTE-REMOTE-health-storage-readiness Remote health/readiness proves Marinara runtime identity, writable data storage, and /api/invoke storage_list availability. REMOTE both legacy /api/health in packages/server/src/app.ts src-tauri/src/http_server.rs; src/shared/api/remote-runtime.ts; src/app/startup/remote-runtime-health.ts yes Refactor adds writable and invoke smoke checks beyond legacy health identity.
03-REMOTE-UI-startup-settings-health Startup and Settings surface invalid/unreachable/not-writable remote runtime state with health status and Admin Access storage. UI refactor_only legacy same-origin app boot plus Settings admin secret storage src/app/startup/remote-runtime-health.ts; src/features/shell/settings/components/SettingsPanel.tsx; src/shared/api/remote-runtime.ts yes Include browser-local marinara-admin-secret, lazy health dot/message, and one-time startup warning.
03-REMOTE-UI-web-shell-new-chat-gate Web-shell checks Remote Runtime URL and readiness, then reads remote connections before chat creation. UI refactor_only none found; legacy server was always same-origin src/app/shell/useStartNewChat.ts; src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx; src/shared/api/storage-api.ts; src/shared/api/remote-runtime.ts yes User-visible bootstrap surface for remote-only browser sessions.
03-REMOTE-API-dedicated-route-topology Dedicated HTTP routes stay mapped for streams, managed assets, imports, LLM streaming/cancel, and sidecar embeddings outside /api/invoke. API both legacy Fastify /api/* route topology src-tauri/src/http_server.rs; src/shared/api/remote-runtime.ts; src/shared/api/local-file-api.ts; src/shared/api/llm-api.ts; src/shared/api/import-api.ts yes Target must not only count invoke commands.
03-REMOTE-CONTRACT-command-args-responses Contract-bearing remote commands preserve request/response shape across storage, profile, import, custom tool, provider, and asset flows. CONTRACT both legacy route bodies/responses and API client calls src/shared/api/*-api.ts; src-tauri/src/http_dispatch.rs; focused Rust command modules yes Existing broad row did not force payload-level parity.
03-REMOTE-ERROR-http-error-envelope Remote HTTP failures expose stable status/code/message/details and retry metadata through client ApiError. ERROR both legacy error handler plus packages/client/src/lib/api-client.ts src-tauri/src/http_server.rs; src/shared/api/remote-runtime.ts; src/shared/api/api-errors.ts yes Include 400/401/403/404/409/429/500 and SSE error events where relevant.
03-REMOTE-REMOTE-basic-ip-auth Hostable remote access gates loopback, Basic Auth, IP allowlist, trusted private-network opt-ins, and explicit unauthenticated bypasses. REMOTE both packages/server/src/middleware/basic-auth.ts; ip-allowlist.ts src-tauri/src/http_server.rs yes Include negative controls for non-loopback and near-miss allowlist IPs.
03-REMOTE-REMOTE-csrf-origin-trust Browser unsafe /api/* requests require trusted origin/referer plus CSRF proof; wildcard CORS does not grant write trust. REMOTE both packages/server/src/middleware/csrf-protection.ts; csrf-diagnostics.routes.ts; client CSRF fetch/API client src-tauri/src/http_server.rs; src/shared/api/remote-runtime.ts yes Legacy had a diagnostic route; refactor diagnostic equivalent is unclear and should be checked.
03-REMOTE-REMOTE-privileged-command-admin Privileged remote commands require Admin Access off-loopback and fail closed when the runtime lacks or rejects the secret. REMOTE both packages/server/src/middleware/privileged-gate.ts; privileged route callers src/shared/api/remote-runtime.ts; src-tauri/src/http_server.rs; src-tauri/src/commands/storage/admin.rs yes Covers profile import/export, backup create/delete/download, directory listing, bulk import run, update apply, clear/expunge.
03-REMOTE-RUNTIME-llm-sse-stream-cancel Remote LLM streaming preserves SSE token/error/done semantics and cancel behavior. RUNTIME both legacy /api/generate SSE and abort routes src/shared/api/llm-api.ts; src/shared/api/remote-runtime.ts; src-tauri/src/http_server.rs; src-tauri/src/commands/storage/llm.rs yes Separate from non-stream llm_complete allowlist coverage.
03-REMOTE-COMPAT-st-bulk-folder-progress SillyTavern bulk import supports scan/run, folder tokens, folder browser/listing, progress/done/error events, and asset invalidation. COMPAT both packages/server/src/routes/import.routes.ts; legacy import modal src/shared/api/import-api.ts; src/features/shell/imports/components/STBulkImportModal.tsx; src-tauri/src/http_server.rs; src-tauri/src/commands/storage/imports/* yes Existing row mentioned progress only; rescan should include token/root restrictions and remote event terminal states.
03-REMOTE-STORAGE-import-directory-token-roots Remote import directory browsing/listing is gated to approved roots/tokens and cannot enumerate arbitrary filesystem paths. STORAGE both legacy list-directory, pick-folder, and folder token flow src-tauri/src/http_dispatch.rs; src-tauri/src/commands/storage/imports/access.rs; src-tauri/src/commands/storage/imports/service.rs yes Privileged filesystem surface; needs should-not-match path rows.
03-REMOTE-ASSET-managed-asset-serving Remote serves avatars, avatar thumbnails, backgrounds, fonts, gallery, game assets, lorebook images, sprites, and managed thumbnails over HTTP. ASSET both legacy /api/*/file routes and static asset services src/shared/api/local-file-api.ts; src-tauri/src/http_server.rs; src-tauri/src/http_dispatch.rs yes Refactor consolidates many legacy file routes into /api/assets/:kind/*path.
03-REMOTE-ASSET-asset-auth-cache-invalidation Authenticated remote assets fetch blobs, cache object URLs, and invalidate/cache-bust mutated asset kinds. ASSET refactor_only legacy direct same-origin asset URLs and browser cache policy src/shared/api/local-file-api.ts; mutating shared API wrappers; src-tauri/src/http_server.rs yes Include mriAssetV, object URL revoke, Basic Auth asset fetch, MIME, cache-control, and ETag.
03-REMOTE-ASSET-asset-path-sanitization Remote asset routes reject traversal, colon paths, invalid thumbnail sizes, unknown kinds, and unsupported collections. ASSET both legacy file route sanitization and asset services src-tauri/src/http_server.rs; asset route tests yes Security-sensitive path surface; rescan needs negative controls.
03-REMOTE-COMPAT-upload-download-payloads Remote import/export/download paths translate browser files and binary exports without local filesystem path assumptions. COMPAT both legacy multipart uploads/download endpoints src/shared/api/file-payload.ts; src/shared/api/download-payload.ts; src/shared/api/import-api.ts; src/shared/api/export-api.ts; profile/backup APIs yes Includes base64 upload payloads, download filename/contentType fields, and local-path import rejection.
03-REMOTE-STORAGE-generic-storage-projection Remote generic storage preserves list/get projections, field selections, message active-swipe projection, pagination, and cursor behavior. STORAGE both legacy storage services and resource routes src/engine/capabilities/storage.ts; src/shared/api/storage-api.ts; src-tauri/src/commands/storage/commands/entities.rs; src-tauri/src/http_dispatch.rs yes Hot path; existing command-surface proof does not prove payload shape or performance.
03-REMOTE-STORAGE-mutation-side-effects Remote storage mutations preserve embedded side effects, protected defaults, relation cleanup, and tracker cleanup. STORAGE both legacy storage services/routes src-tauri/src/commands/storage/commands/entities.rs; src-tauri/src/http_dispatch.rs; focused storage modules yes Includes connection default clearing, protected default preset fields, and tracker snapshot cleanup on message delete.
03-REMOTE-RUNTIME-haptic-remote-policy Remote mode has an explicit haptic policy: either supported with guard parity or visibly unsupported without executing device commands. RUNTIME both legacy packages/server/src/routes/haptic.routes.ts; haptic service and hooks src/shared/api/integration-gateway.ts; src/shared/api/haptics-api.ts; src-tauri/src/http_dispatch.rs; src-tauri/src/commands/storage/integrations/haptic.rs yes Current refactor code marks haptics as non-remote/device-bound; rescan should reconcile with closed #1921 wording.
03-REMOTE-RUNTIME-custom-tool-execution-contract Remote custom tool execution preserves static/webhook behavior, disables script execution safely, and applies URL/security gates. RUNTIME both legacy custom tool routes and tool executor src/shared/api/custom-tool-api.ts; src-tauri/src/http_dispatch.rs; src-tauri/src/commands/storage/custom_tools.rs; src/shared/api/integration-gateway.ts yes Agent/tool parity surface, not only command presence.
03-REMOTE-PERF-api-abuse-body-cache-policy Remote runtime preserves abuse controls and cache/body policies for hot or privileged HTTP paths. PERF both packages/server/src/middleware/rate-limit.ts; packages/server/src/app.ts body limit and no-store API send hook src-tauri/src/http_server.rs; src/shared/api/remote-runtime.ts yes Current focused proof covers rate limits, retry metadata, body/upload limits, profile-upload exception, and no-store JSON API policy.
03-REMOTE-RUNTIME-sidecar-runtime-manager Sidecar runtime/model install, download, restart, unload, delete, and progress streams have a remote policy. RUNTIME legacy_only legacy packages/server/src/routes/sidecar.routes.ts; packages/client/src/stores/sidecar.store.ts docs/developer/run-build.html; src-tauri/src/http_server.rs; src-tauri/src/commands/storage/llm.rs yes Intentional divergence: Node-era managed sidecar is retired; only the embeddings compatibility route remains.
03-REMOTE-RUNTIME-sidecar-inference-endpoints Sidecar embeddings, scene analysis, tracker, and test-message endpoints have hostable contracts. RUNTIME both legacy sidecar routes and local-sidecar provider src-tauri/src/http_server.rs; src-tauri/src/commands/storage/llm.rs; sidecar/LLM modules later Target 3 covers only the retained embeddings compatibility route; broader inference parity belongs to provider/sidecar targets.
03-REMOTE-API-spotify-remote-oauth-open Remote Spotify OAuth opens externally/paste-back when desktop callback flow cannot run locally. API both legacy Spotify routes and client API calls src/shared/api/integration-utility-api.ts; src/shared/api/external-link-api.ts; Spotify Rust integration modules later Better scanned with provider/config target, but remote host behavior can affect Target 3 users.

Coverage Matrix

Surface ID Status Proof Follow-up
03-REMOTE-REMOTE-contract-command-surface refactor_better Current command-surface focused test passes and keeps documented non-remote commands excluded. none
03-REMOTE-CONTRACT-runtime-url-auth-normalization refactor_better Static trace preserves URL trimming, Basic Auth extraction, CSRF header injection, and invalid URL errors. none
03-REMOTE-API-client-dispatch-selection scanned_no_gap_found Static trace plus remote-runtime client tests cover remote fetch options and invoke routing. none
03-REMOTE-ERROR-desktop-only-command-failures scanned_no_gap_found Static trace confirms desktop-only/local-path/device operations fail visibly or remain excluded from remote command dispatch. none
03-REMOTE-REMOTE-health-storage-readiness refactor_better Focused writable-health proof passes and health remains stronger than legacy identity-only health. none
03-REMOTE-UI-startup-settings-health refactor_better Static trace keeps startup and Settings on the shared health/readiness contract. none
03-REMOTE-UI-web-shell-new-chat-gate scanned_no_gap_found Static trace shows useStartNewChat and NewChatConnectionGate now check remote health before storage connection reads; #2061 is closed. #2061 closed
03-REMOTE-API-dedicated-route-topology scanned_no_gap_found Static trace covers streams, managed assets, imports, LLM stream/cancel, profile import, and sidecar embeddings dedicated routes. none
03-REMOTE-CONTRACT-command-args-responses scanned_no_gap_found Static trace plus focused dispatch/storage/custom-tool proof covers named argument extraction and response/error shapes. none
03-REMOTE-ERROR-http-error-envelope scanned_no_gap_found Focused tests pass for 429 retry metadata and storage-unavailable io_error to 503 mapping; uncategorized I/O stays 500. #2060/#2068 closed
03-REMOTE-REMOTE-basic-ip-auth refactor_better Fresh focused hostable security tests pass for Basic Auth, loopback, non-loopback, and allowlist negative controls. none
03-REMOTE-REMOTE-csrf-origin-trust refactor_better Fresh focused hostable security tests pass for exact origin trust, CSRF header requirement, untrusted origins, and wildcard CORS negative control. none
03-REMOTE-REMOTE-privileged-command-admin scanned_no_gap_found Focused Admin Access tests pass, including import_st_bulk_scan; #2058 is closed. #2058/#1920 closed
03-REMOTE-RUNTIME-llm-sse-stream-cancel scanned_no_gap_found Static trace plus command-surface proof covers stream/cancel route topology; live SSE browser repro was not run. none
03-REMOTE-COMPAT-st-bulk-folder-progress scanned_no_gap_found Existing focused bulk import progress proof remains valid; scan/run route protections now include Admin Access and rate limits. #1922/#2058 closed
03-REMOTE-STORAGE-import-directory-token-roots scanned_no_gap_found Focused directory-listing negative proof remains valid for token/root restrictions. none
03-REMOTE-ASSET-managed-asset-serving refactor_better Static trace plus focused managed asset/header/path proof remains valid. none
03-REMOTE-ASSET-asset-auth-cache-invalidation scanned_no_gap_found Static trace plus managed asset header proof covers auth blob fetch and cache invalidation contracts; no live browser Basic Auth run. #2057 remains asset-target context
03-REMOTE-ASSET-asset-path-sanitization scanned_no_gap_found Focused asset path and thumbnail negative tests remain valid. none
03-REMOTE-COMPAT-upload-download-payloads scanned_no_gap_found Static trace plus focused profile/backup/import upload/download tests cover browser-safe payload translation; profile large-upload detail is tracked by Target 2. Target 2 #2108 context
03-REMOTE-STORAGE-generic-storage-projection refactor_better Focused projection proof remains valid for list/get projections and message active-swipe materialization. none
03-REMOTE-STORAGE-mutation-side-effects scanned_no_gap_found Static trace plus focused remote mutation side-effect proof remains valid. none
03-REMOTE-RUNTIME-haptic-remote-policy intentional_divergence Remote mode visibly reports haptics unsupported/disconnected and does not execute device commands; divergence is now documented in the parity pipeline. #1921 closed
03-REMOTE-RUNTIME-custom-tool-execution-contract refactor_better Focused custom-tool tests pass; static and webhook execution remain supported while script execution is intentionally unsupported. none
03-REMOTE-PERF-api-abuse-body-cache-policy scanned_no_gap_found Focused tests pass for API rate limits, retry headers, command-specific dispatch limits, explicit body limits, profile-upload exception, and API no-store headers; #2059/#2068/#2069/#2070 are closed. #2059/#2068/#2069/#2070 closed
03-REMOTE-RUNTIME-sidecar-runtime-manager intentional_divergence Managed Node-era sidecar runtime is intentionally retired; the retained compatibility route is /api/sidecar/v1/embeddings backed by configured embedding connections. Provider/connection target if reopened
03-REMOTE-RUNTIME-sidecar-inference-endpoints scanned_no_gap_found Sidecar embeddings compatibility route accepts OpenAI-style input; scene analysis, tracker, and test-message parity remain outside Target 3. later provider/sidecar target
03-REMOTE-API-spotify-remote-oauth-open scanned_no_gap_found Static trace shows remote client opens auth URL and paste-back fallback covers loopback callback failures; full provider config parity remains later. later provider-config target

Follow-Ups

Issue State Why it matters
#1920 closed Privileged remote commands require Admin Access guard parity.
#1921 closed Haptic remote runtime policy resolved as documented intentional divergence.
#1922 closed Remote bulk import progress is preserved.
#2058 closed import_st_bulk_scan now requires Admin Access like bulk run.
#2059 closed Hostable API abuse/body/cache policy umbrella is resolved by focused follow-ups.
#2060 closed Storage-unavailable io_error cases now map to 503-class HTTP responses.
#2061 closed Web-shell new-chat setup now checks remote health/readiness before connection reads.
#2063 closed Admin Access reads/migrates the legacy marinara_admin_secret browser key.
#2068 closed Hostable Remote Runtime now has API rate limits and retry metadata.
#2069 closed Hostable Remote Runtime now has explicit body/upload size limits and profile-upload exception.
#2070 closed Remote Runtime JSON API paths now apply no-store cache policy.

Current Closure Rescan - 2026-06-04

Base: Refactor origin/refactor / current checkout e4d58f88; legacy reference remains v1.6.1 server/client runtime behavior.

Outcome:

  • Target 3 is now on_par at focused-test proof level for the scanned remote-runtime scope.
  • All previously listed Target 3 follow-ups are closed: #2058, #2059, #2060, #2061, #2063, #2068, #2069, and #2070.
  • The haptic remote policy and managed local sidecar removal are intentional divergences and are now recorded in docs/REFACTOR_PARITY_PIPELINE.md.
  • The superseded-history summary below records that earlier scan slices existed without carrying their stale gap classifications forward.

Current proof run:

  • cargo test --manifest-path src-tauri/Cargo.toml remote_runtime_command_surfaces_match_desktop_minus_documented_non_remote_commands passed: 1 test.
  • cargo test --manifest-path src-tauri/Cargo.toml hostable_security_ passed: 12 tests.
  • cargo test --manifest-path src-tauri/Cargo.toml remote_st_bulk_scan_requires_admin_access passed: 1 test.
  • cargo test --manifest-path src-tauri/Cargo.toml api_no_store_headers_apply_only_to_api_responses passed: 1 test.
  • cargo test --manifest-path src-tauri/Cargo.toml api_body_size passed: 4 tests.
  • cargo test --manifest-path src-tauri/Cargo.toml api_rate_limiter passed: 2 tests.
  • cargo test --manifest-path src-tauri/Cargo.toml api_invoke_enforces_command_specific_rate_limit_at_dispatch_boundary passed: 1 test.
  • cargo test --manifest-path src-tauri/Cargo.toml io_errors_map_to_storage_unavailable_http_status passed: 3 matched tests.
  • cargo test --manifest-path src-tauri/Cargo.toml locked_database_io_errors_map_to_storage_unavailable_http_status passed: 1 test.
  • cargo test --manifest-path src-tauri/Cargo.toml message_only_storage_io_errors_map_to_storage_unavailable_http_status passed: 1 test.
  • cargo test --manifest-path src-tauri/Cargo.toml uncategorized_io_errors_keep_internal_server_error_status passed: 1 test.
  • cargo test --manifest-path src-tauri/Cargo.toml health_probe_reports_writable_storage_and_cleans_up passed: 1 test.
  • cargo test --manifest-path src-tauri/Cargo.toml sidecar_embedding_inputs_accept_openai_style_inputs passed: 1 test.
  • cargo test --manifest-path src-tauri/Cargo.toml custom_tool passed: 9 tests.
  • pnpm exec vitest run src/shared/api/remote-runtime.test.ts passed: 1 file, 5 tests.

Still not proven in this refresh:

  • Live browser web-shell pass against a real remote server.
  • Native haptic hardware pass; remote haptics are intentionally unsupported.
  • Full sidecar/provider inference parity beyond the retained embeddings compatibility route.

Historical Scan Slices Superseded - 2026-06-04

Earlier Target 3 scan slices found the follow-ups that this issue used to track: #2058, #2059, #2060, #2061, #2063, #2068, #2069, and #2070. All are now closed, and the current header, Coverage Matrix, Follow-Ups table, and Current Closure Rescan above are the source of truth for this detail issue.

Preserved historical proof commands remain below for traceability, but older gap classifications from the first scan are intentionally not repeated here because they are stale after the current closure rescan.

Proof Recorded In Report

cargo test --manifest-path src-tauri/Cargo.toml remote_runtime_command_surfaces_match_desktop_minus_documented_non_remote_commands
cargo test --manifest-path src-tauri/Cargo.toml hostable_security_
cargo test --manifest-path src-tauri/Cargo.toml directory_listing_does_not_treat_picker_selected_as_unrestricted_access
cargo test --manifest-path src-tauri/Cargo.toml health_probe_reports_writable_storage_and_cleans_up
cargo test --manifest-path src-tauri/Cargo.toml sidecar_embedding_inputs_accept_openai_style_inputs
cargo test --manifest-path src-tauri/Cargo.toml managed_asset_headers_include_cache_and_validation_metadata
cargo test --manifest-path src-tauri/Cargo.toml asset_path
cargo test --manifest-path src-tauri/Cargo.toml managed_thumbnail
cargo test --manifest-path src-tauri/Cargo.toml load_url_binary_reads_managed_asset_urls
cargo test --manifest-path src-tauri/Cargo.toml run_st_bulk_import_continues_after_stale_selected_items
cargo test --manifest-path src-tauri/Cargo.toml hostable_security_requires_admin_access_for_remote_backup_list
cargo test --manifest-path src-tauri/Cargo.toml avatar_asset_filename_rejects_parent_directory_tokens
cargo test --manifest-path src-tauri/Cargo.toml sprite_asset_path_rejects_path_tokens
cargo test --manifest-path src-tauri/Cargo.toml dispatch_storage_
cargo test --manifest-path src-tauri/Cargo.toml dispatch_storage_list_uses_projected_message_reads
cargo test --manifest-path src-tauri/Cargo.toml list_projected
cargo test --manifest-path src-tauri/Cargo.toml profile_import
cargo test --manifest-path src-tauri/Cargo.toml create_list_download_delete_managed_backup
cargo test --manifest-path src-tauri/Cargo.toml custom_tool
cargo test --manifest-path src-tauri/crates/storage/Cargo.toml get_projected
cargo test --manifest-path src-tauri/crates/storage/Cargo.toml list_projected

Rescan Criteria

Target 3 is on_par for the current scanned scope at origin/refactor e4d58f88.

Rescan if any of these areas change:

  • Remote command allowlist or /api/invoke dispatch shape.
  • Hostable HTTP security, Admin Access, rate-limit, body-limit, no-store, or error-envelope code.
  • Remote Runtime client URL normalization, Basic Auth, CSRF, retry metadata, cache policy, or Admin Access storage migration.
  • Web-shell new-chat readiness, Settings health, or startup remote-health behavior.
  • Dedicated routes for LLM stream/cancel, ST bulk import, profile import/upload, managed assets, or sidecar embeddings.
  • Intentional divergence boundaries for remote haptics, script custom tools, or managed local sidecar runtime.

Manual proof still useful before a release:

  • Browser web-shell pass against a real remote server with Basic Auth/Admin Access.
  • Live large upload/download and repeated-request behavior against a running hostable server.
  • Native haptic hardware behavior in embedded Tauri mode.
Originally created by @Xelvanis on GitHub (Jun 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2050 Originally assigned to: @Promansis on GitHub. # Target 3: Remote Runtime Parity ```yaml target: 3 name: Remote runtime parity scan_status: reported parity_verdict: on_par proof_level: focused_test scan_refactor: origin/refactor e4d58f88 current closure rescan after Target 3 follow-ups closed legacy_ref: v1.6.1 server/client runtime behavior report: https://github.com/Pasta-Devs/Marinara-Engine/issues/1904#issuecomment-4600978411 last_refreshed: 2026-06-04 ``` ## Scope Included: - Remote command surface. - Embedded vs hostable command drift. - Security guard shape. - Haptics remote policy and support/unsupported contract. - Remote import progress events. - Remote runtime URL, health, and web-shell bootstrap behavior. - Dedicated HTTP routes for streams, managed assets, imports, and LLM cancellation. - Remote payload, error, upload, download, and desktop-only fallback contracts. Not checked: - Live browser web-shell run against a running remote server with Basic Auth, bad-runtime setup, and new-chat creation. - Native haptic hardware/device pass; Remote Runtime haptics are intentionally unsupported and documented as a divergence. - Live repeated-request or oversized-body repro against a running hostable server; batch 10 used focused Rust/client tests and static trace for rate/body/cache policy. - Full sidecar provider/inference parity outside the retained `/api/sidecar/v1/embeddings` compatibility route. ## Surface Inventory | Surface ID | Surface | Bucket | Source | Legacy owner | Refactor owner | In scope | Notes | | --- | --- | --- | --- | --- | --- | --- | --- | | 03-REMOTE-REMOTE-contract-command-surface | Remote allowlist and HTTP dispatcher parity for callable runtime commands, minus documented local-only commands. | REMOTE | both | `packages/server/src/routes/*`; `packages/client/src/lib/api-client.ts`; feature API calls | `src/shared/api/remote-runtime.ts`; `src-tauri/src/http_dispatch.rs`; `src-tauri/src/http_server.rs` | yes | Existing command-surface proof is broad; rescan should include storage/profile/import/custom-tool argument and response shapes plus non-remote command exclusions. | | 03-REMOTE-CONTRACT-runtime-url-auth-normalization | Remote Runtime URL trimming/normalization, Basic Auth extraction, CSRF header injection, and invalid URL errors. | CONTRACT | refactor_only | none found; legacy same-origin web client used `/api/*` directly | `src/shared/api/remote-runtime.ts`; `src/shared/stores/ui.store.ts`; `src/shared/stores/ui/persistence.ts` | yes | Web-shell-specific contract. Include persisted trimmed URL and credentials stripped from base URL. | | 03-REMOTE-API-client-dispatch-selection | Shared client dispatch chooses remote `/api/invoke`, embedded Tauri IPC, or a visible shell-required failure. | API | refactor_only | none found; legacy used direct HTTP routes | `src/shared/api/tauri-client.ts`; `src/shared/api/remote-runtime.ts` | yes | Separate from Rust allowlist parity; client routing can drift independently. | | 03-REMOTE-ERROR-desktop-only-command-failures | Desktop-only commands fail visibly in web-shell/remote mode instead of silently no-oping or fake succeeding. | ERROR | refactor_only | legacy direct server routes where available | `src/shared/api/tauri-client.ts`; `src/shared/api/profile-api.ts`; `src/shared/api/integration-gateway.ts`; `src-tauri/src/http_dispatch.rs` | yes | Includes native channels, open-folder/file-path helpers, local path import, and haptic/device commands. | | 03-REMOTE-REMOTE-health-storage-readiness | Remote health/readiness proves Marinara runtime identity, writable data storage, and `/api/invoke storage_list` availability. | REMOTE | both | legacy `/api/health` in `packages/server/src/app.ts` | `src-tauri/src/http_server.rs`; `src/shared/api/remote-runtime.ts`; `src/app/startup/remote-runtime-health.ts` | yes | Refactor adds writable and invoke smoke checks beyond legacy health identity. | | 03-REMOTE-UI-startup-settings-health | Startup and Settings surface invalid/unreachable/not-writable remote runtime state with health status and Admin Access storage. | UI | refactor_only | legacy same-origin app boot plus Settings admin secret storage | `src/app/startup/remote-runtime-health.ts`; `src/features/shell/settings/components/SettingsPanel.tsx`; `src/shared/api/remote-runtime.ts` | yes | Include browser-local `marinara-admin-secret`, lazy health dot/message, and one-time startup warning. | | 03-REMOTE-UI-web-shell-new-chat-gate | Web-shell checks Remote Runtime URL and readiness, then reads remote connections before chat creation. | UI | refactor_only | none found; legacy server was always same-origin | `src/app/shell/useStartNewChat.ts`; `src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx`; `src/shared/api/storage-api.ts`; `src/shared/api/remote-runtime.ts` | yes | User-visible bootstrap surface for remote-only browser sessions. | | 03-REMOTE-API-dedicated-route-topology | Dedicated HTTP routes stay mapped for streams, managed assets, imports, LLM streaming/cancel, and sidecar embeddings outside `/api/invoke`. | API | both | legacy Fastify `/api/*` route topology | `src-tauri/src/http_server.rs`; `src/shared/api/remote-runtime.ts`; `src/shared/api/local-file-api.ts`; `src/shared/api/llm-api.ts`; `src/shared/api/import-api.ts` | yes | Target must not only count invoke commands. | | 03-REMOTE-CONTRACT-command-args-responses | Contract-bearing remote commands preserve request/response shape across storage, profile, import, custom tool, provider, and asset flows. | CONTRACT | both | legacy route bodies/responses and API client calls | `src/shared/api/*-api.ts`; `src-tauri/src/http_dispatch.rs`; focused Rust command modules | yes | Existing broad row did not force payload-level parity. | | 03-REMOTE-ERROR-http-error-envelope | Remote HTTP failures expose stable status/code/message/details and retry metadata through client `ApiError`. | ERROR | both | legacy error handler plus `packages/client/src/lib/api-client.ts` | `src-tauri/src/http_server.rs`; `src/shared/api/remote-runtime.ts`; `src/shared/api/api-errors.ts` | yes | Include 400/401/403/404/409/429/500 and SSE error events where relevant. | | 03-REMOTE-REMOTE-basic-ip-auth | Hostable remote access gates loopback, Basic Auth, IP allowlist, trusted private-network opt-ins, and explicit unauthenticated bypasses. | REMOTE | both | `packages/server/src/middleware/basic-auth.ts`; `ip-allowlist.ts` | `src-tauri/src/http_server.rs` | yes | Include negative controls for non-loopback and near-miss allowlist IPs. | | 03-REMOTE-REMOTE-csrf-origin-trust | Browser unsafe `/api/*` requests require trusted origin/referer plus CSRF proof; wildcard CORS does not grant write trust. | REMOTE | both | `packages/server/src/middleware/csrf-protection.ts`; `csrf-diagnostics.routes.ts`; client CSRF fetch/API client | `src-tauri/src/http_server.rs`; `src/shared/api/remote-runtime.ts` | yes | Legacy had a diagnostic route; refactor diagnostic equivalent is unclear and should be checked. | | 03-REMOTE-REMOTE-privileged-command-admin | Privileged remote commands require Admin Access off-loopback and fail closed when the runtime lacks or rejects the secret. | REMOTE | both | `packages/server/src/middleware/privileged-gate.ts`; privileged route callers | `src/shared/api/remote-runtime.ts`; `src-tauri/src/http_server.rs`; `src-tauri/src/commands/storage/admin.rs` | yes | Covers profile import/export, backup create/delete/download, directory listing, bulk import run, update apply, clear/expunge. | | 03-REMOTE-RUNTIME-llm-sse-stream-cancel | Remote LLM streaming preserves SSE token/error/done semantics and cancel behavior. | RUNTIME | both | legacy `/api/generate` SSE and abort routes | `src/shared/api/llm-api.ts`; `src/shared/api/remote-runtime.ts`; `src-tauri/src/http_server.rs`; `src-tauri/src/commands/storage/llm.rs` | yes | Separate from non-stream `llm_complete` allowlist coverage. | | 03-REMOTE-COMPAT-st-bulk-folder-progress | SillyTavern bulk import supports scan/run, folder tokens, folder browser/listing, progress/done/error events, and asset invalidation. | COMPAT | both | `packages/server/src/routes/import.routes.ts`; legacy import modal | `src/shared/api/import-api.ts`; `src/features/shell/imports/components/STBulkImportModal.tsx`; `src-tauri/src/http_server.rs`; `src-tauri/src/commands/storage/imports/*` | yes | Existing row mentioned progress only; rescan should include token/root restrictions and remote event terminal states. | | 03-REMOTE-STORAGE-import-directory-token-roots | Remote import directory browsing/listing is gated to approved roots/tokens and cannot enumerate arbitrary filesystem paths. | STORAGE | both | legacy `list-directory`, `pick-folder`, and folder token flow | `src-tauri/src/http_dispatch.rs`; `src-tauri/src/commands/storage/imports/access.rs`; `src-tauri/src/commands/storage/imports/service.rs` | yes | Privileged filesystem surface; needs should-not-match path rows. | | 03-REMOTE-ASSET-managed-asset-serving | Remote serves avatars, avatar thumbnails, backgrounds, fonts, gallery, game assets, lorebook images, sprites, and managed thumbnails over HTTP. | ASSET | both | legacy `/api/*/file` routes and static asset services | `src/shared/api/local-file-api.ts`; `src-tauri/src/http_server.rs`; `src-tauri/src/http_dispatch.rs` | yes | Refactor consolidates many legacy file routes into `/api/assets/:kind/*path`. | | 03-REMOTE-ASSET-asset-auth-cache-invalidation | Authenticated remote assets fetch blobs, cache object URLs, and invalidate/cache-bust mutated asset kinds. | ASSET | refactor_only | legacy direct same-origin asset URLs and browser cache policy | `src/shared/api/local-file-api.ts`; mutating shared API wrappers; `src-tauri/src/http_server.rs` | yes | Include `mriAssetV`, object URL revoke, Basic Auth asset fetch, MIME, cache-control, and ETag. | | 03-REMOTE-ASSET-asset-path-sanitization | Remote asset routes reject traversal, colon paths, invalid thumbnail sizes, unknown kinds, and unsupported collections. | ASSET | both | legacy file route sanitization and asset services | `src-tauri/src/http_server.rs`; asset route tests | yes | Security-sensitive path surface; rescan needs negative controls. | | 03-REMOTE-COMPAT-upload-download-payloads | Remote import/export/download paths translate browser files and binary exports without local filesystem path assumptions. | COMPAT | both | legacy multipart uploads/download endpoints | `src/shared/api/file-payload.ts`; `src/shared/api/download-payload.ts`; `src/shared/api/import-api.ts`; `src/shared/api/export-api.ts`; profile/backup APIs | yes | Includes base64 upload payloads, download filename/contentType fields, and local-path import rejection. | | 03-REMOTE-STORAGE-generic-storage-projection | Remote generic storage preserves list/get projections, field selections, message active-swipe projection, pagination, and cursor behavior. | STORAGE | both | legacy storage services and resource routes | `src/engine/capabilities/storage.ts`; `src/shared/api/storage-api.ts`; `src-tauri/src/commands/storage/commands/entities.rs`; `src-tauri/src/http_dispatch.rs` | yes | Hot path; existing command-surface proof does not prove payload shape or performance. | | 03-REMOTE-STORAGE-mutation-side-effects | Remote storage mutations preserve embedded side effects, protected defaults, relation cleanup, and tracker cleanup. | STORAGE | both | legacy storage services/routes | `src-tauri/src/commands/storage/commands/entities.rs`; `src-tauri/src/http_dispatch.rs`; focused storage modules | yes | Includes connection default clearing, protected default preset fields, and tracker snapshot cleanup on message delete. | | 03-REMOTE-RUNTIME-haptic-remote-policy | Remote mode has an explicit haptic policy: either supported with guard parity or visibly unsupported without executing device commands. | RUNTIME | both | legacy `packages/server/src/routes/haptic.routes.ts`; haptic service and hooks | `src/shared/api/integration-gateway.ts`; `src/shared/api/haptics-api.ts`; `src-tauri/src/http_dispatch.rs`; `src-tauri/src/commands/storage/integrations/haptic.rs` | yes | Current refactor code marks haptics as non-remote/device-bound; rescan should reconcile with closed #1921 wording. | | 03-REMOTE-RUNTIME-custom-tool-execution-contract | Remote custom tool execution preserves static/webhook behavior, disables script execution safely, and applies URL/security gates. | RUNTIME | both | legacy custom tool routes and tool executor | `src/shared/api/custom-tool-api.ts`; `src-tauri/src/http_dispatch.rs`; `src-tauri/src/commands/storage/custom_tools.rs`; `src/shared/api/integration-gateway.ts` | yes | Agent/tool parity surface, not only command presence. | | 03-REMOTE-PERF-api-abuse-body-cache-policy | Remote runtime preserves abuse controls and cache/body policies for hot or privileged HTTP paths. | PERF | both | `packages/server/src/middleware/rate-limit.ts`; `packages/server/src/app.ts` body limit and no-store API send hook | `src-tauri/src/http_server.rs`; `src/shared/api/remote-runtime.ts` | yes | Current focused proof covers rate limits, retry metadata, body/upload limits, profile-upload exception, and no-store JSON API policy. | | 03-REMOTE-RUNTIME-sidecar-runtime-manager | Sidecar runtime/model install, download, restart, unload, delete, and progress streams have a remote policy. | RUNTIME | legacy_only | legacy `packages/server/src/routes/sidecar.routes.ts`; `packages/client/src/stores/sidecar.store.ts` | `docs/developer/run-build.html`; `src-tauri/src/http_server.rs`; `src-tauri/src/commands/storage/llm.rs` | yes | Intentional divergence: Node-era managed sidecar is retired; only the embeddings compatibility route remains. | | 03-REMOTE-RUNTIME-sidecar-inference-endpoints | Sidecar embeddings, scene analysis, tracker, and test-message endpoints have hostable contracts. | RUNTIME | both | legacy sidecar routes and local-sidecar provider | `src-tauri/src/http_server.rs`; `src-tauri/src/commands/storage/llm.rs`; sidecar/LLM modules | later | Target 3 covers only the retained embeddings compatibility route; broader inference parity belongs to provider/sidecar targets. | | 03-REMOTE-API-spotify-remote-oauth-open | Remote Spotify OAuth opens externally/paste-back when desktop callback flow cannot run locally. | API | both | legacy Spotify routes and client API calls | `src/shared/api/integration-utility-api.ts`; `src/shared/api/external-link-api.ts`; Spotify Rust integration modules | later | Better scanned with provider/config target, but remote host behavior can affect Target 3 users. | ## Coverage Matrix | Surface ID | Status | Proof | Follow-up | | --- | --- | --- | --- | | 03-REMOTE-REMOTE-contract-command-surface | refactor_better | Current command-surface focused test passes and keeps documented non-remote commands excluded. | none | | 03-REMOTE-CONTRACT-runtime-url-auth-normalization | refactor_better | Static trace preserves URL trimming, Basic Auth extraction, CSRF header injection, and invalid URL errors. | none | | 03-REMOTE-API-client-dispatch-selection | scanned_no_gap_found | Static trace plus remote-runtime client tests cover remote fetch options and invoke routing. | none | | 03-REMOTE-ERROR-desktop-only-command-failures | scanned_no_gap_found | Static trace confirms desktop-only/local-path/device operations fail visibly or remain excluded from remote command dispatch. | none | | 03-REMOTE-REMOTE-health-storage-readiness | refactor_better | Focused writable-health proof passes and health remains stronger than legacy identity-only health. | none | | 03-REMOTE-UI-startup-settings-health | refactor_better | Static trace keeps startup and Settings on the shared health/readiness contract. | none | | 03-REMOTE-UI-web-shell-new-chat-gate | scanned_no_gap_found | Static trace shows `useStartNewChat` and `NewChatConnectionGate` now check remote health before storage connection reads; #2061 is closed. | #2061 closed | | 03-REMOTE-API-dedicated-route-topology | scanned_no_gap_found | Static trace covers streams, managed assets, imports, LLM stream/cancel, profile import, and sidecar embeddings dedicated routes. | none | | 03-REMOTE-CONTRACT-command-args-responses | scanned_no_gap_found | Static trace plus focused dispatch/storage/custom-tool proof covers named argument extraction and response/error shapes. | none | | 03-REMOTE-ERROR-http-error-envelope | scanned_no_gap_found | Focused tests pass for 429 retry metadata and storage-unavailable `io_error` to 503 mapping; uncategorized I/O stays 500. | #2060/#2068 closed | | 03-REMOTE-REMOTE-basic-ip-auth | refactor_better | Fresh focused hostable security tests pass for Basic Auth, loopback, non-loopback, and allowlist negative controls. | none | | 03-REMOTE-REMOTE-csrf-origin-trust | refactor_better | Fresh focused hostable security tests pass for exact origin trust, CSRF header requirement, untrusted origins, and wildcard CORS negative control. | none | | 03-REMOTE-REMOTE-privileged-command-admin | scanned_no_gap_found | Focused Admin Access tests pass, including `import_st_bulk_scan`; #2058 is closed. | #2058/#1920 closed | | 03-REMOTE-RUNTIME-llm-sse-stream-cancel | scanned_no_gap_found | Static trace plus command-surface proof covers stream/cancel route topology; live SSE browser repro was not run. | none | | 03-REMOTE-COMPAT-st-bulk-folder-progress | scanned_no_gap_found | Existing focused bulk import progress proof remains valid; scan/run route protections now include Admin Access and rate limits. | #1922/#2058 closed | | 03-REMOTE-STORAGE-import-directory-token-roots | scanned_no_gap_found | Focused directory-listing negative proof remains valid for token/root restrictions. | none | | 03-REMOTE-ASSET-managed-asset-serving | refactor_better | Static trace plus focused managed asset/header/path proof remains valid. | none | | 03-REMOTE-ASSET-asset-auth-cache-invalidation | scanned_no_gap_found | Static trace plus managed asset header proof covers auth blob fetch and cache invalidation contracts; no live browser Basic Auth run. | #2057 remains asset-target context | | 03-REMOTE-ASSET-asset-path-sanitization | scanned_no_gap_found | Focused asset path and thumbnail negative tests remain valid. | none | | 03-REMOTE-COMPAT-upload-download-payloads | scanned_no_gap_found | Static trace plus focused profile/backup/import upload/download tests cover browser-safe payload translation; profile large-upload detail is tracked by Target 2. | Target 2 #2108 context | | 03-REMOTE-STORAGE-generic-storage-projection | refactor_better | Focused projection proof remains valid for list/get projections and message active-swipe materialization. | none | | 03-REMOTE-STORAGE-mutation-side-effects | scanned_no_gap_found | Static trace plus focused remote mutation side-effect proof remains valid. | none | | 03-REMOTE-RUNTIME-haptic-remote-policy | intentional_divergence | Remote mode visibly reports haptics unsupported/disconnected and does not execute device commands; divergence is now documented in the parity pipeline. | #1921 closed | | 03-REMOTE-RUNTIME-custom-tool-execution-contract | refactor_better | Focused custom-tool tests pass; static and webhook execution remain supported while script execution is intentionally unsupported. | none | | 03-REMOTE-PERF-api-abuse-body-cache-policy | scanned_no_gap_found | Focused tests pass for API rate limits, retry headers, command-specific dispatch limits, explicit body limits, profile-upload exception, and API no-store headers; #2059/#2068/#2069/#2070 are closed. | #2059/#2068/#2069/#2070 closed | | 03-REMOTE-RUNTIME-sidecar-runtime-manager | intentional_divergence | Managed Node-era sidecar runtime is intentionally retired; the retained compatibility route is `/api/sidecar/v1/embeddings` backed by configured embedding connections. | Provider/connection target if reopened | | 03-REMOTE-RUNTIME-sidecar-inference-endpoints | scanned_no_gap_found | Sidecar embeddings compatibility route accepts OpenAI-style input; scene analysis, tracker, and test-message parity remain outside Target 3. | later provider/sidecar target | | 03-REMOTE-API-spotify-remote-oauth-open | scanned_no_gap_found | Static trace shows remote client opens auth URL and paste-back fallback covers loopback callback failures; full provider config parity remains later. | later provider-config target | ## Follow-Ups | Issue | State | Why it matters | | --- | --- | --- | | #1920 | closed | Privileged remote commands require Admin Access guard parity. | | #1921 | closed | Haptic remote runtime policy resolved as documented intentional divergence. | | #1922 | closed | Remote bulk import progress is preserved. | | #2058 | closed | `import_st_bulk_scan` now requires Admin Access like bulk run. | | #2059 | closed | Hostable API abuse/body/cache policy umbrella is resolved by focused follow-ups. | | #2060 | closed | Storage-unavailable `io_error` cases now map to 503-class HTTP responses. | | #2061 | closed | Web-shell new-chat setup now checks remote health/readiness before connection reads. | | #2063 | closed | Admin Access reads/migrates the legacy `marinara_admin_secret` browser key. | | #2068 | closed | Hostable Remote Runtime now has API rate limits and retry metadata. | | #2069 | closed | Hostable Remote Runtime now has explicit body/upload size limits and profile-upload exception. | | #2070 | closed | Remote Runtime JSON API paths now apply no-store cache policy. | ## Current Closure Rescan - 2026-06-04 Base: Refactor `origin/refactor` / current checkout `e4d58f88`; legacy reference remains v1.6.1 server/client runtime behavior. Outcome: - Target 3 is now `on_par` at focused-test proof level for the scanned remote-runtime scope. - All previously listed Target 3 follow-ups are closed: #2058, #2059, #2060, #2061, #2063, #2068, #2069, and #2070. - The haptic remote policy and managed local sidecar removal are intentional divergences and are now recorded in `docs/REFACTOR_PARITY_PIPELINE.md`. - The superseded-history summary below records that earlier scan slices existed without carrying their stale gap classifications forward. Current proof run: - `cargo test --manifest-path src-tauri/Cargo.toml remote_runtime_command_surfaces_match_desktop_minus_documented_non_remote_commands` passed: 1 test. - `cargo test --manifest-path src-tauri/Cargo.toml hostable_security_` passed: 12 tests. - `cargo test --manifest-path src-tauri/Cargo.toml remote_st_bulk_scan_requires_admin_access` passed: 1 test. - `cargo test --manifest-path src-tauri/Cargo.toml api_no_store_headers_apply_only_to_api_responses` passed: 1 test. - `cargo test --manifest-path src-tauri/Cargo.toml api_body_size` passed: 4 tests. - `cargo test --manifest-path src-tauri/Cargo.toml api_rate_limiter` passed: 2 tests. - `cargo test --manifest-path src-tauri/Cargo.toml api_invoke_enforces_command_specific_rate_limit_at_dispatch_boundary` passed: 1 test. - `cargo test --manifest-path src-tauri/Cargo.toml io_errors_map_to_storage_unavailable_http_status` passed: 3 matched tests. - `cargo test --manifest-path src-tauri/Cargo.toml locked_database_io_errors_map_to_storage_unavailable_http_status` passed: 1 test. - `cargo test --manifest-path src-tauri/Cargo.toml message_only_storage_io_errors_map_to_storage_unavailable_http_status` passed: 1 test. - `cargo test --manifest-path src-tauri/Cargo.toml uncategorized_io_errors_keep_internal_server_error_status` passed: 1 test. - `cargo test --manifest-path src-tauri/Cargo.toml health_probe_reports_writable_storage_and_cleans_up` passed: 1 test. - `cargo test --manifest-path src-tauri/Cargo.toml sidecar_embedding_inputs_accept_openai_style_inputs` passed: 1 test. - `cargo test --manifest-path src-tauri/Cargo.toml custom_tool` passed: 9 tests. - `pnpm exec vitest run src/shared/api/remote-runtime.test.ts` passed: 1 file, 5 tests. Still not proven in this refresh: - Live browser web-shell pass against a real remote server. - Native haptic hardware pass; remote haptics are intentionally unsupported. - Full sidecar/provider inference parity beyond the retained embeddings compatibility route. ## Historical Scan Slices Superseded - 2026-06-04 Earlier Target 3 scan slices found the follow-ups that this issue used to track: #2058, #2059, #2060, #2061, #2063, #2068, #2069, and #2070. All are now closed, and the current header, Coverage Matrix, Follow-Ups table, and Current Closure Rescan above are the source of truth for this detail issue. Preserved historical proof commands remain below for traceability, but older gap classifications from the first scan are intentionally not repeated here because they are stale after the current closure rescan. ## Proof Recorded In Report ```powershell cargo test --manifest-path src-tauri/Cargo.toml remote_runtime_command_surfaces_match_desktop_minus_documented_non_remote_commands cargo test --manifest-path src-tauri/Cargo.toml hostable_security_ cargo test --manifest-path src-tauri/Cargo.toml directory_listing_does_not_treat_picker_selected_as_unrestricted_access cargo test --manifest-path src-tauri/Cargo.toml health_probe_reports_writable_storage_and_cleans_up cargo test --manifest-path src-tauri/Cargo.toml sidecar_embedding_inputs_accept_openai_style_inputs cargo test --manifest-path src-tauri/Cargo.toml managed_asset_headers_include_cache_and_validation_metadata cargo test --manifest-path src-tauri/Cargo.toml asset_path cargo test --manifest-path src-tauri/Cargo.toml managed_thumbnail cargo test --manifest-path src-tauri/Cargo.toml load_url_binary_reads_managed_asset_urls cargo test --manifest-path src-tauri/Cargo.toml run_st_bulk_import_continues_after_stale_selected_items cargo test --manifest-path src-tauri/Cargo.toml hostable_security_requires_admin_access_for_remote_backup_list cargo test --manifest-path src-tauri/Cargo.toml avatar_asset_filename_rejects_parent_directory_tokens cargo test --manifest-path src-tauri/Cargo.toml sprite_asset_path_rejects_path_tokens cargo test --manifest-path src-tauri/Cargo.toml dispatch_storage_ cargo test --manifest-path src-tauri/Cargo.toml dispatch_storage_list_uses_projected_message_reads cargo test --manifest-path src-tauri/Cargo.toml list_projected cargo test --manifest-path src-tauri/Cargo.toml profile_import cargo test --manifest-path src-tauri/Cargo.toml create_list_download_delete_managed_backup cargo test --manifest-path src-tauri/Cargo.toml custom_tool cargo test --manifest-path src-tauri/crates/storage/Cargo.toml get_projected cargo test --manifest-path src-tauri/crates/storage/Cargo.toml list_projected ``` ## Rescan Criteria Target 3 is `on_par` for the current scanned scope at `origin/refactor` `e4d58f88`. Rescan if any of these areas change: - Remote command allowlist or `/api/invoke` dispatch shape. - Hostable HTTP security, Admin Access, rate-limit, body-limit, no-store, or error-envelope code. - Remote Runtime client URL normalization, Basic Auth, CSRF, retry metadata, cache policy, or Admin Access storage migration. - Web-shell new-chat readiness, Settings health, or startup remote-health behavior. - Dedicated routes for LLM stream/cancel, ST bulk import, profile import/upload, managed assets, or sidecar embeddings. - Intentional divergence boundaries for remote haptics, script custom tools, or managed local sidecar runtime. Manual proof still useful before a release: - Browser web-shell pass against a real remote server with Basic Auth/Admin Access. - Live large upload/download and repeated-request behavior against a running hostable server. - Native haptic hardware behavior in embedded Tauri mode.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1000
No description provided.