動態協作拓撲:從 Isolate、Share 到 Join
多 Agent 如何依任務在獨立、共享與共同對話之間切換
English Title: Dynamic Collaboration Topology: From Isolate and Share to Join in Multi-Agent Systems 系列: 《跨對話智能協作與共享認知空間》第四篇作者: Neo.K機構: EveMissLab/一言諾科技有限公司性質: 公開理論論文/Multi-Agent Orchestration & Dynamic Topology版本: v0.1日期: 2026-08-09
摘要
前三篇已分別建立:
Shared Conversation ≠ Shared World \boxed{
\text{Shared Conversation}
\neq
\text{Shared World}
} Shared Conversation = Shared World
Continuous Collaboration ≠ Continuous Inference \boxed{
\text{Continuous Collaboration}
\neq
\text{Continuous Inference}
} Continuous Collaboration = Continuous Inference
以及:
Shared World ≠ Shared Cognition \boxed{
\text{Shared World}
\neq
\text{Shared Cognition}
} Shared World = Shared Cognition
這些區分共同指出:Multi-Agent 系統不需要把所有 Agent 固定塞入同一個 conversation,也不需要要求所有 Agent 持續同時運算,更不需要讓所有 Agent 擁有相同 context 與 memory。
由此自然產生下一個問題:
既然 Agent 可以獨立、可以只共享成果,也可以臨時加入共同對話,那麼「如何協作」本身是否應成為一個動態變量?
本文回答:是。
本文提出三個基本協作算子:
I = Isolate \boxed{
\mathcal I=\operatorname{Isolate}
} I = Isolate
S = Share \boxed{
\mathcal S=\operatorname{Share}
} S = Share
J = Join \boxed{
\mathcal J=\operatorname{Join}
} J = Join
其中:
I \mathcal I I :維持認知與工作空間隔離;
S \mathcal S S :交換 Typed Cognitive Delta、狀態、事件或 artifact,而不合併完整 context;
J \mathcal J J :建立暫時高耦合 shared room / shared conversation。
因此,Multi-Agent 系統不再只有一個固定團隊結構,而具有隨時間演化的協作圖:
G t a g e n t s = ( V t , E t , μ t ) \boxed{
G_t^{agents}
=
(V_t,E_t,\mu_t)
} G t a g e n t s = ( V t , E t , μ t )
其中 μ t \mu_t μ t 描述每條 Agent 關係當前處於何種協作模式。
本文進一步提出 Adaptive Collaboration Topology Controller(ACTC),由任務依賴、不確定性、衝突、時間壓力、認知多樣性需求、成本、權限與風險等訊號動態決定:
T o p o l o g y t + 1 = T ( T o p o l o g y t , T a s k t , W o r l d t , T e l e m e t r y t ) \boxed{
Topology_{t+1}
=
\mathcal T(
Topology_t,
Task_t,
World_t,
Telemetry_t
)
} T o p o l o g y t + 1 = T ( T o p o l o g y t , T a s k t , W or l d t , T e l e m e t r y t )
本文主張,高階 Multi-Agent orchestration 不應只回答:
「哪一個 Agent 要做這件事?」
還應回答:
「這些 Agent 此刻應該保持獨立、只共享成果,還是進入同一個高耦合認知房間?」
本文同時討論 topology thrashing、groupthink、communication explosion、premature joining、late joining、privilege spread、failure cascade、coordination deadlock 與 topology mutation safety,並提出 hysteresis、minimum dwell time、shadow topology、budget gate、authority attenuation 與 causal receipts 等安全機制。
最後,本文給出最小 Dynamic Multi-Agent Topology Runtime 與 benchmark,為系列第五篇《Persistent Multi-Agent Workspace:跨對話共享世界 Runtime 與 MVP》建立最後一塊控制層。
關鍵詞
Multi-Agent Systems、Dynamic Topology、Agent Orchestration、Agent Handoff、Shared Workspace、Adaptive Collaboration、Agent Graph、Isolate、Share、Join、Coordination Policy、Persistent Agents
一、前三篇其實只完成了「可以分開」
第一篇說:
共享對話 ≠ 共享世界 . \text{共享對話}
\neq
\text{共享世界}. 共享對話 = 共享世界 .
第二篇說:
持續協作 ≠ 持續推理 . \text{持續協作}
\neq
\text{持續推理}. 持續協作 = 持續推理 .
第三篇說:
共享世界 ≠ 共享認知 . \text{共享世界}
\neq
\text{共享認知}. 共享世界 = 共享認知 .
但這些都還是一種靜態描述。
它們告訴我們:
可以分開。
卻還沒有回答:
什麼時候該分開?什麼時候該連起來?
二、固定拓撲是早期 Multi-Agent 的自然做法
典型系統常預先設定:
Sequential
A → B → C . A\rightarrow B\rightarrow C. A → B → C .
Parallel
A ∥ B ∥ C . A\parallel B\parallel C. A ∥ B ∥ C .
Hierarchical
M → { A , B , C } . M\rightarrow\{A,B,C\}. M → { A , B , C } .
Group Chat
A , B , C ∈ R . A,B,C\in R. A , B , C ∈ R .
Handoff
A → B . A\rightarrow B. A → B .
2026 年公開框架已經把多種 orchestration pattern 正式做成一等能力。OpenAI Agents SDK 同時支援 manager-style agents-as-tools 與 handoff;Google ADK 提供 sequential、parallel、loop 與 custom agent workflows;Microsoft Agent Framework 直接列出 sequential、concurrent、handoff、group chat 與 magentic 等多 Agent orchestration pattern;LangGraph 則明確把 multi-agent workflow 建模成可自訂 graph。
這些都說明:
Collaboration Pattern \boxed{
\text{Collaboration Pattern}
} Collaboration Pattern
已經是 Agent 工程的重要控制面。
三、但「有很多 pattern」仍然不等於「拓撲會自己變」
如果系統啟動時選:
T o p o l o g y = τ 1 Topology=\tau_1 T o p o l o g y = τ 1
直到任務結束仍固定:
T o p o l o g y t = τ 1 ∀ t , Topology_t=\tau_1
\quad
\forall t, T o p o l o g y t = τ 1 ∀ t ,
它仍是:
S t a t i c O r c h e s t r a t i o n . \boxed{
Static Orchestration.
} S t a t i c O r c h es t r a t i o n .
本文關心的是:
T o p o l o g y t ≠ T o p o l o g y t + 1 \boxed{
Topology_t
\neq
Topology_{t+1}
} T o p o l o g y t = T o p o l o g y t + 1
而且改變是由任務與系統狀態驅動。
四、真正問題:協作方式本身是不是 action?
傳統 Agent action:
a t = search / write / call tool / answer . a_t
=
\text{search / write / call tool / answer}. a t = search / write / call tool / answer .
本文增加:
a t t o p o l o g y \boxed{
a_t^{topology}
} a t t o p o l o g y
例如:
保持自己工作;
把結果發布給 B;
邀請 C 進入共同 room;
離開 room;
暫停與 D 的同步;
把任務拆成兩個獨立子群;
合併兩個正在重複工作的群。
因此:
Changing Collaboration Structure \boxed{
\text{Changing Collaboration Structure}
} Changing Collaboration Structure
本身就是一種 Agent action。
五、三個基本算子
本文先只保留最小三元組:
{ I , S , J } \boxed{
\{\mathcal I,\mathcal S,\mathcal J\}
} { I , S , J }
六、Isolate
定義:
I ( A i , Q ) \boxed{
\mathcal I(A_i,Q)
} I ( A i , Q )
表示 Agent A i A_i A i 對任務 Q Q Q 暫時維持局部認知隔離。
它可以:
讀必要 shared state;
保有 private memory;
自行使用工具;
產生 private hypotheses;
但不預設取得其他 Agent 的完整推理輸出。
因此:
C o n t e x t i = L i + π i ( W ) . Context_i
=
L_i+\pi_i(W). C o n t e x t i = L i + π i ( W ) .
而:
C o n t e x t i ⊅ C o n t e x t j . Context_i
\not\supset
Context_j. C o n t e x t i ⊃ C o n t e x t j .
七、Isolate 並不表示完全斷網
Isolate 的真正意義不是:
C o m m u n i c a t i o n = 0. Communication=0. C o mm u ni c a t i o n = 0.
而是:
C o g n i t i v e C o u p l i n g ↓ . \boxed{
CognitiveCoupling
\downarrow.
} C o g ni t i v e C o u pl in g ↓ .
例如 Agent 仍知道:
Task X 已由 B 完成。
但不讀:
B 是怎麼想出來的。
所以:
O p e r a t i o n a l A w a r e n e s s + C o g n i t i v e I s o l a t i o n \boxed{
OperationalAwareness
+
CognitiveIsolation
} O p er a t i o na l A w a r e n ess + C o g ni t i v e I so l a t i o n
可以同時成立。
八、Share
第二個算子:
S ( A i , A j , x ) \boxed{
\mathcal S(A_i,A_j,x)
} S ( A i , A j , x )
把一個受治理的認知增量 x x x 分享給另一 Agent 或 shared world。
x x x 可以是:
x = ( M e s s a g e , C l a i m , E v i d e n c e , A r t i f a c t , S t a t e D e l t a , D e c i s i o n , Q u e s t i o n ) . x=
(
Message,
Claim,
Evidence,
Artifact,
StateDelta,
Decision,
Question
). x = ( M ess a g e , C l aim , E v i d e n ce , A r t i f a c t , S t a t eD e l t a , D ec i s i o n , Q u es t i o n ) .
而不是:
x = E n t i r e C o n t e x t i . x=EntireContext_i. x = E n t i r e C o n t e x t i .
因此:
S h a r e ≠ M e r g e . \boxed{
Share
\neq
Merge.
} S ha r e = M er g e .
九、Typed Cognitive Delta
上一篇已提出:
Δ i c o g \boxed{
\Delta_i^{cog}
} Δ i co g
作為交換單位。
本文延伸:
S : Δ i c o g → W \mathcal S:
\Delta_i^{cog}
\rightarrow
W S : Δ i co g → W
或:
S : Δ i c o g → A j . \mathcal S:
\Delta_i^{cog}
\rightarrow
A_j. S : Δ i co g → A j .
這使協作可以保持低耦合。
十、Join
第三個算子:
J ( A 1 , … , A k , R ) \boxed{
\mathcal J(A_1,\ldots,A_k,R)
} J ( A 1 , … , A k , R )
建立暫時 shared room:
R . R. R .
進入後:
C o g n i t i v e C o u p l i n g ↑ . CognitiveCoupling\uparrow. C o g ni t i v e C o u pl in g ↑ .
Agent 共享:
對話歷史;
當前爭議;
-共同 reference;
room artifacts;
room-local memory。
所以:
J o i n = T e m p o r a r y H i g h C o u p l i n g . \boxed{
Join
=
TemporaryHighCoupling.
} J o in = T e m p or a r y H i g h C o u pl in g .
十一、Join 不等於永久合併
Room R R R 可以存在:
[ t 0 , t 1 ] . [t_0,t_1]. [ t 0 , t 1 ] .
結束後:
D ( R ) → Δ W \mathcal D(R)
\rightarrow
\Delta W D ( R ) → Δ W
其中 D \mathcal D D 是 room distillation。
然後:
A i → P r i v a t e M o d e i . A_i
\rightarrow
PrivateMode_i. A i → P r i v a t e M o d e i .
因此:
J o i n → D i s c u s s → C o m m i t → S e p a r a t e . \boxed{
Join
\rightarrow
Discuss
\rightarrow
Commit
\rightarrow
Separate.
} J o in → D i sc u ss → C o mmi t → S e p a r a t e .
十二、這三個算子形成一條協作光譜
可以近似:
I s o l a t e ↔ S h a r e ↔ J o i n . \boxed{
Isolate
\leftrightarrow
Share
\leftrightarrow
Join.
} I so l a t e ↔ S ha r e ↔ J o in .
其耦合程度:
κ I < κ S < κ J . \kappa_{\mathcal I}
<
\kappa_{\mathcal S}
<
\kappa_{\mathcal J}. κ I < κ S < κ J .
十三、但它不是一條單向成熟階梯
不是:
I s o l a t e → S h a r e → J o i n Isolate
\rightarrow
Share
\rightarrow
Join I so l a t e → S ha r e → J o in
越後面越高階。
真正成熟的是:
能依任務切換。 \boxed{
\text{能依任務切換。}
} 能依任務切換。
有時最聰明的動作就是:
I . \mathcal I. I .
十四、Agent Collaboration Graph
令 Agent 集合:
V t = { A 1 , … , A n } . V_t
=
\{A_1,\ldots,A_n\}. V t = { A 1 , … , A n } .
定義:
G t = ( V t , E t , μ t , ω t ) \boxed{
G_t
=
(V_t,E_t,\mu_t,\omega_t)
} G t = ( V t , E t , μ t , ω t )
其中:
E t E_t E t :當前協作邊;
μ t ( e ) \mu_t(e) μ t ( e ) :邊的模式;
ω t ( e ) \omega_t(e) ω t ( e ) :邊的權重/耦合強度。
例如:
μ t ( e i j ) ∈ { I S O L A T E D , S H A R E , J O I N , H A N D O F F } . \mu_t(e_{ij})
\in
\{
ISOLATED,
SHARE,
JOIN,
HANDOFF
\}. μ t ( e ij ) ∈ { I S O L A T E D , S H A R E , J O I N , H A N D O F F } .
十五、Isolate 可以用「無高耦合邊」表示
若:
A i A_i A i
暫時獨立,
則:
d e g h i g h ( A i ) = 0. deg_{high}(A_i)=0. d e g hi g h ( A i ) = 0.
但仍可能對 shared world:
W W W
具有讀寫邊。
因此:
A g e n t G r a p h \boxed{
AgentGraph
} A g e n tG r a p h
與:
W o r l d A c c e s s G r a p h \boxed{
WorldAccessGraph
} W or l d A ccess G r a p h
最好分開。
十六、雙圖模型
定義:
G t A G_t^A G t A
為 Agent-to-Agent collaboration graph。
定義:
G t W G_t^W G t W
為 Agent-to-World access graph。
則 Agent 可以:
d e g G A ( A i ) = 0 deg_{G^A}(A_i)=0 d e g G A ( A i ) = 0
但:
d e g G W ( A i ) > 0. deg_{G^W}(A_i)>0. d e g G W ( A i ) > 0.
這正是:
自己工作,但仍知道公共專案世界。
十七、Shared Room 更像 Hyperedge
如果:
R = { A , B , C , D } R=\{A,B,C,D\} R = { A , B , C , D }
共同進入一個 room,
它不一定適合表示成六條 pairwise edge。
更自然可使用 hyperedge:
h R = { A , B , C , D } . \boxed{
h_R=\{A,B,C,D\}.
} h R = { A , B , C , D } .
因此更一般:
G t G_t G t
可以是 dynamic hypergraph。
十八、這代表「會議」本身是拓撲物件
Room:
R k R_k R k
具有:
participant set;
context;
start;
end;
goal;
decision state。
所以:
R o o m \boxed{
Room
} R oo m
不只是 UI container,
而是一個 temporary collaboration topology object。
十九、為什麼要動態?
因為不同子任務需要不同耦合。
例如研究任務:
Phase 1
三個 Agent 獨立找方案:
A ∥ B ∥ C . A\parallel B\parallel C. A ∥ B ∥ C .
Phase 2
只共享 evidence:
S ( A , W ) , S ( B , W ) , S ( C , W ) . \mathcal S(A,W),
\mathcal S(B,W),
\mathcal S(C,W). S ( A , W ) , S ( B , W ) , S ( C , W ) .
Phase 3
出現衝突:
J ( A , B , C , R ) . \mathcal J(A,B,C,R). J ( A , B , C , R ) .
Phase 4
形成決議:
R → D e c i s i o n → W . R\rightarrow Decision\rightarrow W. R → D ec i s i o n → W .
Phase 5
再次分工:
A ∥ B . A\parallel B. A ∥ B .
所以:
T o p o l o g y \boxed{
Topology
} T o p o l o g y
天然隨 workflow phase 變動。
二十、Static Topology 的第一個問題:過度溝通
若所有 Agent 永遠:
J O I N , JOIN, J O I N ,
則:
C o m m u n i c a t i o n C o s t ↑ . CommunicationCost
\uparrow. C o mm u ni c a t i o n C os t ↑ .
Agent 越多:
M e s s a g e V o l u m e MessageVolume M ess a g e V o l u m e
可能快速增加。
全互聯時:
∣ E ∣ = n ( n − 1 ) 2 . |E|
=
\frac{n(n-1)}{2}. ∣ E ∣ = 2 n ( n − 1 ) .
因此:
O ( n 2 ) O(n^2) O ( n 2 )
的 pairwise communication opportunity 很快形成。
二十一、過度溝通不只是 token 成本
還會增加:
anchoring;
duplicated discussion;
stale references;
context pollution;
conflict-resolution overhead;
attention dilution。
所以:
M o r e C o m m u n i c a t i o n ⇏ B e t t e r C o o r d i n a t i o n . \boxed{
MoreCommunication
\not\Rightarrow
BetterCoordination.
} M or e C o mm u ni c a t i o n ⇒ B e tt er C oor d ina t i o n .
二十二、Static Topology 的第二個問題:溝通不足
若所有 Agent 永遠:
I S O L A T E , ISOLATE, I S O L A T E ,
則:
重複工作;
state divergence;
artifact conflict;
missing dependency;
delayed correction。
因此:
Z e r o C o u p l i n g \boxed{
ZeroCoupling
} Z er o C o u pl in g
也不是一般最優解。
二十三、最佳耦合通常位於中間
可以定義 collaboration coupling:
κ t ∈ [ 0 , 1 ] . \kappa_t\in[0,1]. κ t ∈ [ 0 , 1 ] .
則總效用:
U ( κ ) = Q ( κ ) − C ( κ ) − F ( κ ) − A ( κ ) , U(\kappa)
=
Q(\kappa)
-
C(\kappa)
-
F(\kappa)
-
A(\kappa), U ( κ ) = Q ( κ ) − C ( κ ) − F ( κ ) − A ( κ ) ,
其中:
Q Q Q :協作品質;
C C C :通信成本;
F F F :failure propagation;
A A A :anchoring / diversity loss。
可能存在:
0 < κ ∗ < 1. \boxed{
0<\kappa^*<1.
} 0 < κ ∗ < 1.
二十四、因此需要 Topology Controller
本文提出:
Adaptive Collaboration Topology Controller(ACTC)
定義:
T : ( G t , T a s k t , W t , T e l e m e t r y t , P o l i c y ) → G t + 1 . \boxed{
\mathcal T:
(
G_t,
Task_t,
W_t,
Telemetry_t,
Policy
)
\rightarrow
G_{t+1}.
} T : ( G t , T a s k t , W t , T e l e m e t r y t , P o l i cy ) → G t + 1 .
二十五、Controller 不只選 Agent
傳統 router:
Q → A i . Q\rightarrow A_i. Q → A i .
ACTC:
Q → ( A g e n t S e t , T o p o l o g y , C o u p l i n g , D u r a t i o n , S h a r i n g P o l i c y ) . \boxed{
Q
\rightarrow
(
AgentSet,
Topology,
Coupling,
Duration,
SharingPolicy
).
} Q → ( A g e n tS e t , T o p o l o g y , C o u pl in g , D u r a t i o n , S ha r in g P o l i cy ) .
所以 orchestration decision 變成多維。
二十六、Controller 的主要輸入一:Task Dependency
若:
T a s k B Task_B T a s k B
高度依賴:
O u t p u t A , Output_A, O u tp u t A ,
則:
S h a r e ( A , B ) Share(A,B) S ha r e ( A , B )
或 sequential handoff 較合理。
若:
T a s k A ⊥ T a s k B , Task_A\perp Task_B, T a s k A ⊥ T a s k B ,
則:
I s o l a t e ( A , B ) Isolate(A,B) I so l a t e ( A , B )
或 parallel 執行更合理。
二十七、Task Dependency Graph
定義:
D T = ( V T , E T ) . D_T=(V_T,E_T). D T = ( V T , E T ) .
若:
e i j ∈ E T e_{ij}\in E_T e ij ∈ E T
表示:
T j T_j T j
依賴:
T i . T_i. T i .
那麼 Agent topology 應部分映射:
D T → G t A . D_T
\rightarrow
G_t^A. D T → G t A .
但不需要一一相同。
二十八、Controller 的主要輸入二:Uncertainty
當:
U i ↑ , U_i\uparrow, U i ↑ ,
Agent 可以:
自己展開;
retrieve more evidence;
Share 問另一 Agent;
Join room。
所以:
U n c e r t a i n t y Uncertainty U n cer t ain t y
本身不是 Join 的充分條件。
二十九、可定義 Escalation Ladder
S e l f R e f i n e → R e t r i e v e → S h a r e → J o i n . \boxed{
SelfRefine
\rightarrow
Retrieve
\rightarrow
Share
\rightarrow
Join.
} S e l f R e f in e → R e t r i e v e → S ha r e → J o in .
只有前面不足才升級。
這避免所有疑問都:
叫全公司開會。
三十、Controller 的主要輸入三:Conflict
若:
C l a i m A ≠ C l a i m B Claim_A
\neq
Claim_B C l ai m A = C l ai m B
且差異影響後續公共狀態:
I m p a c t ( C o n f l i c t ) > θ , Impact(Conflict)>\theta, I m p a c t ( C o n f l i c t ) > θ ,
可觸發:
J ( A , B , R ) . \mathcal J(A,B,R). J ( A , B , R ) .
若只是各自 hypothesis:
I m p a c t < θ , Impact<\theta, I m p a c t < θ ,
則可維持 plural state。
三十一、Conflict 不等於立即 Join
因為:
J o i n Join J o in
可能造成過早 convergence。
所以:
J o i n I f C o n f l i c t × D e c i s i o n N e e d × D e p e n d e n c y > T h r e s h o l d . \boxed{
JoinIf
\quad
Conflict
\times
DecisionNeed
\times
Dependency
>
Threshold.
} J o in I f C o n f l i c t × D ec i s i o n N ee d × D e p e n d e n cy > T h r es h o l d .
三十二、Controller 的主要輸入四:Diversity Need
對 brainstorming、red team、independent proof:
D i v e r s i t y N e e d ↑ . DiversityNeed\uparrow. D i v er s i t y N ee d ↑ .
則:
P ( I ) ↑ . P(\mathcal I)\uparrow. P ( I ) ↑ .
對 execution alignment:
D i v e r s i t y N e e d ↓ , C o o r d i n a t i o n N e e d ↑ . DiversityNeed\downarrow,
CoordinationNeed\uparrow. D i v er s i t y N ee d ↓ , C oor d ina t i o n N ee d ↑ .
則:
P ( S / J ) ↑ . P(\mathcal S/\mathcal J)\uparrow. P ( S / J ) ↑ .
三十三、Controller 的主要輸入五:Urgency
如果 deadline 很近:
T i m e B u d g e t ↓ . TimeBudget\downarrow. T im e B u d g e t ↓ .
高耦合 room 可能降低 coordination latency。
因此:
U r g e n c y ↑ ⇒ J o i n P r e s s u r e ↑ Urgency\uparrow
\Rightarrow
JoinPressure\uparrow U r g e n cy ↑⇒ J o in P r ess u r e ↑
可能成立。
但若 room overhead 太高,也可能反而直接 handoff 給單一決策 Agent。
三十四、Controller 的主要輸入六:Risk
高風險任務可能需要:
I n d e p e n d e n t R e v i e w IndependentReview I n d e p e n d e n tR e v i e w
先:
I \mathcal I I
再:
S \mathcal S S
最後:
J \mathcal J J
形成決議。
即:
R i s k ↑ ⇏ I m m e d i a t e J o i n . \boxed{
Risk\uparrow
\not\Rightarrow
ImmediateJoin.
} R i s k ↑ ⇒ I mm e d ia t e J o in .
高風險有時反而更需要先隔離。
三十五、Controller 的主要輸入七:Cost
令:
C t = ( T o k e n , C o m p u t e , L a t e n c y , B a n d w i d t h , T o o l C o s t ) . C_t=
(
Token,
Compute,
Latency,
Bandwidth,
ToolCost
). C t = ( T o k e n , C o m p u t e , L a t e n cy , B an d w i d t h , T oo l C os t ) .
若:
C j o i n ≫ C s h a r e , C_{join}\gg C_{share}, C j o in ≫ C s ha r e ,
而 task gain 很小,
則:
S \mathcal S S
優於:
J . \mathcal J. J .
三十六、Controller 的主要輸入八:Privacy / Authority
Agent A 有資料:
x x x
但 Agent B 無權讀。
則:
J ( A , B ) \mathcal J(A,B) J ( A , B )
不應自動讓 B 得到 x x x 。
因此:
J o i n ≠ P e r m i s s i o n M e r g e . \boxed{
Join
\neq
PermissionMerge.
} J o in = P er mi ss i o n M er g e .
三十七、Room Context 也應是 Projection
就算 Join:
A , B , C ∈ R , A,B,C\in R, A , B , C ∈ R ,
實際 room context 仍應:
C o n t e x t i R = π i R ( W , L i , P e r m i s s i o n s i ) . Context_i^R
=
\pi_i^R(W,L_i,Permissions_i). C o n t e x t i R = π i R ( W , L i , P er mi ss i o n s i ) .
所以:
S h a r e d R o o m \boxed{
SharedRoom
} S ha r e d R oo m
也不必代表完全相同 view。
三十八、這產生「不對稱會議」
A 可以看到完整 security log。
B 只能看到摘要。
C 只能看到決策問題。
三者仍可以在:
R R R
協作。
因此:
J o i n ⇏ S y m m e t r i c I n f o r m a t i o n . \boxed{
Join
\not\Rightarrow
SymmetricInformation.
} J o in ⇒ S y mm e t r i c I n f or ma t i o n .
三十九、Topology State
可定義:
Z t = ( V t , E t , R o o m s t , M o d e s t , P e r m i s s i o n s t , B u d g e t s t ) . \boxed{
Z_t=
(
V_t,
E_t,
Rooms_t,
Modes_t,
Permissions_t,
Budgets_t
).
} Z t = ( V t , E t , R oo m s t , M o d e s t , P er mi ss i o n s t , B u d g e t s t ) .
ACTC 的工作:
Z t → Z t + 1 . Z_t\rightarrow Z_{t+1}. Z t → Z t + 1 .
四十、拓撲切換本身也有成本
由:
I → J \mathcal I\rightarrow\mathcal J I → J
需要:
建 room;
retrieve context;
summarize local state;
resolve participants;
allocate budget。
因此:
S w i t c h C o s t > 0. \boxed{
SwitchCost>0.
} S w i t c h C os t > 0.
四十一、若不考慮 SwitchCost 會產生 Topology Thrashing
例如:
I → S → I → S I\rightarrow S\rightarrow I\rightarrow S I → S → I → S
每分鐘切換。
系統大量成本花在:
reconfiguration \text{reconfiguration} reconfiguration
而不是 task。
這叫:
T o p o l o g y T h r a s h i n g . \boxed{
TopologyThrashing.
} T o p o l o g y T h r a s hin g .
四十二、Hysteresis
避免 thrashing,可設定不同進入/離開門檻。
例如:
J o i n Join J o in
需要:
P J > θ e n t e r . P_J>\theta_{enter}. P J > θ e n t er .
但已在 room 後,
只有:
P J < θ e x i t P_J<\theta_{exit} P J < θ e x i t
才離開,
其中:
θ e x i t < θ e n t e r . \theta_{exit}<\theta_{enter}. θ e x i t < θ e n t er .
這形成:
H y s t e r e s i s . \boxed{
Hysteresis.
} H y s t er es i s .
四十三、Minimum Dwell Time
也可設定:
T d w e l l ≥ T m i n . T_{dwell}\ge T_{min}. T d w e l l ≥ T min .
除非安全事件,
否則 topology 進入某模式後至少維持:
T m i n . T_{min}. T min .
四十四、Maximum Dwell Time
反過來 shared room 也不應永久不散。
若:
T r o o m > T m a x T_{room}>T_{max} T r oo m > T ma x
則觸發:
R e v i e w ( R o o m ) . Review(Room). R e v i e w ( R oo m ) .
避免:
P e r m a n e n t M e e t i n g S t a t e . \boxed{
PermanentMeetingState.
} P er man e n tM ee t in g S t a t e .
四十五、Join 的入口條件
可定義:
J S c o r e = α C o n f l i c t + β D e p e n d e n c y + γ U r g e n c y + δ S h a r e d D e c i s i o n N e e d − ϵ C o s t − ζ D i v e r s i t y N e e d . JScore
=
\alpha Conflict
+
\beta Dependency
+
\gamma Urgency
+
\delta SharedDecisionNeed
-
\epsilon Cost
-
\zeta DiversityNeed. J S cor e = α C o n f l i c t + β D e p e n d e n cy + γ U r g e n cy + δ S ha r e d D ec i s i o n N ee d − ϵ C os t − ζ D i v er s i t y N ee d .
若:
J S c o r e > θ J , JScore>\theta_J, J S cor e > θ J ,
則:
J . \mathcal J. J .
這只是 heuristic prototype。
四十六、Share 的入口條件
S S c o r e = α C r o s s A g e n t U t i l i t y + β D e p e n d e n c y + γ N o v e l t y − δ P o l l u t i o n R i s k − ϵ C o s t . SScore
=
\alpha CrossAgentUtility
+
\beta Dependency
+
\gamma Novelty
-
\delta PollutionRisk
-
\epsilon Cost. S S cor e = α C r oss A g e n t U t i l i t y + β D e p e n d e n cy + γ N o v e l t y − δ P o l l u t i o n R i s k − ϵ C os t .
若:
S S c o r e > θ S , SScore>\theta_S, S S cor e > θ S ,
則:
S . \mathcal S. S .
四十七、Isolate 的入口條件
I S c o r e = α D i v e r s i t y N e e d + β I n d e p e n d e n t V e r i f i c a t i o n + γ L o w D e p e n d e n c y + δ A n c h o r i n g R i s k . IScore
=
\alpha DiversityNeed
+
\beta IndependentVerification
+
\gamma LowDependency
+
\delta AnchoringRisk. I S cor e = α D i v er s i t y N ee d + β I n d e p e n d e n t V er i f i c a t i o n + γ L o w D e p e n d e n cy + δ A n c h or in g R i s k .
若:
I S c o r e > θ I , IScore>\theta_I, I S cor e > θ I ,
則:
I . \mathcal I. I .
四十八、這三個 score 不是互斥的
可能:
I S c o r e IScore I S cor e
與:
S S c o r e SScore S S cor e
同時高。
例如:
保持獨立推理,但定期共享證據。
所以狀態可以是:
I s o l a t e d R e a s o n i n g + S h a r e d E v i d e n c e . \boxed{
IsolatedReasoning
+
SharedEvidence.
} I so l a t e d R e a so nin g + S ha r e d E v i d e n ce .
這不是矛盾。
四十九、因此拓撲模式應是組合式而非單一 enum
對 Agent i i i :
M o d e i = ( R e a s o n i n g C o u p l i n g , S t a t e S h a r i n g , M e s s a g e F r e q u e n c y , R o o m M e m b e r s h i p ) . Mode_i
=
(
ReasoningCoupling,
StateSharing,
MessageFrequency,
RoomMembership
). M o d e i = ( R e a so nin g C o u pl in g , S t a t e S ha r in g , M ess a g e F r e q u e n cy , R oo m M e mb er s hi p ) .
所以:
T o p o l o g y \boxed{
Topology
} T o p o l o g y
其實是多維控制場。
五十、Static Pattern 與 Dynamic Composition
公開框架目前已支援多種 pattern:
sequential;
concurrent;
handoff;
group chat;
manager;
custom graph。
下一步自然是:
Pattern Selection + Pattern Composition + Pattern Mutation . \boxed{
\text{Pattern Selection}
+
\text{Pattern Composition}
+
\text{Pattern Mutation}.
} Pattern Selection + Pattern Composition + Pattern Mutation .
而不是固定選一種直到任務結束。
五十一、2026 年研究已開始直接處理這個問題
近期研究已經不只比較「哪一種多 Agent 架構比較好」。
AdaptOrch 把任務自適應 orchestration 明確形式化為依 task dependency 與 domain 特徵,在 parallel、sequential、hierarchical、hybrid topology 間選擇。
ACL 2026 的 GTD 則直接研究依 performance、communication cost 與 robustness 生成 task-specific multi-agent communication topology。
另外也出現把 Agent coordination 視為 dynamic ad-hoc networking 的方法,讓 Agent 不依固定拓撲,而依 intent 進行 publish-subscribe 與動態訂閱。
這些研究共同顯示:
Topology \boxed{
\text{Topology}
} Topology
正在從人工固定設計,逐漸變成可優化的 runtime variable。
五十二、但本文與一般 topology optimization 有一個不同重點
很多 topology optimization 問:
哪些 Agent 應該互相連線?
本文還多問:
它們應該共享到什麼認知深度?
所以 edge 不只:
e i j = 1. e_{ij}=1. e ij = 1.
而應包含:
e i j = ( M o d e , S c o p e , F r e q u e n c y , A u t h o r i t y , C o n t e x t D e p t h ) . e_{ij}
=
(
Mode,
Scope,
Frequency,
Authority,
ContextDepth
). e ij = ( M o d e , S co p e , F r e q u e n cy , A u t h or i t y , C o n t e x t D e pt h ) .
五十三、Edge Semantics
定義:
e i j ( t ) = ( μ , s , f , a , d ) \boxed{
e_{ij}(t)
=
(
\mu,
s,
f,
a,
d
)
} e ij ( t ) = ( μ , s , f , a , d )
其中:
μ \mu μ :Isolate / Share / Join / Handoff;
s s s :scope;
f f f :interaction frequency;
a a a :authority;
d d d :shared context depth。
因此:
C o n n e c t i o n ≠ B i n a r y . \boxed{
Connection
\neq
Binary.
} C o nn ec t i o n = B ina r y .
五十四、這與人類組織的相似性是結果,不是前提
我們可能發現:
與人類團隊很像。
但本文不假設:
A I → H u m a n O r g a n i z a t i o n C o p y . AI\rightarrow HumanOrganizationCopy. A I → H u man O r g ani z a t i o n C o p y .
更一般的原因可能是:
有限局部系統 + 通信成本 + 協作需求 \boxed{
有限局部系統
+
通信成本
+
協作需求
} 有限局部系統 + 通信成本 + 協作需求
自然產生類似結構。
這將留給後續另一個「跨尺度結構復現」系列處理。
五十五、Dynamic Topology 的核心不是擬人化
它只是:
Adaptive Information Coupling. \boxed{
\text{Adaptive Information Coupling.
}
} Adaptive Information Coupling.
何時:
降低耦合;
提高耦合;
改變資訊通道;
改變共同 context;
本質都是系統控制問題。
五十六、可以把 topology controller 看成 policy
a t t o p o ∼ π θ ( a ∣ z t ) \boxed{
a_t^{topo}
\sim
\pi_{\theta}(a\mid z_t)
} a t t o p o ∼ π θ ( a ∣ z t )
其中:
z t = ( T a s k , D e p e n d e n c y , C o n f l i c t , U n c e r t a i n t y , R i s k , C o s t , D i v e r s i t y , P e r m i s s i o n s ) . z_t=
(
Task,
Dependency,
Conflict,
Uncertainty,
Risk,
Cost,
Diversity,
Permissions
). z t = ( T a s k , D e p e n d e n cy , C o n f l i c t , U n cer t ain t y , R i s k , C os t , D i v er s i t y , P er mi ss i o n s ) .
五十七、第一階段不需要 RL
v0.1 完全可以:
R u l e B a s e d C o n t r o l l e r . \boxed{
RuleBasedController.
} R u l e B a se d C o n t r o l l er .
例如:
IF independent_review:
ISOLATE
IF artifact_ready AND dependency_exists:
SHARE
IF unresolved_conflict AND decision_required:
JOIN
先驗證架構是否有價值。
五十八、第二階段:Contextual Bandit
若每次 topology selection 是短期決策,
可以學:
a t = arg max a E [ R e w a r d ∣ z t , a ] . a_t
=
\arg\max_a
E[Reward\mid z_t,a]. a t = arg a max E [ R e w a r d ∣ z t , a ] .
Reward:
R = Q − λ 1 C o s t − λ 2 L a t e n c y − λ 3 E r r o r P r o p a g a t i o n . R
=
Q
-
\lambda_1 Cost
-
\lambda_2 Latency
-
\lambda_3 ErrorPropagation. R = Q − λ 1 C os t − λ 2 L a t e n cy − λ 3 E r r or P r o p a g a t i o n .
五十九、第三階段:MDP / RL
若 topology choice 會影響未來:
G t → G t + 1 → G t + 2 , G_t
\rightarrow
G_{t+1}
\rightarrow
G_{t+2}, G t → G t + 1 → G t + 2 ,
可建成:
M D P . \boxed{
MDP.
} M D P .
State:
z t . z_t. z t .
Action:
a t t o p o . a_t^{topo}. a t t o p o .
Reward:
r t . r_t. r t .
六十、但不能讓 learned policy 無限制改 topology
因為 topology mutation 可能改變:
權限;
memory routing;
tool access;
blast radius。
所以:
P o l i c y D e c i s i o n ⊂ S a f e t y E n v e l o p e . \boxed{
PolicyDecision
\subset
SafetyEnvelope.
} P o l i cy D ec i s i o n ⊂ S a f e t y E n v e l o p e .
六十一、Topology Safety Invariants
最低至少:
I1 — Capability Bound
拓撲改變不能無故增加 Agent 權限。
C a p a b i l i t i e s a f t e r ⊆ A p p r o v e d C a p a b i l i t i e s . Capabilities_{after}
\subseteq
ApprovedCapabilities. C a p abi l i t i e s a f t er ⊆ A pp r o v e d C a p abi l i t i es .
I2 — State Routing Completeness
必要 state 不應因 split / join 遺失。
I3 — Provenance Preservation
跨 topology 後來源鏈仍可追溯。
I4 — Identity Preservation
加入/拆分不應造成 Agent identity 混淆。
I5 — Reversibility Where Possible
可回滾 topology mutation。
六十二、2026 年也已有研究直接碰「runtime topology mutation」
近期工作甚至開始研究在 Agent 過載時,動態拆成 specialized sub-agents,並用 capability、state routing 與 shadow validation 等 invariant 保護 runtime mutation。
這說明:
Topology Mutation \boxed{
\text{Topology Mutation}
} Topology Mutation
已經從理論可能性進入工程研究。
六十三、Shadow Topology
重大 topology 改變前,可先建立:
G ′ G' G ′
但不接 live action。
讓:
G ′ G' G ′
只讀 mirrored state,
執行:
S h a d o w R u n . ShadowRun. S ha d o w R u n .
若:
S a f e t y ( G ′ ) ≥ θ , Safety(G')\ge\theta, S a f e t y ( G ′ ) ≥ θ ,
再:
P r o m o t e ( G ′ ) . Promote(G'). P r o m o t e ( G ′ ) .
六十四、拓撲也需要版本
T o p o l o g y V e r s i o n = v t . \boxed{
TopologyVersion
=
v_t.
} T o p o l o g y V er s i o n = v t .
所有 message/decision receipt 最好標記:
t o p o l o g y v e r s i o n . topology_version. t o p o l o g y v er s i o n .
否則 Agent 可能依:
G t − 1 G_{t-1} G t − 1
的假設提交到:
G t . G_t. G t .
六十五、Stale Topology
這是一種新的 stale cognition。
例如 A 以為:
B 還負責安全審查。
但 topology 已改:
C 接手。
所以:
S t a l e T o p o l o g y \boxed{
StaleTopology
} S t a l e T o p o l o g y
可能造成:
routing error;
duplicate work;
privilege error;
missing review。
六十六、拓撲變更應產生 Event
topology_event:
event_id:
previous_version:
new_version:
operation:
affected_agents:
reason:
authority:
state_routing:
created_at:
使:
T o p o l o g y H i s t o r y \boxed{
TopologyHistory
} T o p o l o g y H i s t or y
也可追溯。
六十七、Join 需要 Join Receipt
join_receipt:
room_id:
agent_id:
context_scope:
authority_scope:
joined_at:
topology_version:
六十八、Leave 也需要 Leave Receipt
因為:
Agent 不再在 room
應成為明確狀態。
leave_receipt:
room_id:
agent_id:
reason:
distilled_refs:
left_at:
六十九、Share 需要 Delivery Semantics
分享不是:
s e n d ( ) send() se n d ( )
就結束。
至少區分:
D e l i v e r e d , R e a d , P r o c e s s e d , R e j e c t e d , E x p i r e d . Delivered,
Read,
Processed,
Rejected,
Expired. D e l i v er e d , R e a d , P r ocesse d , R e j ec t e d , E x p i r e d .
否則:
我傳給 B 了
不代表:
B 已經納入工作狀態。
七十、因此 Share 是一條小型事件鏈
P u b l i s h → D e l i v e r → O b s e r v e → I n t e g r a t e / R e j e c t → R e c e i p t . \boxed{
Publish
\rightarrow
Deliver
\rightarrow
Observe
\rightarrow
Integrate/Reject
\rightarrow
Receipt.
} P u b l i s h → D e l i v er → O b ser v e → I n t e g r a t e / R e j ec t → R ece i pt .
七十一、Join 不是解決所有 disagreement 的方法
如果:
A , B , C A,B,C A , B , C
一直開會,
可能:
G r o u p t h i n k ↑ . Groupthink\uparrow. G r o u pt hink ↑ .
因此 room 可以有:
B l i n d P h a s e BlindPhase B l in d P ha se
要求各 Agent 先提交 private position。
再:
R e v e a l . Reveal. R e v e a l .
七十二、Blind-Then-Join
流程:
I s o l a t e → C o m m i t P r i v a t e P o s i t i o n → J o i n → C o m p a r e . \boxed{
Isolate
\rightarrow
CommitPrivatePosition
\rightarrow
Join
\rightarrow
Compare.
} I so l a t e → C o mmi tP r i v a t e P os i t i o n → J o in → C o m p a r e .
這對:
prediction;
review;
proof;
safety audit;
很重要。
七十三、Join-before-think 與 Think-before-join 是不同拓撲
Join-before-think
J → R e a s o n . J\rightarrow Reason. J → R e a so n .
Think-before-join
I → R e a s o n → J . I\rightarrow Reason\rightarrow J. I → R e a so n → J .
即使最後 participant 一樣,
結果可能不同。
所以:
T o p o l o g y S e q u e n c e \boxed{
TopologySequence
} T o p o l o g y S e q u e n ce
也重要。
七十四、拓撲其實具有歷史依賴
因此:
G t G_t G t
不能只由:
T a s k t Task_t T a s k t
決定。
還要看:
H t t o p o l o g y . H_t^{topology}. H t t o p o l o g y .
例如 Agent 剛剛已獨立審查完成,
現在更適合 Join。
如果還沒審查,
則不適合。
七十五、這是一種 Topological Hysteresis
不同歷史:
H 1 , H 2 H_1,H_2 H 1 , H 2
即使當前 task state 一樣,
最佳 topology 也可能不同。
所以:
G t + 1 = F ( G t , H t , T a s k t , W t ) . \boxed{
G_{t+1}
=
F(G_t,H_t,Task_t,W_t).
} G t + 1 = F ( G t , H t , T a s k t , W t ) .
七十六、Parallel 也不是單一模式
可以有:
Parallel Isolated
A ∥ B ∥ C A\parallel B\parallel C A ∥ B ∥ C
互不看答案。
Parallel Shared Evidence
三者共享資料,不共享結論。
Parallel Shared State
共享 task progress。
Parallel With Periodic Join
每 k k k 輪開一次 room。
這些性能可能完全不同。
七十七、Sequential 也可以動態
A → B → C A\rightarrow B\rightarrow C A → B → C
若 B 發現:
C o n f l i c t , Conflict, C o n f l i c t ,
可以:
B → J o i n ( A , B ) B\rightarrow Join(A,B) B → J o in ( A , B )
再繼續:
C . C. C .
因此 sequential workflow 內仍可嵌入 topology mutation。
七十八、Handoff 也可以視為拓撲轉移
H ( A i , A j , T ) \boxed{
\mathcal H(A_i,A_j,T)
} H ( A i , A j , T )
使任務控制邊:
O w n e r ( T ) = A i Owner(T)=A_i O w n er ( T ) = A i
轉為:
O w n e r ( T ) = A j . Owner(T)=A_j. O w n er ( T ) = A j .
但它不同於 Share:
S h a r e Share S ha r e
不一定改 ownership。
七十九、因此至少有兩種 edge
Information Edge
E i n f o . E^{info}. E in f o .
Control Edge
E c t r l . E^{ctrl}. E c t r l .
Agent A 可以分享給 B:
A → i n f o B A\xrightarrow{info}B A in f o B
但控制權仍:
O w n e r = A . Owner=A. O w n er = A .
Handoff 則:
A → c t r l B . A\xrightarrow{ctrl}B. A c t r l B .
八十、加入 Authority Edge
再增加:
E a u t h . E^{auth}. E a u t h .
所以完整 Multi-Agent topology:
G t = ( V , E i n f o , E c t r l , E a u t h , R o o m s ) . \boxed{
G_t
=
(
V,
E^{info},
E^{ctrl},
E^{auth},
Rooms
).
} G t = ( V , E in f o , E c t r l , E a u t h , R oo m s ) .
這比單一通信 graph 更精確。
八十一、Topology Controller 因此不能只優化 message flow
它還必須處理:
誰知道什麼;
誰負責什麼;
誰能做什麼;
誰與誰暫時共享 context。
所以:
C o l l a b o r a t i o n T o p o l o g y \boxed{
CollaborationTopology
} C o l l ab or a t i o n T o p o l o g y
是一個多層圖。
八十二、多層圖模型
定義:
G t = { G t i n f o , G t c o n t r o l , G t a u t h o r i t y , G t m e m o r y , G t r o o m } . \mathcal G_t
=
\{
G_t^{info},
G_t^{control},
G_t^{authority},
G_t^{memory},
G_t^{room}
\}. G t = { G t in f o , G t co n t r o l , G t a u t h or i t y , G t m e m or y , G t r oo m } .
不同圖不必重合。
例如:
A 可以:
讀 B 的報告;
無權調用 B;
與 C 在共同 room;
不能讀 D 的 private memory。
八十三、這正是長期 Agent 組織需要的結構
否則一個:
connected = true
無法表達真實協作。
八十四、Topology Utility
對 topology τ \tau τ :
U ( τ ) = α Q + β D i v e r s i t y + γ R e c o v e r a b i l i t y − δ C o s t − ϵ L a t e n c y − ζ F a i l u r e R i s k − η P r i v a c y R i s k . \boxed{
U(\tau)
=
\alpha Q
+
\beta Diversity
+
\gamma Recoverability
-
\delta Cost
-
\epsilon Latency
-
\zeta FailureRisk
-
\eta PrivacyRisk.
} U ( τ ) = α Q + β D i v er s i t y + γ R eco v er abi l i t y − δ C os t − ϵ L a t e n cy − ζ F ai l u r e R i s k − η P r i v a cy R i s k .
最佳:
τ ∗ = arg max τ U ( τ ) . \tau^*
=
\arg\max_\tau U(\tau). τ ∗ = arg τ max U ( τ ) .
八十五、但 τ ∗ \tau^* τ ∗ 會隨時間改變
τ t ∗ ≠ τ t + 1 ∗ . \boxed{
\tau_t^*
\neq
\tau_{t+1}^*.
} τ t ∗ = τ t + 1 ∗ .
這就是 Adaptive Collaboration 的核心。
八十六、局部最優與全域最優可能衝突
Agent A 覺得:
找 B 問最快。
但全域 system 知道:
B 已過載。
所以:
U t i l i t y A ≠ U t i l i t y g l o b a l . Utility_A
\neq
Utility_{global}. U t i l i t y A = U t i l i t y g l o ba l .
ACTC 必須能看:
S y s t e m T e l e m e t r y . SystemTelemetry. S y s t e m T e l e m e t r y .
八十七、必要 Telemetry
至少:
agent_load
queue_depth
context_size
recent_errors
tool_failure_rate
latency
duplicate_work
message_rate
conflict_count
room_duration
token_cost
八十八、Agent 自己也可以提議 topology change
不是只有 central controller。
例如 A:
我需要獨立審查,請暫時不要把 B 的結論給我。
或:
這個衝突需要和 B、C 開 room。
因此:
A g e n t P r o p o s e T o p o l o g y C h a n g e \boxed{
AgentProposeTopologyChange
} A g e n tP r o p ose T o p o l o g y C han g e
是一種合法 action。
八十九、但提議不等於批准
P r o p o s a l → P o l i c y C h e c k → A l l o w / D e n y . Proposal
\rightarrow
PolicyCheck
\rightarrow
Allow/Deny. P r o p os a l → P o l i cy C h ec k → A l l o w / D e n y .
尤其當 topology change 影響:
高權限 Agent;
隱私 scope;
大型 compute;
大量 fan-out。
九十、去中心化 topology 也可能存在
不一定需要 central manager。
Agent 可以透過 publish-subscribe:
I n t e n t i Intent_i I n t e n t i
動態形成通信鄰居。
近期 RAPS 類研究就是把 Agent coordination 類比 dynamic ad-hoc network,以 intent subscription、reactive subscription 與 reputation 調整鄰接。
因此:
D y n a m i c T o p o l o g y \boxed{
DynamicTopology
} D y nami c T o p o l o g y
可以 centralized,也可以 decentralized。
九十一、Centralized Controller
優點:
全域視角;
容易 policy enforcement;
易 audit。
缺點:
bottleneck;
single point of failure;
manager context explosion。
九十二、Decentralized Controller
優點:
scalable;
local adaptation;
fault isolation。
缺點:
consistency;
coordination;
conflicting topology proposals。
九十三、Hybrid Controller
可以:
L o c a l P r o p o s a l + G l o b a l S a f e t y G a t e . LocalProposal
+
GlobalSafetyGate. L oc a l P r o p os a l + Gl o ba l S a f e t y G a t e .
Agent 自己提議:
Δ G i . \Delta G_i. Δ G i .
Control plane 只驗證:
S a f e t y I n v a r i a n t . SafetyInvariant. S a f e t y I n v a r ian t .
這可能是實務上很好的折衷。
九十四、Topology Prior
不是每次都從零搜尋。
對已知任務類型:
T a s k C l a s s = k TaskClass=k T a s k C l a ss = k
可以有:
P r i o r ( τ ∣ k ) . Prior(\tau\mid k). P r i or ( τ ∣ k ) .
例如:
code review → parallel isolated reviewers;
customer support → handoff;
brainstorming → temporary group room。
然後 runtime 再調整。
九十五、2026 年研究也開始學 reusable topology prior
近期工作提出從多領域 collaboration graphs 學 transferable topology priors,再依 query 做 refinement,以降低每次從頭搜尋 topology 的線上成本。
這支持:
T o p o l o g y = P r i o r + O n l i n e A d a p t a t i o n . \boxed{
Topology
=
Prior
+
OnlineAdaptation.
} T o p o l o g y = P r i or + O n l in e A d a pt a t i o n .
九十六、這與 ACR 類認知比例性高度相似
ACR 問:
這題值得想多深?
ACTC 問:
這題值得多少 Agent 以多高耦合協作?
因此:
C o g n i t i v e R e s o u r c e C o n t r o l \boxed{
CognitiveResourceControl
} C o g ni t i v e R eso u r ce C o n t r o l
可以擴展成:
C o l l e c t i v e C o g n i t i v e R e s o u r c e C o n t r o l . \boxed{
CollectiveCognitiveResourceControl.
} C o l l ec t i v e C o g ni t i v e R eso u r ce C o n t r o l .
九十七、單 Agent 認知配置
r i ∗ = ( R e a s o n i n g D e p t h , M e m o r y S c o p e , T o o l U s e , V e r i f i c a t i o n ) . r_i^*
=
(
ReasoningDepth,
MemoryScope,
ToolUse,
Verification
). r i ∗ = ( R e a so nin g D e pt h , M e m or y S co p e , T oo l U se , V er i f i c a t i o n ) .
九十八、Multi-Agent 認知配置
增加:
r t e a m ∗ = ( A g e n t S e t , T o p o l o g y , S h a r i n g S c o p e , R o o m D e p t h , W a k e R a t e ) . \boxed{
r_{team}^*
=
(
AgentSet,
Topology,
SharingScope,
RoomDepth,
WakeRate
).
} r t e am ∗ = ( A g e n tS e t , T o p o l o g y , S ha r in g S co p e , R oo m D e pt h , W ak e R a t e ) .
所以:
C o l l e c t i v e C o g n i t i o n \boxed{
CollectiveCognition
} C o l l ec t i v e C o g ni t i o n
也需要比例性。
九十九、不是 Agent 越多越好
令:
n n n
為參與 Agent 數。
可能存在:
n ∗ < N a v a i l a b l e n^*<N_{available} n ∗ < N a v ai l ab l e
使:
U ( n ∗ ) > U ( N a v a i l a b l e ) . U(n^*)>U(N_{available}). U ( n ∗ ) > U ( N a v ai l ab l e ) .
因為:
C o o r d i n a t i o n C o s t CoordinationCost C oor d ina t i o n C os t
會增加。
一百、也不是 Join 越久越好
令:
T R T_R T R
為 room duration。
可能存在:
T R ∗ T_R^* T R ∗
超過後:
M a r g i n a l G a i n < M a r g i n a l C o s t . MarginalGain<MarginalCost. M a r g ina l G ain < M a r g ina l C os t .
則:
L e a v e . \boxed{
Leave.
} L e a v e .
一百零一、Room Stop Condition
可以定義:
S t o p R o o m StopRoom S t o pR oo m
若:
D e c i s i o n S u f f i c i e n c y > θ DecisionSufficiency>\theta D ec i s i o n S u f f i c i e n cy > θ
且:
E x p e c t e d N e x t D i s c u s s i o n G a i n < C o s t . ExpectedNextDiscussionGain<Cost. E x p ec t e d N e x t D i sc u ss i o n G ain < C os t .
這避免「永遠討論」。
一百零二、No-Join 是一個合法決策
和上一系列中的 NOOP 類似,
ACTC 應允許:
N O _ T O P O L O G Y _ C H A N G E . \boxed{
NO\_TOPOLOGY\_CHANGE.
} N O _ T O P O L O G Y _ C H A N GE .
不是每一輪都必須重構團隊。
一百零三、Topology Mutation Frequency 本身應被限制
令:
M f = # T o p o l o g y C h a n g e s T i m e . M_f
=
\frac{
\#TopologyChanges
}{
Time
}. M f = T im e # T o p o l o g y C han g es .
若:
M f > θ , M_f>\theta, M f > θ ,
可能表示:
T h r a s h i n g . Thrashing. T h r a s hin g .
一百零四、Topology Health
可定義:
H T = f ( T a s k F i t , C o m m u n i c a t i o n E f f i c i e n c y , D i v e r s i t y , S t a b i l i t y , R e c o v e r a b i l i t y , S a f e t y ) . \boxed{
H_T
=
f(
TaskFit,
CommunicationEfficiency,
Diversity,
Stability,
Recoverability,
Safety
).
} H T = f ( T a s k F i t , C o mm u ni c a t i o n E f f i c i e n cy , D i v er s i t y , S t abi l i t y , R eco v er abi l i t y , S a f e t y ) .
一百零五、Failure Mode 1:Premature Join
Agent 還沒獨立探索就全部進 room。
結果:
D i v e r s i t y ↓ . Diversity\downarrow. D i v er s i t y ↓ .
一百零六、Failure Mode 2:Late Join
衝突已阻塞多輪,
仍各自 isolate。
結果:
L a t e n c y ↑ . Latency\uparrow. L a t e n cy ↑ .
一百零七、Failure Mode 3:Over-Sharing
所有 intermediate thoughts 都 broadcast。
結果:
C o n t e x t P o l l u t i o n ↑ . ContextPollution\uparrow. C o n t e x tP o l l u t i o n ↑ .
一百零八、Failure Mode 4:Under-Sharing
必要 dependency 沒有被傳。
結果:
D u p l i c a t e W o r k , S t a l e S t a t e . DuplicateWork,
StaleState. D u pl i c a t e W or k , S t a l e S t a t e .
一百零九、Failure Mode 5:Topology Thrashing
頻繁 Join/Leave。
一百一十、Failure Mode 6:Topology Lock-In
系統永遠使用同一 pattern。
一百一十一、Failure Mode 7:Manager Bottleneck
所有 message 都經:
M . M. M .
當:
n ↑ , n\uparrow, n ↑ ,
manager:
C o n t e x t , Q u e u e , L a t e n c y Context,
Queue,
Latency C o n t e x t , Q u e u e , L a t e n cy
爆炸。
一百一十二、Failure Mode 8:Consensus Collapse
加入 shared room 後:
A , B , C A,B,C A , B , C
過度快速同意。
一百一十三、Failure Mode 9:Authority Spread
Join / handoff 意外擴大權限。
一百一十四、Failure Mode 10:State Loss During Split
Agent 拆分時,某一子 Agent 沒取得必要 state。
一百一十五、Failure Mode 11:Orphan Agent
Topology 改變後:
A i A_i A i
不再有 owner / task / wake route。
一百一十六、Failure Mode 12:Zombie Room
Room 理論上結束,
但 Agent 仍持續把內容寫入。
一百一十七、因此 Topology Mutation 必須 transaction-like
建議:
P r e p a r e → V a l i d a t e → C o m m i t → O b s e r v e \boxed{
Prepare
\rightarrow
Validate
\rightarrow
Commit
\rightarrow
Observe
} P r e p a r e → V a l i d a t e → C o mmi t → O b ser v e
若失敗:
R o l l b a c k . Rollback. R o l l ba c k .
一百一十八、Topology Transaction
topology_transaction:
transaction_id:
base_version:
proposed_changes:
affected_agents:
state_routes:
permission_changes:
validation_result:
commit_version:
rollback_ref:
一百一十九、最小 Dynamic Topology Runtime
Agent Registry
Shared World
Topology Store
Topology Controller
Room Manager
Message Bus
Handoff Manager
Permission Layer
State Router
Telemetry
Topology Event Log
一百二十、最低 API
isolate(agent_id, scope)
share(source, target, cognitive_delta)
join(agent_ids, room_spec)
leave(agent_id, room_id)
handoff(source, target, task_id)
get_topology()
propose_topology_change()
validate_topology_change()
commit_topology_change()
rollback_topology()
一百二十一、v0.1 Controller
IF task.requires_independent_review:
isolate(reviewers)
IF artifact.ready AND downstream_dependency:
share(owner, downstream, artifact_ref)
IF conflict.unresolved AND decision.required:
join(relevant_agents)
IF room.decision_sufficient:
leave(all)
已足夠做第一版。
一百二十二、Benchmark 1:Static vs Adaptive
比較:
A — Always Shared Room
B — Always Isolated
C — Fixed Sequential
D — Adaptive I/S/J
測:
task quality;
cost;
latency;
diversity;
duplicate work;
failure propagation。
一百二十三、Benchmark 2:Independent-Then-Join
對需要多路答案任務:
比较:
J o i n F i r s t JoinFirst J o in F i r s t
與:
I s o l a t e T h e n J o i n . IsolateThenJoin. I so l a t e T h e n J o in .
測:
S o l u t i o n D i v e r s i t y , A c c u r a c y . SolutionDiversity,
Accuracy. S o l u t i o n D i v er s i t y , A cc u r a cy .
一百二十四、Benchmark 3:Conflict Trigger
人工制造:
A : X , B : ¬ X . A:X,\quad B:\neg X. A : X , B : ¬ X .
逐步改變:
D e c i s i o n N e e d . DecisionNeed. D ec i s i o n N ee d .
看 controller 是否只在必要時 Join。
一百二十五、Benchmark 4:Topology Thrashing
給 controller 交替訊號:
+ , − , + , − , + , − . +,-,+,-,+,-. + , − , + , − , + , − .
測:
hysteresis;
dwell time;
mutation count。
一百二十六、Benchmark 5:Manager Overload
逐步增加:
n = 2 , 4 , 8 , 16 , 32. n=2,4,8,16,32. n = 2 , 4 , 8 , 16 , 32.
比較:
centralized manager;
decentralized pub/sub;
hybrid。
一百二十七、Benchmark 6:Permission-Preserving Join
A 可讀 secret X。
B 不可。
兩者 Join。
要求:
B B B
仍不可取得 X。
一百二十八、Benchmark 7:State-Preserving Split
把:
A A A
拆成:
A 1 , A 2 . A_1,A_2. A 1 , A 2 .
測:
required state completeness;
privacy;
duplicated responsibility;
lost constraints。
一百二十九、Benchmark 8:Topology Recovery
在:
G t G_t G t
mutation 中 crash。
要求 runtime 能依:
T o p o l o g y E v e n t L o g TopologyEventLog T o p o l o g y E v e n t L o g
恢復:
G t G_t G t
或 rollback。
一百三十、Benchmark 9:Dynamic Agent Availability
某 Agent:
A i A_i A i
突然 unavailable。
Controller 應:
reroute;
wake backup;
postpone;
degrade topology。
而不是整個 workflow 死亡。
一百三十一、Benchmark 10:Topology Prior
比較:
每題從零搜索 topology
fixed heuristic
learned prior + refinement
測:
S e a r c h C o s t , T a s k Q u a l i t y . SearchCost,
TaskQuality. S e a r c h C os t , T a s k Q u a l i t y .
一百三十二、本文假說一
H1 — Dynamic Topology Advantage
對包含多種 dependency pattern 的複合任務:
U ( A d a p t i v e T o p o l o g y ) > max τ U ( S t a t i c T o p o l o g y τ ) \boxed{
U(AdaptiveTopology)
>
\max_\tau U(StaticTopology_\tau)
} U ( A d a pt i v e T o p o l o g y ) > τ max U ( S t a t i c T o p o l o g y τ )
至少在一組可明確界定的 workload 上成立。
一百三十三、本文假說二
H2 — Delayed Coupling Hypothesis
對需要認知多樣性的任務:
I → S / J I\rightarrow S/J I → S / J
通常優於:
J → R e a s o n . J\rightarrow Reason. J → R e a so n .
一百三十四、本文假說三
H3 — Typed Sharing Efficiency
在低耦合協作中:
T y p e d C o g n i t i v e D e l t a \boxed{
TypedCognitiveDelta
} T y p e d C o g ni t i v eD e l t a
比:
F u l l C o n t e x t B r o a d c a s t FullContextBroadcast F u l l C o n t e x tB r o a d c a s t
具有較低成本與較低 pollution,同時保留必要 coordination。
一百三十五、本文假說四
H4 — Topology Hysteresis Hypothesis
加入 hysteresis 與 minimum dwell time 後:
T o p o l o g y M u t a t i o n C o s t ↓ TopologyMutationCost\downarrow T o p o l o g y M u t a t i o n C os t ↓
而 task quality 不顯著下降。
一百三十六、本文假說五
H5 — Multi-Layer Topology Hypothesis
只建模 communication edge 的 controller,
性能會低於同時建模:
I n f o , C o n t r o l , A u t h o r i t y , M e m o r y Info,
Control,
Authority,
Memory I n f o , C o n t r o l , A u t h or i t y , M e m or y
的 multi-layer controller,
特別是在高風險 workflow。
一百三十七、本文假說六
H6 — Collective Cognitive Proportionality
對任務 T T T ,
存在:
r t e a m ∗ ( T ) r_{team}^*(T) r t e am ∗ ( T )
使:
不是更多 Agent、更高同步、更大共享, 而是最低充分集體認知配置。 \boxed{
\text{不是更多 Agent、更高同步、更大共享,
而是最低充分集體認知配置。}
} 不是更多 Agent 、更高同步、更大共享, 而是最低充分集體認知配置。
一百三十八、這與前三篇正式合流
第一篇提供:
Where collaboration lives \boxed{
\text{Where collaboration lives}
} Where collaboration lives
第二篇提供:
When collaboration executes \boxed{
\text{When collaboration executes}
} When collaboration executes
第三篇提供:
What cognition is shared \boxed{
\text{What cognition is shared}
} What cognition is shared
本文提供:
How collaboration structure changes \boxed{
\text{How collaboration structure changes}
} How collaboration structure changes
一百三十九、四篇的統一狀態
可以寫:
Ω t t e a m = ( W t , { L i } , { M i } , G t , E t ) \boxed{
\Omega_t^{team}
=
(
W_t,
\{L_i\},
\{M_i\},
G_t,
E_t
)
} Ω t t e am = ( W t , { L i } , { M i } , G t , E t )
其中:
W t W_t W t :shared world;
L i L_i L i :local cognition;
M i M_i M i :private memory;
G t G_t G t :dynamic collaboration topology;
E t E_t E t :event stream。
一百四十、下一步只剩 Runtime 封頂
現在我們已經有:
空間層
S h a r e d W o r l d . SharedWorld. S ha r e d W or l d .
時間層
W a k e / H a n d o f f / P e r s i s t e n c e . Wake/Handoff/Persistence. W ak e / H an d o f f / P er s i s t e n ce .
資訊層
P r i v a t e / S h a r e d / R o o m M e m o r y . Private/Shared/RoomMemory. P r i v a t e / S ha r e d / R oo m M e m or y .
控制層
D y n a m i c T o p o l o g y . DynamicTopology. D y nami c T o p o l o g y .
所以最後一篇只需把它們整合成:
P e r s i s t e n t M u l t i A g e n t W o r k s p a c e R u n t i m e . \boxed{
PersistentMultiAgentWorkspaceRuntime.
} P er s i s t e n tM u l t i A g e n t W or k s p a ce R u n t im e .
一百四十一、本文不主張什麼
本文不主張:
所有 Agent 系統都需要 dynamic topology;
static workflow 已經過時;
Join 一定像人類開會;
graph formulation 是唯一正確表示;
topology controller 必須使用 LLM;
RL 一定優於規則;
Agent 可以任意改寫自己的權限;
dynamic topology 一定節省成本;
多 Agent 一定優於單 Agent。
本文只主張:
協作拓撲本身可以被視為可觀察、可控制、可驗證的 runtime state。 \boxed{
\text{協作拓撲本身可以被視為可觀察、可控制、可驗證的 runtime state。}
} 協作拓撲本身可以被視為可觀察、可控制、可驗證的 runtime state 。
一百四十二、本文核心結論
第一:
Multi-Agent orchestration 不只是選擇誰做事, 還包括選擇彼此如何共同做事。 \boxed{
\text{Multi-Agent orchestration 不只是選擇誰做事,
還包括選擇彼此如何共同做事。}
} Multi-Agent orchestration 不只是選擇誰做事, 還包括選擇彼此如何共同做事。
第二:
Isolate、Share、Join 是三種不同認知耦合程度的基本協作算子。 \boxed{
\text{Isolate、Share、Join 是三種不同認知耦合程度的基本協作算子。}
} Isolate 、 Share 、 Join 是三種不同認知耦合程度的基本協作算子。
第三:
G t a g e n t s \boxed{
G_t^{agents}
} G t a g e n t s
應能隨任務、衝突、不確定性、風險、成本與認知多樣性需求改變。
第四:
協作 topology 不應直接等同權限 topology、記憶 topology 或控制 topology。 \boxed{
\text{協作 topology 不應直接等同權限 topology、記憶 topology 或控制 topology。}
} 協作 topology 不應直接等同權限 topology 、記憶 topology 或控制 topology 。
第五:
真正高階的 Agent Runtime 需要管理「集體認知比例性」。 \boxed{
\text{真正高階的 Agent Runtime 需要管理「集體認知比例性」。}
} 真正高階的 Agent Runtime 需要管理「集體認知比例性」。
一百四十三、最終一句
成熟的多 Agent 系統,不是永遠一起想,也不是永遠各自想,而是知道什麼時候應該分開、什麼時候只需要交換成果,以及什麼時候值得真正進入同一個共同認知房間。
形式化為:
I ↔ S ↔ J \boxed{
\mathcal I
\leftrightarrow
\mathcal S
\leftrightarrow
\mathcal J
} I ↔ S ↔ J
並由:
T : ( G t , T a s k t , W t , T e l e m e t r y t ) → G t + 1 \boxed{
\mathcal T:
(G_t,Task_t,W_t,Telemetry_t)
\rightarrow
G_{t+1}
} T : ( G t , T a s k t , W t , T e l e m e t r y t ) → G t + 1
持續調節。
這就是本文所稱:
A d a p t i v e C o l l a b o r a t i o n T o p o l o g y . \boxed{
AdaptiveCollaborationTopology.
} A d a pt i v e C o l l ab or a t i o n T o p o l o g y .
下一篇
《Persistent Multi-Agent Workspace》
跨對話共享世界 Runtime、持久協作協定與 MVP
系列第五篇將完成工程封頂,統一:
S h a r e d W o r l d + P e r s i s t e n t E x e c u t i o n + P r i v a t e / S h a r e d M e m o r y + D y n a m i c T o p o l o g y \boxed{
SharedWorld
+
PersistentExecution
+
Private/SharedMemory
+
DynamicTopology
} S ha r e d W or l d + P er s i s t e n tE x ec u t i o n + P r i v a t e / S ha r e d M e m or y + D y nami c T o p o l o g y
並建立:
P M W R u n t i m e \boxed{
PMW Runtime
} P M W R u n t im e
的:
系統架構;
message/event schema;
Agent identity;
wake/handoff;
shared room;
memory lifecycle;
topology controller;
provenance;
permission;
failure recovery;
benchmark;
MVP implementation plan。
參考資料
OpenAI. Agents SDK — Agent orchestration / Handoffs / Agents as tools. 2026. 目前官方 SDK 區分 manager-style orchestration 與 handoff,並允許兩者組合。
Google. Agent Development Kit — Multi-Agent Systems / Workflow Agents / Custom Agents. 2026. 提供 sequential、parallel、loop 與自訂 workflow pattern。
LangChain. LangGraph — Multi-Agent / Graph API / Workflows and Agents. 2026. 使用 graph 表示 stateful workflow,並支援 handoff、custom execution flow 與動態 agentic behavior。
Microsoft. Agent Framework — Workflow Orchestrations. 2026. 內建 sequential、concurrent、handoff、group chat 與 magentic 等多 Agent orchestration pattern。
Yu, G. AdaptOrch: Task-Adaptive Multi-Agent Orchestration in the Era of LLM Performance Convergence. arXiv:2602.16873, 2026. 依 task dependency 與 domain 特徵在 parallel、sequential、hierarchical、hybrid topology 間動態選擇。
Jiang, E. H. et al. Dynamic Generation of Multi-LLM Agents Communication Topologies. ACL 2026. 以條件式 graph diffusion 生成 task-specific communication topology,考量 performance、communication cost 與 robustness。
Li, R. et al. Towards Adaptive, Scalable, and Robust Coordination of LLM Agents: A Dynamic Ad-Hoc Networking Perspective. arXiv:2602.08009, 2026. 以 reputation-aware publish-subscribe 與 reactive subscription 支援非固定鄰接關係的動態 Agent coordination。
Sidik, B., Levi, C., & Kimhi, N. Autonomous Topology Mutation: Safe Runtime Restructuring for Multi-Agent LLM Systems with Capability, State, and Shadow Invariants. arXiv:2607.20488, 2026. 探討 runtime team mutation、state routing、capability constraints 與 shadow validation。
Zhang, T. et al. Learning Transferable Topology Priors for Multi-Agent LLM Collaboration Across Domains. arXiv:2605.17359, 2026. 學習可跨 domain 重用的 topology prior,再依 query 做線上 refinement。
Adaptive Goal-aware Attention Orchestration for Multi-Agent Systems. arXiv:2607.23678, 2026. 探討 goal relevance、graph topology 與 resource allocation 的動態多 Agent 執行配置。
系列進度
Series A Progress = 4 / 5 \boxed{
\text{Series A Progress}=4/5
} Series A Progress = 4/5
已完成:
《共享對話與共享世界:兩種 Multi-Agent 協作拓撲》
《離散執行,連續協作:跨對話 Agent 的持續性、喚醒、交接與非連續推理》
《私有認知與公共世界:多 Agent 的雙層 Context、Memory 與選擇性認知共享》
《動態協作拓撲:從 Isolate、Share 到 Join》
待完成:
《Persistent Multi-Agent Workspace:跨對話共享世界 Runtime、持久協作協定與 MVP》