AI協調開発研究ドキュメントの完成と Phase 10.9-β 進捗

【AI協調開発研究】
- AI二重化モデルの学術論文draft完成(workshop_paper_draft.md)
- 「隠れた危機」分析とbirthの原則哲学化
- TyEnv「唯一の真実」協調会話を保存・研究資料に統合
- papers管理構造の整備(wip/under-review/published分離)

【Phase 10.9-β HostCall進捗】
- JitConfigBox: relax_numeric フラグ追加(i64→f64コアーション制御)
- HostcallRegistryBox: 署名検証・白黒リスト・コアーション対応
- JitHostcallRegistryBox: Nyash側レジストリ操作API
- Lower統合: env直読 → jit::config::current() 参照に統一
- 数値緩和設定: NYASH_JIT_HOSTCALL_RELAX_NUMERIC/Config.set_flag

【検証サンプル拡充】
- math.sin/cos/abs/min/max 関数スタイル(examples/jit_math_function_style_*.nyash)
- 境界ケース: 署名不一致・コアーション許可・mutating拒否サンプル
- E2E実証: String.length→allow, Array.push→fallback, math関数の署名一致観測

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm
2025-08-28 12:09:09 +09:00
parent e54561e69f
commit 4e1b595796
133 changed files with 14202 additions and 622 deletions

46
.github/workflows/box_first_guard.yml vendored Normal file
View File

@ -0,0 +1,46 @@
name: Box-First Guard (Advisory)
on:
pull_request:
push:
jobs:
advisory-guards:
name: Advisory Box-First Checks
runs-on: ubuntu-latest
continue-on-error: true # informational for now
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install ripgrep
run: sudo apt-get update && sudo apt-get install -y ripgrep
- name: Disallow direct env reads in jit (except config/runtime)
run: |
set -e
echo "Checking for std::env::var direct reads under src/jit (excluding config.rs and rt.rs)"
# find occurrences outside config.rs and rt.rs
if rg -n "std::env::var\(" src/jit | rg -v 'src/jit/(config|rt)\.rs'; then
echo "[GUARD] Found direct env reads outside jit::config/rt (advisory)."
exit 1
else
echo "[OK] No direct env reads outside jit::config/rt"
fi
- name: Enforce single B1 ABI switch point (advisory)
run: |
set -e
echo "Checking unexpected B1 mentions"
# allow occurrences in known switch points
if rg -n "B1" src | rg -v 'abi_param_for_kind|returns.*types::B1|jit-b1-abi'; then
echo "[GUARD] Found unexpected B1 usage (advisory)."
exit 1
else
echo "[OK] No unexpected B1 usage"
fi
- name: Print reminder for stats.jsonl (advisory)
run: |
echo "[NOTE] Consider emitting stats.jsonl with {function, abi_mode, reason} at least once per run."