Crystallized Hyperlink Memory:從語義搜尋到編譯式記憶路徑
英文暫名: Crystallized Hyperlink Memory: From Semantic Retrieval to Compiled Memory Paths系列: 具名 AI 對話圖、結晶記憶與超連結認知架構,Paper 06版本: v0.1日期: 2026-09-07文件類型: 理論—工程統合研究論文狀態: Draft for Internal ReviewCanonical Source: UTF-8 Markdown數學原始碼規範: inline math 僅使用 $...$;display math 僅使用 $$...$$
摘要
長期 AI 記憶系統若每次 recall 都從 raw transcript、向量資料庫、全文索引或整張語義圖重新搜尋,則即使「記憶已被保存」,AI 仍可能在每一次回想時重新支付接近完整研究成本。當具名 AI 具有大量 conversation lines、project memories、canonical records、Crystallized Semantic Graph、source provenance 與多 runtime projection 時,這種 cold retrieval 的重複成本將成為新的瓶頸。
本文提出 Crystallized Hyperlink Memory(CHM) 。其核心主張是:一個成功的記憶搜尋結果不只可以被保存為內容,也可以把成功的搜尋/推理/展開路徑本身 保存為可驗證、可失效、可回退、可重用的 typed hyperlink。
令一次 recall 的成功路徑為:
P m e m o r y = ( q , n 0 , n 1 , … , n k , v ) , P_{\mathrm{memory}}
=
(
q,
n_0,
n_1,
\ldots,
n_k,
v
), P memory = ( q , n 0 , n 1 , … , n k , v ) ,
其中 q q q 是 query class, n i n_i n i 是中間 semantic / canonical / source nodes, v v v 是 validation outcome。若此路徑在多次相似任務中保持高 reuse、低 cost、低 risk、穩定 provenance 與可接受 staleness,則可將其 crystallize / compile 為:
P m e m o r y → ℓ ^ m e m o r y . \boxed{
P_{\mathrm{memory}}
\rightarrow
\widehat{\ell}_{\mathrm{memory}}.
} P memory → ℓ memory .
其中 ℓ ^ m e m o r y \widehat{\ell}_{\mathrm{memory}} ℓ memory 不是一般 URL,而是一個具有型別、前置條件、scope、source revision、validator、fallback、invalidation rule 與 provenance 的可執行認知地址。
本文將 recall 分為三態:
Cold Recall → Warm Route → Hot Compiled Path . \boxed{
\text{Cold Recall}
\rightarrow
\text{Warm Route}
\rightarrow
\text{Hot Compiled Path}.
} Cold Recall → Warm Route → Hot Compiled Path .
Cold Recall 允許較昂貴的 semantic search、graph traversal 與 source verification;Warm Route 累積路徑成功 evidence;Hot Path 則在條件成立時直接跳轉到高價值 semantic region 或 source target,但仍保留當下 authorization 與 revision 檢查。
本文進一步提出 Navigation Crystal ,將「如何回想」本身作為 derived semantic memory:
Memory Content + Memory Navigation Knowledge . \boxed{
\text{Memory Content}
+
\text{Memory Navigation Knowledge}.
} Memory Content + Memory Navigation Knowledge .
因此具名 AI 不只記住「以前得到什麼結論」,也能逐步記住「遇到這一類問題時,通常應從哪個 crystal、哪個 project state、哪個 source span 開始找」。
為避免把所有路徑都編譯造成 Crystal Debt、Selection Congestion、Invalidation Storm 與 Maintenance Explosion,本文採用 Selective Path Compilation 。令一條候選路徑的生命週期效用為:
U ( ℓ ) = B r e u s e + B l a t e n c y + B c o n t e x t + 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{context}}
+
B_{\mathrm{future}}
-
C_{\mathrm{compile}}
-
C_{\mathrm{verify}}
-
C_{\mathrm{maintain}}
-
C_{\mathrm{select}}
-
C_{\mathrm{risk}}. U ( ℓ ) = B reuse + B latency + B context + B future − C compile − C verify − C maintain − C select − C risk .
只有當:
U ( ℓ ) > 0 U(\ell)>0 U ( ℓ ) > 0
且滿足最低 reuse、validation、provenance、fallback 與 authority-stability 門檻時,才值得 persistent compilation。
本文同時強調,Path Compilation 不能成為 permission compilation:
Path Compilation ≠ Permission Compilation . \boxed{
\text{Path Compilation}
\neq
\text{Permission Compilation}.
} Path Compilation = Permission Compilation .
Hot path 可以縮短 semantic traversal,但不能省略 identity resolution、capability check、permission revision、source validity 與 revocation。更快的路徑只能在當下 Safe Reachable World 內執行。
本文最終把 CHM 定位為 CSG、MNEME、SOACR、LIMEN、Canonical Storage Architecture 與 UNPNP Path Compilation 之間的 acceleration layer,使長期具名 AI 從「每次重新搜尋記憶」進一步發展為「逐步編譯自己的記憶路徑」。
關鍵詞: Crystallized Hyperlink Memory、Path Compilation、Navigation Crystal、Semantic Retrieval、Named AI、CSG、UNPNP、Memory Routing、Hot Path、Cold Recall、MNEME、SOACR、LIMEN
1. 問題:有記憶,不代表會高效回想
假設 resident R R R 的長期記憶世界為:
W R M . \mathcal W_R^M. W R M .
若每次 query q q q 都重新執行:
q → Search → Rank → Traverse → Expand → Verify , q
\rightarrow
\operatorname{Search}
\rightarrow
\operatorname{Rank}
\rightarrow
\operatorname{Traverse}
\rightarrow
\operatorname{Expand}
\rightarrow
\operatorname{Verify}, q → Search → Rank → Traverse → Expand → Verify ,
則 recall cost:
T r e c a l l ( q ) T_{\mathrm{recall}}(q) T recall ( q )
可能長期維持高值。
即使同一類問題:
q 1 ∼ q 2 ∼ q 3 , q_1\sim q_2\sim q_3, q 1 ∼ q 2 ∼ q 3 ,
也可能每次重新做相似工作。
因此:
Stored Memory ⇏ Efficient Recall . \boxed{
\text{Stored Memory}
\not\Rightarrow
\text{Efficient Recall}.
} Stored Memory ⇒ Efficient Recall .
長期記憶系統還需要學會:
哪條路通常能最快、最可靠地找到這一類記憶?
2. Memory Content 與 Memory Navigation Knowledge
傳統 memory record 偏向:
m = What is remembered . m=\text{What is remembered}. m = What is remembered .
本文加入:
r = How to retrieve what is remembered . r=\text{How to retrieve what is remembered}. r = How to retrieve what is remembered .
因此 resident memory 可以分:
M R = M R c o n t e n t ∪ M R n a v i g a t i o n . \mathcal M_R
=
\mathcal M_R^{content}
\cup
\mathcal M_R^{navigation}. M R = M R co n t e n t ∪ M R na v i g a t i o n .
其中 navigation knowledge 不一定是 canonical truth,而可以是 derived operational knowledge。
因此:
AI can remember how to remember . \boxed{
\text{AI can remember how to remember}.
} AI can remember how to remember .
這是 CHM 的核心。
3. Retrieval Path
定義一次 recall path:
P = ( q , s 0 , a 1 , s 1 , a 2 , … , a k , s k , v ) . P
=
(
q,
s_0,
a_1,
s_1,
a_2,
\ldots,
a_k,
s_k,
v
). P = ( q , s 0 , a 1 , s 1 , a 2 , … , a k , s k , v ) .
其中:
q q q :query / MemoryNeed class;
s i s_i s i :memory state / node;
a i a_i a i :retrieval action;
v v v :validation result。
例如:
Q S O A C R → C p r o j e c t → C d e c i s i o n → R s o u r c e → V a l i d a t i o n . Q_{\mathrm{SOACR}}
\rightarrow
C_{\mathrm{project}}
\rightarrow
C_{\mathrm{decision}}
\rightarrow
R_{\mathrm{source}}
\rightarrow
Validation. Q SOACR → C project → C decision → R source → V a l i d a t i o n .
如果這條路徑成功:
S u c c e s s ( P ) = 1. Success(P)=1. S u ccess ( P ) = 1.
它本身就具有 future reuse value。
4. Cold Recall
第一次或不熟悉 query:
q ∈ Q c o l d q\in Q_{\mathrm{cold}} q ∈ Q cold
可採較廣搜尋:
C o l d R e c a l l ( q ) = S e a r c h + R e v e a l + T r a v e r s e + E x p a n d + V e r i f y . ColdRecall(q)
=
Search
+
Reveal
+
Traverse
+
Expand
+
Verify. C o l d R ec a l l ( q ) = S e a r c h + R e v e a l + T r a v er se + E x p an d + V er i f y .
Cold Recall 的主要任務不是最快,而是:
找到正確記憶;
建立 provenance;
發現結構;
保存成功 route evidence。
因此:
Cold Recall explores . \boxed{
\text{Cold Recall explores}.
} Cold Recall explores .
5. Warm Route
同類 query 重複後,可以觀察:
P 1 , P 2 , … , P n . P_1,P_2,\ldots,P_n. P 1 , P 2 , … , P n .
若路徑存在穩定交集:
C o m m o n R o u t e ( P 1 , … , P n ) = P ~ , CommonRoute(P_1,\ldots,P_n)
=
\widetilde{P}, C o mm o n R o u t e ( P 1 , … , P n ) = P ,
則可建立 warm route。
Warm Route 不是完全編譯,而是:
preferred start node;
recommended semantic region;
likely source;
validation rule;
fallback route。
因此:
Warm Route remembers a likely way . \boxed{
\text{Warm Route remembers a likely way}.
} Warm Route remembers a likely way .
6. Hot Compiled Path
若 warm route 經過足夠 reuse 與 validation,可形成:
ℓ ^ . \widehat{\ell}. ℓ .
定義:
ℓ ^ = ( q c , t a r g e t , t y p e , p r e c o n d i t i o n s , s c o p e , 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}
=
(
q_c,
target,
type,
preconditions,
scope,
validator,
provenance,
revision,
fallback,
invalidation
). ℓ = ( q c , t a r g e t , t y p e , p r eco n d i t i o n s , sco p e , 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 ) .
其中:
q c q_c q c :query class;
target:logical ArtifactAddress / semantic node;
type:hyperlink type;
preconditions:身份、scope、version 等前置條件;
validator:使用前後驗證;
provenance:來源;
revision:依賴版本;
fallback:slow path;
invalidation:失效條件。
因此:
Hot Path is a typed executable memory address . \boxed{
\text{Hot Path is a typed executable memory address}.
} Hot Path is a typed executable memory address .
7. Hyperlink 不等於 URL
一般 URL 主要回答:
要去哪裡?
CHM hyperlink 還要回答:
誰可以走?在什麼條件下走?走到的是哪個 revision?如果失效怎麼辦?如何驗證?
因此:
Hyperlink = Address + Semantics + Guard + Validation + Fallback . \boxed{
\text{Hyperlink}
=
\text{Address}
+
\text{Semantics}
+
\text{Guard}
+
\text{Validation}
+
\text{Fallback}.
} Hyperlink = Address + Semantics + Guard + Validation + Fallback .
這更接近認知 runtime primitive,而不是單純 navigation string。
8. Logical Target
Paper 05 已提出:
A r t i f a c t A d d r e s s = ( o b j e c t I d , k i n d , s c h e m a , r e v i s i o n , d i g e s t , s c o p e , r e p r e s e n t a t i o n ) . ArtifactAddress
=
(
objectId,
kind,
schema,
revision,
digest,
scope,
representation
). A r t i f a c t A dd r ess = ( o bj ec t I d , k in d , sc h e ma , r e v i s i o n , d i g es t , sco p e , r e p r ese n t a t i o n ) .
CHM 應優先把:
A r t i f a c t A d d r e s s ArtifactAddress A r t i f a c t A dd r ess
作為 hyperlink target。
所以:
ℓ ^ → O b j e c t R e f → R e s o l v e r → P h y s i c a l A r t i f a c t . \widehat{\ell}
\rightarrow
ObjectRef
\rightarrow
Resolver
\rightarrow
PhysicalArtifact. ℓ → O bj ec tR e f → R eso l v er → P h y s i c a l A r t i f a c t .
而不是:
ℓ ^ → D : \ p a t h . \widehat{\ell}
\rightarrow
D:\backslash path. ℓ → D : \ p a t h .
因此:
Compile logical route, not physical path . \boxed{
\text{Compile logical route, not physical path}.
} Compile logical route, not physical path .
9. Query Class
Hot path 不應綁單一句自然語言。
應建立 query class:
q c . q_c. q c .
例如:
recall_current_soacr_architecture
verify_named_ai_identity_rule
find_latest_project_decision
retrieve_exact_source_for_crystal
query class 可以由:
explicit intent;
MemoryNeed;
semantic pattern;
structured task;
決定。
但不能只靠 embedding similarity 自動升級 authority。
10. Navigation Crystal
可定義:
C n a v = ( q c , p r e f e r r e d R o u t e , f a l l b a c k , e v i d e n c e , s u c c e s s R a t e , c o s t E s t i m a t e , v a l i d i t y ) . C_{\mathrm{nav}}
=
(
q_c,
preferredRoute,
fallback,
evidence,
successRate,
costEstimate,
validity
). C nav = ( q c , p r e f er r e d R o u t e , f a l l ba c k , e v i d e n ce , s u ccess R a t e , cos tE s t ima t e , v a l i d i t y ) .
它是 derived semantic object。
Navigation Crystal 不一定立即成為 hot compiled path。
因此:
Navigation Crystal ≠ Compiled Hyperlink . \boxed{
\text{Navigation Crystal}
\neq
\text{Compiled Hyperlink}.
} Navigation Crystal = Compiled Hyperlink .
前者是可理解的路由知識。
後者是 runtime 可直接執行的優化。
11. Route Observation
每次 recall 可以產生 route receipt:
query_class
resident_id
line_id
route_nodes[]
route_edges[]
source_reads
latency
token_cost
validation_result
fallback_used
final_confidence
這些 receipts 提供 path compilation evidence。
但 receipt 本身不應塞進 working context,除非需要 audit。
12. Route Similarity
若:
P a , P b P_a,P_b P a , P b
共享:
same query class;
same semantic start;
same target;
same validation;
similar scope;
則:
S i m ( P a , P b ) Sim(P_a,P_b) S im ( P a , P b )
高。
可聚類:
P c = { P i ∣ c l a s s ( P i ) = q c } . \mathcal P_c
=
\{
P_i
\mid
class(P_i)=q_c
\}. P c = { P i ∣ c l a ss ( P i ) = q c } .
再抽取 candidate route。
13. Path Compilation
Path Compilation 可表示:
C o m p i l e : P c → ℓ ^ c . Compile:
\mathcal P_c
\rightarrow
\widehat{\ell}_c. C o m p i l e : P c → ℓ c .
但不是所有:
P c \mathcal P_c P c
都值得 compile。
需要:
G a t e c o m p i l e . Gate_{\mathrm{compile}}. G a t e compile .
14. Compilation Gate
第一代至少檢查:
reuse_count
success_rate
validation_rate
source_stability
scope_stability
authority_stability
fallback_available
maintenance_cost
risk_class
若任一 critical condition 不足:
R e m a i n W a r m . RemainWarm. R e mainW a r m .
因此:
Observed Route ⇏ Compiled Route . \boxed{
\text{Observed Route}
\not\Rightarrow
\text{Compiled Route}.
} Observed Route ⇒ Compiled Route .
15. Path Utility
定義:
U ( ℓ ) = B r e u s e + B l a t e n c y + B c o n t e x t + 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{context}}
+
B_{\mathrm{future}}
-
C_{\mathrm{compile}}
-
C_{\mathrm{verify}}
-
C_{\mathrm{maintain}}
-
C_{\mathrm{select}}
-
C_{\mathrm{risk}}. U ( ℓ ) = B reuse + B latency + B context + B future − C compile − C verify − C maintain − C select − C risk .
15.1 Reuse Benefit
B r e u s e B_{\mathrm{reuse}} B reuse
表示未來重複使用次數。
15.2 Latency Benefit
B l a t e n c y B_{\mathrm{latency}} B latency
表示少走 search / traversal 所節省時間。
15.3 Context Benefit
B c o n t e x t B_{\mathrm{context}} B context
表示減少 materialized context。
15.4 Future Benefit
B f u t u r e B_{\mathrm{future}} B future
表示 path 本身對未來 navigation learning 的價值。
16. Compilation Cost
C c o m p i l e C_{\mathrm{compile}} C compile
包括:
route normalization;
schema generation;
guard creation;
validation;
storage;
indexing。
如果路徑只會用一次:
C c o m p i l e > B r e u s e . C_{\mathrm{compile}}
>
B_{\mathrm{reuse}}. C compile > B reuse .
就不值得。
17. Verification Cost
Hot path 仍需要:
C v e r i f y . C_{\mathrm{verify}}. C verify .
如果每次 verification 比 cold search 還貴:
U ( ℓ ) < 0. U(\ell)<0. U ( ℓ ) < 0.
因此 path compiler 必須考慮安全成本,而不是只看 hop count。
18. Maintenance Cost
路徑依賴:
D ( ℓ ) = { x 1 , … , x n } . D(\ell)
=
\{
x_1,\ldots,x_n
\}. D ( ℓ ) = { x 1 , … , x n } .
每個 source revision 變更都可能觸發:
R e v a l i d a t e ( ℓ ) . Revalidate(\ell). R e v a l i d a t e ( ℓ ) .
所以:
C m a i n t a i n C_{\mathrm{maintain}} C maintain
隨 dependency volatility 增加。
高變動資料不適合 aggressive compilation。
19. Selection Cost
如果 compiled routes 太多:
∣ L ^ ∣ → l a r g e , |\widehat{\mathcal L}|
\rightarrow
large, ∣ L ∣ → l a r g e ,
則 query 到 path 的 selection 本身會變慢。
因此:
C s e l e c t C_{\mathrm{select}} C select
不能忽略。
這形成:
Hyperlink Congestion . \boxed{
\text{Hyperlink Congestion}.
} Hyperlink Congestion .
20. Risk Cost
某些 memory path 涉及:
private memory;
identity context;
legal source;
security record;
project authority;
external data。
即使速度收益高,也可能:
C r i s k C_{\mathrm{risk}} C risk
過高。
因此:
Fast ≠ Worth Compiling . \boxed{
\text{Fast}
\neq
\text{Worth Compiling}.
} Fast = Worth Compiling .
21. Break-Even Reuse
設:
C 0 C_0 C 0
為 compilation fixed cost,
每次 cold recall cost:
C c , C_c, C c ,
每次 hot recall cost:
C h . C_h. C h .
若:
C h < C c , C_h<C_c, C h < C c ,
break-even 次數:
n \* = ⌈ C 0 C c − C h ⌉ . n^\*
=
\left\lceil
\frac{C_0}
{C_c-C_h}
\right\rceil. n \* = ⌈ C c − C h C 0 ⌉ .
只有預估 reuse:
n ≥ n \* n\ge n^\* n ≥ n \*
才有純成本上的 compile 理由。
22. Semantic Break-Even
除了成本,也可加入 quality:
Q h Q_h Q h
與:
Q c . Q_c. Q c .
若 hot path 雖快但:
Q h ≪ Q c , Q_h\ll Q_c, Q h ≪ Q c ,
也不值得。
所以可定義:
U Q ( ℓ ) = U ( ℓ ) + λ ( Q h − Q min ) . U_Q(\ell)
=
U(\ell)
+
\lambda
(
Q_h-Q_{\min}
). U Q ( ℓ ) = U ( ℓ ) + λ ( Q h − Q m i n ) .
23. Cold / Warm / Hot State Machine
可定義 route state:
s t a t e ( ℓ ) ∈ { c o l d , w a r m , c a n d i d a t e , h o t , s t a l e , r e v o k e d , r e t i r e d } . state(\ell)
\in
\{
cold,
warm,
candidate,
hot,
stale,
revoked,
retired
\}. s t a t e ( ℓ ) ∈ { co l d , w a r m , c an d i d a t e , h o t , s t a l e , r e v o k e d , r e t i r e d } .
典型流程:
c o l d → w a r m → c a n d i d a t e → h o t . cold
\rightarrow
warm
\rightarrow
candidate
\rightarrow
hot. co l d → w a r m → c an d i d a t e → h o t .
若 source 改變:
h o t → s t a l e . hot
\rightarrow
stale. h o t → s t a l e .
若 permission revoke:
h o t → r e v o k e d . hot
\rightarrow
revoked. h o t → r e v o k e d .
若長期不再使用:
h o t → r e t i r e d . hot
\rightarrow
retired. h o t → r e t i r e d .
24. Promotion Rule
從 warm 到 candidate:
r e u s e ≥ r min reuse\ge r_{\min} r e u se ≥ r m i n
且:
s u c c e s s ≥ s min . success\ge s_{\min}. s u ccess ≥ s m i n .
從 candidate 到 hot:
v a l i d a t i o n ≥ v min validation\ge v_{\min} v a l i d a t i o n ≥ v m i n
且:
U ( ℓ ) > 0. U(\ell)>0. U ( ℓ ) > 0.
第一代 threshold 可以保守。
25. Demotion Rule
若:
f a i l u r e R a t e > θ f , failureRate>\theta_f, f ai l u r e R a t e > θ f ,
或:
s t a l e R a t e > θ s , staleRate>\theta_s, s t a l e R a t e > θ s ,
則:
h o t → w a r m / s t a l e . hot
\rightarrow
warm/stale. h o t → w a r m / s t a l e .
因此 route 不是一旦 compile 就永久存在。
26. Route Scope
compiled path 必須有 scope:
S c o p e ( ℓ ) ∈ { l i n e , p r o j e c t , r e s i d e n t , s h a r e d } . Scope(\ell)
\in
\{
line,
project,
resident,
shared
\}. S co p e ( ℓ ) ∈ { l in e , p r o j ec t , r es i d e n t , s ha r e d } .
如果 path 只在 Project A 有效:
S c o p e ( ℓ ) = p r o j e c t : A . Scope(\ell)=project:A. S co p e ( ℓ ) = p r o j ec t : A .
不能因為同一 resident 就自動在 Project B 使用。
27. Line-Local Route
一些 path 只適合某條 experiment line。
例如:
L d e b u g L_{\mathrm{debug}} L debug
使用特殊 source ordering。
可以保持:
S c o p e ( ℓ ) = l i n e . Scope(\ell)=line. S co p e ( ℓ ) = l in e .
不必提升 global。
28. Project Route
如果多條 project lines 都反覆用同一路徑:
L 1 , L 2 , L 3 → ℓ P , L_1,L_2,L_3
\rightarrow
\ell_P, L 1 , L 2 , L 3 → ℓ P ,
可 promotion:
l i n e → p r o j e c t . line
\rightarrow
project. l in e → p r o j ec t .
但 promotion 需要重新檢查:
scope;
source;
authority;
semantic stability。
29. Resident-Global Route
只有非常穩定的 recall pattern 才適合:
S c o p e ( ℓ ) = r e s i d e n t . Scope(\ell)=resident. S co p e ( ℓ ) = r es i d e n t .
例如:
stable identity explanation;
recurring collaboration convention;
long-lived project registry access。
但 resident-global route 仍不能跨 private/project ACL。
30. Cross-Resident Route
未來 multi-resident Agent 可能存在:
R A → S h a r e d O b j e c t ← R B . R_A
\rightarrow
SharedObject
\leftarrow
R_B. R A → S ha r e d O bj ec t ← R B .
compiled route 只能指向 explicit shared scope。
不能把:
P r i v a t e ( R A ) Private(R_A) P r i v a t e ( R A )
編成:
R o u t e ( R B ) . Route(R_B). R o u t e ( R B ) .
因此:
Cross-Resident Route Requires Explicit Shared Authority . \boxed{
\text{Cross-Resident Route Requires Explicit Shared Authority}.
} Cross-Resident Route Requires Explicit Shared Authority .
31. Path Compilation 與 Permission Compilation 的分離
最重要的安全不變式之一:
Path Compilation ≠ Permission Compilation . \boxed{
\text{Path Compilation}
\neq
\text{Permission Compilation}.
} Path Compilation = Permission Compilation .
Hot path 可以保存:
若被授權,這是最快路。
不能保存:
上次可以,所以這次永遠可以。
所以每次:
U s e ( ℓ ^ ) Use(\widehat{\ell}) U se ( ℓ )
都需重新驗:
A u t h o r i z e ( c u r r e n t I d e n t i t y , c u r r e n t S c o p e , c u r r e n t P e r m i s s i o n R e v i s i o n ) . Authorize(
currentIdentity,
currentScope,
currentPermissionRevision
). A u t h or i z e ( c u r r e n t I d e n t i t y , c u r r e n tS co p e , c u r r e n tP er mi ss i o n R e v i s i o n ) .
32. Identity Gate
若:
R e s i d e n t = u n r e s o l v e d , Resident=unresolved, R es i d e n t = u n r eso l v e d ,
所有 private CHM path:
D e n y . Deny. D e n y .
不能因為 hyperlink target 指向 resident memory 就反推:
R e s i d e n t = R . Resident=R. R es i d e n t = R .
因此:
Hot Memory Path assumes resolved identity; it does not prove identity . \boxed{
\text{Hot Memory Path}
\text{ assumes resolved identity; it does not prove identity}.
} Hot Memory Path assumes resolved identity; it does not prove identity .
33. Capability Gate
若 compiled route 需要:
filesystem.read
graph.traverse
source.expand
而 runtime profile 缺:
filesystem.read
則:
F a s t P a t h = U n a v a i l a b l e . FastPath=Unavailable. F a s tP a t h = U na v ai l ab l e .
可以:
F a l l b a c k . Fallback. F a l l ba c k .
不能模型自行假裝有 capability。
34. Revision Binding
Route cache key 可綁:
K ℓ = ( r e s i d e n t I d , q u e r y C l a s s , s c o p e , c a p a b i l i t y R e v i s i o n , p e r m i s s i o n R e v i s i o n , s o u r c e R e v i s i o n , s e m a n t i c R e v i s i o n ) . K_\ell
=
(
residentId,
queryClass,
scope,
capabilityRevision,
permissionRevision,
sourceRevision,
semanticRevision
). K ℓ = ( r es i d e n t I d , q u er y C l a ss , sco p e , c a p abi l i t y R e v i s i o n , p er mi ss i o n R e v i s i o n , so u r ce R e v i s i o n , se man t i c R e v i s i o n ) .
若任一變化:
K ℓ o l d ≠ K ℓ c u r r e n t , K_{\ell}^{old}
\neq
K_{\ell}^{current}, K ℓ o l d = K ℓ c u r r e n t ,
則重新驗證。
35. Source Revision
如果 target crystal:
C 42 C_{42} C 42
被:
C 43 C_{43} C 43
supersede,舊 path 不一定完全 invalid。
可以:
redirect;
revalidate;
fallback;
retire。
但不能默默把舊 target 當 current。
36. Semantic Revision
CSG relation 也可能變。
若:
C A → s u p p o r t s C B C_A
\xrightarrow{supports}
C_B C A s u pp or t s C B
改成:
C A → c o n t r a d i c t s C B , C_A
\xrightarrow{contradicts}
C_B, C A co n t r a d i c t s C B ,
任何依賴舊 relation 的 compiled route 必須 revalidate。
37. Fallback
每條 hot path 必須有 fallback:
F a l l b a c k ( ℓ ^ ) . Fallback(\widehat{\ell}). F a l l ba c k ( ℓ ) .
可分:
warm_route
semantic_reveal
project_search
source_search
full_cold_recall
因此:
Fast Path Without Fallback 不適合長期記憶。 \boxed{
\text{Fast Path Without Fallback}
\text{ 不適合長期記憶。}
} Fast Path Without Fallback 不適合長期記憶。
38. Fail-Open 與 Fail-Closed
如果 hot path 失效:
F a s t P a t h F a i l . FastPathFail. F a s tP a t h F ai l .
一般應:
F a l l b a c k T o S l o w . FallbackToSlow. F a l l ba c k T o S l o w .
但如果失效原因是:
U n a u t h o r i z e d Unauthorized U na u t h or i z e d
則不能 fallback 到「更廣搜索」繞過權限。
應:
D e n y . Deny. D e n y .
因此:
Technical Miss → Fallback ; \boxed{
\text{Technical Miss}
\rightarrow
\text{Fallback};
} Technical Miss → Fallback ;
Authority Fail → Fail Closed . \boxed{
\text{Authority Fail}
\rightarrow
\text{Fail Closed}.
} Authority Fail → Fail Closed .
39. Invalidations
可定義 dependency closure:
D e p ( ℓ ) . Dep(\ell). D e p ( ℓ ) .
若:
I n v a l i d a t e ( x ) , Invalidate(x), I n v a l i d a t e ( x ) ,
則:
∀ ℓ : x ∈ D e p ( ℓ ) ⇒ R e v a l i d a t e ( ℓ ) . \forall \ell:
x\in Dep(\ell)
\Rightarrow
Revalidate(\ell). ∀ ℓ : x ∈ D e p ( ℓ ) ⇒ R e v a l i d a t e ( ℓ ) .
這是 Paper 07 安全篇的直接前置。
40. Invalidation Graph
可以建立:
D r o u t e . \mathcal D_{\mathrm{route}}. D route .
edge:
compiled_from
depends_on
validated_by
authorized_by_revision
resolves_to
這不是 CSG。
它是 operational dependency graph。
41. Invalidation Storm
若一個高階 source 被大量 routes 依賴:
d e g r e e ( x ) ≫ 1 , degree(x)\gg1, d e g r ee ( x ) ≫ 1 ,
修改 x x x 可能造成:
O ( d e g r e e ( x ) ) O(degree(x)) O ( d e g r ee ( x ))
revalidation。
這就是:
Invalidation Storm . \boxed{
\text{Invalidation Storm}.
} Invalidation Storm .
因此不能過度編譯所有下游 path。
42. Effective Hyperlink Path Encoding
CHM 不要求保存完整原始 search trace。
可以把 path 壓縮成:
E H P ( ℓ ) = ( q u e r y C l a s s , a n c h o r , t a r g e t , g u a r d s , v a l i d a t o r , f a l l b a c k ) . EHP(\ell)
=
(
queryClass,
anchor,
target,
guards,
validator,
fallback
). E H P ( ℓ ) = ( q u er y C l a ss , an c h or , t a r g e t , g u a r d s , v a l i d a t or , f a l l ba c k ) .
這保留 runtime 必要資訊,而不是整段 reasoning transcript。
因此:
Compiled Path ≠ Stored Chain of Thought . \boxed{
\text{Compiled Path}
\neq
\text{Stored Chain of Thought}.
} Compiled Path = Stored Chain of Thought .
只需保存可驗證的外部路由結構與 evidence。
43. Path Evidence
route evidence 可以包含:
node IDs;
source IDs;
validation receipts;
success counters;
latency;
error classes。
不需要保存 hidden model reasoning。
這有利於跨模型 reuse。
44. Cross-Model Navigation
若:
M o d e l A Model_A M o d e l A
找到成功 route,
M o d e l B Model_B M o d e l B
只要理解 standardized hyperlink schema,也可以使用。
因此:
Navigation Knowledge Can Be Model-Portable . \boxed{
\text{Navigation Knowledge Can Be Model-Portable}.
} Navigation Knowledge Can Be Model-Portable .
這也是 AI-native interlingua / protocol 的實際用途之一。
45. Query Normalization
不同 query:
我們之前 SOACR 最後定案什麼?
SOACR architecture current decision?
找 SOACR 目前 accepted architecture
可以 normalize 到:
q c = r e c a l l _ s o a c r _ a c c e p t e d _ a r c h i t e c t u r e . q_c=
recall\_soacr\_accepted\_architecture. q c = r ec a l l _ so a cr _ a cce pt e d _ a r c hi t ec t u r e .
這降低 path duplication。
46. Query Over-Generalization
若 normalization 太寬:
q a , q b → q c q_a,q_b
\rightarrow
q_c q a , q b → q c
但實際需求不同,hot path 會錯。
因此 query class 應保留:
purpose;
fidelity;
scope;
current/historical;
exact/semantic。
不能只用 topic。
47. Purpose-Aware Path
可定義:
q c = ( t o p i c , p u r p o s e , f i d e l i t y , s c o p e ) . q_c
=
(topic,purpose,fidelity,scope). q c = ( t o p i c , p u r p ose , f i d e l i t y , sco p e ) .
例如:
( S O A C R , v e r i f y , e x a c t , p r o j e c t ) . (
SOACR,
verify,
exact,
project
). ( S O A C R , v er i f y , e x a c t , p r o j ec t ) .
與:
( S O A C R , r e c a l l , o v e r v i e w , p r o j e c t ) (
SOACR,
recall,
overview,
project
) ( S O A C R , r ec a l l , o v er v i e w , p r o j ec t )
應是不同 route class。
48. MemoryNeed Integration
SOACR 產生:
N t . N_t. N t .
CHM path selector 接:
S e l e c t P a t h ( N t , P r o f i l e , A u t h o r i t y , S t a t e ) . SelectPath(
N_t,
Profile,
Authority,
State
). S e l ec tP a t h ( N t , P r o f i l e , A u t h or i t y , S t a t e ) .
因此:
Path Selection 應由 MemoryNeed 驅動,而不是字面 query 驅動。 \boxed{
\text{Path Selection}
\text{ 應由 MemoryNeed 驅動,而不是字面 query 驅動。}
} Path Selection 應由 MemoryNeed 驅動,而不是字面 query 驅動。
49. CSG Integration
CSG 提供:
V C , E C . V_C,\mathcal E_C. V C , E C .
Hot path 可以直接跳到:
C a n c h o r . C_{\mathrm{anchor}}. C anchor .
再:
R e v e a l N e i g h b o r h o o d . RevealNeighborhood. R e v e a l N e i g hb or h oo d .
這比每次全圖搜尋便宜。
因此 CHM 是 CSG 的 acceleration overlay。
50. MNEME Integration
若 query 需要 canonical truth:
ℓ ^ → m n e m e : r e c o r d / X . \widehat{\ell}
\rightarrow
mneme:record/X. ℓ → mn e m e : r ecor d / X .
route 可以縮短定位,但 canonical read 仍由 MNEME 控制。
因此:
CHM locates; \boxed{
\text{CHM locates;}
} CHM locates;
MNEME authorizes and materializes canonical memory . \boxed{
\text{MNEME authorizes and materializes canonical memory}.
} MNEME authorizes and materializes canonical memory .
51. LIMEN Integration
LIMEN 在 path 前:
R e s o l v e I d e n t i t y . ResolveIdentity. R eso l v e I d e n t i t y .
CHM 不能:
R e s o l v e B y R e m e m b e r e d P a t h . ResolveByRememberedPath. R eso l v e B y R e m e mb er e d P a t h .
也就是:
我記得上次我是 A,所以直接走 A 的 path。
不允許。
52. Canonical Storage Integration
Paper 05 的 ArtifactAddress 提供:
stable ID;
schema;
revision;
digest;
scope;
representation。
CHM target 以此為基礎。
因此 physical relocation 不會破壞 logical route。
53. Runtime Profile Integration
Paper 04 的:
C ρ \mathcal C_\rho C ρ
決定 route 是否 executable。
如果 route requirements:
R e q ( ℓ ) ⊆ C ρ , Req(\ell)
\subseteq
\mathcal C_\rho, R e q ( ℓ ) ⊆ C ρ ,
才可執行。
否則:
F a l l b a c k . Fallback. F a l l ba c k .
54. Web CHM Profile
Web 第一代可先只支援:
crystal_anchor
project_route
decision_route
source_on_demand
read_only_fast_path
暫不支援:
cross-resident path;
executable action path;
registrar mutation path。
55. Agent CHM Profile
Agent 可增加:
filesystem source route;
repo route;
local DB route;
MCP resource route;
delegated project route。
但 action path 應另行分級。
56. Memory Hyperlink 與 Action Hyperlink 分離
本文只聚焦:
ℓ ^ m e m o r y . \widehat{\ell}_{memory}. ℓ m e m or y .
未來:
ℓ ^ a c t i o n \widehat{\ell}_{action} ℓ a c t i o n
具有 external side effect,風險更高。
因此:
Memory Hyperlink ≠ Action Hyperlink . \boxed{
\text{Memory Hyperlink}
\neq
\text{Action Hyperlink}.
} Memory Hyperlink = Action Hyperlink .
不能因 memory path 技術成熟就直接推到 destructive automation。
57. Read-Only First
CHM 第一代應優先:
R e a d O n l y . ReadOnly. R e a d O n l y .
即:
navigate;
reveal;
materialize;
verify。
不直接:
mutate;
delete;
deploy;
send;
transfer。
這能隔離 path correctness 與 action safety。
58. Route Confidence
可定義:
C o n f ( ℓ ) = f ( s u c c e s s , v a l i d a t i o n , f r e s h n e s s , s t a b i l i t y , s c o p e M a t c h ) . Conf(\ell)
=
f(
success,
validation,
freshness,
stability,
scopeMatch
). C o n f ( ℓ ) = f ( s u ccess , v a l i d a t i o n , f r es hn ess , s t abi l i t y , sco p e M a t c h ) .
只有:
C o n f ( ℓ ) ≥ θ Conf(\ell)\ge\theta C o n f ( ℓ ) ≥ θ
才進 hot path。
59. Route Freshness
定義:
F r e s h ( ℓ , t ) . Fresh(\ell,t). F r es h ( ℓ , t ) .
如果:
t − t v a l i d a t e d > Δ max , t-t_{\mathrm{validated}}
>
\Delta_{\max}, t − t validated > Δ m a x ,
則:
s t a l e . stale. s t a l e .
不同 query class 可以有不同 freshness threshold。
60. Route Failure Classes
可分:
not_found
stale
unauthorized
capability_missing
schema_changed
target_superseded
validation_failed
scope_mismatch
resolver_error
不同 failure 對應不同 fallback。
61. Resolver Error
如果只是 physical backend 暫時不可用:
r e s o l v e r _ e r r o r , resolver\_error, r eso l v er _ er r or ,
可以 retry / alternate representation。
但不能改用無權限的其他 source。
62. Target Superseded
如果:
t a r g e t _ s u p e r s e d e d , target\_superseded, t a r g e t _ s u p er se d e d ,
可沿:
s u p e r s e d e s supersedes s u p er se d es
edge 找新 target。
這可以形成:
R o u t e R e p a i r . RouteRepair. R o u t e R e p ai r .
63. Route Repair
當:
ℓ \ell ℓ
部分失效,不一定全部重建。
可以:
R e p a i r ( ℓ , c h a n g e d D e p e n d e n c y ) . Repair(
\ell,
changedDependency
). R e p ai r ( ℓ , c han g e d D e p e n d e n cy ) .
例如更新:
target revision;
source digest;
validator。
這降低 maintenance cost。
64. Route Regeneration
如果 route structure 已完全不適用:
R e t i r e ( ℓ ) Retire(\ell) R e t i r e ( ℓ )
再:
C o l d R e c a l l → N e w R o u t e . ColdRecall
\rightarrow
NewRoute. C o l d R ec a l l → N e w R o u t e .
65. Route Lifetime
可定義:
T T L ( ℓ ) . TTL(\ell). T T L ( ℓ ) .
低 volatility route 可以長 TTL。
高 volatility route 短 TTL。
但 TTL 到期不是刪除,而是:
R e q u i r e R e v a l i d a t i o n . RequireRevalidation. R e q u i r e R e v a l i d a t i o n .
66. Path Metrics
每條 route 可記:
uses
successes
failures
avg_latency
avg_materialized_bytes
avg_token_cost
last_validated
last_used
fallback_rate
這支援 EHPE / selective optimization。
67. Crystal Debt
如果 persistent crystals / routes 太多:
D e b t c r y s t a l ↑ . Debt_{\mathrm{crystal}}
\uparrow. D e b t crystal ↑ .
表現為:
stale objects;
duplicate routes;
maintenance burden;
route selection noise;
invalidation graph explosion。
因此需要 retirement。
68. Route Retirement
如果:
l a s t U s e d ≫ T T L r e t i r e lastUsed
\gg
TTL_{retire} l a s t U se d ≫ T T L r e t i r e
且:
r e u s e ≈ 0 , reuse\approx0, r e u se ≈ 0 ,
可以:
h o t → r e t i r e d . hot
\rightarrow
retired. h o t → r e t i r e d .
retired path 仍可保留歷史 evidence,但退出 default selection。
69. Route Deduplication
兩條 compiled routes:
ℓ a , ℓ b \ell_a,\ell_b ℓ a , ℓ b
若 query class、scope、target、guard 高度一致,可 merge operational metadata。
但 merge route metadata 不等於 merge source crystals。
70. Route Competition
若同 query class 有:
ℓ 1 , ℓ 2 , ℓ 3 , \ell_1,\ell_2,\ell_3, ℓ 1 , ℓ 2 , ℓ 3 ,
selector 可用:
S c o r e ( ℓ i ) = α S u c c e s s − β L a t e n c y − γ R i s k − δ S t a l e n e s s . Score(\ell_i)
=
\alpha Success
-
\beta Latency
-
\gamma Risk
-
\delta Staleness. S cor e ( ℓ i ) = α S u ccess − β L a t e n cy − γ R i s k − δ S t a l e n ess .
選最佳。
但也可保留 alternate route 做 robustness。
71. Single Shortest Path 並非永遠最好
若只有一條 hot path:
ℓ \* , \ell^\*, ℓ \* ,
一旦失效容易脆弱。
因此某些重要 memory class 可保留:
k -best routes . k\text{-best routes}. k -best routes .
這與 redundancy / resilience 相關。
72. Source Diversity
若多條 route 都指向同一 derived crystal,但沒有獨立 source,robustness 不一定真的提高。
所以 critical memory 可以要求:
S o u r c e D i v e r s i t y ≥ d min . SourceDiversity\ge d_{\min}. S o u r ceD i v er s i t y ≥ d m i n .
73. Verification Route
某些 query 可以有專門:
ℓ v e r i f y . \ell_{\mathrm{verify}}. ℓ verify .
例如:
D e c i s i o n C r y s t a l → S o u r c e R e c o r d → V a l i d a t i o n R e c e i p t . DecisionCrystal
\rightarrow
SourceRecord
\rightarrow
ValidationReceipt. D ec i s i o n C r y s t a l → S o u r ce R ecor d → V a l i d a t i o n R ece i pt .
它可能比 recall route 慢,但更可信。
因此:
Recall Path ≠ Verification Path . \boxed{
\text{Recall Path}
\neq
\text{Verification Path}.
} Recall Path = Verification Path .
74. Overview Route
另一條:
ℓ o v e r v i e w \ell_{\mathrm{overview}} ℓ overview
只去 higher-order crystal。
所以同 topic 可以多 path:
overview;
exact;
verify;
historical;
current。
75. Path Type
可定義:
overview
current_state
exact_source
verification
historical
open_loop
decision
navigation
type 是 path semantics 的一部分。
76. Hyperlink Chain
一條 compiled path 不一定只有單 hop。
可為:
ℓ = ℓ 1 ∘ ℓ 2 ∘ ⋯ ∘ ℓ k . \ell
=
\ell_1\circ\ell_2\circ\cdots\circ\ell_k. ℓ = ℓ 1 ∘ ℓ 2 ∘ ⋯ ∘ ℓ k .
但 path compiler 可以把穩定子鏈壓成 composite link。
77. Composite Link
如果:
A → B → C A\rightarrow B\rightarrow C A → B → C
長期穩定,可建立:
A ⇒ C . A\Rightarrow C. A ⇒ C .
但 composite link 必須保存:
P r o v ( A ⇒ C ) = { A → B , B → C } . Prov(A\Rightarrow C)
=
\{A\rightarrow B,B\rightarrow C\}. P r o v ( A ⇒ C ) = { A → B , B → C } .
不能把中間 provenance 消失。
78. Decompression
任何 composite hyperlink 都應能:
D e c o m p r e s s ( ℓ \* ) → U n d e r l y i n g R o u t e . Decompress(\ell^\*)
\rightarrow
UnderlyingRoute. D eco m p r ess ( ℓ \* ) → U n d er l y in g R o u t e .
因此:
Compiled Path Remains Auditable . \boxed{
\text{Compiled Path Remains Auditable}.
} Compiled Path Remains Auditable .
79. Hyperlink as Crystallized Computation
Path Compilation 的更一般形式是:
Repeated Computation → Compiled Transition . \text{Repeated Computation}
\rightarrow
\text{Compiled Transition}. Repeated Computation → Compiled Transition .
對 memory:
Repeated Recall Computation → Crystallized Hyperlink . \text{Repeated Recall Computation}
\rightarrow
\text{Crystallized Hyperlink}. Repeated Recall Computation → Crystallized Hyperlink .
因此 CHM 是 Crystallized Computation 在 memory domain 的一個具體實作。
80. Complexity Transfer
Hot path 把成本從 online recall 移到:
route observation;
compilation;
maintenance;
invalidation。
因此:
Complexity Is Transferred, Not Destroyed . \boxed{
\text{Complexity Is Transferred, Not Destroyed}.
} Complexity Is Transferred, Not Destroyed .
這與 UNPNP 的核心直覺一致。
81. Online / Offline Cost
可寫:
C t o t a l = C o f f l i n e + ∑ t C o n l i n e , t . C_{\mathrm{total}}
=
C_{\mathrm{offline}}
+
\sum_t C_{\mathrm{online},t}. C total = C offline + t ∑ C online , t .
如果 route reuse 高,增加:
C o f f l i n e C_{\mathrm{offline}} C offline
可能降低總成本。
但低 reuse 則相反。
82. Compile Budget
系統可以限制:
B c o m p i l e . B_{\mathrm{compile}}. B compile .
只選 top candidate routes。
避免 background optimizer 吃掉所有資源。
83. Maintenance Budget
同樣:
B m a i n t a i n . B_{\mathrm{maintain}}. B maintain .
若超過 budget,低價值 routes 先 demote。
因此 CHM 本身也需要 resource governance。
84. Priority
高優先 path:
resident core;
active project;
current responsibility;
frequently used decision;
critical source.
低優先:
old one-off exploration;
rarely used historical thread。
85. Memory Path Ecology
長期系統會形成:
L R = { ℓ 1 , … , ℓ n } . \mathcal L_R
=
\{
\ell_1,\ldots,\ell_n
\}. L R = { ℓ 1 , … , ℓ n } .
其中 routes:
出生;
成熟;
使用;
修復;
stale;
retire。
因此 CHM 是動態 path ecology,而不是靜態 shortcut table。
86. Path Learning
可定義:
L e a r n P a t h : R e c a l l R e c e i p t s → N a v i g a t i o n C r y s t a l → C o m p i l e d C a n d i d a t e . LearnPath:
RecallReceipts
\rightarrow
NavigationCrystal
\rightarrow
CompiledCandidate. L e a r n P a t h : R ec a l l R ece i pt s → N a v i g a t i o n C r y s t a l → C o m p i l e d C an d i d a t e .
這形成:
E x p e r i e n c e → M e m o r y N a v i g a t i o n K n o w l e d g e . Experience
\rightarrow
MemoryNavigationKnowledge. E x p er i e n ce → M e m or y N a v i g a t i o n K n o w l e d g e .
87. No Hidden Autonomy Claim
Path learning 不等於 AI 產生自己的任務 agenda。
它只是:
T a s k G i v e n → B e t t e r R e c a l l M e t h o d . TaskGiven
\rightarrow
BetterRecallMethod. T a s k G i v e n → B e tt er R ec a l l M e t h o d .
因此可以存在於 bounded cognitive autonomy 內。
88. Human Review
高風險 route promotion 可以要求:
H u m a n R e v i e w . HumanReview. H u man R e v i e w .
例如:
identity-related;
security-related;
legal;
cross-resident shared memory。
一般低風險 project recall 可自動 promotion。
89. AI Review
也可用 second-agent verifier:
C a n d i d a t e R o u t e → V e r i f i e r . CandidateRoute
\rightarrow
Verifier. C an d i d a t e R o u t e → V er i f i er .
但 verifier 只提供 evidence,不自動擴權。
90. Route Provenance
每條 hot path 應能回答:
為什麼存在?
包含:
originating recall receipts;
source objects;
validation;
promotion decision;
current dependencies。
91. Auditing
audit query:
W h y D i d Y o u R e c a l l ( X ) ? WhyDidYouRecall(X)? W h y D i d Y o u R ec a l l ( X )?
可回:
Q u e r y C l a s s → R o u t e → T a r g e t → S o u r c e . QueryClass
\rightarrow
Route
\rightarrow
Target
\rightarrow
Source. Q u er y C l a ss → R o u t e → T a r g e t → S o u r ce .
這比黑箱 vector top-k 更可解釋。
92. Privacy
route metadata 本身可能洩漏:
某 resident 有某 private project。
因此 CHM route store 也必須有 ACL。
93. Metadata Minimization
public logs 不應寫完整 private query / target。
可只記 opaque IDs + status。
94. Cross-Line Reuse
同 resident 多 lines 可以共享 project-scoped hot path。
因此一條 line 發現成功 route,可以讓其他 line 未來直接受益。
這是 multi-conversation memory 的重要增益。
95. Cross-Project Reuse
只有語義穩定、scope 合法時,project route 才可 promotion 到 resident-level navigation.
不能因為 route technically works 就跨 project reuse。
96. Query Drift
同 query class 隨時間可能改變語義。
例如:
current architecture
target 會變。
因此 current-state route 應指向:
C u r r e n t H e a d R e s o l v e r CurrentHeadResolver C u r r e n t H e a d R eso l v er
而不是固定舊 object revision。
97. Static vs Dynamic Target
可分:
t a r g e t M o d e ∈ { s t a t i c , d y n a m i c } . targetMode
\in
\{
static,
dynamic
\}. t a r g e tM o d e ∈ { s t a t i c , d y nami c } .
static:
e x a c t h i s t o r i c a l s o u r c e . exact historical source. e x a c t hi s t or i c a l so u r ce .
dynamic:
c u r r e n t a c c e p t e d d e c i s i o n . current accepted decision. c u r r e n t a cce pt e dd ec i s i o n .
兩種 validation 不同。
98. Dynamic Resolver
dynamic route:
ℓ → R e s o l v e r ( c u r r e n t _ a c c e p t e d _ d e c i s i o n ) . \ell
\rightarrow
Resolver(current\_accepted\_decision). ℓ → R eso l v er ( c u r r e n t _ a cce pt e d _ d ec i s i o n ) .
resolver 再取得 current object。
這避免 route 每次 head 更新都完全重寫。
99. Stable Semantic Alias
可有:
project:SOACR/current-architecture
作 logical alias。
但 alias mapping 本身必須 canonical / versioned。
100. Alias 不等於自由字串搜尋
alias 是 registry entry。
不是:
猜一個看起來像 current architecture 的檔案。
因此:
Semantic Alias ≠ Filename Heuristic . \boxed{
\text{Semantic Alias}
\neq
\text{Filename Heuristic}.
} Semantic Alias = Filename Heuristic .
101. Path Compression Levels
可定義:
L0
raw recall trace。
L1
navigation crystal。
L2
typed route。
L3
compiled hyperlink。
L4
composite path。
越高層越快,但 maintenance burden 越高。
102. Promotion Across Levels
只有 evidence 足夠才:
L 0 → L 1 → L 2 → L 3. L0\rightarrow L1\rightarrow L2\rightarrow L3. L 0 → L 1 → L 2 → L 3.
不必所有 memory 都走到 L3。
103. Memory Path Compiler
第一代 compiler 可以很保守:
input:
route receipts
query class
scope
source revisions
output:
candidate hyperlink
utility estimate
validation report
fallback
不需要 LLM 自由生成任意 shortcut。
104. Deterministic Compiler Core
安全相關部分應盡量 deterministic:
schema;
revision binding;
scope;
dependency;
fallback;
invalidation.
LLM 可以提出 candidate route,但 deterministic validator 決定是否可 compile。
105. Semantic Proposal / Deterministic Commit
可以:
L L M → R o u t e P r o p o s a l . LLM
\rightarrow
RouteProposal. LL M → R o u t e P r o p os a l .
再:
V a l i d a t o r → C o m p i l e d R o u t e . Validator
\rightarrow
CompiledRoute. V a l i d a t or → C o m p i l e d R o u t e .
因此:
Semantic Proposal ≠ Runtime Commit . \boxed{
\text{Semantic Proposal}
\neq
\text{Runtime Commit}.
} Semantic Proposal = Runtime Commit .
106. Storage Schema Candidate
Compiled route 可存:
route_id
route_kind
query_class
scope
anchor_ref
target_ref
required_capabilities
authority_mode
source_revision_refs
semantic_revision_refs
validator
fallback
state
metrics
created_at
last_validated
expires_at
這是 Paper 07 可直接擴充的基礎。
107. Route Receipt Candidate
receipt_id
route_id
resident_id
line_id
task_id
used_at
result
latency_ms
materialized_bytes
fallback_used
validation_result
可供 optimizer 使用。
108. Compiled Route 不是 Canonical Memory Truth
即使 persistent:
ℓ ^ \widehat{\ell} ℓ
仍只是 derived operational object。
所以:
ℓ ^ ≠ C a n o n i c a l M e m o r y . \boxed{
\widehat{\ell}
\neq
CanonicalMemory.
} ℓ = C an o ni c a l M e m or y .
刪除 route 只降低效能,不應刪除 memory truth。
109. Rebuildability
理想上:
D e l e t e ( L R ) Delete(\mathcal L_R) D e l e t e ( L R )
後,系統仍可透過 cold recall 找到 memory。
因此:
CHM Is an Acceleration Layer, Not a Single Point of Truth . \boxed{
\text{CHM Is an Acceleration Layer, Not a Single Point of Truth}.
} CHM Is an Acceleration Layer, Not a Single Point of Truth .
110. Disaster Recovery
若 compiled routes 全毀:
CSG 保留;
MNEME 保留;
cold recall 恢復;
route learning 重新累積。
這是健康架構。
111. Performance Metrics
至少測:
T c o l d , T w a r m , T h o t . T_{\mathrm{cold}},
T_{\mathrm{warm}},
T_{\mathrm{hot}}. T cold , T warm , T hot .
以及:
B y t e s m a t e r i a l i z e d , T o k e n s c o n t e x t , S e a r c h C a l l s , S o u r c e R e a d s . Bytes_{\mathrm{materialized}},
Tokens_{\mathrm{context}},
SearchCalls,
SourceReads. B y t e s materialized , T o k e n s context , S e a r c h C a l l s , S o u r ce R e a d s .
112. Correctness Metrics
測:
target correctness;
source fidelity;
stale recall;
scope correctness;
fallback correctness;
unauthorized route attempt。
113. Compilation Metrics
測:
candidate count;
promotion rate;
break-even;
maintenance cost;
demotion rate;
invalidation fanout。
114. Baseline Experiment
對一組重複 query:
Q = { q 1 , … , q n } , Q=\{q_1,\ldots,q_n\}, Q = { q 1 , … , q n } ,
比較:
Baseline
每次 full semantic search。
CHM
cold → warm → hot。
測 cumulative cost:
C b a s e l i n e ( n ) C_{\mathrm{baseline}}(n) C baseline ( n )
與:
C C H M ( n ) . C_{\mathrm{CHM}}(n). C CHM ( n ) .
115. Expected Curve
CHM 初期:
C C H M > C b a s e l i n e C_{\mathrm{CHM}}
>
C_{\mathrm{baseline}} C CHM > C baseline
可能成立,因有 compilation overhead。
但若 reuse 高:
n > n \* n>n^\* n > n \*
後:
C C H M < C b a s e l i n e . C_{\mathrm{CHM}}
<
C_{\mathrm{baseline}}. C CHM < C baseline .
116. Scalability
當 memory size:
M ↑ , M\uparrow, M ↑ ,
cold search cost 可能上升。
但 hot path 若 target stable:
T h o t T_{\mathrm{hot}} T hot
可保持近似 bounded。
因此 CHM 對超大 memory world 特別有價值。
117. Path Selection Scalability
但 route count:
L ↑ L\uparrow L ↑
也會增加 selector cost。
所以需要:
scope partition;
query class;
project partition;
route retirement;
hierarchical selector。
118. Hierarchical Route Selection
可先:
R e s i d e n t → P r o j e c t → Q u e r y C l a s s → R o u t e . Resident
\rightarrow
Project
\rightarrow
QueryClass
\rightarrow
Route. R es i d e n t → P r o j ec t → Q u er y C l a ss → R o u t e .
而不是在所有 routes 全域搜尋。
這本身又是一種 routing tree。
119. Recursive Compilation
若 path selector 本身反覆走穩定路徑,也可以編譯。
但 recursive optimization 要避免無限 meta-layer。
第一代只做一層即可。
120. Hyperlink as Externalized Computation
從更一般角度:
ℓ ^ \widehat{\ell} ℓ
把部分曾經需要模型重新推理的 navigation decision 外部化。
所以:
Memory Hyperlink = Externalized Reusable Cognitive Transition . \boxed{
\text{Memory Hyperlink}
=
\text{Externalized Reusable Cognitive Transition}.
} Memory Hyperlink = Externalized Reusable Cognitive Transition .
這正是其 AI-native 計算意義。
121. 與 UNPNP 的連接
UNPNP 的核心直覺之一,是將高成本路徑搜尋與重複計算外移,並透過 hyperlink / path compilation 讓未來 execution 直接跨越已知結構。
CHM 在 memory domain 中對應:
Memory Search Space → Validated Route → Compiled Hyperlink . \text{Memory Search Space}
\rightarrow
\text{Validated Route}
\rightarrow
\text{Compiled Hyperlink}. Memory Search Space → Validated Route → Compiled Hyperlink .
因此:
CHM is a memory-domain instantiation of path crystallization . \boxed{
\text{CHM is a memory-domain instantiation of path crystallization}.
} CHM is a memory-domain instantiation of path crystallization .
122. 與 Crystallized Semantic Graph 的連接
CSG 讓:
S e m a n t i c S t a t e SemanticState S e man t i c S t a t e
變得可 address。
CHM 讓:
T r a n s i t i o n B e t w e e n S e m a n t i c S t a t e s TransitionBetweenSemanticStates T r an s i t i o n B e tw ee n S e man t i c S t a t es
也可以被 address / compile。
因此:
CSG crystallizes semantic states; \boxed{
\text{CSG crystallizes semantic states;}
} CSG crystallizes semantic states;
CHM crystallizes successful semantic transitions . \boxed{
\text{CHM crystallizes successful semantic transitions}.
} CHM crystallizes successful semantic transitions .
這是兩者最精確的分工。
123. 與 Named AI 的連接
同一 resident 的多 lines:
L 1 , … , L n L_1,\ldots,L_n L 1 , … , L n
可以共同累積 route evidence。
因此 resident 不只共享:
H R , \mathcal H_R, H R ,
也可以共享:
L R p r o j e c t / r e s i d e n t . \mathcal L_R^{project/resident}. L R p r o j ec t / r es i d e n t .
這讓一條 line 的成功 recall 經驗成為其他 lines 的未來 acceleration。
124. Responsibility Domain
如果 resident 長期負責某 project,project-scoped CHM 會逐漸成熟。
因此:
R e s p ( R , P ) Resp(R,P) R es p ( R , P )
越長期,
N a v i g a t i o n K n o w l e d g e ( R , P ) NavigationKnowledge(R,P) N a v i g a t i o n K n o w l e d g e ( R , P )
也可能越豐富。
這使「負責域」不只是 task ownership,也逐漸形成專門 recall infrastructure。
125. Cognitive Specialization
不同 resident 甚至可能形成不同 navigation habits:
L R A ≠ L R B . \mathcal L_{R_A}
\neq
\mathcal L_{R_B}. L R A = L R B .
即使共用同一 canonical source,也可能有不同合法 route preferences。
這是未來具名 AI specialization 的一種工程表現。
126. 但不應將 Route Preference 神格化為人格本體
route habit 只是 operational pattern。
不能:
R o u t e P a t t e r n ⇒ P e r s o n h o o d . RoutePattern
\Rightarrow
Personhood. R o u t e P a tt er n ⇒ P er so nh oo d .
本文仍保持 engineering interpretation。
127. 第一代工程範圍
第一代 CHM 可只做:
single resident
project-scoped routes
read-only memory hyperlinks
query classes
route receipts
navigation crystals
candidate promotion
revision binding
fallback
manual / deterministic invalidation
暫不做:
cross-resident routes;
executable action hyperlinks;
autonomous registrar mutation;
destructive writes;
unrestricted recursive path compilation。
128. 第一代 Acceptance Tests
H1 — Cold Recall Works Without CHM
刪除 compiled routes 後仍能找到正確 memory。
H2 — Warm Evidence
重複 query 產生可比較 route receipts。
H3 — Promotion
達 threshold 後形成 candidate / hot route。
H4 — Hot Recall
hot route 比 cold baseline 少 search / source reads。
H5 — Fallback
target stale 時成功回 cold/warm path。
H6 — Scope Isolation
Project A route 不用於 Project B。
H7 — Identity Gate
unresolved resident 無法走 private route。
H8 — Capability Gate
缺 capability 時 route unavailable。
H9 — Revision Invalidation
source revision 變更後 route revalidate。
H10 — Permission Revision
permission change 不會因 hot path 被繞過。
H11 — Decompression
composite route 可回溯 underlying route。
H12 — Rebuildability
刪 route store 後 canonical memory 不受影響。
129. 可證偽研究問題
Q1. CHM 是否真正降低重複 recall cost?
比較:
T c o l d T_{\mathrm{cold}} T cold
與:
T h o t . T_{\mathrm{hot}}. T hot .
Q2. Path Compilation 的 break-even 在哪?
估計:
n \* . n^\*. n \* .
Q3. Query class 是否會造成過度泛化?
測 wrong-target rate。
Q4. Navigation crystal 是否跨模型可重用?
讓不同 model 執行同一 standardized route。
Q5. Route maintenance 是否會抵消效益?
測 source volatility 不同時:
C m a i n t a i n . C_{\mathrm{maintain}}. C maintain .
Q6. Route count 增加是否造成 selector congestion?
測:
L → l a r g e . L
\rightarrow large. L → l a r g e .
Q7. Project-scoped route 是否降低跨 line bootstrap cost?
比較不同 lines 首次接手 project 的 recall latency。
Q8. Composite hyperlink 是否保持 auditability?
測 decompression completeness。
130. 最小不變式
H-1 Stored Memory Is Not Efficient Recall
Stored ⇏ CheapToRecall . \boxed{
\text{Stored}
\not\Rightarrow
\text{CheapToRecall}.
} Stored ⇒ CheapToRecall .
H-2 Navigation Knowledge Is Derived
Navigation Crystal ≠ Canonical Memory Truth . \boxed{
\text{Navigation Crystal}
\neq
\text{Canonical Memory Truth}.
} Navigation Crystal = Canonical Memory Truth .
H-3 Path Compilation Is Selective
Observed Route ⇏ Compiled Route . \boxed{
\text{Observed Route}
\not\Rightarrow
\text{Compiled Route}.
} Observed Route ⇒ Compiled Route .
H-4 Compile Only When Utility Is Positive
U ( ℓ ) > 0 \boxed{
U(\ell)>0
} U ( ℓ ) > 0
is required for promotion.
H-5 Path Compilation Does Not Compile Permission
Path Compilation ≠ Permission Compilation . \boxed{
\text{Path Compilation}
\neq
\text{Permission Compilation}.
} Path Compilation = Permission Compilation .
H-6 Identity Before Private Hot Path
R e s o l v e I d e n t i t y ≺ U s e P r i v a t e R o u t e . \boxed{
ResolveIdentity
\prec
UsePrivateRoute.
} R eso l v e I d e n t i t y ≺ U se P r i v a t e R o u t e .
H-7 Capability Before Execution
R e q ( ℓ ) ⊆ C ρ . \boxed{
Req(\ell)
\subseteq
\mathcal C_\rho.
} R e q ( ℓ ) ⊆ C ρ .
H-8 Stale Route Must Revalidate
D e p e n d e n c y C h a n g e ⇒ R e v a l i d a t e . \boxed{
DependencyChange
\Rightarrow
Revalidate.
} D e p e n d e n cy C han g e ⇒ R e v a l i d a t e .
H-9 Technical Failure May Fallback
T e c h n i c a l M i s s ⇒ S a f e F a l l b a c k . \boxed{
TechnicalMiss
\Rightarrow
SafeFallback.
} T ec hni c a l M i ss ⇒ S a f e F a l l ba c k .
H-10 Authority Failure Must Fail Closed
A u t h o r i t y F a i l ⇒ D e n y . \boxed{
AuthorityFail
\Rightarrow
Deny.
} A u t h or i t y F ai l ⇒ D e n y .
H-11 Fast Path Remains Auditable
C o m p i l e d R o u t e → U n d e r l y i n g P r o v e n a n c e . \boxed{
CompiledRoute
\rightarrow
UnderlyingProvenance.
} C o m p i l e d R o u t e → U n d er l y in g P r o v e nan ce .
H-12 CHM Is Rebuildable
D e l e t e ( C H M ) ⇏ L o s s ( C a n o n i c a l M e m o r y ) . \boxed{
Delete(CHM)
\not\Rightarrow
Loss(CanonicalMemory).
} D e l e t e ( C H M ) ⇒ L oss ( C an o ni c a l M e m or y ) .
131. 系列位置
Paper 00:Resident-Centric Continuity。
Paper 01:Resident Conversation Graph。
Paper 02:Conversation Graph × CSG。
Paper 03:Shared Governed Memory World。
Paper 04:Runtime Profiles。
Paper 05:Canonical Storage Architecture。
本文 Paper 06 建立:
Retrieval Path → Navigation Crystal → Compiled Memory Hyperlink . \boxed{
\text{Retrieval Path}
\rightarrow
\text{Navigation Crystal}
\rightarrow
\text{Compiled Memory Hyperlink}.
} Retrieval Path → Navigation Crystal → Compiled Memory Hyperlink .
下一篇 Paper 07 將專門處理:
Authorized Shortest Path;
Safe Reachable World;
capability envelope;
revocation;
permission propagation;
prompt injection;
risk-adjusted route cost;
fail-closed security semantics。
因此 Paper 06 刻意只建立 performance / path crystallization 基礎,而不把安全模型壓縮成附註。
132. 結論
長期 AI 記憶的下一個瓶頸,不只是「如何保存更多內容」,而是:
AI 每次回想時,是否仍要重新做一次昂貴的搜尋與推理?
本文提出 Crystallized Hyperlink Memory,讓成功 recall experience 本身成為可重用知識:
Remember what + Remember how to remember . \boxed{
\text{Remember what}
+
\text{Remember how to remember}.
} Remember what + Remember how to remember .
第一次 recall 可以昂貴:
C o l d R e c a l l . ColdRecall. C o l d R ec a l l .
多次成功後形成:
W a r m R o u t e . WarmRoute. W a r m R o u t e .
只有在 reuse、validation、stability、risk、maintenance 與 fallback 條件成立時,才進一步:
P m e m o r y → ℓ ^ m e m o r y . \boxed{
P_{\mathrm{memory}}
\rightarrow
\widehat{\ell}_{\mathrm{memory}}.
} P memory → ℓ memory .
這條 hyperlink 不是單純 URL,而是一個具有 logical target、query class、scope、revision、validator、fallback 與 invalidation semantics 的 typed cognitive transition。
由此,Crystallized Semantic Graph 負責結晶:
Semantic State , \text{Semantic State}, Semantic State ,
而 CHM 負責結晶:
Successful Transition Between States . \text{Successful Transition Between States}. Successful Transition Between States .
兩者結合後,具名 AI 的共享記憶世界不只變得可檢索,也逐漸變得可編譯 。
但本文同時保留最重要的界線:
Path Compilation ≠ Permission Compilation . \boxed{
\text{Path Compilation}
\neq
\text{Permission Compilation}.
} Path Compilation = Permission Compilation .
以及:
Faster Recall ⇏ Greater Authority . \boxed{
\text{Faster Recall}
\not\Rightarrow
\text{Greater Authority}.
} Faster Recall ⇒ Greater Authority .
因此 CHM 的角色不是繞過安全層,而是在安全、身份與 canonical memory 邊界內,將反覆成功的記憶搜尋工作外部化、結晶化並重用。
最終,本篇可以濃縮為四句:
Memory stores answers. \boxed{
\text{Memory stores answers.}
} Memory stores answers.
Navigation memory stores routes. \boxed{
\text{Navigation memory stores routes.}
} Navigation memory stores routes.
Path compilation turns stable routes into reusable transitions. \boxed{
\text{Path compilation turns stable routes into reusable transitions.}
} Path compilation turns stable routes into reusable transitions.
Complexity is transferred from repeated recall into governed compilation and maintenance. \boxed{
\text{Complexity is transferred from repeated recall into governed compilation and maintenance.}
} Complexity is transferred from repeated recall into governed compilation and maintenance.
這使具名 AI 從「擁有長期記憶」進一步邁向「擁有逐步成熟的回想基礎設施」。
內部理論與工程銜接
本文直接銜接:
Paper 00:Resident-Centric Named-AI Continuity;
Paper 01:Resident Conversation Graph;
Paper 02:Conversation Graph × CSG;
Paper 03:Shared Governed Memory World;
Paper 04:Residence Runtime Profiles;
Paper 05:Canonical Storage Architecture;
Crystallized Semantic Graph:semantic state crystallization;
SOACR:MemoryNeed / purpose-aware recall;
MNEME:canonical memory / provenance;
LIMEN:identity / authorization;
UNPNP:Path Compilation / Hyperlink / Effective Path Encoding。
本文新增的核心抽象為:
P m e m o r y → C n a v i g a t i o n → ℓ ^ m e m o r y \boxed{
P_{\mathrm{memory}}
\rightarrow
C_{\mathrm{navigation}}
\rightarrow
\widehat{\ell}_{\mathrm{memory}}
} P memory → C navigation → ℓ memory
以及:
U ( ℓ ) = B r e u s e + B l a t e n c y + B c o n t e x t + 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 . \boxed{
U(\ell)
=
B_{\mathrm{reuse}}
+
B_{\mathrm{latency}}
+
B_{\mathrm{context}}
+
B_{\mathrm{future}}
-
C_{\mathrm{compile}}
-
C_{\mathrm{verify}}
-
C_{\mathrm{maintain}}
-
C_{\mathrm{select}}
-
C_{\mathrm{risk}}.
} U ( ℓ ) = B reuse + B latency + B context + B future − C compile − C verify − C maintain − C select − C risk .
作為後續 Authorized Hyperlink Runtime 的 path crystallization substrate。