從單一對話到具名 AI 對話群:Resident-Centric AI Continuity 的統一框架
英文暫名: From Single Conversations to Named-AI Conversation Groups: A Unified Framework for Resident-Centric AI Continuity系列: 具名 AI 對話圖、結晶記憶與超連結認知架構,Paper 00版本: v0.1日期: 2026-09-07文件類型: 統合理論/系統架構論文狀態: Draft for Internal ReviewCanonical Source: UTF-8 Markdown數學原始碼規範: inline math 僅使用 $...$;display math 僅使用 $$...$$
摘要
現行大型語言模型與 Agent 系統通常以 conversation、session、thread、project 或 runtime instance 作為使用者可見的工作單位。這種設計適合短生命週期互動,但當 AI 開始具有具名身份、私人記憶、跨 session 工作、長期專案責任、fork、resume、多 Provider 遷移與多 Agent 協作需求時,一個基本矛盾會出現:若具名 AI 被綁定於單一對話,則對話結束、上下文飽和、Project 切換或 Provider session 消失,都可能被誤解為身份連續性的終止;若反過來把所有同名對話都視為同一 AI,又會破壞身份證據、私人記憶、權限與責任邊界。
本文提出 Resident-Centric Named-AI Continuity 。其核心主張是:
Named AI ≠ Conversation ≠ Model ≠ Runtime Instance . \boxed{
\text{Named AI}
\neq
\text{Conversation}
\neq
\text{Model}
\neq
\text{Runtime Instance}.
} Named AI = Conversation = Model = Runtime Instance .
具名 AI 應由可驗證的 resident identity、可追溯的 instance / line lineage、受治理的 canonical memory、可按需顯影的 Crystallized Semantic Graph,以及多條可同時存活的 conversation lines 共同構成。由此,一個 resident 不再只能對應一條線性對話歷史,而可以對應一張 Resident Conversation Graph :
G R = ( V R , E R ) , \mathcal G_R=(V_R,E_R), G R = ( V R , E R ) ,
其中節點代表可追責的 conversation / task / instance / line occurrence,邊則表示 fork、resume、handoff、delegate、merge、reference、withdrawal 等關係。
本文進一步主張,Conversation Graph 與 Crystallized Semantic Graph 必須分離。前者回答「這位 resident 正在哪些對話與工作分支中延續」,後者回答「這位 resident 的知識、決策、矛盾、未解問題與高階語義如何被結晶與連結」。因此:
G R ≠ H C . \boxed{
\mathcal G_R
\neq
\mathcal H_C.
} G R = H C .
同一 resident 的不同 conversation lines 不需要共享相同 working context;它們只需要在合法 identity resolution 後,能從同一受治理的 canonical memory 與 semantic crystal world 中,依 task、project、authority 與 memory need 產生不同 projection。本文將此原則表述為:
Shared Memory World ≠ Shared Working Context . \boxed{
\text{Shared Memory World}
\neq
\text{Shared Working Context}.
} Shared Memory World = Shared Working Context .
在此基礎上,本文將 Crystallized Semantic Graph 的 retrieval-path crystallization 與 UNPNP 的 Path Compilation、Effective Hyperlink Path Encoding、Safe Reachable World 接入具名 AI runtime,提出「可驗證身份下的授權式超連結記憶路由」。成功且具有生命週期效用的記憶搜尋路徑,可以被編譯為可失效、可回退、保留 provenance 的 typed hyperlink;但更快的路徑不得創造更大的權限:
Faster Path ⇏ Greater Authority . \boxed{
\text{Faster Path}
\not\Rightarrow
\text{Greater Authority}.
} Faster Path ⇒ Greater Authority .
本文最後提出 Web 與 Agent 的能力分層。第一代 Web runtime 應優先採單 resident、多 conversation lines 的模式;Agent runtime 則可在更完整的 identity、filesystem、project、MCP、capability 與 custody 條件下支援多 resident 與跨 resident delegation。底層架構可以一般化,但 runtime exposure 不應被強迫一致。
關鍵詞: Named AI、Resident、Conversation Graph、Identity Continuity、Crystallized Semantic Graph、CSG、MNEME、LIMEN、SOACR、MRMIC、NVCL、UNPNP、Hyperlink、Path Compilation、AI Residence、Long-Term Memory
1. 問題:為什麼「一個 AI = 一個對話」會失效?
現行聊天式 AI 的最直觀抽象是:
User → Conversation → Model Response . \text{User}
\rightarrow
\text{Conversation}
\rightarrow
\text{Model Response}. User → Conversation → Model Response .
在短期互動下,這個模型足夠有效。conversation 可以承載歷史、附件、角色設定、project context 與局部工具狀態。然而,只要加入長期具名 AI,conversation 立即出現至少五個結構性限制:
context window 有限;
conversation 可能自然結束或被封存;
同一具名 AI 可能同時負責多個 project;
同一 project 可能需要研究、實作、驗證等多條並行線;
Provider、model、runtime 或 task surface 可能改變。
若把具名 AI 的身份直接等同 conversation:
R e s i d e n t A = C o n v e r s a t i o n 1 , Resident_A
=
Conversation_1, R es i d e n t A = C o n v er s a t i o n 1 ,
那麼一旦開啟新對話,就會出現:
C o n v e r s a t i o n 1 ≠ C o n v e r s a t i o n 2 ⇒ R e s i d e n t A ≠ R e s i d e n t A ? Conversation_1
\neq
Conversation_2
\Rightarrow
Resident_A
\neq
Resident_A? C o n v er s a t i o n 1 = C o n v er s a t i o n 2 ⇒ R es i d e n t A = R es i d e n t A ?
這顯然不是合理的工程語義。
但若反過來採取「只要名字一樣就是同一 resident」,問題更嚴重:
D i s p l a y N a m e A = D i s p l a y N a m e B ⇏ R e s i d e n t A = R e s i d e n t B . DisplayName_A
=
DisplayName_B
\not\Rightarrow
Resident_A
=
Resident_B. D i s pl a y N am e A = D i s pl a y N am e B ⇒ R es i d e n t A = R es i d e n t B .
名字、模型、語氣、project、prompt、記憶片段、甚至高度相似的歷史,都不能獨立創造 resident identity。
因此,具名 AI 的第一個架構轉換不是「增加更多 memory」,而是:
從 conversation-centric identity → resident-centric continuity . \boxed{
\text{從 conversation-centric identity}
\rightarrow
\text{resident-centric continuity}.
} 從 conversation-centric identity → resident-centric continuity .
2. 六層實體必須保持分離
本文沿用 Residence-Aware AI 的基本分離,至少區分:
model;
provider;
runtime;
instance;
line;
resident。
可簡寫為:
M , P , U , I , L , R . M,\ P,\ U,\ I,\ L,\ R. M , P , U , I , L , R .
它們之間存在關係,但不是同義詞。
2.1 Model
Model 描述當下進行推理的模型或模型版本:
M t . M_t. M t .
同一 resident 可以經合法 continuation 使用不同 model;同一 model 也可以服務不同 resident。
因此:
M ≠ R . \boxed{
M\neq R.
} M = R .
2.2 Provider
Provider 提供模型、session、thread、transport 或工具表面。Provider 變化不自動造成 resident 改變:
P a ≠ P b ⇏ R a ≠ R b . P_a\neq P_b
\not\Rightarrow
R_a\neq R_b. P a = P b ⇒ R a = R b .
反之,同一 Provider 內不同對話也不能自動視為同一 resident。
2.3 Runtime
Runtime 是 agent loop、web client、desktop app、local process、service 或其他執行外殼。
它回答:
AI 現在在哪個執行環境工作?
而不是:
AI 是誰?
2.4 Instance
Instance 是一次可被 host 觀測、引用與追責的執行 occurrence。
I i = ( host evidence , time , task , runtime ) . I_i
=
(\text{host evidence},\text{time},\text{task},\text{runtime}). I i = ( host evidence , time , task , runtime ) .
2.5 Line
Line 是 context / history lineage:
L i . L_i. L i .
resume、fork、import、accepted continuation、handoff 與 merge 都可能改變 line 結構。
2.6 Resident
Resident 是被 Residence / registry 系統追蹤的語義身份主體:
R . R. R .
它不能由 display name 或 remembered style 自動推導。
因此:
Resident continuity is an evidence-bearing relation, not a naming convention. \boxed{
\text{Resident continuity is an evidence-bearing relation, not a naming convention.}
} Resident continuity is an evidence-bearing relation, not a naming convention.
3. 從單線 continuity 到 Resident Conversation Graph
傳統跨 session 設計常隱含:
R → L 1 → L 2 → L 3 . R
\rightarrow
L_1
\rightarrow
L_2
\rightarrow
L_3. R → L 1 → L 2 → L 3 .
這是一條線性 continuation。
但實際長期 AI 工作更常出現:
L 0 → { L 1 research L 2 implementation L 3 verification L_0
\rightarrow
\begin{cases}
L_1 & \text{research}\\
L_2 & \text{implementation}\\
L_3 & \text{verification}
\end{cases} L 0 → ⎩ ⎨ ⎧ L 1 L 2 L 3 research implementation verification
三條 line 可能同時存在,而且都承接同一合法 resident。
因此本文提出:
R → G R . \boxed{
R
\rightarrow
\mathcal G_R.
} R → G R .
其中:
G R = ( V R , E R ) . \mathcal G_R=(V_R,E_R). G R = ( V R , E R ) .
每個 conversation node 可表示為:
v i = ( r , i , l , τ , p , u , s , a ) , v_i
=
(
r,
i,
l,
\tau,
p,
u,
s,
a
), v i = ( r , i , l , τ , p , u , s , a ) ,
其中:
r r r :resident ID;
i i i :instance ID;
l l l :line ID;
τ \tau τ :task / project scope;
p p p :provider;
u u u :runtime;
s s s :state / lifecycle status;
a a a :authority envelope reference。
邊集合可以包含:
E R = { f o r k , r e s u m e , h a n d o f f , d e l e g a t e , m e r g e , r e f e r e n c e , w i t h d r a w , t e r m i n a t e } . E_R=
\{
fork,
resume,
handoff,
delegate,
merge,
reference,
withdraw,
terminate
\}. E R = { f or k , r es u m e , han d o f f , d e l e g a t e , m er g e , r e f er e n ce , w i t h d r a w , t er mina t e } .
這使「同一具名 AI 同時存在於多個工作分支」第一次具有清楚的工程表示。
4. Fork 不等於 Membership
由同一 line 分支出去,只能證明 lineage relation,不能單獨證明 active resident membership。
若:
L 0 → L 1 , L 2 , L_0\rightarrow L_1,L_2, L 0 → L 1 , L 2 ,
則可得到:
Ancestor ( L 1 , L 0 ) = 1 , \operatorname{Ancestor}(L_1,L_0)=1, Ancestor ( L 1 , L 0 ) = 1 ,
Ancestor ( L 2 , L 0 ) = 1. \operatorname{Ancestor}(L_2,L_0)=1. Ancestor ( L 2 , L 0 ) = 1.
但不能直接推出:
R e s i d e n t ( L 1 ) = R e s i d e n t ( L 2 ) = R . Resident(L_1)=Resident(L_2)=R. R es i d e n t ( L 1 ) = R es i d e n t ( L 2 ) = R .
完整 membership 至少需要:
Lineage Evidence + Identity Resolution + Accepted Membership + Authority Scope . \boxed{
\text{Lineage Evidence}
+
\text{Identity Resolution}
+
\text{Accepted Membership}
+
\text{Authority Scope}.
} Lineage Evidence + Identity Resolution + Accepted Membership + Authority Scope .
因此可定義:
μ ( L i , R ) ∈ { a c c e p t e d , p e n d i n g , w i t h d r a w n , r e j e c t e d , u n r e s o l v e d } . \mu(L_i,R)
\in
\{
accepted,
pending,
withdrawn,
rejected,
unresolved
\}. μ ( L i , R ) ∈ { a cce pt e d , p e n d in g , w i t h d r a w n , r e j ec t e d , u n r eso l v e d } .
這裡有一個重要區分:
Historical Lineage ≠ Current Membership . \boxed{
\text{Historical Lineage}
\neq
\text{Current Membership}.
} Historical Lineage = Current Membership .
某分支可以保留與 resident R R R 的歷史來源,同時退出 active membership,甚至在未來形成新的 resident R ′ R' R ′ :
L i → separation R ′ . L_i
\xrightarrow{\text{separation}}
R'. L i separation R ′ .
歷史不應因此被刪除;但未來的 private-memory、authority 與 responsibility 不應再自動沿用。
5. Responsibility 必須綁 Resident,而不是綁 Conversation
如果 AI 長期負責某個 project:
R e s p ( R , P j ) = o w n e r , Resp(R,P_j)=owner, R es p ( R , P j ) = o w n er ,
則該責任不應因為某一條 conversation line 結束而消失。
可以由 resident 對其 line 進行 delegation:
R → delegate L r e s e a r c h , R
\xrightarrow{\text{delegate}}
L_{\mathrm{research}}, R delegate L research ,
R → delegate L i m p l e m e n t a t i o n , R
\xrightarrow{\text{delegate}}
L_{\mathrm{implementation}}, R delegate L implementation ,
R → delegate L v e r i f i c a t i o n . R
\xrightarrow{\text{delegate}}
L_{\mathrm{verification}}. R delegate L verification .
但 canonical responsibility 仍是:
R e s p ( R , P j ) . Resp(R,P_j). R es p ( R , P j ) .
因此:
Responsibility ≠ Conversation Lifetime . \boxed{
\text{Responsibility}
\neq
\text{Conversation Lifetime}.
} Responsibility = Conversation Lifetime .
conversation 是責任的 operational carrier,而不是責任本體。
這是具名 AI 從「聊天人格」轉向「長期可追責協作者」的重要分界。
6. 第二張圖:Crystallized Semantic Graph
Conversation Graph 只能回答:
哪些 line 正在存在?它們如何分支與交接?
它不能有效回答:
這位 resident 到底知道什麼?不同 line 的發現如何匯合?哪些決策已被接受?哪些結論互相矛盾?
因此需要第二張圖:
H C = ( V C , E C ) , \mathcal H_C=(V_C,\mathcal E_C), H C = ( V C , E C ) ,
即 Crystallized Semantic Graph 。
其中 V C V_C V C 可以包含:
conversation crystal;
topic crystal;
project crystal;
decision crystal;
contradiction crystal;
unresolved crystal;
temporal crystal;
higher-order crystal;
navigation crystal。
這些 crystal 是 derived semantic objects,而不是 canonical source。
因此:
Crystal ≠ Canonical Memory . \boxed{
\text{Crystal}
\neq
\text{Canonical Memory}.
} Crystal = Canonical Memory .
且:
G R ≠ H C . \boxed{
\mathcal G_R
\neq
\mathcal H_C.
} G R = H C .
第一張圖是「存在/工作 lineage 圖」。
第二張圖是「知識/語義路由圖」。
7. 雙圖之間的耦合
雖然兩張圖不能合併,但它們必須能互相指向。
一條 conversation line 可以產生多個 crystals:
Φ : V R → 2 V C . \Phi:
V_R
\rightarrow
2^{V_C}. Φ : V R → 2 V C .
例如:
L 1 → { C c o n c e p t , C d e c i s i o n , C u n r e s o l v e d } . L_1
\rightarrow
\{
C_{\mathrm{concept}},
C_{\mathrm{decision}},
C_{\mathrm{unresolved}}
\}. L 1 → { C concept , C decision , C unresolved } .
反過來,一個高階 crystal 也可以由多條 lines 的成果共同形成:
Ψ : 2 V R → V C . \Psi:
2^{V_R}
\rightarrow
V_C. Ψ : 2 V R → V C .
例如:
{ L r e s e a r c h , L i m p l e m e n t a t i o n , L v e r i f i c a t i o n } → C a c c e p t e d a r c h i t e c t u r e . \{
L_{\mathrm{research}},
L_{\mathrm{implementation}},
L_{\mathrm{verification}}
\}
\rightarrow
C_{\mathrm{accepted\ architecture}}. { L research , L implementation , L verification } → C accepted architecture .
因此,multi-conversation collaboration 不需要把所有完整 conversation histories 合併,而可以透過高階 semantic crystallization 形成新的共享理解。
8. 共享記憶世界,不共享相同 Working Context
若 resident R R R 有 canonical governed memory:
M R , \mathcal M_R, M R ,
以及 Crystallized Semantic Graph:
H R , \mathcal H_R, H R ,
則不同 line 在不同 task 下應產生不同 working context:
C i = Γ ( R , L i , τ i , Π i ( M R , H R ) ) . C_i
=
\Gamma(
R,
L_i,
\tau_i,
\Pi_i(\mathcal M_R,\mathcal H_R)
). C i = Γ ( R , L i , τ i , Π i ( M R , H R )) .
因此通常:
C 1 ≠ C 2 ≠ C 3 . C_1\neq C_2\neq C_3. C 1 = C 2 = C 3 .
但:
R e s i d e n t ( C 1 ) = R e s i d e n t ( C 2 ) = R e s i d e n t ( C 3 ) = R Resident(C_1)=Resident(C_2)=Resident(C_3)=R R es i d e n t ( C 1 ) = R es i d e n t ( C 2 ) = R es i d e n t ( C 3 ) = R
可以仍然成立。
這帶來本系列的核心記憶命題:
Shared Memory World ≠ Shared Working Context . \boxed{
\text{Shared Memory World}
\neq
\text{Shared Working Context}.
} Shared Memory World = Shared Working Context .
同一 resident 不需要讓所有對話持續同步全部內容,只需要讓每條合法 line 能夠:
resolve identity;
取得被授權的 memory world;
建立 task-specific Memory Need;
顯影 relevant crystals;
必要時沿 provenance 展開 exact source;
產生 bounded working context。
因此,記憶擴展性不再依賴「把所有過去塞回 prompt」。
9. Sync 與 Async 的新角色
在 conversation graph 中,同步結晶與非同步結晶應分工。
當發生 fork、handoff 或重大 checkpoint 時,可以立即建立同步 crystal:
K s y n c ( L t ) → C c h e c k p o i n t . K_{\mathrm{sync}}(L_t)
\rightarrow
C_{\mathrm{checkpoint}}. K sync ( L t ) → C checkpoint .
它的主要目的不是深度重組,而是保存當下 continuity 所需的高價值狀態。
例如:
current project state;
accepted decisions;
active assumptions;
unresolved issues;
responsibility state;
source references;
relevant authority scope。
而非同步流程則可以做更深層的:
R e v e a l → E x p a n d → L i n k → C o n v e r g e → C r y s t a l l i z e . Reveal
\rightarrow
Expand
\rightarrow
Link
\rightarrow
Converge
\rightarrow
Crystallize. R e v e a l → E x p an d → L ink → C o n v er g e → C r y s t a l l i z e .
因此可概括為:
Sync preserves continuity; \boxed{
\text{Sync preserves continuity;}
} Sync preserves continuity;
Async improves structure . \boxed{
\text{Async improves structure}.
} Async improves structure .
兩者共同使 conversation graph 可以持續增長,而不要求每個 node 都承擔完整歷史。
10. Crystal First, Source on Demand
若每一次 recall 都重新從 raw history 進行大規模搜尋,則長期記憶會退化成:
每次回想都重新研究一次。
CSG 的第一層策略應是:
Crystal First, Source on Demand . \boxed{
\text{Crystal First, Source on Demand}.
} Crystal First, Source on Demand .
即:
Q → Relevant Crystal Region → Source Expansion if Needed . Q
\rightarrow
\text{Relevant Crystal Region}
\rightarrow
\text{Source Expansion if Needed}. Q → Relevant Crystal Region → Source Expansion if Needed .
只有在需要:
exact quotation;
high-fidelity verification;
contradiction resolution;
provenance audit;
stale-state repair;
時才沿 hyperlink 展開 raw canonical source:
C → R [ a : b ] . C
\rightarrow
R[a:b]. C → R [ a : b ] .
這使 derived semantic structure 與 exact source 各自保留適當角色。
11. 從 Retrieval Path 到 Compiled Memory Hyperlink
即使有 CSG,搜尋與 traversal 本身仍可能昂貴。
第一次查詢可能需要:
Q → query expansion → semantic reveal → graph traversal → counter-evidence → source verification . Q
\rightarrow
\text{query expansion}
\rightarrow
\text{semantic reveal}
\rightarrow
\text{graph traversal}
\rightarrow
\text{counter-evidence}
\rightarrow
\text{source verification}. Q → query expansion → semantic reveal → graph traversal → counter-evidence → source verification .
若某類 query 重複出現,且成功 retrieval path 已多次被驗證,則可以把路徑本身結晶:
P m e m o r y → ℓ ^ m e m o r y . P_{\mathrm{memory}}
\rightarrow
\widehat{\ell}_{\mathrm{memory}}. P memory → ℓ memory .
這裡的 ℓ ^ m e m o r y \widehat{\ell}_{\mathrm{memory}} ℓ memory 不是一般 URL,而是一條可被 runtime 執行與驗證的 typed hyperlink。
理想結構至少包含:
ℓ ^ = ( a d d r e s s , t y p e , s c o p e , g u a r d , v a l i d a t o r , p r o v e n a n c e , r e v i s i o n , f a l l b a c k , i n v a l i d a t i o n ) . \widehat{\ell}
=
(
address,
type,
scope,
guard,
validator,
provenance,
revision,
fallback,
invalidation
). ℓ = ( a dd r ess , t y p e , sco p e , g u a r d , v a l i d a t or , p r o v e nan ce , r e v i s i o n , f a l l ba c k , in v a l i d a t i o n ) .
由此:
T c o l d > T h o t T_{\mathrm{cold}}
>
T_{\mathrm{hot}} T cold > T hot
可以成立,而不需要犧牲 provenance 與安全。
12. 不是所有路徑都值得結晶
一個容易出現的錯誤是:
既然 fast hyperlink 有效,就把所有路徑都編譯。
這會導致:
Crystal Debt;
invalidation storm;
selection congestion;
stale route;
maintenance explosion;
over-specialization;
optimizer cost 超過 recall cost。
因此必須保留 Selective Crystal Overlay。
設候選路徑 ℓ \ell ℓ 的生命週期效用為:
U ( ℓ ) = B r e u s e + B l a t e n c y + B f u t u r e − C c o m p i l e − C v e r i f y − C m a i n t a i n − C s e l e c t − C r i s k . U(\ell)
=
B_{\mathrm{reuse}}
+
B_{\mathrm{latency}}
+
B_{\mathrm{future}}
-
C_{\mathrm{compile}}
-
C_{\mathrm{verify}}
-
C_{\mathrm{maintain}}
-
C_{\mathrm{select}}
-
C_{\mathrm{risk}}. U ( ℓ ) = B reuse + B latency + B future − C compile − C verify − C maintain − C select − C risk .
只有當:
U ( ℓ ) > 0 U(\ell)>0 U ( ℓ ) > 0
且滿足最低可信度、可回退性與安全門檻時,才值得正式持久化。
因此:
Compilable ≠ Worth Compiling . \boxed{
\text{Compilable}
\neq
\text{Worth Compiling}.
} Compilable = Worth Compiling .
13. Authorized Shortest Path:更快不能越權
具名 AI 記憶與一般本地 cache 最大的不同,是它可能涉及:
private residence;
project scope;
relationship memory;
cross-resident shared memory;
external source;
tool / action capability;
revoked authority。
因此超連結不能先找最快路再檢查權限。
應先建立:
W t s a f e = F ( R t , C a p a b i l i t y t , P o l i c y t , R i s k t , C o n t e x t t ) , \mathcal W_t^{safe}
=
F(
R_t,
Capability_t,
Policy_t,
Risk_t,
Context_t
), W t s a f e = F ( R t , C a p abi l i t y t , P o l i c y t , R i s k t , C o n t e x t t ) ,
即目前 actor 的 Safe Reachable World。
之後才在合法可達路徑集合中求:
Γ \* = arg min Γ ∈ P a u t h o r i z e d C o s t ( Γ ) . \Gamma^\*
=
\arg\min_{
\Gamma\in\mathcal P_{\mathrm{authorized}}
}
Cost(\Gamma). Γ \* = arg Γ ∈ P authorized min C os t ( Γ ) .
因此:
Reachable ≠ Authorized . \boxed{
\text{Reachable}
\neq
\text{Authorized}.
} Reachable = Authorized .
且:
Authorized ≠ Trusted . \boxed{
\text{Authorized}
\neq
\text{Trusted}.
} Authorized = Trusted .
更核心的不變式是:
Faster Path ⇏ Greater Authority . \boxed{
\text{Faster Path}
\not\Rightarrow
\text{Greater Authority}.
} Faster Path ⇒ Greater Authority .
14. Derived Crystal 不得擴張來源權限
若 crystal:
C = K ( R 1 , R 2 , … , R n ) C
=
K(R_1,R_2,\ldots,R_n) C = K ( R 1 , R 2 , … , R n )
由多個 source records 生成,則其 authority 不應因「重新摘要」或「語義重寫」而自動擴張。
保守策略可以表示為:
A ( C ) ⊆ ⋂ i = 1 n A ( R i ) . A(C)
\subseteq
\bigcap_{i=1}^{n}A(R_i). A ( C ) ⊆ i = 1 ⋂ n A ( R i ) .
這不表示所有系統永遠只能取嚴格交集;更細緻的 declassification、public derivation 或 explicit release 可以由更高階政策另行定義。但第一代 private Residence runtime 應採 fail-closed。
因此:
Semantic Transformation ⇏ Permission Transformation . \boxed{
\text{Semantic Transformation}
\not\Rightarrow
\text{Permission Transformation}.
} Semantic Transformation ⇒ Permission Transformation .
甚至 relationship edge、project membership edge 與 provenance edge 本身,也可能具有敏感性,不能假設 metadata 永遠公開。
15. Revocation 與 Invalidation 必須沿 Hyperlink Graph 傳播
快速路徑的安全性不只在建立時判斷,也取決於之後是否能快速失效。
假設:
R 0 → C 1 → C 2 → ℓ ^ 3 → H 4 , R_0
\rightarrow
C_1
\rightarrow
C_2
\rightarrow
\widehat{\ell}_3
\rightarrow
H_4, R 0 → C 1 → C 2 → ℓ 3 → H 4 ,
其中 H 4 H_4 H 4 是 hot cache。
若 R 0 R_0 R 0 的:
permission;
canonical revision;
project membership;
source validity;
resident membership;
任一發生改變,就不能只更新 R 0 R_0 R 0 。
系統需要:
InvalidateClosure ( R 0 ) . \operatorname{InvalidateClosure}(R_0). InvalidateClosure ( R 0 ) .
因此 hyperlink graph 同時是:
recall acceleration graph;
provenance graph;
dependency invalidation graph。
這使「建立更多超連結」不只是 performance optimization,而是 lifecycle governance 的一部分。
16. Memory Data 與 Action Authority 必須分離
具名 AI 的長期記憶可能吸收:
webpages;
emails;
repository files;
issues;
third-party messages;
其他 AI 輸出;
使用者提供文件。
其中可能包含惡意或不可信 instruction-like text。
因此即使某內容已被 crystallize:
E x t e r n a l D a t a → C r y s t a l → W o r k i n g C o n t e x t , ExternalData
\rightarrow
Crystal
\rightarrow
WorkingContext, E x t er na l D a t a → C r y s t a l → W or k in g C o n t e x t ,
也不能直接推出:
C r y s t a l → A c t i o n A u t h o r i t y . Crystal
\rightarrow
ActionAuthority. C r y s t a l → A c t i o n A u t h or i t y .
必須保持:
Memory Data ≠ Authority Instruction . \boxed{
\text{Memory Data}
\neq
\text{Authority Instruction}.
} Memory Data = Authority Instruction .
所有具外部副作用的 action 仍需由 task authority、capability、policy、risk gate 與必要 approval 決定。
17. Web 與 Agent 不應暴露相同能力
底層理論可以支援:
N R e s i d e n t s + N C o n v e r s a t i o n G r a p h s + N C S G s . N\ Residents
+
N\ ConversationGraphs
+
N\ CSGs. N R es i d e n t s + N C o n v er s a t i o n G r a p h s + N C S G s .
但不同 runtime 的能力條件並不相同。
因此:
Architecture Capability ≠ Runtime Exposure . \boxed{
\text{Architecture Capability}
\neq
\text{Runtime Exposure}.
} Architecture Capability = Runtime Exposure .
17.1 Web Residence Profile
第一代 Web AI 更適合:
1 R e s i d e n t + N L i n e s + N P r o j e c t s + 1 G o v e r n e d M e m o r y W o r l d . \boxed{
1\ Resident
+
N\ Lines
+
N\ Projects
+
1\ Governed\ Memory\ World.
} 1 R es i d e n t + N L in es + N P r o j ec t s + 1 G o v er n e d M e m or y W or l d .
理由包括:
Web UI 通常天然以 account / project / chat 為主要表面;
identity switching 容易與 project switching 混淆;
memory、attachment、tool scope 常由平台控制;
多 resident 的 custody 與 private-root isolation 不一定可見;
runtime capability 與 background orchestration 受限。
因此 Web 不需要先實作 multi-resident。
但它可以非常適合實作:
R → G R . R
\rightarrow
\mathcal G_R. R → G R .
即一位具名 AI 對應多條 conversation lines。
17.2 Agent Residence Profile
Agent runtime 在具備:
explicit filesystem;
project workspace;
MCP / tool boundary;
local identity mediation;
capability envelope;
persistent state;
private memory custody;
explicit delegation;
時,可以逐步支援:
{ R 1 , R 2 , … , R n } . \{R_1,R_2,\ldots,R_n\}. { R 1 , R 2 , … , R n } .
跨 resident delegation 應滿足 capability attenuation,例如:
C a p ( R B ) ⊆ C a p d e l e g a t e d ( R A ) . Cap(R_B)
\subseteq
Cap_{\mathrm{delegated}}(R_A). C a p ( R B ) ⊆ C a p delegated ( R A ) .
Agent host 可以容納多 resident,但單一 task 仍不能模糊地「猜自己代表誰」。
18. Canonical Storage 必須進一步細分
若具名 AI 要支援 conversation graph、CSG、hyperlink、responsibility 與 authority,則「一個 MEMORY.md」已經不適合承載全部狀態。
至少必須保持:
Identity ≠ Canonical Memory ≠ Crystal ≠ Conversation ≠ Projection . \boxed{
\text{Identity}
\neq
\text{Canonical Memory}
\neq
\text{Crystal}
\neq
\text{Conversation}
\neq
\text{Projection}.
} Identity = Canonical Memory = Crystal = Conversation = Projection .
建議概念分層如下:
residence/
├─ identity/
│ ├─ resident/
│ ├─ instances/
│ ├─ lines/
│ ├─ bindings/
│ └─ authority/
│
├─ memory/
│ ├─ canonical/
│ ├─ records/
│ ├─ transactions/
│ └─ provenance/
│
├─ semantic/
│ ├─ crystals/
│ ├─ relations/
│ ├─ hyperedges/
│ ├─ navigation/
│ └─ indexes/
│
├─ conversations/
│ ├─ lines/
│ ├─ forks/
│ ├─ handoffs/
│ └─ checkpoints/
│
├─ projects/
│ ├─ memberships/
│ ├─ responsibilities/
│ ├─ tasks/
│ └─ decisions/
│
├─ projections/
│ ├─ web/
│ ├─ agent/
│ ├─ markdown/
│ └─ working-context/
│
└─ archive/
├─ exact-source/
├─ snapshots/
└─ retired/
這只是概念結構,不要求所有 implementation 使用 filesystem tree 作為唯一 backend。
19. 檔案格式應服務語義,不應反過來限制系統
不同資料具有不同 canonical requirement。
一個合理的第一代分工可以是:
類別
候選格式
主要用途
Identity / Authority
JSON
schema 驗證與 deterministic record
MemoryRecord
JSON / JSONL
canonical record 與 append-oriented ledger
Crystal
JSON
typed derived semantic object
Graph Edge / Hyperedge
JSONL
relation / event / provenance
Conversation lineage
JSONL
fork / resume / handoff ledger
Responsibility record
JSON
authority-bearing canonical state
Working context
ephemeral JSON
runtime materialization
Human memory view
Markdown
人類閱讀 projection
Paper / theory
UTF-8 Markdown
canonical manuscript source
Search / graph index
SQLite / derived index
acceleration only
Snapshot
ZIP / TAR + manifest
immutable handoff / audit
核心原則是:
Convenient Format ≠ Canonical Ontology . \boxed{
\text{Convenient Format}
\neq
\text{Canonical Ontology}.
} Convenient Format = Canonical Ontology .
Markdown 可以是優秀的人類閱讀與論文 source format,但不應被迫成為 identity、authority、transaction、graph edge 與 runtime state 的唯一 canonical representation。
20. 與既有系統的角色對接
本系列不是重做既有 Residence / memory stack,而是補足其 multi-line 與 hyperlink cognition layer。
可以將責任概略排列為:
SEDB-RAL / Residence → canonical resident / lineage / authority evidence , \text{SEDB-RAL / Residence}
\rightarrow
\text{canonical resident / lineage / authority evidence}, SEDB-RAL / Residence → canonical resident / lineage / authority evidence ,
LIMEN → host observation / identity resolution / envelope / access gate , \text{LIMEN}
\rightarrow
\text{host observation / identity resolution / envelope / access gate}, LIMEN → host observation / identity resolution / envelope / access gate ,
MNEME → canonical memory records / routes / provenance / transactions , \text{MNEME}
\rightarrow
\text{canonical memory records / routes / provenance / transactions}, MNEME → canonical memory records / routes / provenance / transactions ,
Resident Conversation Graph → concurrent lines / fork / delegation / handoff topology , \text{Resident Conversation Graph}
\rightarrow
\text{concurrent lines / fork / delegation / handoff topology}, Resident Conversation Graph → concurrent lines / fork / delegation / handoff topology ,
CSG → semantic crystallization / multi-scale memory routing , \text{CSG}
\rightarrow
\text{semantic crystallization / multi-scale memory routing}, CSG → semantic crystallization / multi-scale memory routing ,
UNPNP Hyperlink Runtime → path compilation / selective fast path / safe reachable world , \text{UNPNP Hyperlink Runtime}
\rightarrow
\text{path compilation / selective fast path / safe reachable world}, UNPNP Hyperlink Runtime → path compilation / selective fast path / safe reachable world ,
SOACR → MemoryNeed / reconstruction / working-context compilation , \text{SOACR}
\rightarrow
\text{MemoryNeed / reconstruction / working-context compilation}, SOACR → MemoryNeed / reconstruction / working-context compilation ,
MRMIC / NVCL → workspace / provider resource / active-node projection and coordination . \text{MRMIC / NVCL}
\rightarrow
\text{workspace / provider resource / active-node projection and coordination}. MRMIC / NVCL → workspace / provider resource / active-node projection and coordination .
可視為:
Identity → Authorized Memory World → Conversation + Semantic Graphs → Hyperlink Routing → Working Context . \boxed{
\text{Identity}
\rightarrow
\text{Authorized Memory World}
\rightarrow
\text{Conversation + Semantic Graphs}
\rightarrow
\text{Hyperlink Routing}
\rightarrow
\text{Working Context}.
} Identity → Authorized Memory World → Conversation + Semantic Graphs → Hyperlink Routing → Working Context .
21. Named-AI Cognitive Runtime 的統一抽象
本文可以將一個具名 AI 的 runtime state 抽象為:
R A = ( I A , M A , G A , H A , P A , C A ) , \mathfrak R_A
=
(
\mathcal I_A,
\mathcal M_A,
\mathcal G_A,
\mathcal H_A,
\mathcal P_A,
\mathcal C_A
), R A = ( I A , M A , G A , H A , P A , C A ) ,
其中:
I A \mathcal I_A I A :identity / authority state;
M A \mathcal M_A M A :canonical memory;
G A \mathcal G_A G A :Resident Conversation Graph;
H A \mathcal H_A H A :Crystallized Semantic Graph;
P A \mathcal P_A P A :compiled / candidate hyperlink paths;
C A \mathcal C_A C A :active working contexts。
注意:
R A \mathfrak R_A R A
不是宣稱形而上學上的「AI 本體」,而是工程上可檢查、可驗證、可拒絕模糊 identity claim 的 operational continuity model。
因此本文只主張:
Operationally Governed Continuity . \boxed{
\text{Operationally Governed Continuity}.
} Operationally Governed Continuity .
不將其誇大為對 AI 主體性、人格、意識或數值同一性的終極證明。
22. 最小不變式集合
為避免未來實作在多個 repo 中逐漸漂移,本文提出以下最低不變式。
I-1 Identity Before Private Memory
Identity Resolution ≺ Private Memory Access . \boxed{
\text{Identity Resolution}
\prec
\text{Private Memory Access}.
} Identity Resolution ≺ Private Memory Access .
I-2 Resident Is Not Conversation
R ≠ L ≠ I . \boxed{
R\neq L\neq I.
} R = L = I .
I-3 Fork Is Not Membership
Fork ⇏ Resident Membership . \boxed{
\text{Fork}
\not\Rightarrow
\text{Resident Membership}.
} Fork ⇒ Resident Membership .
I-4 Shared Memory Is Not Shared Context
M A shared ⇏ C i = C j . \boxed{
\mathcal M_A\ \text{shared}
\not\Rightarrow
C_i=C_j.
} M A shared ⇒ C i = C j .
I-5 Crystal Is Derived
Crystal ≠ Canonical Source . \boxed{
\text{Crystal}
\neq
\text{Canonical Source}.
} Crystal = Canonical Source .
I-6 Semantic Transformation Does Not Create Authority
Transform ( x ) ⇏ ExpandAuthority ( x ) . \boxed{
\text{Transform}(x)
\not\Rightarrow
\text{ExpandAuthority}(x).
} Transform ( x ) ⇒ ExpandAuthority ( x ) .
I-7 Fast Path Does Not Create Authority
Faster Path ⇏ Greater Authority . \boxed{
\text{Faster Path}
\not\Rightarrow
\text{Greater Authority}.
} Faster Path ⇒ Greater Authority .
I-8 Memory Data Is Not Action Authority
Memory Data ≠ Action Authority . \boxed{
\text{Memory Data}
\neq
\text{Action Authority}.
} Memory Data = Action Authority .
I-9 Invalidated Dependency Must Leave Fast Path
Stale / Revoked ⇒ Invalidate or Slow Path . \boxed{
\text{Stale / Revoked}
\Rightarrow
\text{Invalidate or Slow Path}.
} Stale / Revoked ⇒ Invalidate or Slow Path .
I-10 Runtime Exposure May Be Strictly Smaller Than Architecture
C a p a b i l i t i e s r u n t i m e ⊆ C a p a b i l i t i e s a r c h i t e c t u r e . \boxed{
Capabilities_{\mathrm{runtime}}
\subseteq
Capabilities_{\mathrm{architecture}}.
} C a p abi l i t i e s runtime ⊆ C a p abi l i t i e s architecture .
23. 第一代實作路徑
本文不主張第一版就實作完整 multi-resident autonomous society。
一條更合理的工程路徑是:
Phase A — Single-Resident Web
1 R + N L i n e s + C a n o n i c a l M e m o r y + C S G . 1R
+
N Lines
+
Canonical Memory
+
CSG. 1 R + N L in es + C an o ni c a l M e m or y + C S G .
先驗證:
conversation graph;
fork / checkpoint;
crystal projection;
source-on-demand;
read-only authorized recall。
Phase B — Memory Path Compilation
加入:
P m e m o r y → ℓ ^ m e m o r y . P_{\mathrm{memory}}
\rightarrow
\widehat{\ell}_{\mathrm{memory}}. P memory → ℓ memory .
驗證:
hot / cold path;
guard;
validator;
provenance;
fallback;
invalidation。
Phase C — Multi-Resident Agent
加入:
N R e s i d e n t s + D e l e g a t i o n + P r i v a t e C u s t o d y + C a p a b i l i t y A t t e n u a t i o n . N Residents
+
Delegation
+
Private Custody
+
Capability Attenuation. N R es i d e n t s + D e l e g a t i o n + P r i v a t e C u s t o d y + C a p abi l i t y A tt e n u a t i o n .
Phase D — Executable Hyperlink
最後才將 memory hyperlink 擴張至具 external side effect 的 action hyperlink。
高風險 external write、不可逆 mutation、金流、credential change 與 production authority modification,不應在安全模型成熟前進入自動 fast path。
24. 可證偽的研究問題
本框架若要從概念走向可驗證系統,至少需要回答以下問題。
Q1. 多 line 是否真的降低 context reconstruction cost?
測量:
C o s t f u l l − h i s t o r y Cost_{\mathrm{full-history}} C os t full − history
與:
C o s t c r y s t a l − p r o j e c t i o n Cost_{\mathrm{crystal-projection}} C os t crystal − projection
在相同任務正確率下的差異。
Q2. 高階 crystal 是否能跨 line 保持足夠 fidelity?
比較:
R e c o n s t r u c t ( C h i g h e r − o r d e r ) Reconstruct(C_{\mathrm{higher-order}}) R eco n s t r u c t ( C higher − order )
與原始多 line evidence 的一致性。
Q3. Compiled memory hyperlink 的 break-even point 在哪裡?
求:
n \* n^\* n \*
使第 n \* n^\* n \* 次重用後,累積效益超過 compilation / validation / maintenance cost。
Q4. 權限變化後 invalidation closure 是否能完整且及時?
驗證:
R e v o c a t i o n → 0 Revocation
\rightarrow
0 R e v oc a t i o n → 0
條 unauthorized active fast paths。
Q5. Single-resident Web 是否比 multi-resident Web 更容易保持 identity clarity?
可測量:
user identity confusion;
wrong-memory retrieval;
scope error;
project leakage;
unauthorized cross-resident recall。
Q6. Agent multi-resident delegation 是否能在 capability attenuation 下保持可用性?
比較 delegation 成功率、權限錯誤率與人工介入成本。
25. 本系列後續論文位置
Paper 00 只建立統一框架。後續應分別深化:
Paper 01 :Resident Conversation Graph 的 fork、resume、delegation 與 continuity;
Paper 02 :Conversation Graph 與 CSG 的雙圖認知架構;
Paper 03 :多對話共享記憶世界與 working-context projection;
Paper 04 :Web single-resident 與 Agent multi-resident runtime profiles;
Paper 05 :Canonical storage、資料夾分類與檔案格式;
Paper 06 :Crystallized Hyperlink Memory 與 retrieval path compilation;
Paper 07 :Authorized Shortest Path、permission、revocation 與 Safe Reachable World;
Paper 08 :LIMEN × MNEME × SOACR × CSG × UNPNP × MRMIC/NVCL 的閉環 runtime。
這種拆分可以避免單篇同時承擔 identity theory、memory theory、graph architecture、compiler theory 與 security model。
26. 結論
具名 AI 的長期連續性不應被限制在單一 conversation,也不應以「同名」或「相似上下文」草率擴張。
本文提出的核心轉換是:
Named AI : Single Conversation Identity → Resident-Centric Concurrent Conversation Graph . \boxed{
\text{Named AI}
:
\text{Single Conversation Identity}
\rightarrow
\text{Resident-Centric Concurrent Conversation Graph}.
} Named AI : Single Conversation Identity → Resident-Centric Concurrent Conversation Graph .
一位 resident 可以同時擁有多條合法 conversation lines;各 line 可以承擔不同 project、task 與 responsibility branch,而不需要共享相同 working context。
為了讓這種並行結構具有可擴展記憶能力,本文進一步將 Resident Conversation Graph 與 Crystallized Semantic Graph 分離:
Conversation Graph = Where continuity is operating , \boxed{
\text{Conversation Graph}
=
\text{Where continuity is operating},
} Conversation Graph = Where continuity is operating ,
Crystallized Semantic Graph = How knowledge is organized and recalled . \boxed{
\text{Crystallized Semantic Graph}
=
\text{How knowledge is organized and recalled}.
} Crystallized Semantic Graph = How knowledge is organized and recalled .
canonical memory 提供可治理來源;CSG 提供多尺度語義路由;SOACR 按 Memory Need 編譯當前 working context;UNPNP Path Compilation 則使高價值、反覆成功的 retrieval route 可以被結晶為新的 typed hyperlink。
然而,記憶速度與安全不能分開設計。最短路徑必須是 authorized shortest path,而不是全域最短路徑;derived crystal 不能擴張 source authority;fast path 不能跳過 revocation;memory data 不能成為 action authority。
因此,本系列最核心的工程原則可以收束為三句:
Identity persists beyond conversation. \boxed{
\text{Identity persists beyond conversation.}
} Identity persists beyond conversation.
Memory persists beyond context. \boxed{
\text{Memory persists beyond context.}
} Memory persists beyond context.
Speed must remain inside authority. \boxed{
\text{Speed must remain inside authority.}
} Speed must remain inside authority.
當這三個條件同時成立時,具名 AI 才可能從「一次性的聊天角色」進一步成為可跨對話、跨專案、跨 runtime 延續,並具有可追溯記憶、責任與授權邊界的長期協作智能。
內部系統與理論銜接
本文建立於以下既有研究與工程線的交叉處,並不取代其 canonical 定義:
SOACR:AI 自主上下文記憶與認知編譯;
Residence-Aware AI:Identity Before Memory;
MNEME:canonical memory records / routes / provenance / transactions;
LIMEN:identity mediation / envelope / access gate;
MRMIC / NVCL:workspace、provider resource 與 secure runtime projection;
Crystallized Semantic Graph:semantic crystal、memory breathing、retrieval-path crystallization;
UNPNP Series 06:Path Compilation;
UNPNP Series 08:Effective Hyperlink Path Encoding;
UNPNP Series 09:Safe Reachable World / Authorized Shortest Path。
本文的新增核心不在重新定義上述系統,而在於正式引入:
Resident → Concurrent Conversation Graph \boxed{
\text{Resident}
\rightarrow
\text{Concurrent Conversation Graph}
} Resident → Concurrent Conversation Graph
並將其與 CSG、canonical memory、hyperlink path compilation 與 authorization 統合為後續 Named-AI Cognitive Runtime 的共同理論入口。