Add the input/event/scenario/interaction/dependency/acceptance model and
validation on top of the core loader:
- 输入/事件 plain-text tables with non-empty unique names; links rejected;
- 场景 only on leaf components, ASCII slug states unique, exactly one initial,
content cell is exactly one link to a Knowledge unit (Exec and design
component declarations rejected), scene limit 32;
- 交互 state references, non-empty unique event labels per state, reachability
from the initial state, multi-state requires transitions, 128 limit;
- 依赖 must target loaded design components with non-empty reasons and an
acyclic design dependency graph;
- 验收 keeps the direct section text, rejects empty content, never interprets
it as a test;
- contract-aligned limits (100 docs/200 defs/1000 instances/12 depth/12 slots
per row/1 MiB file/16 MiB total) and a richer deterministic handoff.
14 real-CLI contract tests now cover the positives and main negatives. Docs and
the WEB-01 evidence record which security/concurrency cases and WEB-03 handoff
remain open; WEB-01 stays open.
Refs cflmy/marqdo-web-design#1, cflmy/marqdo#6
Implement the first real Design capability in the unique owner repository:
- src/analysis.rs runs the verified CLI check --emit with direct argv, validates
Analysis 3 schema/source_digest, and snapshots one module without any implicit
discovery or Markdown parser.
- src/document.rs selects the exact Knowledge H2 by anchor, direct retained H3
sections, and the single GFM 组件 table from the analysis AST; cell text is
read from the analysis-provided source by UTF-8 byte span.
- src/lib.rs binds design links by exact candidate_path + anchor (never label or
filename guessing), validates rows/slots/widths, recursion, containment cycles
and module/depth/byte limits, and builds deterministic component definitions,
separate instances, source identities and a provisional handoff.
- Stable diagnostics separate Engine failures (exit 2) from author-contract
errors (exit 1); no partial model on failure.
- tests/design_contract.rs exercises the real CLI for recursive layout,
definition reuse, width forms and the main negative cases; scripts/ci.sh is the
explicit entry (fmt/clippy/test) with a verified CLI.
Scenarios/input/event/dependency contracts and the full WEB-03 handoff remain
open and are recorded as unverified in the evidence document.
Refs cflmy/marqdo-web-design#1, cflmy/marqdo#6