Structs§
- Addon
Content - Distribution view of an addon (unified distribution, GH #726): the
authoring
lean-ctx-addon.tomlembedded verbatim. The TOML is the single source of truth — MCP wiring, capabilities,[install]bootstrap and the per-platform[artifacts]tables (GH #725) all live inside it, so nothing is duplicated at the pack layer that could drift. - Document
Blob - One named blob:
path+ SHA-256 of the plaintext + compressed body. The hash pins the decoded bytes, so tampering with the stored body (or a decompression bug) is detected before anything lands on disk. - Documents
Content kind=skillspayload (GH #727): a set of named, verified content blobs (markdown/scripts). No execution semantics in lean-ctx — skills are verified content; interpretation belongs to the consumer (an addon like lean-md, or the agent itself).- Gotcha
Export - Gotchas
Layer - Graph
Edge Export - Graph
Layer - Graph
Node Export - Knowledge
Layer - Package
Content - Patterns
Layer - Session
Decision - Session
Finding - Session
Layer
Constants§
- DOCUMENT_
ENCODING_ ZSTD_ B64 - Body encoding marker for
DocumentBlob::body. The only supported value; a field (not an enum) so future encodings fail with “unsupported encoding” on old readers instead of a serde parse error. - MAX_
DOCUMENTS_ TOTAL_ BYTES - MAX_
DOCUMENT_ FILES - Per-file caps (plaintext bytes) — a skills pack is documentation and scripts, not a media archive.
- MAX_
DOCUMENT_ FILE_ BYTES