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>
This commit is contained in:
Moe Charm
2025-09-05 05:16:21 +09:00
parent c45866073d
commit 19f775c34d
47 changed files with 2171 additions and 163 deletions

View File

@ -0,0 +1,25 @@
# Optional CI Snippet (nyfmt PoC)
This is a documentationonly snippet showing how to wire a nonblocking nyfmt PoC check in CI. Do not enable until the PoC exists.
```yaml
# .github/workflows/nyfmt-poc.yml (example; disabled by default)
name: nyfmt-poc
on:
workflow_dispatch: {}
# push: { branches: [ never-enable-by-default ] }
jobs:
nyfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Print nyfmt PoC smoke
run: |
chmod +x tools/nyfmt_smoke.sh
NYFMT_POC=1 ./tools/nyfmt_smoke.sh
```
Notes
- Keep this job optin (workflow_dispatch) until the formatter PoC exists.
- The smoke script only echoes guidance; it does not fail the build.

View File

@ -0,0 +1,35 @@
# 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?.b``peek a { null => null, else => a.b }`
- Default: `x ?? y``peek x { null => y, else => x }`
- Range: `a .. b``Range(a,b)`
- Compound Assign: `x += y``x = 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).