Repository navigation
perf(agent): cap companion LLM work after capture - #448
Conversation
Keep at most two agent-family tasks running and delay comment/perception/initiative by 20s so Super Agent capture is not starved.
PR AI Review / PR AI 语义预检中文
AI 语义预检未得到可解析结果,需要 maintainer 人工审核。 影响范围
黄金链路
风险项
测试缺口
English
AI semantic review did not return a parseable result; maintainer review is required. Affected Areas
Golden Path
Findings
Test Gaps
|
PR Preflight Summary / PR 预检汇总中文
English
PR Policy Preflight / PR 规则预检PR Policy Preflight / PR 规则预检中文
未发现确定性规则问题。 English
No deterministic policy findings. PR Flutter Quality / Flutter 质量预检PR Flutter Quality / Flutter 质量预检中文
English
Flutter Analyzer Baseline
No new analyzer issues introduced by this PR. Flutter Test Baseline
No new Flutter test failures introduced by this PR. |
|
Code review against At local_task_executor.dart:1013–1024, For example, with two agent tasks already running, three global slots remain. If the first three otherwise-eligible pending tasks are also agent-family tasks, all three candidates are discarded. A later FTS/non-agent task is never considered, even though capacity is available. Subsequent polls can repeat this until an agent finishes, contradicting the intended ability for other work to continue. Please include the remaining agent-family budget in candidate selection, skipping capped tasks while continuing the scan for other runnable work. The added test leaves only two pending agent tasks ahead of FTS once two agents are active, so it does not cover this case. Please add a regression with at least three eligible pending agent tasks ahead of FTS and assert that FTS starts before either active agent is released. I recommend fixing this before merge. This finding is based on the scheduling code path, not a locally executed reproduction. |
|
the old test didn't catch this — FTS was still inside the first candidate window, so it got picked before the agent filter ran.
|
Summary
Test plan
flutter test test/data/services/local_task_executor_test.dart test/data/services/global_event_bus_dependency_test.dart