INFERENCE-INIT-01: Scaffold a contract from a folder of notes
What it demonstrates
Section titled “What it demonstrates”init reads existing markdown and writes a tight-but-accepting contract plus a discoverable router, zero TypeScript.
Builds on: nothing — this is the first rung of Scaffold and Guard: init, Inference, and Drift Checks.
How it’s done
Section titled “How it’s done”A terminal session: the command as you’d run it, followed by the output it prints; trailing comments note the exit status.
# infer the tightest contract that still accepts every *.md under ./notesmarkdown-contract init ./notes# writes notes.contract.yaml + markdown-contract.yaml (the router) in the cwd# prints:# init: inferred 1 contract(s); wrote 2 file(s):# markdown-contract.yaml# notes.contract.yaml# self-check: clean (the scaffold accepts its own corpus)Surfaces exercised
Section titled “Surfaces exercised”init verb (src/cli/run.ts runInit)inferConfig single-contract modemergeFiles router synthesispost-write self-check