Files
Bo 6bb54bb347 fix(cli): ao init creates the complete evidence layout (#938)
A fresh `ao init` was immediately flagged by the CLI's own diagnostics —
`ao doctor diff` reported `fm-knowledge-missing-substructure` (sessions,
index missing) and the `.agents/ao/intents/sha256` store that `ao
status` reads was never created. This was the last first-run wart from
the [3.3 release-readiness
audit](docs/audits/release-readiness-3.3-2026-07-20.md) (agents-runtime
minor 3).

**Fix:** `evidenceDirs` now derives the knowledge substructure from the
storage package's exported contract (`DefaultBaseDir` +
`SessionsDir`/`IndexDir`/`ProvenanceDir`) instead of a parallel
hand-list, and adds the intents store — so init, status, and doctor
agree on one layout by construction.

**Verified:** RED reproduced in a sandbox (P2 finding on fresh init),
GREEN after fix (finding gone, status reads both stores); new initapp
tests assert both contracts on the created tree and that dry-run touches
nothing; full suite 61/61 packages; `ao gate check --full` 67/67 over
this range.
2026-07-20 14:41:16 -04:00
..