Task 604: DAG Analysis Rust/WASM Port
未着手 ← タスク一覧
Task 604: DAG Analysis Rust/WASM Port
Status: DONE
Summary
Port the DAG analysis module from TypeScript (ts/src/dag.ts, ts/src/dag-types.ts) to Rust in solar-line-core, with WASM bindings in solar-line-wasm. This enables real-time browser-side DAG analysis as called for in DESIGN.md.
Scope
- Define DAG data structures in Rust (
dag.rsmodule in solar-line-core) - Implement core graph algorithms:
- Add/remove nodes and edges
- Dependency chain (upstream/downstream traversal)
- Cycle detection
- Invalidation cascade
- Orphan detection
- Validation
- Task planning (plannable, blocked, parallel groups)
- WASM bindings via
solar-line-wasm - Comprehensive Rust tests
Dependencies
- None (all prior tasks complete)
Key Files
crates/solar-line-core/src/dag.rs— new Rust DAG modulecrates/solar-line-wasm/src/lib.rs— WASM bindingsts/src/dag.ts— reference TS implementation (391 lines)ts/src/dag-types.ts— reference TS types (40 lines)