--- id: SMH-PLAN-WSPC0001 type: plan title: "Foundation and Gates Plan" spec: SMH-SPEC-SPEC0001 status: approved --- # Foundation and Gates Plan ## Build order 1. Create root Cargo workspace. 2. Create empty crates with public crate docs. 3. Add lint, fmt, doc, audit config. 4. Add xtask command dispatcher. 5. Add dependency-boundary check. 6. Add CI command that runs cheap gates. ## Interfaces | Module | Interface | |---|---| | workspace | crate membership and resolver | | xtask | check, lint, test, doc, arch command names | | arch gate | cargo metadata in, diagnostics out | ## Checks - Cargo metadata succeeds. - Empty workspace builds. - Arch check rejects forbidden edges in fixture data. ## Dependencies None. First executable plan. ## Stop points - Root manifest approval missing. - Cargo-pup nightly pin unresolved.