Canonical case JSON or a transaction hash with optional market context.
Bring your own incident.
Get back bounded authority.
Last Known Book can accept a captured case or a live transaction intake, reconstruct what is actually established, and return a machine-readable Authority Receipt. The investigation interface never signs or broadcasts a transaction.
Deterministic DreamDEX semantics where evidence supports them; unknown stays unknown.
Recommended action, truth counts, blockers, report hash and explicit write authority.
One engine. Four ways in.
POST /api/investigate
Bring-your-own-incident endpoint for apps and backend services.
{ "txHash": "0x…", "network": "shannon", "agentIntent": "BUY_NO 10 @ 0.42" }POST /api/incidents
Generic inbound operational webhook using the same fail-closed investigation path.
incident source → LKB → report + authorityReceipt
POST /api/mcp
Agent tool discovery/call surface plus a local stdio adapter for tool-capable clients.
tools/list · tools/call · lkb_investigate
npm run lkb
Machine-readable local investigation, transaction intake and network checks.
npm run lkb -- tx 0x… shannon
Testnet assumptions do not leak into mainnet.
Every canonical case has a deterministic replay path.
npm run replay regenerates the machine-readable incident reports; npm test verifies they remain deterministic and byte-clean.