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:
11
.github/pull_request_template.md
vendored
Normal file
11
.github/pull_request_template.md
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
### Box-First Check
|
||||
- [ ] 境界は1箇所に集約(変換はここだけ)
|
||||
- [ ] 設定は JitConfigBox 経由(env直読みなし)
|
||||
- [ ] フォールバック常設(panic→VM/CPython)
|
||||
- [ ] 観測追加(stats.jsonl / CFG dot)
|
||||
|
||||
### DoD(完了条件)
|
||||
- [ ] ゴールデン3件(成功/失敗/境界)更新
|
||||
- [ ] 回帰CI green(env直読み検出なし)
|
||||
- [ ] stats: fallback率・理由が記録される
|
||||
|
||||
46
.github/workflows/box_first_guard.yml
vendored
Normal file
46
.github/workflows/box_first_guard.yml
vendored
Normal 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."
|
||||
|
||||
Reference in New Issue
Block a user