Metakit / What a proof of one step cannot check
List the orders a proof leaves open
Prove.machine proves each transition alone. Its report also names what that leaves open: each pair of transitions (a transition can pair with itself, as two deposits do) where one writes what the other reads or writes, so the order their replies arrive in can matter.
ts
import { Effect } from 'effect'
import * as Prove from '@doeixd/metakit/prove'
const report = await Effect.runPromise(Prove.machine(Bank))
const owed = report.obligations.map(obligation => obligation.name)
// ['Deposit/Deposit', 'Deposit/Withdraw', 'Withdraw/Withdraw']Each entry is an obligation: something a proof did not show and a test must. These have kind: 'walk', a detail saying what must be shown, and over, the transitions involved. Transitions that touch different fields get none, since their order cannot matter.