JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(team): 关闭 autonomous 会话预算默认上限,仅保留思辨轮次帽
liutao0dba43ef8157
diff --git a/jiuwenswarm/agents/harness/team/config_loader.py b/jiuwenswarm/agents/harness/team/config_loader.pyindex 73b8a5e4b2..65eb364b1c 100644--- a/jiuwenswarm/agents/harness/team/config_loader.py+++ b/jiuwenswarm/agents/harness/team/config_loader.py@@ -23,9 +23,6 @@ logger = logging.getLogger(__name__)_DEFAULT_MAX_ITERATIONS = 200_DEFAULT_COMPLETION_TIMEOUT = 600.0_DEFAULT_MAX_DEBATE_ROUNDS = 5-_DEFAULT_MAX_TOTAL_ROUNDS = 30-_DEFAULT_MAX_TOTAL_MESSAGES = 300-_DEFAULT_TOKEN_BUDGET = 2_000_000_DEFAULT_AGENT_WORKSPACE = {"stable_base": True}_DEFAULT_TEAM_WORKSPACE = {"enabled": True}_DEFAULT_TRANSPORT = {"type": "inprocess"}@@ -819,23 +816,14 @@ def load_team_spec_dict(spec_dict["max_debate_rounds"] = (_DEFAULT_MAX_DEBATE_ROUNDS if configured_debate_rounds is None else configured_debate_rounds)- # session-level budget ceilings. The per-teammate debate- # cap misses the member→leader / leader→member report shapes entirely,- # so product templates get a whole-session budget on by default; an- # explicit template value overrides the product default (same semantics- # as max_debate_rounds above — unset, not null, means "use the default").- configured_total_rounds = team_raw.get("max_total_rounds")- spec_dict["max_total_rounds"] = (- _DEFAULT_MAX_TOTAL_ROUNDS if configured_total_rounds is None else configured_total_rounds- )- configured_total_messages = team_raw.get("max_total_messages")- spec_dict["max_total_messages"] = (- _DEFAULT_MAX_TOTAL_MESSAGES if configured_total_messages is None else configured_total_messages- )- configured_token_budget = team_raw.get("token_budget")- spec_dict["token_budget"] = (- _DEFAULT_TOKEN_BUDGET if configured_token_budget is None else configured_token_budget- )+ # Session-level budget ceilings are opt-in only. Product defaults used to+ # force 30 / 300 / 2M and cut long autonomous delivery runs in ~15 min;+ # leave unset/null so agent-core skips SessionBudgetRail. Templates may+ # still set any of the three explicitly. Debate peer-cap stays on via+ # max_debate_rounds above.+ spec_dict["max_total_rounds"] = team_raw.get("max_total_rounds")+ spec_dict["max_total_messages"] = team_raw.get("max_total_messages")+ spec_dict["token_budget"] = team_raw.get("token_budget")language = _normalize_prompt_language(config_base.get("preferred_language"))spec_dict["leader"] = _build_leader_spec(team_raw, language=language)spec_dict["agents"] = agents