feat: Pos処理の非同期化・Busy状態の削除

This commit is contained in:
2026-05-04 15:52:27 +09:00
parent 5b38aa6a87
commit 954cf200e2
15 changed files with 537 additions and 256 deletions
+3 -3
View File
@@ -23,8 +23,8 @@ Pod::handle_worker_result
→ persist_turn(旧セッションに記録)
→ compact() → resume()
[ターンの合間 — Pod::run 完了後]
Controller::try_post_run_compact ← proactive
[ターンの合間 — 次の Pod::run 冒頭]
Pod::try_pre_run_compact ← proactive
→ input_tokens > post_run_threshold なら compact() (best-effort)
```
@@ -66,7 +66,7 @@ pub struct ToolOutput {
### トリガー(2段階の閾値)
1. **ターンの合間 (Controller)**: `try_post_run_compact()``input_tokens > post_run_threshold` → best-effort
1. **ターンの合間 (次 turn 冒頭)**: `try_pre_run_compact()``input_tokens > post_run_threshold` → best-effort
2. **リクエストの合間 (CompactInterceptor)**: `pre_llm_request``input_tokens > request_threshold``PreRequestAction::Yield`
**ターンの合間が proactive (小さい閾値)**: