Expand description
Implementation of the blotter binary.
This library is not a supported API. Blotter’s compatibility promise is the
CLI, the JSON envelopes, the stored JSONL record format, the exit codes, and
blotter schema (see meta.contract). Every item here is public to
structure the binary and may change in any release without notice.
Integrate through the CLI.
Modules§
Structs§
- Artifact
- What a promotion says these experiences became.
- Evidence
- List
Item - Origin
- Structured provenance (r49). A typed three-member struct, never flattened
and never an opaque
Value: anullpublished member reads as absent, a non-string one fails the line, and an unknown member survives in the log’s bytes without reaching any envelope. - Promotion
Item - The promotion arm of
list’s tagged union (r48). It carries nostatus,resolution,text,tags,impact, orevidence: a promotion has no lifecycle to filter and no friction text of its own. - Resolution
Enums§
- Artifact
Type - The closed promotion artifact vocabulary (r48). An unrecognized
--artifact-typeis rejected by clap asinvalid_argument. - Disposition
- How a cut’s resolution classifies it (r48). Cuts always carry one; dogears never do.
- Impact
- Item
Status - LogEvent
- Pattern
- The two
retrospectcandidate patterns (r48/r51). Pattern detection and suggested intervention are separate axes: a pattern names what was observed,suggestednames what kind of artifact might answer it.
Functions§
- compute_
dogear_ id - compute_
id - compute_
promotion_ id - The
bl2promotion identity (r48, r51):notestays outside the hash for r34’s reason — it is authored commentary, and a promotion whose note is reworded is the same promotion.sourcesare normalized exactly as tags are: ascending raw UTF-8 byte order, exact-byte deduplication, case-sensitive. - effective_
now - format_
timestamp - normalized
- Ascending raw UTF-8 byte order with exact-byte deduplication (r48). The one normalization every hashed list — tags and promotion sources — runs through.
- parse_
before - parse_
since - resolve_
agent