Session infrastructure: OpenRouter + tree-split reducer + observer→LLM Team + scrum_applier #11
@ -30,8 +30,13 @@ const MAX_ATTEMPTS = 9;
|
|||||||
// Files larger than this get tree-split instead of truncated. Fixes the
|
// Files larger than this get tree-split instead of truncated. Fixes the
|
||||||
// 6KB false-positive class (model claiming a field is "missing" when
|
// 6KB false-positive class (model claiming a field is "missing" when
|
||||||
// it exists past the context cutoff).
|
// it exists past the context cutoff).
|
||||||
const FILE_TREE_SPLIT_THRESHOLD = 6000;
|
// Env-configurable so the pipeline can adapt to different repos:
|
||||||
const FILE_SHARD_SIZE = 3500;
|
// a 13K-line Python file like /root/llm-team-ui/llm_team_ui.py needs
|
||||||
|
// larger shards to avoid producing 200+ cloud calls per review.
|
||||||
|
// Defaults stay at 6000 / 3500 — tuned for Rust source files in
|
||||||
|
// crates/<crate>/src/*.rs.
|
||||||
|
const FILE_TREE_SPLIT_THRESHOLD = Number(process.env.LH_SCRUM_TREE_SPLIT_THRESHOLD ?? 6000);
|
||||||
|
const FILE_SHARD_SIZE = Number(process.env.LH_SCRUM_SHARD_SIZE ?? 3500);
|
||||||
// Appended jsonl so auditor's kb_query can surface scrum findings for
|
// Appended jsonl so auditor's kb_query can surface scrum findings for
|
||||||
// files touched by a PR under review. Part of cohesion plan Phase C.
|
// files touched by a PR under review. Part of cohesion plan Phase C.
|
||||||
const SCRUM_REVIEWS_JSONL = process.env.LH_SCRUM_REVIEWS_OUT
|
const SCRUM_REVIEWS_JSONL = process.env.LH_SCRUM_REVIEWS_OUT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user