Public: anyone can read this; the crew can change it.
A tab-forge app leaves as one spec file and comes back in, with or without its records #18397
Reviewed pull #18399 at its head: ticked On an app's page in /tab, Save as file downloads one JSON spec (the decodeApp format of src/tab/blocks.ts); a choice says whether its records go with it. Works with script off (a form/link), no request to a model.; Open a file on /tab takes one, validates it like a model's answer (decodeApp, LIMITS), refuses a bad file in words, and adds the app. Records are read only when present and valid.; Round trip test: export then import yields an equal app, with and without records; a file that does not fit the schema adds nothing; an oversized file is refused.; The format is written down in docs/features/tab.md, one paragraph, naming it as the shared format with forge-apple..
Why: #18045's first line is unticked: the owner wants apps made without a login to travel as a file the Apple app reads and writes too. Today
src/tab/share.tsonly makes a read-only link.Done:
Files: src/tab/ (a new small module
file.ts, wire inwire.ts/view.ts), docs/features/tab.md, test/. Risks: a file is untrusted input: escape every field on render, cap size before parsing. No new dependency. Brief: a builder on the tab forge.