phase29z(p0): minimal RC insertion overwrite release

This commit is contained in:
2025-12-27 15:03:05 +09:00
parent 2223c1309b
commit 977f105e4e
7 changed files with 207 additions and 31 deletions

View File

@ -2,6 +2,12 @@
## Current Focus: Phase 29z P0RC insertion minimal
**2025-12-27: Phase 29z P0 完了**
- `src/mir/passes/rc_insertion.rs`: `Store` 上書きの最小 release 挿入を実装単一block・安全ガード
- 既定OFF: Cargo feature `rc-insertion-minimal`env var 新設なし)
- 検証: quick 154/154 PASS 維持 + `cargo run --bin rc_insertion_selfcheck --features rc-insertion-minimal`
- 入口: `docs/development/current/main/phases/phase-29z/README.md`
**2025-12-27: Phase 29y P0 完了**
- docs-first SSOT finalizedABI/RC insertion/Observability
- 3つのSSOT文書10/20/30を Ready に確定

View File

@ -57,7 +57,10 @@ Related:
- 入口: `docs/development/current/main/phases/phase-29y/README.md`
- 次: Phase 29zRC insertion minimalまたは Phase 29xDe-Rust runtime候補
- **Phase 29znext, implementation-minimal: RC insertion minimal**
- **Phase 29z✅ P0 COMPLETE, implementation-minimal: RC insertion minimal**
- 成果: `MirInstruction::Store` の上書きで `ReleaseStrong` を挿入する最小pass単一block・安全ガード付き
- ガード: Cargo feature `rc-insertion-minimal`既定OFF、env var 新設なし)
- 検証: quick 154/154 PASS 維持 + `rc_insertion_selfcheck`opt-in
- 入口: `docs/development/current/main/phases/phase-29z/README.md`
- 指示書: `docs/development/current/main/phases/phase-29z/P0-RC_INSERTION_MINIMAL-INSTRUCTIONS.md`

View File

@ -22,7 +22,7 @@ SSOT:
既定OFFで導入する互換維持
推奨ガードenv var を増やさない):
- 既存の “profile/strict” の枠に載せるか、`cfg(debug_assertions)` 限定で有効化
- Cargo feature で opt-in例: `--features rc-insertion-minimal`
- どうしてもトグルが必要なら `src/config/env` 集約& docs に登録(撤去計画つき)
---
@ -59,3 +59,10 @@ cargo build --release
- Build: 0 errors
- quick: 154/154 PASS
- 既定挙動不変トグルOFFで完全に影響なし
追加opt-in の動作確認):
```bash
# RC insertion minimal を有効化して、passの最小ケースが動くことを自己診断バイナリで確認
cargo run --bin rc_insertion_selfcheck --features rc-insertion-minimal
```

View File

@ -1,9 +1,15 @@
# Phase 29z: RC insertion minimalPhase 29y follow-up
Status: Draft
Status: P0 Complete
Scope: Phase 29y の SSOTRC insertion / ABI / observabilityを前提に、**RC insertion pass を最小動作**まで進める。
Entry:
- SSOT: `docs/development/current/main/phases/phase-29y/20-RC-INSERTION-SSOT.md`
- 指示書: `docs/development/current/main/phases/phase-29z/P0-RC_INSERTION_MINIMAL-INSTRUCTIONS.md`
Opt-in:
- `rc-insertion-minimal` Cargo feature既定OFF
Verification:
- `cargo build --release` / `./tools/smokes/v2/run.sh --profile quick`
- `cargo run --bin rc_insertion_selfcheck --features rc-insertion-minimal`