Documentation
¶
Overview ¶
Package evidence is the engine's record of engineering evidence: a durable poll that observes version control, and the forge when there is one, and keeps each fact once in the store, with the facts' retention and their reads. The poll's timer only writes an intent; the intent reads the repo and the forge with no transaction open, and its Record stores the facts and moves the watermark in the transaction that marks it done, so a kill at any moment loses nothing and doubles nothing. Facts are observed, never reported, and hold no weight (design 05 section 6.5). The engine polls at once on open, every 5 minutes while a pursuit is active and daily otherwise, and backs off from a forge that fails.
Index ¶
Constants ¶
const ( PollKind = "evidence.poll" PollKey = "poll" ExpireKind = "evidence.expire" ExpireKey = "retention" )
The kinds this package registers, and the keys of its timers.
Variables ¶
This section is empty.
Functions ¶
func List ¶
List returns the stored facts that match f, newest first, as a command that writes nothing, the way work's reads run.
func Options ¶
func Options(newForge func(root string) forge.Forge) (timers []state.TimerKind, intents []state.IntentKind)
Options returns the timer and intent kinds of the evidence poll, to pass in state.Options. newForge gives the forge of a repo root; nil, or a forge that cannot list merged PRs, means version control only.