Write the file format spec v0 #2
Labels
No labels
area/agent
area/capture
area/editor
area/geo
area/security
area/sync
area/transcription
area/ui
area/vault
area/voice-memos
blocked
milestone/M1
milestone/M2
milestone/M3
milestone/M4
needs-decision
needs-hardware
p0
p1
p2
type/bug
type/enhancement
type/feature
type/idea
type/infrastructure
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Stash/stash-docs#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The on-disk contract that every Stash client must agree on.
Why this is its own document, in its own repo
It is the one artifact iOS, the relay and Android all have to implement identically. In v2 the
equivalent shared thing was two byte-identical Swift files held together by copy-paste with
nothing enforcing it — and that class of drift ends in a silent decrypt failure, which is
the worst bug this system can produce. One versioned spec, consumed by everyone.
It also has a consumer outside the codebase: the vault's
CLAUDE.mddocuments this naming andthe inbox processing depends on it. A change here is a change to Wes's daily workflow.
Must specify
Completed capture — exactly two files (three from M2, with the optional GPS track):
Timestamp is the original capture time, not the completion time. Define the hash: length,
alphabet, and what it is derived from.
In-flight transcript parts:
valid WebVTT standalone and assembly is pure concatenation.
Audio: AAC, mono, ~48 kbps, in a fragmented MP4 container so a killed process still leaves
a playable file.
WebVTT conformance: check the output against the actual spec. Wes: "We should make sure
that the VTT output is actually matching. I don't know if there is a standard for VTT, but
let's match it." There is one — verify against it rather than against what v2 happened to emit.
Version the document from day one, and state what a consumer should do when it encounters
a version it does not know.
Open, and deliberately not answered here
The GPS JSON track lands at M2 and can be added then. Encryption envelope and wrap formats land
at M3 — with the note that whatever they are called, no two format identifiers may differ by
a transposition, since v2 shipped
STASHWK2andSTASHKW1alongside each other.Milestone 1 of the Stash v3 rebuild, scoped 2026-08-06. M1 is a functioning iOS app on Wes's
phone with no sync at all — the entire goal is recording voice memos reliably and getting
them off the device by hand. Sync arrives in M3.
Working agreement for every issue in this repo: feature branch, tested before the PR opens
(on-device where the label says so), then Wes reviews the PR and we walk the code together.
Docs update in the same commit. A PR that takes more than 20 minutes to review is too big —
say so and split it.