Skip to main content

Module decisions

Module decisions 

Source
Expand description

Implementation of the seshat decisions subcommands. Implementation of the seshat decisions subcommands.

Exposes seshat decisions list (US-013), seshat decisions forget (US-014), and seshat decisions export / seshat decisions import (US-015).

Structs§

ImportSummary
Outcome of an import operation.

Functions§

export_decisions_to_string
Read all decisions from database and serialise them as a pretty-printed JSON array. Matches the wire shape used by seshat decisions list --format json so a round-trip via decisions import is lossless.
forget_decision_with_database
Resolve and hard-delete a decision by hash or prefix, returning the removed Decision. Public seam for the integration test (tests/decisions_forget.rs) that exercises the full “scan → confirm → forget → rescan re-emits” flow without involving stdin.
import_decisions_from_str
Parse json as a Vec<DecisionJsonOwned> and apply each row against database per the conflict policy:
run_decisions
Dispatch a seshat decisions <subcommand> invocation.