Add LinaAI automatic Codex routing

This commit is contained in:
2026-05-24 07:24:58 +00:00
parent e82045a7f9
commit 2d3e0454cd
5 changed files with 330 additions and 15 deletions
+18
View File
@@ -57,6 +57,24 @@
- `codex doctor` on `LinaAI` reports the npm Codex CLI install is healthy but
not authenticated yet. Run `codex login` on `LinaAI` before expecting Codex
escalation to execute.
## LinaAI Automatic Aider To Codex Routing - 2026-05-24
- Added `Scripts/linaai_task.sh` as the normal LinaAI task entry point.
- Default local confidence threshold is `0.75`; `0.65` is too permissive for
the current project risk profile.
- Workflow:
- Qwen/Ollama performs preflight risk and confidence classification.
- high-risk tasks route directly to Codex.
- tasks below `0.75` confidence route directly to Codex.
- acceptable tasks run through Aider with `--no-auto-commits`.
- if Aider exits unsuccessfully, the script writes a status file and calls
`Scripts/ai_codex_escalate.sh`.
- High-risk keyword routing includes Unreal core architecture, save/load,
multiplayer, networking/replication, AGR wallet/payments, marketplace/economy
transfer logic, auth, security, migrations, secrets, and broad refactors.
- Test command:
`Scripts/linaai_task.sh --dry-run --force-escalate "Test escalation path only."`
- Added self-hosted AI project documentation:
- `Docs/AI/SelfHostedAiDevelopmentStack.md`
- `Docs/AI/LocalAgentGuardrails.md`