Skip to main content

Module asset_journal

Module asset_journal 

Source
Expand description

Append-only JSONL journal for static-asset reconciler decisions (R470-T1).

Path: .yah/cloud/status.jsonl. One record per reconciler decision. Replay yields last_state_per_asset — the source of truth for yah cloud status without --check. In-process subscribe() lets the desktop panel react to transitions without polling.

Wire shape matches .yah/events.jsonl: append-only, concurrent writers are safe (each append is one write syscall on the line), replayable to a HashMap keyed by "<service>:<filename>".

Structs§

AssetStatusEvent
One state transition appended to .yah/cloud/status.jsonl.
AssetStatusJournal
Append-only JSONL journal at .yah/cloud/status.jsonl.

Enums§

AssetState
The 8 canonical asset states. All surfaces (CLI, panel, JSON, RPC) use these exact kebab-case strings — lock this vocabulary before extending.