- Docs
- Reference
- File formats
File formats
Manifests, tree objects, keys, signatures and the stores on disk.
All are line-based text on purpose: easy to diff, review and debug during a spike. A binary or CBOR encoding may come later.
Manifest:
diaporos-manifest v1
artifact <sha256-of-whole-binary> <size-bytes>
chunk <sha256> <len>
chunk <sha256> <len>
...
contract
name hello-svc
port http 8080
...
The chunk lengths must sum to the artifact size (checked on parse), and the
assembled artifact must hash to artifact (checked by the agent). Chunks are
verified on every read from any store.
Tree release (manifest v2) and tree objects:
diaporos-manifest v2 diaporos-tree v1
tree <root-sha256> f <x|-> <sha256> <size> <name>
contract d <sha256> <name>
name orders-api l <target> <name>
exec bin/node dist/main
...
Tree entries are sorted; names and symlink targets may not escape the tree.
Objects live zstd-compressed under <store>/objects/ab/<sha256>, patches under
<store>/patches/<base>-<target>. A pack is a header, then object and patch records.
Keys and signatures (<name>.pub, <name>.key, <manifest>.sig):
diaporos-key v1 ed25519 <public-hex> <name>
diaporos-secret-key v1 ed25519 <seed-hex> <name>
diaporos-signatures v1
release <manifest-id>
sig ed25519 <public-hex> <signature-hex>
Each signature is over diaporos-release v1\n<manifest-id>\n and checked strictly on
parse. A trust file is .pub lines; # comments and blank lines are skipped.
Chunk store: <root>/chunks/<first-2-hex>/<sha256>, written atomically
(temp file + rename). Any blob store keyed by hash works the same way.