feat(android): MediaUploader — a phone puts films on a relay, in resumable pieces

MediaOwner signs owner requests and MediaUploader speaks the piece protocol
of media put (window, retries, resync after a lost answer). MediaSealer
.sealStream seals a film to a file; MediaGrant.encode/capabilityUrl make the
link to share. Owner signatures and encoded grants are pinned by new
vectors; scripts/media-live-kotlin.ts runs the uploader against a real TS
relay with a lost answer and a refused piece injected.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-19 00:18:31 +02:00
parent f42a9bbe5e
commit f5125b8f66
13 changed files with 897 additions and 5 deletions

View File

@@ -49,9 +49,10 @@ dependencies {
tasks.withType<Test>().configureEach {
useJUnit()
// VaultLiveTest is gated on this; as an input, a new spec (a new live
// VaultLiveTest and MediaLiveTest are gated on these; as an input, a new spec (a new live
// relay) reruns the tests instead of reporting a stale UP-TO-DATE.
inputs.property("shadeVaultLiveSpec", System.getenv("SHADE_VAULT_LIVE_SPEC") ?: "")
inputs.property("shadeMediaLiveSpec", System.getenv("SHADE_MEDIA_LIVE_SPEC") ?: "")
testLogging {
events("passed", "failed", "skipped")
showStandardStreams = false