Session infrastructure: OpenRouter + tree-split reducer + observer→LLM Team + scrum_applier #11

Merged
profit merged 118 commits from scrum/auto-apply-19814 into main 2026-04-27 15:55:24 +00:00
Showing only changes of commit a934a76988 - Show all commits

View File

@ -13,12 +13,9 @@
use std::collections::HashMap; use std::collections::HashMap;
use std::sync::OnceLock; use std::sync::OnceLock;
/// Rough token count. `chars / 4` ceiling. See module docs for why // `estimate_tokens` moved to `shared::model_matrix::ModelMatrix::estimate_tokens`
/// this heuristic is sufficient. // (cdc24d8). All callers migrated; the deprecated wrapper that stood in its
#[deprecated(note = "Use shared::model_matrix::ModelMatrix::estimate_tokens instead")] // place has been removed since it had zero external consumers.
pub fn estimate_tokens(text: &str) -> usize {
(text.chars().count() + 3) / 4
}
/// Phase 21 — per-model context windows, mirroring the TS table in /// Phase 21 — per-model context windows, mirroring the TS table in
/// `tests/multi-agent/agent.ts`. Anchored on each model's documented /// `tests/multi-agent/agent.ts`. Anchored on each model's documented