Rust S-Expression L0 Architecture Review

Decision

The Rust L0 S-expression foundation is approved for the next parser-only corpus phase. Typed KiCad source-model expansion remains gated on the L1 semantic pass-through evidence and the remaining Phase 1 promotion items below.

Reviewed Boundary

Review Corrections

The review found and closed these implementation issues before approval:

Evidence

Promotion Gates Retained

  1. Ratify performance floors only after package-corpus small/medium/large cases add peak-memory, streaming-select, source-patch, and WASM transfer measurements. The current synthetic benchmark is evidence, not a release threshold.
  2. Add the handwritten semantic validator for the TypeSpec Node union before exposing the build-operation envelope. The generated shape intentionally cannot express all kind/payload exclusivity rules.
  3. Generate Python and TypeScript projections from the same TypeSpec authority before those language adapters become public. No handwritten competing DTO is permitted in the interim.

Phase 1 Performance Watchlist

These observations do not block the L1 parser-only corpus phase. The configured depth and resource bounds remain required while the costs are measured.

Next Authorized Slice

Run the parser-only L1 corpus gate across promoted KiCad suffixes. Require parse, deterministic build, reparse, semantic equality, and byte-stable second output. This review does not authorize typed PCB, schematic, rendering, or downstream pcb_a0 expansion yet.