mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
Phase 1 (PR #2271) shipped a 3-tier AppConfig.current() lifecycle. Phase 2 proposes eliminating that surface entirely: delete _global, _override, init, current, set_override, reset_override. AppConfig reduces to a pure Pydantic value object; every consumer receives config as an explicit parameter. Design doc §8 documents the target architecture: FastAPI Depends(get_config) for routers, constructor-captured config for DeerFlowClient, thread through make_lead_agent for agent construction, closure-captured config for memory Timer callbacks. Covers trade-offs and scope (~97 prod + ~91 test sites). Plan doc adds Tasks P2-1 through P2-10, one per category, each independently mergeable. P2-10 is the final deletion after grep verifies zero callers.