Files
hakorune/docs/tools/nyfmt/NYFMT_POC_ROADMAP.md
Moe Charm 19f775c34d feat(phase12.7): 糖衣構文Phase 12.7-B完了 + 自律型AI開発システム制御機能
🚀 Phase 12.7-B: ChatGPT5糖衣構文(基本実装完了)
- パイプライン演算子(|>)実装
- セーフアクセス(?.)とデフォルト値(??)実装
- sugar gateによる段階的有効化機能
- 糖衣構文テストスイート追加

🤖 自律型AI開発システム改善
- codex-async-notify.sh: タスク制御指示追加
  - "下の箱を積み過ぎないように先に進んでください"
  - "フェーズが終わったと判断したら止まってください"
- プロセス数表示機能の改善(count_running_codex_display)
- 自動停止機能が正常動作(Phase 12.7-C前で停止確認)

📚 ドキュメント更新
- Paper 13: 自律型AI協調開発システムの革新性を文書化
- ANCP可逆マッピング仕様追加
- nyfmt PoC(フォーマッター)計画追加

🧱 箱理論の体現
- 74k行のコードベース(Phase 15で20k行を目指す)
- ANCP適用で最終的に6k行相当を狙う
- 世界最小の実用コンパイラへの道

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-05 05:16:21 +09:00

1.4 KiB
Raw Blame History

nyfmt Reversible Formatter PoC Roadmap

Status: Proposal (docs only)

Goal: A reversible code formatter for Nyash that enables roundtrip transforms (format → parse → print → original) for ANCP/Phase 12.7 sugar while preserving developer intent.

PoC Scope (Phase 1)

  • Define reversible AST surface subset (no semantics changes).
  • Implement prettyprinter prototype in Rust or script (out of tree), constrained to subset.
  • Add examples demonstrating roundtrip invariants and failure modes.

Roundtrip invariants (subset)

  • Pipeline: lhs |> f(a)f(lhs,a)
  • Safe Access: a?.bpeek a { null => null, else => a.b }
  • Default: x ?? ypeek x { null => y, else => x }
  • Range: a .. bRange(a,b)
  • Compound Assign: x += yx = x + y (var/field target)

VSCode Extension Idea

  • Commands:
    • "Nyfmt: Format (reversible subset)"
    • "Nyfmt: Verify RoundTrip"
  • Onsave optional gate with env flag NYFMT_POC=1.
  • Diagnostics panel lists nonreversible constructs.

Examples and Smokes

  • Place minimal examples under apps/nyfmt-poc/.
  • Add a smoke script tools/nyfmt_smoke.sh that:
    • echoes NYFMT_POC and current subset level
    • prints instructions and links to ANCP-Reversible-Mapping-v1.md
    • shows Before/Canonical/RoundTrip triads from examples

NonGoals

  • Changing Nyash runtime/semantics.
  • Enforcing formatting in CI (PoC is optin).