2025-12-29 06:45:46 +09:00
|
|
|
|
# Phase 29ai: Plan/Frag single-planner (Facts SSOT)
|
|
|
|
|
|
|
|
|
|
|
|
Goal: pattern 名による分岐を外部APIから消し、Facts(事実)→ Plan → Frag の導線を 1 本に収束させる(仕様不変)。
|
|
|
|
|
|
|
|
|
|
|
|
## P0: LoopFacts SSOT + Single Planner skeleton
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P0-LOOPFACTS-SSOT-SINGLE-PLANNER-INSTRUCTIONS.md`
|
2025-12-29 06:59:50 +09:00
|
|
|
|
- 追加される骨格(未接続・仕様不変): `src/mir/builder/control_flow/plan/{facts,normalize,planner,emit}/`
|
2025-12-29 06:45:46 +09:00
|
|
|
|
|
2025-12-29 07:05:58 +09:00
|
|
|
|
## P1: Planner candidate-set + Freeze SSOT
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P1-PLANNER-CANDIDATES-FREEZE-SSOT-INSTRUCTIONS.md`
|
|
|
|
|
|
- ねらい: `Ok(None)` / `Err(Freeze)` の境界と “候補集合→一意化” をSSOT化(未接続のまま、仕様不変)
|
|
|
|
|
|
|
2025-12-29 07:07:39 +09:00
|
|
|
|
## P2: SSOT Registry + Freeze Taxonomy(docs-only)
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P2-SSOT-REGISTRY-FREEZE-TAXONOMY-INSTRUCTIONS.md`
|
|
|
|
|
|
- ねらい: “真実の所在” と Freeze 分類を1枚に固定して、後続実装の迷子を防ぐ(仕様不変)
|
2025-12-29 07:13:55 +09:00
|
|
|
|
- SSOT Registry: `docs/development/current/main/design/planfrag-ssot-registry.md`
|
|
|
|
|
|
- Freeze taxonomy: `docs/development/current/main/design/planfrag-freeze-taxonomy.md`
|
2025-12-29 07:07:39 +09:00
|
|
|
|
|
2025-12-29 07:14:42 +09:00
|
|
|
|
## P3: Typed Freeze + CandidateSet implementation(code)
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P3-TYPED-FREEZE-CANDIDATESET-IMPLEMENTATION-INSTRUCTIONS.md`
|
|
|
|
|
|
- ねらい: Planner の契約を型/候補集合で固定(Facts 未実装の間は未到達、仕様不変)
|
|
|
|
|
|
|
2025-12-29 07:28:15 +09:00
|
|
|
|
## P4: First LoopFacts(Pattern6 scan-with-init)
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P4-FIRST-LOOPFACTS-PATTERN6-SCAN_WITH_INIT-INSTRUCTIONS.md`
|
|
|
|
|
|
- ねらい: Facts→Planner を 1 ケースだけ前進(未接続のまま、仕様不変)
|
|
|
|
|
|
|
2025-12-29 07:42:23 +09:00
|
|
|
|
## P5: Single-planner bridge(router → 1 entrypoint)
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P5-SINGLE-PLANNER-BRIDGE-ROUTER-INSTRUCTIONS.md`
|
|
|
|
|
|
- ねらい: JoinIR の pattern ルーティングを外部APIから剥がし、入口を 1 本に収束(仕様不変)
|
|
|
|
|
|
|
2025-12-29 08:06:38 +09:00
|
|
|
|
## P6: Move Pattern6/7 extractors to Plan layer
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P6-MOVE-PATTERN6-7-EXTRACTORS-TO-PLAN-LAYER-INSTRUCTIONS.md`
|
|
|
|
|
|
- ねらい: 抽出(pattern固有知識)のSSOTを plan 側へ寄せ、依存方向を一方向に固定(仕様不変)
|
|
|
|
|
|
|
2025-12-29 08:19:23 +09:00
|
|
|
|
## P7: Planner returns DomainPlan(二重Planの解消)
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P7-PLANNER-RETURNS-DOMAINPLAN-INSTRUCTIONS.md`
|
|
|
|
|
|
- ねらい: 29ai planner の候補集合/Freeze を `DomainPlan` 上で行い、Plan語彙を1本化(仕様不変)
|
|
|
|
|
|
|
2025-12-29 08:40:54 +09:00
|
|
|
|
## P8: Wire planner into single_planner(Pattern6 subset)
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P8-WIRE-PLANNER-INTO-SINGLE_PLANNER-PATTERN6-INSTRUCTIONS.md`
|
|
|
|
|
|
- ねらい: Facts→Planner を実行経路へ1歩だけ接続し、Pattern6最小ケースから吸収を開始(仕様不変)
|
|
|
|
|
|
|
2025-12-29 08:55:17 +09:00
|
|
|
|
## P9: Planner support + wiring(Pattern7 split-scan subset)
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P9-PLANNER-PATTERN7-SPLITSCAN-WIRE-INSTRUCTIONS.md`
|
|
|
|
|
|
- ねらい: Pattern7(split-scan)の最小ケースを Facts→Planner で `Ok(Some(DomainPlan::SplitScan))` まで到達させ、single_planner で planner-first を開始(仕様不変を維持しつつ段階吸収)
|
2025-12-29 09:17:53 +09:00
|
|
|
|
- 完了: Facts split-scan subset / planner candidate / single_planner Pattern7 planner-first を接続
|
|
|
|
|
|
- 検証: `cargo build --release` / `./tools/smokes/v2/run.sh --profile quick` / `./tools/smokes/v2/profiles/integration/joinir/phase29ae_regression_pack_vm.sh`
|
|
|
|
|
|
|
|
|
|
|
|
## P10: Move Pattern2 extractor to plan layer(SSOT)
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P10-MOVE-PATTERN2-EXTRACTOR-TO-PLAN-LAYER-INSTRUCTIONS.md`
|
|
|
|
|
|
- ねらい: Pattern2 の抽出(pattern固有知識)を plan 側へ寄せて依存方向を一方向に固定(仕様不変)
|
2025-12-29 09:44:04 +09:00
|
|
|
|
- 完了: plan/extractors へ移設、JoinIR 側は wrapper 化、legacy_rules を plan 側へ統一
|
|
|
|
|
|
- 検証: `cargo build --release` / `./tools/smokes/v2/run.sh --profile quick` / `./tools/smokes/v2/profiles/integration/joinir/phase29ae_regression_pack_vm.sh`
|
|
|
|
|
|
|
|
|
|
|
|
## P11: Planner support + wiring(Pattern2 break subset)
|
|
|
|
|
|
|
|
|
|
|
|
- 指示書: `docs/development/current/main/phases/phase-29ai/P11-PLANNER-PATTERN2-BREAK-SUBSET-WIRE-INSTRUCTIONS.md`
|
|
|
|
|
|
- ねらい: Pattern2(break)の PoC subset を Facts→Planner に吸収し、single_planner で planner-first を開始(仕様不変で段階吸収)
|
2025-12-29 08:55:17 +09:00
|
|
|
|
|
2025-12-29 06:45:46 +09:00
|
|
|
|
## Verification (SSOT)
|
|
|
|
|
|
|
|
|
|
|
|
- `cargo build --release`
|
|
|
|
|
|
- `./tools/smokes/v2/run.sh --profile quick`
|
|
|
|
|
|
- `./tools/smokes/v2/profiles/integration/joinir/phase29ae_regression_pack_vm.sh`
|