Skip to main content

Module drafts

Module drafts 

Source
Expand description

Crash-recovery drafts persisted through FileSystemService (ADR-0014 §5).

Structs§

Draft
Unsaved buffer text mirrored outside the project. Recovery only offers this text; applying it remains an explicit transaction in the application model.
DraftDiagnostic

Constants§

RETENTION

Functions§

draft_file_name
Stable, dependency-free FNV-1a over the absolute path. The readable suffix is only for humans inspecting the directory; identity comes from the whole path hash.
drafts_for
Load valid drafts for one workspace. A corrupt sibling is diagnosed and skipped; one bad recovery file must not hide the rest.
encode_draft
parse_draft
reap_drafts
write_draft