You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
primitives: shared file stores, so a patch can read another patch's files #243
A patch can declare another patch's shared table and read it, but there is no equivalent for file stores. Allison's case from the portal map's discovery ticket (#234): a patch keeps contracts in a file store, and a second patch built on top of it evaluates those contracts. That second patch cannot reach the files today.
Current state of the primitives
Tables: table(...) can be defined shared: true; another patch in the company declares it with patchy add shared-table <patchId>/<table> and reads it through patchy.shared.<alias> (get, getMany, list, no writes). The inventory's shared flag is live; the viewer must be able to open the source on every read.
File stores: files() has no shared flag, FileStoreDefinition is an empty record, there is no add form, no uses kind, no runtime operation and no generated client for another patch's store. Runtime file retrieval is authorized against the loaded version's own store definition (see docs/product.md, Files).
What has to change
A shared-file-store primitive that mirrors shared tables: a shared flag on the store definition and in the inventory, a uses declaration kind, a read-only runtime surface (get, list, url at least; no put/delete), generation of a client and skill, local fixtures for the dev loop, and the same live openability and sharing checks as shared tables. Discovery (patchy list <patch> <store>, decided on #234) should then print the store's add hint instead of "not shareable yet".
Next step
Needs a grilling with Allison to scope it: whether stores are shared whole or by prefix, whether url() may cross patches, how retire/delete/unshare warnings and dependants extend to stores, and whether a sharing change on a store lands in the same publish rules as tables.
Absorbed by Composition for a complete tier 2 patch: shared file stores and authorised file handles on the tier 2 map: whole-store sharing like tables, both tiers, the sharedStore declaration and patchy add shared-store, the same live checks, dependant warnings and reverse states, frame-local URLs across patches, and fixture directories. The build is filed with the tier 2 spec.
Activity
allisonmahmood commentedon Sep 27, 2026
Absorbed by Composition for a complete tier 2 patch: shared file stores and authorised file handles on the tier 2 map: whole-store sharing like tables, both tiers, the
sharedStoredeclaration andpatchy add shared-store, the same live checks, dependant warnings and reverse states, frame-local URLs across patches, and fixture directories. The build is filed with the tier 2 spec.