GCM Canonical Specification & Formal Contract
Global Computation Methodology 技術規格、型別契約與 Canonical Runtime 義務 v0.1
文件類型: Technical Whitepaper / Normative Engineering Specification系列: Global Computation Methodology(GCM)版本: v0.1日期: 2026-08-24Canonical source format: UTF-8 Markdown數學 delimiter: $...$ 與 $$...$$狀態: 第二輪正式工程規格;衍生自 Series-00 v0.2 與 Paper-01–06 v0.2
摘要
Global Computation Methodology(GCM)的六篇核心論文已分別建立:World-relative global coherence、24/72 computational configuration basis、dynamic routing、Observer/materialization separation、finite active realization,以及 typed history / provenance。若只停留在論文層,這些概念仍可能在實作時被不同 Runtime 重新解讀,造成符號漂移、權限滲漏、Observer/World 混用、route/commit 混用、history 壓縮失真,以及 Foundation 被 ordinary Runtime 偷偷改寫。
本文件因此不再主要回答「為什麼 GCM 應如此設計」,而是回答:
一個 Runtime 若宣稱實作 GCM,最低限度必須保存哪些型別邊界、操作契約、權限義務、提交語義、生命週期與歷史語義?
本規格將 00–06 已收斂內容轉換為可實作的 canonical contract。其核心可濃縮為:
Addressable → Reachable → Admissible → Authorized → Executable → Reconciled → Verified → Committable \boxed{
\text{Addressable}
\rightarrow
\text{Reachable}
\rightarrow
\text{Admissible}
\rightarrow
\text{Authorized}
\rightarrow
\text{Executable}
\rightarrow
\text{Reconciled}
\rightarrow
\text{Verified}
\rightarrow
\text{Committable}
} Addressable → Reachable → Admissible → Authorized → Executable → Reconciled → Verified → Committable
且任何 ordinary Runtime transition 必須維持:
M G ≠ W \boxed{
\mathcal M_G
\neq
\mathbf W
} M G = W
Observer Operation ≠ World Operation ≠ Foundation Revision \boxed{
\text{Observer Operation}
\neq
\text{World Operation}
\neq
\text{Foundation Revision}
} Observer Operation = World Operation = Foundation Revision
Executor Output ≠ Canonical World Commit \boxed{
\text{Executor Output}
\neq
\text{Canonical World Commit}
} Executor Output = Canonical World Commit
State Equality ⇏ History Equality \boxed{
\text{State Equality}
\not\Rightarrow
\text{History Equality}
} State Equality ⇒ History Equality
本文件將成為 TW-02 Reference Runtime Architecture 與 TW-03 Conformance / Verification Specification 的直接上游規格來源。
0. 規格角色與適用範圍
本文件是 GCM 的 normative engineering specification 。
它的責任是:
固定 canonical namespace;
固定核心 record / contract;
固定 state-plane 邊界;
固定 operation typing;
固定 route gating semantics;
固定 authority non-escalation;
固定 Observer / materialization / resolution 分離;
固定 active-support / dormancy / archive 義務;
固定 typed history / provenance 義務;
固定 Foundation revision 邊界;
固定相容性、版本化與失敗時的 fail-closed 原則。
本文件 不 :
指定唯一程式語言;
指定唯一資料庫;
指定唯一 scheduler;
指定唯一 optimization objective;
指定唯一 AI Router;
指定 World 必須是物理世界、遊戲世界或模擬世界;
要求實作全部 24/72 cell;
要求所有 history 永久 resident in memory;
把 GCM 定義成第 73 種計算範式;
把 Mathematics 等同 Optimization。
1. Normative language
本文件使用以下規範詞:
MUST :合規實作不可違反;
MUST NOT :合規實作不可執行;
SHOULD :預設應遵循;若偏離,應能記錄理由與風險;
SHOULD NOT :預設不應採用;若採用,應能證明不破壞相關 invariants;
MAY :可選能力。
當論文中的概念敘述與本規格中的明確 MUST 條款產生歧義時,Runtime 不得自行選擇「對自己最方便的解讀」。必須透過 explicit specification revision 解決。
2. Canonical source lineage 與版本優先級
本規格衍生自:
Series-00 v0.2;
Paper-01 v0.2;
Paper-02 v0.2;
Paper-03 v0.2;
Paper-04 v0.2;
Paper-05 v0.2;
Paper-06 v0.2。
本文件將上述論文中的穩定義務抽成工程契約。
需區分至少三種版本:
v s p e c ≠ v c o n f i g ≠ v f o u n d a t i o n \boxed{
v_{\mathrm{spec}}
\neq
v_{\mathrm{config}}
\neq
v_{\mathrm{foundation}}
} v spec = v config = v foundation
其中:
v s p e c v_{\mathrm{spec}} v spec :GCM 技術規格版本;
v c o n f i g v_{\mathrm{config}} v config :configuration schema / registry 版本;
v f o u n d a t i o n v_{\mathrm{foundation}} v foundation :特定 World / deployment 的 Foundation 版本。
規格升版不等於 World Foundation revision;configuration registry 擴張也不等於 Foundation revision。
3. Canonical state planes
GCM-compliant Runtime MUST 至少區分下列語義層:
W = World primitive \boxed{
\mathbf W
=
\text{World primitive}
} W = World primitive
W ν = canonical committed executable World-state presentation \boxed{
W_\nu
=
\text{canonical committed executable World-state presentation}
} W ν = canonical committed executable World-state presentation
Ξ μ = Runtime control state \boxed{
\Xi_\mu
=
\text{Runtime control state}
} Ξ μ = Runtime control state
O ω = Observer state \boxed{
O_\omega
=
\text{Observer state}
} O ω = Observer state
F ( v ) = Foundation version \boxed{
\mathcal F^{(v)}
=
\text{Foundation version}
} F ( v ) = Foundation version
H η = history / provenance state \boxed{
\mathcal H_\eta
=
\text{history / provenance state}
} H η = history / provenance state
其中 typed indices 為:
ν = World commit/version identifier , \nu
=
\text{World commit/version identifier}, ν = World commit/version identifier ,
μ = Runtime-control revision , \mu
=
\text{Runtime-control revision}, μ = Runtime-control revision ,
ω = Observer revision , \omega
=
\text{Observer revision}, ω = Observer revision ,
η = history-store revision . \eta
=
\text{history-store revision}. η = history-store revision .
因此:
ν ≠ μ ≠ ω ≠ η as typed roles \boxed{
\nu
\neq
\mu
\neq
\omega
\neq
\eta
\quad
\text{as typed roles}
} ν = μ = ω = η as typed roles
此不等式表示語義角色不可偷換,不要求它們的數值永遠不同。
3.1 State-plane non-collapse
Runtime MUST NOT 將:
projection cache;
scheduler queue;
resource availability;
Observer viewport;
history index;
直接當成 canonical World primitive mutation。
同樣地,canonical World commit MUST NOT 因 UI refresh 或 cache rebuild 被假造。
4. Expanded GCM typed core
本規格採下列 expanded core:
M G = ⟨ W ; W ν , Ξ μ , O ω , F ( v ) ; P , L , D , Γ ν ; C , R e a c h , A u t h , S ; Π , M a t , H η ⟩ \boxed{
\mathcal M_G
=
\left\langle
\mathbf W;
W_\nu,
\Xi_\mu,
O_\omega,
\mathcal F^{(v)};
\mathfrak P,
\mathfrak L,
\mathcal D,
\Gamma_\nu;
\mathcal C,
\mathsf{Reach},
\mathsf{Auth},
\mathcal S;
\Pi,
\mathsf{Mat},
\mathcal H_\eta
\right\rangle
} M G = ⟨ W ; W ν , Ξ μ , O ω , F ( v ) ; P , L , D , Γ ν ; C , Reach , Auth , S ; Π , Mat , H η ⟩
並維持:
M G ≠ W . \boxed{
\mathcal M_G
\neq
\mathbf W.
} M G = W .
任何 implementation-specific object 若無法清楚映射到其中一個或多個 typed roles,SHOULD 被視為未分類 extension,而不是強迫塞入既有符號。
5. World boundary 與 typed globality
Globality MUST 相對指定 World boundary 判定。
令:
B W = designated World boundary . B_W
=
\text{designated World boundary}. B W = designated World boundary .
定義:
Global B W ( x ) \operatorname{Global}_{B_W}(x) Global B W ( x )
表示 x x x 的合法性、一致性或依賴義務必須相對 B W B_W B W 判定。
因此:
Global Computation ≠ Absolute Universe-wide Computation \boxed{
\text{Global Computation}
\neq
\text{Absolute Universe-wide Computation}
} Global Computation = Absolute Universe-wide Computation
Global Computation ≠ One Computation Everywhere \boxed{
\text{Global Computation}
\neq
\text{One Computation Everywhere}
} Global Computation = One Computation Everywhere
Global Computation = Globally Coherent Heterogeneous Computation \boxed{
\text{Global Computation}
=
\text{Globally Coherent Heterogeneous Computation}
} Global Computation = Globally Coherent Heterogeneous Computation
Nested boundaries MAY 存在;同一 operation MAY 對較小 boundary 是 global,對較大 boundary 是 local。
6. Canonical namespace registry
以下符號屬 TW-01 v0.1 canonical namespace:
Symbol
Canonical meaning
W \mathbf W W
World primitive
W ν W_\nu W ν
canonical committed executable World-state presentation
Ξ μ \Xi_\mu Ξ μ
Runtime control state
O ω O_\omega O ω
Observer state
F ( v ) \mathcal F^{(v)} F ( v )
Foundation version
H η \mathcal H_\eta H η
history / provenance state
P \mathfrak P P
computational configuration basis / space
L \mathfrak L L
transition-law family
D \mathcal D D
domain family
Γ ν \Gamma_\nu Γ ν
domain-relative configuration assignment
C \mathcal C C
constraints / couplings
S \mathcal S S
routing / scheduling / composition policy family
Π \Pi Π
projection family
M a t \mathsf{Mat} Mat
materialization state / policy
H o r μ \mathsf{Hor}_\mu Hor μ
active dependency horizon
ρ C \rho^C ρ C
compute resolution
ρ O \rho^O ρ O
Observer / projection resolution
λ S T \lambda^{ST} λ S T
domain-specific spacetime scale, when applicable
R e a c h \mathsf{Reach} Reach
reachability relation
A u t h \mathsf{Auth} Auth
authority relation
P o t \mathsf{Pot} Pot
potential / not-yet-canonical possibility
P i n \mathsf{Pin} Pin
pinning family
B r \mathsf{Br} Br
representation bridge
6.1 Forbidden namespace collapse
Canonical source MUST NOT:
使用 H \mathcal H H 表示 active horizon;
使用 C \mathcal C C 表示 configuration assignment;
使用單一 P P P 同時表示 Potential、Pinned、Permission;
使用單一 R R R 同時表示 Route、Receipt、Archived status;
使用 Λ \Lambda Λ 同時表示 resolution、materialization 與 physical scale;
使用 O 3 \mathfrak O_3 O 3 表示真正 Observer。
7. Computational configuration basis
GCM 保留:
P 24 = B 2 × U 4 × I 3 \boxed{
\mathfrak P_{24}
=
\mathfrak B_2
\times
\mathfrak U_4
\times
\mathfrak I_3
} P 24 = B 2 × U 4 × I 3
其中:
B 2 = { C , D } , \mathfrak B_2
=
\{\mathsf C,\mathsf D\}, B 2 = { C , D } ,
U 4 = { S , J , P , R } , \mathfrak U_4
=
\{\mathsf S,\mathsf J,\mathsf P,\mathsf R\}, U 4 = { S , J , P , R } ,
I 3 = { C , D , X } . \mathfrak I_3
=
\{\mathsf C,\mathsf D,\mathsf X\}. I 3 = { C , D , X } .
加入 transition-law family:
L 3 = { F , K , Q } , \mathfrak L_3
=
\{\mathsf F,\mathsf K,\mathsf Q\}, L 3 = { F , K , Q } ,
得到:
P 72 = P 24 × L 3 . \boxed{
\mathfrak P_{72}
=
\mathfrak P_{24}
\times
\mathfrak L_3.
} P 72 = P 24 × L 3 .
7.1 Basis semantics
Runtime MUST 將 24/72 視為:
Finite Coordinate Basis \boxed{
\text{Finite Coordinate Basis}
} Finite Coordinate Basis
而不是:
Exhaustive Mutually Exclusive Ontology of All Computation . \boxed{
\text{Exhaustive Mutually Exclusive Ontology of All Computation}.
} Exhaustive Mutually Exclusive Ontology of All Computation .
因此:
24 / 72 ≠ The 73rd Paradigm Premise . \boxed{
24/72
\neq
\text{The 73rd Paradigm Premise}.
} 24/72 = The 73rd Paradigm Premise .
Composite subsystem MAY 具有多個 basis cells。
7.2 Full Runtime configuration
令:
G ( v ) \mathfrak G^{(v)} G ( v )
表示 configuration schema version v v v 下的 full Runtime configuration space。
最小 configuration record:
γ = ⟨ β , ρ C , r , χ ⟩ \boxed{
\gamma
=
\left\langle
\beta,
\rho^C,
r,
\chi
\right\rangle
} γ = ⟨ β , ρ C , r , χ ⟩
其中:
β \beta β :basis address / composite basis profile;
ρ C \rho^C ρ C :compute resolution;
r r r :resource binding / resource class;
χ \chi χ :execution / composition contract reference。
Runtime MUST NOT 將 basis cell 當作完整 executor contract。
7.3 Versioned addressing
Canonical human-readable address SHOULD 類似:
GCM:v0.2/B:D/U:R/I:D/L:K
Legacy O: MAY 被 parser 接受,但 canonical emitter SHOULD 輸出 I:。
對 schema version v v v :
addr v : P ( v ) → I D v . \operatorname{addr}_v:
\mathfrak P^{(v)}
\rightarrow
\mathsf{ID}_v. addr v : P ( v ) → ID v .
但:
Numeric ID ≠ Semantic Identity Across Versions . \boxed{
\text{Numeric ID}
\neq
\text{Semantic Identity Across Versions}.
} Numeric ID = Semantic Identity Across Versions .
若新版 configuration 無法安全投影回舊版,compatibility projection MUST 可失敗:
π v ′ → v ( β ′ ) ↑ . \pi_{v'\rightarrow v}(\beta')
\uparrow. π v ′ → v ( β ′ ) ↑ .
Runtime MUST NOT 為了 backward compatibility 強制 lossy projection 而隱藏語義差異。
8. Domain 與 configuration assignment
令:
D ν = { D 1 , … , D n } . \mathcal D_\nu
=
\{D_1,\ldots,D_n\}. D ν = { D 1 , … , D n } .
configuration assignment:
Γ ν : D ν → G ( v ) . \boxed{
\Gamma_\nu:
\mathcal D_\nu
\rightarrow
\mathfrak G^{(v)}.
} Γ ν : D ν → G ( v ) .
Domain MUST NOT 被默認為 physical spatial region:
Domain ≠ Physical Space . \boxed{
\text{Domain}
\neq
\text{Physical Space}.
} Domain = Physical Space .
只有在 domain contract 明確具有 physical / spacetime binding 時,MAY 額外註冊對應 relation。
9. Canonical operation types
Operation MUST typed。
O p T y p e ∈ { O b s e r v e , C o m p u t e , M a t e r i a l i z e , M o d i f y S t a t e , C o m m i t , M o d i f y R u l e , M o d i f y F o u n d a t i o n } . \boxed{
\mathsf{OpType}
\in
\{
\mathsf{Observe},
\mathsf{Compute},
\mathsf{Materialize},
\mathsf{ModifyState},
\mathsf{Commit},
\mathsf{ModifyRule},
\mathsf{ModifyFoundation}
\}.
} OpType ∈ { Observe , Compute , Materialize , ModifyState , Commit , ModifyRule , ModifyFoundation } .
最小 operation request:
ω = ⟨ i d , t y p e , t a r g e t , s c o p e , i n p u t , d e s i r e d E f f e c t , p o s t , r e q u e s t e r ⟩ . \boxed{
\boldsymbol\omega
=
\left\langle
\mathsf{id},
\mathsf{type},
\mathsf{target},
\mathsf{scope},
\mathsf{input},
\mathsf{desiredEffect},
\mathsf{post},
\mathsf{requester}
\right\rangle.
} ω = ⟨ id , type , target , scope , input , desiredEffect , post , requester ⟩ .
Untyped request MUST NOT 直接進入 ordinary execution path。
10. Operation control contract
最小 operation control contract:
C o p = ⟨ T , S , I k e e p , Δ a l l o w , A d m R e q , V e r i f y R e q , R o l l b a c k R e q , P e r m R e q ⟩ . \boxed{
\mathfrak C_{\mathrm{op}}
=
\left\langle
T,
S,
\mathcal I_{\mathrm{keep}},
\Delta_{\mathrm{allow}},
\mathsf{AdmReq},
\mathsf{VerifyReq},
\mathsf{RollbackReq},
\mathsf{PermReq}
\right\rangle.
} C op = ⟨ T , S , I keep , Δ allow , AdmReq , VerifyReq , RollbackReq , PermReq ⟩ .
其中:
T T T :target;
S S S :scope;
I k e e p \mathcal I_{\mathrm{keep}} I keep :必須保持的 invariants;
Δ a l l o w \Delta_{\mathrm{allow}} Δ allow :允許 effects;
A d m R e q \mathsf{AdmReq} AdmReq :admissibility obligations;
V e r i f y R e q \mathsf{VerifyReq} VerifyReq :verification obligations;
R o l l b a c k R e q \mathsf{RollbackReq} RollbackReq :rollback / recovery obligations;
P e r m R e q \mathsf{PermReq} PermReq :required authority classes。
Runtime MUST NOT 只因 operation technically callable 就省略上述 contract obligations。
11. Authority model
最小 authority profile:
A u t h P r o f i l e ( A ) = ⟨ P o b s e r v e , P c o m p u t e , P m a t e r i a l i z e , P s t a t e , P c o m m i t , P r u l e , P f o u n d a t i o n ⟩ . \boxed{
\mathsf{AuthProfile}(A)
=
\left\langle
P_{\mathrm{observe}},
P_{\mathrm{compute}},
P_{\mathrm{materialize}},
P_{\mathrm{state}},
P_{\mathrm{commit}},
P_{\mathrm{rule}},
P_{\mathrm{foundation}}
\right\rangle.
} AuthProfile ( A ) = ⟨ P observe , P compute , P materialize , P state , P commit , P rule , P foundation ⟩ .
Runtime MUST 保持:
P o b s e r v e = 1 ⇏ P s t a t e = 1 , P_{\mathrm{observe}}=1
\not\Rightarrow
P_{\mathrm{state}}=1, P observe = 1 ⇒ P state = 1 ,
P s t a t e = 1 ⇏ P c o m m i t = 1 , P_{\mathrm{state}}=1
\not\Rightarrow
P_{\mathrm{commit}}=1, P state = 1 ⇒ P commit = 1 ,
P c o m m i t = 1 ⇏ P r u l e = 1 , P_{\mathrm{commit}}=1
\not\Rightarrow
P_{\mathrm{rule}}=1, P commit = 1 ⇒ P rule = 1 ,
P r u l e = 1 ⇏ P f o u n d a t i o n = 1. P_{\mathrm{rule}}=1
\not\Rightarrow
P_{\mathrm{foundation}}=1. P rule = 1 ⇒ P foundation = 1.
對 required authority set:
R e q A u t h ( ω ) \mathsf{ReqAuth}(\boldsymbol\omega) ReqAuth ( ω )
定義:
A u t h O K μ ( A , ω , S ) : = ⋀ a ∈ R e q A u t h ( ω ) A u t h μ ( A , a , S ) . \boxed{
\mathsf{AuthOK}_\mu
(A,\boldsymbol\omega,S)
:=
\bigwedge_{a\in\mathsf{ReqAuth}(\boldsymbol\omega)}
\mathsf{Auth}_\mu(A,a,S).
} AuthOK μ ( A , ω , S ) := a ∈ ReqAuth ( ω ) ⋀ Auth μ ( A , a , S ) .
11.1 Authority non-escalation
Ordinary routing MUST 滿足:
A u t h O u t ⪯ A u t h I n ⊕ E x p l i c i t D e l e g a t i o n . \boxed{
\mathsf{AuthOut}
\preceq
\mathsf{AuthIn}
\oplus
\mathsf{ExplicitDelegation}.
} AuthOut ⪯ AuthIn ⊕ ExplicitDelegation .
因此:
Route Search ⇏ Privilege Escalation . \boxed{
\text{Route Search}
\not\Rightarrow
\text{Privilege Escalation}.
} Route Search ⇒ Privilege Escalation .
AI planner、optimizer、scheduler、executor 或 bridge MUST NOT 因找到更有效的方法而自行取得更深 authority。
12. Reachability、Admissibility 與可供域
GCM MUST 區分:
A s t r u c t , \mathfrak A_{\mathrm{struct}}, A struct ,
A a d m , \mathfrak A_{\mathrm{adm}}, A adm ,
A r u n . \mathfrak A_{\mathrm{run}}. A run .
理想 conformant relation:
A r u n ⊆ A a d m ⊆ A s t r u c t . \boxed{
\mathfrak A_{\mathrm{run}}
\subseteq
\mathfrak A_{\mathrm{adm}}
\subseteq
\mathfrak A_{\mathrm{struct}}.
} A run ⊆ A adm ⊆ A struct .
但 authority 仍 MUST 獨立判定。
Reachability:
R e a c h μ ( A , ζ ) ∈ { 0 , 1 } \mathsf{Reach}_\mu(A,\boldsymbol\zeta)
\in
\{0,1\} Reach μ ( A , ζ ) ∈ { 0 , 1 }
MAY 依 resource、service、device、model、bridge、network、memory 或 control interface 改變,且不是單調關係。
Admissibility:
A d m B W , μ ( v ) ( ω , ζ ) ∈ { 0 , 1 } . \boxed{
\mathsf{Adm}_{B_W,\mu}^{(v)}
(\boldsymbol\omega,\boldsymbol\zeta)
\in
\{0,1\}.
} Adm B W , μ ( v ) ( ω , ζ ) ∈ { 0 , 1 } .
最低 obligations SHOULD 包含:
TypeOK;
DomainOK;
LawOK;
InvariantPreOK;
BridgePreOK;
EffectBoundaryOK;
FoundationOK。
因此:
Can Execute ≠ May Execute . \boxed{
\text{Can Execute}
\neq
\text{May Execute}.
} Can Execute = May Execute .
13. Candidate route record
最小 route candidate:
ζ = ⟨ D ω , γ , E , B r , q , σ , χ ⟩ . \boxed{
\boldsymbol\zeta
=
\left\langle
\mathcal D_{\boldsymbol\omega},
\gamma,
E,
\mathsf{Br},
q,
\sigma,
\chi
\right\rangle.
} ζ = ⟨ D ω , γ , E , Br , q , σ , χ ⟩ .
其中:
D ω \mathcal D_{\boldsymbol\omega} D ω :target domain set;
γ \gamma γ :full Runtime configuration;
E E E :executor / executor family;
B r \mathsf{Br} Br :bridge / bridge chain;
q q q :resource binding;
σ \sigma σ :scheduling / ordering metadata;
χ \chi χ :composition contract reference。
Route candidate existence MUST NOT 被視為 legality proof。
14. Pre-execution gate
定義:
P r e E x e c O K μ ( v ) ( A , ω , ζ ) : = A d d r ( v ) ( ζ ) ∧ R e a c h μ ( A , ζ ) ∧ A d m B W , μ ( v ) ( ω , ζ ) ∧ A u t h O K μ ( A , ω , S ) ∧ E x e c C o n t r a c t O K μ ( ζ ) ∧ B r i d g e O K μ ( ζ ) . \boxed{
\begin{aligned}
&\mathsf{PreExecOK}_{\mu}^{(v)}
(A,\boldsymbol\omega,\boldsymbol\zeta)
\\
&:=
\mathsf{Addr}^{(v)}(\boldsymbol\zeta)
\land
\mathsf{Reach}_\mu(A,\boldsymbol\zeta)
\land
\mathsf{Adm}_{B_W,\mu}^{(v)}(\boldsymbol\omega,\boldsymbol\zeta)
\land
\mathsf{AuthOK}_\mu(A,\boldsymbol\omega,S)
\land
\mathsf{ExecContractOK}_\mu(\boldsymbol\zeta)
\land
\mathsf{BridgeOK}_\mu(\boldsymbol\zeta).
\end{aligned}
} PreExecOK μ ( v ) ( A , ω , ζ ) := Addr ( v ) ( ζ ) ∧ Reach μ ( A , ζ ) ∧ Adm B W , μ ( v ) ( ω , ζ ) ∧ AuthOK μ ( A , ω , S ) ∧ ExecContractOK μ ( ζ ) ∧ BridgeOK μ ( ζ ) .
若:
P r e E x e c O K = 0 , \mathsf{PreExecOK}=0, PreExecOK = 0 ,
ordinary execution MUST NOT 發生。
Optimization MUST 只在 safe candidate set 內進行。
Admissibility / Authority / Contract Gates First → Optimization Second . \boxed{
\text{Admissibility / Authority / Contract Gates First}
\rightarrow
\text{Optimization Second}.
} Admissibility / Authority / Contract Gates First → Optimization Second .
並維持:
Mathematics ≠ Optimization . \boxed{
\text{Mathematics}
\neq
\text{Optimization}.
} Mathematics = Optimization .
15. Local executor contract
每個 executor SHOULD 暴露:
E i = ⟨ i d i , C a p i , I n i , O u t i , P r e i , E f f i , I n v i , R e s i , C o s t i , F a i l i , H i s t i ⟩ . \boxed{
\mathfrak E_i
=
\left\langle
\mathsf{id}_i,
\mathsf{Cap}_i,
\mathsf{In}_i,
\mathsf{Out}_i,
\mathsf{Pre}_i,
\mathsf{Eff}_i,
\mathsf{Inv}_i,
\mathsf{Res}_i,
\mathsf{Cost}_i,
\mathsf{Fail}_i,
\mathsf{Hist}_i
\right\rangle.
} E i = ⟨ id i , Cap i , In i , Out i , Pre i , Eff i , Inv i , Res i , Cost i , Fail i , Hist i ⟩ .
Contract interface MUST NOT 被等同 internal algorithm。
Black-box executor MAY 被使用,但只有在 contract 足以完成 required validation 時才可進 ordinary commit path。
Executor MUST 產生 proposal,而不是直接寫入 canonical World:
E i ( W ν ∣ D i , Ξ μ , γ i , i n p u t ) → δ i . \boxed{
E_i
\left(
W_\nu\vert_{D_i},
\Xi_\mu,
\gamma_i,
\mathsf{input}
\right)
\rightarrow
\delta_i.
} E i ( W ν ∣ D i , Ξ μ , γ i , input ) → δ i .
因此:
Executor Output ≠ W ν + 1 . \boxed{
\text{Executor Output}
\neq
W_{\nu+1}.
} Executor Output = W ν + 1 .
16. Representation bridge contract
Canonical bridge notation:
B r p → q : S p ⇀ S q . \boxed{
\mathsf{Br}_{p\rightarrow q}:
S_p
\rightharpoonup
S_q.
} Br p → q : S p ⇀ S q .
最小 bridge contract:
C p → q B r = ⟨ S p , S q , P r e , P o s t , I n v K e e p , ϵ , R e v , C o s t , F a i l ⟩ . \boxed{
\mathfrak C^{\mathrm{Br}}_{p\rightarrow q}
=
\left\langle
S_p,
S_q,
\mathsf{Pre},
\mathsf{Post},
\mathsf{InvKeep},
\epsilon,
\mathsf{Rev},
\mathsf{Cost},
\mathsf{Fail}
\right\rangle.
} C p → q Br = ⟨ S p , S q , Pre , Post , InvKeep , ϵ , Rev , Cost , Fail ⟩ .
Runtime MUST NOT 以「程式型別可轉換」代替 semantic preservation proof。
若 bridge error semantics unknown,Runtime SHOULD fail closed 或 Defer / Escalate。
Representable ⇏ Semantically Preserved . \boxed{
\text{Representable}
\not\Rightarrow
\text{Semantically Preserved}.
} Representable ⇒ Semantically Preserved .
17. Reconciliation、Verification 與 Commit
Local proposals:
Δ ν = { δ 1 , … , δ k } . \Delta_\nu
=
\{\delta_1,\ldots,\delta_k\}. Δ ν = { δ 1 , … , δ k } .
Reconciliation:
R e c o n c i l e B W , C : ( W ν , Δ ν ) ⇀ W ~ ν + 1 . \boxed{
\mathsf{Reconcile}_{B_W,\mathcal C}
:
(W_\nu,\Delta_\nu)
\rightharpoonup
\widetilde W_{\nu+1}.
} Reconcile B W , C : ( W ν , Δ ν ) ⇀ W ν + 1 .
Verification:
V e r i f y B W ( v ) ( W ν , W ~ ν + 1 ) . \boxed{
\mathsf{Verify}^{(v)}_{B_W}
(W_\nu,\widetilde W_{\nu+1}).
} Verify B W ( v ) ( W ν , W ν + 1 ) .
Committability:
C o m m i t O K B W , ν ( v ) ( Δ ν , W ~ ν + 1 ) ∈ { 0 , 1 } . \boxed{
\mathsf{CommitOK}_{B_W,\nu}^{(v)}
(\Delta_\nu,\widetilde W_{\nu+1})
\in
\{0,1\}.
} CommitOK B W , ν ( v ) ( Δ ν , W ν + 1 ) ∈ { 0 , 1 } .
只有在 required commit gate 通過時,才可:
W ν + 1 : = W ~ ν + 1 . W_{\nu+1}
:=
\widetilde W_{\nu+1}. W ν + 1 := W ν + 1 .
否則保持:
W ν + 1 = W ν W_{\nu+1}
=
W_\nu W ν + 1 = W ν
MAY 是合法 outcome。
因此:
Local Execution Success ⇏ Global Commit . \boxed{
\text{Local Execution Success}
\not\Rightarrow
\text{Global Commit}.
} Local Execution Success ⇒ Global Commit .
18. Route disposition
Canonical disposition:
D i s p o s i t i o n ∈ { E x e c u t e , D e f e r , R e f u s e , I d l e , E s c a l a t e } . \boxed{
\mathsf{Disposition}
\in
\{
\mathsf{Execute},
\mathsf{Defer},
\mathsf{Refuse},
\mathsf{Idle},
\mathsf{Escalate}
\}.
} Disposition ∈ { Execute , Defer , Refuse , Idle , Escalate } .
規範:
Execute:存在 safe route;
Defer:目前條件不足但不形成永久拒絕;
Refuse:存在 hard violation;
Idle:目前無需動作;
Escalate:ordinary Runtime 無權決定,但存在明確更高 governance path。
Runtime MUST NOT 將 Refuse 偽裝成 Defer 以繞過 hard prohibition;亦 MUST NOT 將 Escalate 自動轉成 self-authorized execution。
19. Observation、Projection 與 Materialization
GCM MUST 保持:
Computation ≠ Observation ≠ Materialization . \boxed{
\text{Computation}
\neq
\text{Observation}
\neq
\text{Materialization}.
} Computation = Observation = Materialization .
純 observation transaction:
( W ν , Ξ μ , O ω ) → O b s e r v e ( q ) ( W ν , Ξ μ ′ , O ω ′ , Y q ) . \boxed{
(W_\nu,\Xi_\mu,O_\omega)
\xrightarrow{\mathsf{Observe}(q)}
(W_\nu,\Xi_{\mu'},O_{\omega'},Y_q).
} ( W ν , Ξ μ , O ω ) Observe ( q ) ( W ν , Ξ μ ′ , O ω ′ , Y q ) .
因此 pure observation MAY:
Δ Ξ ≠ 0 , \Delta\Xi\neq0, ΔΞ = 0 ,
也 MAY:
Δ O ≠ 0 , \Delta O\neq0, Δ O = 0 ,
但 MUST 保持:
Δ W = 0. \boxed{
\Delta W=0.
} Δ W = 0.
19.1 Projection contract
最小 projection contract:
C Π = ⟨ S , I n p u t V e r s i o n , P r o j e c t i o n S e m a n t i c s , ρ O , C o n s i s t e n c y C l a s s , A p p r o x B o u n d , V i s i b i l i t y P o l i c y , E v i d e n c e P o l i c y ⟩ . \boxed{
\mathfrak C_\Pi
=
\left\langle
S,
\mathsf{InputVersion},
\mathsf{ProjectionSemantics},
\rho^O,
\mathsf{ConsistencyClass},
\mathsf{ApproxBound},
\mathsf{VisibilityPolicy},
\mathsf{EvidencePolicy}
\right\rangle.
} C Π = ⟨ S , InputVersion , ProjectionSemantics , ρ O , ConsistencyClass , ApproxBound , VisibilityPolicy , EvidencePolicy ⟩ .
19.2 Materialization contract
最小 materialization contract:
C M a t = ⟨ x , R e p r e s e n t a t i o n T y p e , ρ , S o u r c e V e r s i o n , F r e s h n e s s , C o s t C l a s s , E v i c t a b i l i t y , P r o v e n a n c e ⟩ . \boxed{
\mathfrak C_{\mathsf{Mat}}
=
\left\langle
x,
\mathsf{RepresentationType},
\rho,
\mathsf{SourceVersion},
\mathsf{Freshness},
\mathsf{CostClass},
\mathsf{Evictability},
\mathsf{Provenance}
\right\rangle.
} C Mat = ⟨ x , RepresentationType , ρ , SourceVersion , Freshness , CostClass , Evictability , Provenance ⟩ .
Materialized artifact MUST NOT 被默認為 canonical current state:
M a t ( x ) ⇏ C a n o n i c a l ( x ) . \boxed{
\mathsf{Mat}(x)
\not\Rightarrow
\mathsf{Canonical}(x).
} Mat ( x ) ⇒ Canonical ( x ) .
且:
¬ M a t ( x ) ⇏ ¬ x . \boxed{
\neg\mathsf{Mat}(x)
\not\Rightarrow
\neg x.
} ¬ Mat ( x ) ⇒ ¬ x .
20. Resolution、scale 與 ordering type separation
Runtime MUST 區分:
ρ C ≠ ρ O ≠ M a t ≠ λ S T . \boxed{
\rho^C
\neq
\rho^O
\neq
\mathsf{Mat}
\neq
\lambda^{ST}.
} ρ C = ρ O = Mat = λ S T .
Resolution SHOULD 被實作成 typed preorder,而不是假設所有解析度可壓成單一 scalar。
GCM 亦 MUST 區分:
World Evolution ≠ Runtime Scheduling ≠ Observer Time ≠ Commit Order ≠ History Order . \boxed{
\text{World Evolution}
\neq
\text{Runtime Scheduling}
\neq
\text{Observer Time}
\neq
\text{Commit Order}
\neq
\text{History Order}.
} World Evolution = Runtime Scheduling = Observer Time = Commit Order = History Order .
因此:
Global Coherence ⇏ Global Synchronization . \boxed{
\text{Global Coherence}
\not\Rightarrow
\text{Global Synchronization}.
} Global Coherence ⇒ Global Synchronization .
21. Active support、dormancy 與 finite realization
GCM MUST 允許:
Finite Active Realization + Unbounded Extensibility . \boxed{
\text{Finite Active Realization}
+
\text{Unbounded Extensibility}.
} Finite Active Realization + Unbounded Extensibility .
對 active support:
∣ A c t μ ∣ < ∞ |\mathsf{Act}_\mu|<\infty ∣ Act μ ∣ < ∞
不足以證明 Runtime cost 有界。
Hard resource classes k ∈ K R h a r d k\in\mathcal K_R^{\mathrm{hard}} k ∈ K R hard SHOULD 滿足:
U s e k ( A c t μ , Ξ μ ) ≤ B μ , k . \boxed{
\mathsf{Use}_k
(\mathsf{Act}_\mu,\Xi_\mu)
\le
B_{\mu,k}.
} Use k ( Act μ , Ξ μ ) ≤ B μ , k .
21.1 Lifecycle predicates
Runtime MUST NOT 強迫 Active / Materialized / Dormant / Archived / Potential 成為單一互斥列。
至少區分:
A c t i v e μ ( x ) \mathsf{Active}_\mu(x) Active μ ( x ) ;
D o r m a n t μ ( x ) \mathsf{Dormant}_\mu(x) Dormant μ ( x ) ;
A r c h i v e d μ ( x , a ) \mathsf{Archived}_\mu(x,a) Archived μ ( x , a ) ;
P o t μ ( x ) \mathsf{Pot}_\mu(x) Pot μ ( x ) ;
M a t μ ( x , ρ , c ) \mathsf{Mat}_\mu(x,\rho,c) Mat μ ( x , ρ , c ) ;
P i n μ A c t ( x ) \mathsf{Pin}^{\mathrm{Act}}_\mu(x) Pin μ Act ( x ) ;
P i n μ M a t ( x ) \mathsf{Pin}^{\mathrm{Mat}}_\mu(x) Pin μ Mat ( x ) ;
P i n μ R e t ( x ) \mathsf{Pin}^{\mathrm{Ret}}_\mu(x) Pin μ Ret ( x ) 。
因此:
R e a c t i v a t e ≠ M a t e r i a l i z e . \boxed{
\mathsf{Reactivate}
\neq
\mathsf{Materialize}.
} Reactivate = Materialize .
P o t e n t i a l ≠ C a n o n i c a l E x i s t e n c e . \boxed{
\mathsf{Potential}
\neq
\mathsf{CanonicalExistence}.
} Potential = CanonicalExistence .
21.2 Active horizon
Active horizon 使用:
H o r μ \boxed{
\mathsf{Hor}_\mu
} Hor μ
而 MUST NOT 使用 H \mathcal H H 。
且:
Active Horizon ≠ Active Set . \boxed{
\text{Active Horizon}
\neq
\text{Active Set}.
} Active Horizon = Active Set .
21.3 Dormancy modes
Dormancy contract SHOULD explicit 指定:
Freeze;
Coarse Evolution;
Event Accumulation / Replay;
Delegated Surrogate;
或 versioned extension mode。
Dormant MUST NOT 被默認為 semantic freeze。
22. Archive 與 reactivation contract
Archived object MUST NOT 被默認為 deleted:
A r c h i v e d ( x ) ⇏ ¬ x . \boxed{
\mathsf{Archived}(x)
\not\Rightarrow
\neg x.
} Archived ( x ) ⇒ ¬ x .
Archive anchor SHOULD 至少保留:
object identity;
source World version;
Foundation / schema version;
locator;
checkpoint / seed / summary;
invariant digest;
history pointer;
integrity digest;
restore mode;
approximation/error certificate when applicable。
Reactivation SHOULD 經:
L o c a t e → L o a d → D e c o d e → R e c o n s t r u c t → C a t c h U p → V a l i d a t e → R e b i n d → A c t i v a t e . \boxed{
\mathsf{Locate}
\rightarrow
\mathsf{Load}
\rightarrow
\mathsf{Decode}
\rightarrow
\mathsf{Reconstruct}
\rightarrow
\mathsf{CatchUp}
\rightarrow
\mathsf{Validate}
\rightarrow
\mathsf{Rebind}
\rightarrow
\mathsf{Activate}.
} Locate → Load → Decode → Reconstruct → CatchUp → Validate → Rebind → Activate .
因此:
Load Success ⇏ Reactivation Success . \boxed{
\text{Load Success}
\not\Rightarrow
\text{Reactivation Success}.
} Load Success ⇒ Reactivation Success .
23. Resource feasibility 與 cost discipline
Runtime MUST NOT 將 resource feasibility 等同 optimization。
Resource Feasibility ≠ Optimization Objective . \boxed{
\text{Resource Feasibility}
\neq
\text{Optimization Objective}.
} Resource Feasibility = Optimization Objective .
Step cost MAY 分解為:
C μ s t e p = C μ e x e c + C μ r e c o n c i l e + C μ i n d e x + C μ p r o j e c t i o n + C μ l i f e c y c l e + C μ h i s t o r y . \boxed{
C_\mu^{\mathrm{step}}
=
C_\mu^{\mathrm{exec}}
+
C_\mu^{\mathrm{reconcile}}
+
C_\mu^{\mathrm{index}}
+
C_\mu^{\mathrm{projection}}
+
C_\mu^{\mathrm{lifecycle}}
+
C_\mu^{\mathrm{history}}.
} C μ step = C μ exec + C μ reconcile + C μ index + C μ projection + C μ lifecycle + C μ history .
並維持:
Bounded Active Semantics ≠ Bounded Runtime Cost . \boxed{
\text{Bounded Active Semantics}
\neq
\text{Bounded Runtime Cost}.
} Bounded Active Semantics = Bounded Runtime Cost .
TW-02 SHOULD 將 support-local cost、index lookup、history access 與 archive access 分開量測。
24. Canonical history / provenance model
GCM history MUST 為 typed provenance structure,而不是未型別化 log sequence。
最小 semantic structure:
H η = ⟨ V H , E H , T y p e , A n c h o r , P a y l o a d R e f , P o l i c y ⟩ . \boxed{
\mathcal H_\eta
=
\left\langle
V_H,
E_H,
\mathsf{Type},
\mathsf{Anchor},
\mathsf{PayloadRef},
\mathsf{Policy}
\right\rangle.
} H η = ⟨ V H , E H , Type , Anchor , PayloadRef , Policy ⟩ .
Runtime MUST 區分至少:
≺ e x e c ≠ ≺ c a u s a l ≠ ≺ c o m m i t ≠ ≺ l o g ≠ ≺ o b s e r v e r ≠ ≺ f o u n d a t i o n . \boxed{
\prec_{\mathsf{exec}}
\neq
\prec_{\mathsf{causal}}
\neq
\prec_{\mathsf{commit}}
\neq
\prec_{\mathsf{log}}
\neq
\prec_{\mathsf{observer}}
\neq
\prec_{\mathsf{foundation}}.
} ≺ exec = ≺ causal = ≺ commit = ≺ log = ≺ observer = ≺ foundation .
因此:
Log Order ≠ Causal Order ≠ Commit Order . \boxed{
\text{Log Order}
\neq
\text{Causal Order}
\neq
\text{Commit Order}.
} Log Order = Causal Order = Commit Order .
25. Canonical receipt
最小 event receipt:
R e c ( e ) = ⟨ i d , t y p e , s t a t u s , a c t o r , s c o p e , a u t h o r i t y C t x , w o r l d A n c h o r , r u n t i m e A n c h o r , o b s e r v e r A n c h o r , f o u n d a t i o n V e r s i o n , c o n f i g u r a t i o n , l a w , b r i d g e , i n p u t R e f , o u t p u t R e f , i n v a r i a n t R e f , v e r i f i c a t i o n , r e s o u r c e , t i m e A n n , r e l a t i o n s ⟩ . \boxed{
\mathsf{Rec}(e)
=
\left\langle
\mathsf{id},
\mathsf{type},
\mathsf{status},
\mathsf{actor},
\mathsf{scope},
\mathsf{authorityCtx},
\mathsf{worldAnchor},
\mathsf{runtimeAnchor},
\mathsf{observerAnchor},
\mathsf{foundationVersion},
\mathsf{configuration},
\mathsf{law},
\mathsf{bridge},
\mathsf{inputRef},
\mathsf{outputRef},
\mathsf{invariantRef},
\mathsf{verification},
\mathsf{resource},
\mathsf{timeAnn},
\mathsf{relations}
\right\rangle.
} Rec ( e ) = ⟨ id , type , status , actor , scope , authorityCtx , worldAnchor , runtimeAnchor , observerAnchor , foundationVersion , configuration , law , bridge , inputRef , outputRef , invariantRef , verification , resource , timeAnn , relations ⟩ .
Inapplicable fields MAY 為 null / omitted,但語義角色 MUST NOT 因此被合併。
Payload MAY 外置,但 anchor MUST 保留足以解釋其:
semantic role;
version;
exact / approximate / unavailable status;
redaction / expiry reason;
replay / audit consequence。
26. Proposal、Commit、Rollback、Compensation
Runtime MUST 區分:
R e j e c t ≠ A b o r t ≠ R o l l b a c k ≠ C o m p e n s a t i o n . \boxed{
\mathsf{Reject}
\neq
\mathsf{Abort}
\neq
\mathsf{Rollback}
\neq
\mathsf{Compensation}.
} Reject = Abort = Rollback = Compensation .
Rollback MUST NOT 刪除已發生 event:
Rollback ≠ Erase History . \boxed{
\text{Rollback}
\neq
\text{Erase History}.
} Rollback = Erase History .
Compensation 是新的 history event:
Compensation ≠ No Prior Event . \boxed{
\text{Compensation}
\neq
\text{No Prior Event}.
} Compensation = No Prior Event .
Retry 亦 MUST 被視為 reliability history,而不是自動被覆寫成「一次成功」。
27. History equivalence、compression 與 replay
State equality MUST NOT 被視為 history equality:
W a = W b ⇏ H a = H b . \boxed{
W_a=W_b
\not\Rightarrow
\mathcal H_a=\mathcal H_b.
} W a = W b ⇒ H a = H b .
History equivalence MUST 相對 semantics profile:
H 1 ∼ S H 2 . H_1
\sim_{\mathbb S}
H_2. H 1 ∼ S H 2 .
可能的 profile 維度包括:
Endpoint;
Safety;
Observer;
Cost;
Audit;
Causal;
Replay;
Governance。
若 equivalence unknown:
Unknown History Equivalence ⇒ No Merge By Default . \boxed{
\text{Unknown History Equivalence}
\Rightarrow
\text{No Merge By Default}.
} Unknown History Equivalence ⇒ No Merge By Default .
27.1 Replay grade
Canonical replay grade:
R e p l a y G r a d e ∈ { E x a c t , D e t e r m i n i s t i c I n t e r n a l , S e m a n t i c E q u i v a l e n t , A p p r o x i m a t e , N o n R e p l a y a b l e } . \boxed{
\mathsf{ReplayGrade}
\in
\{
\mathsf{Exact},
\mathsf{DeterministicInternal},
\mathsf{SemanticEquivalent},
\mathsf{Approximate},
\mathsf{NonReplayable}
\}.
} ReplayGrade ∈ { Exact , DeterministicInternal , SemanticEquivalent , Approximate , NonReplayable } .
Runtime MUST 降低不具 prerequisite 的 replay claim,而不能把 approximate replay 標成 Exact。
27.2 History compression certificate
若 history 被 quotient / compact,SHOULD 產生:
H i s t C e r t = ⟨ i n p u t R a n g e , p r o f i l e V e r s i o n , m e t h o d , p r e s e r v e d Q u e r i e s , l o s t Q u e r i e s , v e r i f i e r , d i g e s t , o u t p u t A n c h o r ⟩ . \boxed{
\mathsf{HistCert}
=
\left\langle
\mathsf{inputRange},
\mathsf{profileVersion},
\mathsf{method},
\mathsf{preservedQueries},
\mathsf{lostQueries},
\mathsf{verifier},
\mathsf{digest},
\mathsf{outputAnchor}
\right\rangle.
} HistCert = ⟨ inputRange , profileVersion , method , preservedQueries , lostQueries , verifier , digest , outputAnchor ⟩ .
History transformation 自身 SHOULD 有 provenance。
28. Foundation revision protocol
Ordinary Runtime transition MUST 保持:
F ( v ) → F ( v ) . \boxed{
\mathcal F^{(v)}
\rightarrow
\mathcal F^{(v)}.
} F ( v ) → F ( v ) .
Foundation revision 必須走 explicit operation:
R e v i s e F o u n d a t i o n : F ( v ) → F ( v + 1 ) . \boxed{
\mathsf{ReviseFoundation}:
\mathcal F^{(v)}
\rightarrow
\mathcal F^{(v+1)}.
} ReviseFoundation : F ( v ) → F ( v + 1 ) .
任何下列行為 MUST NOT 隱式觸發 Foundation revision:
route optimization;
AI planner self-tuning;
executor fallback;
configuration switching;
Observer interaction;
resource pressure;
history compression;
failed local execution。
Foundation revision SHOULD 至少保留:
prior version;
proposed version;
rationale;
authority / governance proof;
migration policy;
verification result;
accepted / rejected / forked disposition;
lineage receipt。
29. Configuration schema extension 與 Foundation boundary
Configuration basis / registry MAY 擴張,但 extension MUST explicit versioned。
新增:
axis value;
orthogonal axis;
domain-specific profile;
不自動等於 World Foundation revision。
但若 configuration schema extension 改變某 deployment 的合法 operation semantics、World invariants 或 governing axioms,則部署層 MAY 要求相應 Foundation governance。
Runtime MUST NOT 自行決定這兩個版本層「其實是一樣的」。
30. Canonical failure policy
當 required semantics 無法判定時,Runtime SHOULD 優先採用:
Fail Closed ∨ D e f e r ∨ E s c a l a t e \boxed{
\text{Fail Closed}
\lor
\mathsf{Defer}
\lor
\mathsf{Escalate}
} Fail Closed ∨ Defer ∨ Escalate
而不是默認 Execute。
典型 unknown 包括:
unknown bridge error;
unresolved authority;
stale Foundation reference;
invalid configuration version;
unverifiable archive reconstruction;
unknown history equivalence;
missing replay prerequisites;
ambiguous World boundary。
31. Canonical API surface — conceptual minimum
TW-02 可自由選擇具體語言與 transport,但 SHOULD 能映射到下列概念 API。
31.1 Configuration registry
register_basis_schema(version, axes)
register_profile(profile, contract_ref)
resolve_address(canonical_key)
query_candidates(domain, task_signature)
bind_configuration(domain, configuration_ref)
project_compatibility(from_version, to_version)
record_switch(domain, old_ref, new_ref, reason)
31.2 Route / authority
enumerate_routes(operation, domain_set, registry)
check_reachability(agent, route, runtime_state, resources)
check_admissibility(operation, route, foundation, constraints)
check_authority(agent, operation, scope)
validate_executor_contract(route)
validate_bridge_contract(route)
select_route(safe_routes, policy)
execute_as_proposal(route, inputs)
reconcile(world, proposals, constraints)
verify_global(old_world, candidate_world, foundation)
commit(candidate_world)
rollback_or_discard(proposals)
31.3 Observer / materialization
observe(request)
materialize(request)
refresh(view_id)
inspect_provenance(view_id)
change_observer_state(observer_patch)
propose_intervention(operation)
observe(...) MUST NOT 隱式切換成 propose_intervention(...)。
31.4 Resource / lifecycle
inspect_active_support()
inspect_resource_envelope()
propose_activation(unit_id, reason)
propose_dormancy(unit_id, mode)
request_pin(unit_id, pin_class)
archive(unit_id, policy)
restore(unit_id, target_mode)
estimate_wake_cost(unit_id)
inspect_boundary_summary(unit_id)
validate_budget(candidate_support)
request_pin(...) MUST 經 authority;restore(...) MUST NOT 因 load success 自動 World commit。
31.5 History
append_typed_receipt(event)
append_relation(edge_type, from_id, to_id)
query_history(query_contract)
inspect_lineage(anchor)
checkpoint(policy)
replay(target, replay_contract)
propose_history_compaction(range, semantics_profile)
verify_history_equivalence(h1, h2, semantics_profile)
apply_history_transform(certificate)
32. Minimum canonical runtime pipeline
GCM Reference Runtime SHOULD 可映射到下列 lifecycle:
Operation Request
↓
Type / Domain Resolution
↓
Configuration Candidate Enumeration
↓
Reachability Gate
↓
Admissibility Gate
↓
Authority Gate
↓
Executor / Bridge Contract Gate
↓
Safe Route Selection
↓
Execute as Proposal
↓
Cross-Domain Reconciliation
↓
Global Verification
↓
Commit / Reject / Rollback / Compensation Path
↓
Typed Receipt + Relation Update
↓
Observer / Materialization Refresh as Needed
↓
Lifecycle / Resource Update
↓
History Index / Checkpoint / Compression Policy
這不是唯一 implementation graph,但任何簡化 MUST 能證明沒有跨越上述語義 gate。
33. Core canonical invariants — TW-01
以下條款為 TW-01 v0.1 的核心合規不變量。
GCM-C01 — World / Runtime Separation
M G ≠ W . \boxed{
\mathcal M_G
\neq
\mathbf W.
} M G = W .
GCM-C02 — Heterogeneous Globality
Global Computation = Globally Coherent Heterogeneous Computation . \boxed{
\text{Global Computation}
=
\text{Globally Coherent Heterogeneous Computation}.
} Global Computation = Globally Coherent Heterogeneous Computation .
GCM-C03 — Boundary-relative Globality
Globality is relative to a designated World boundary . \boxed{
\text{Globality is relative to a designated World boundary}.
} Globality is relative to a designated World boundary .
GCM-C04 — 24/72 Non-exhaustiveness
24 / 72 ≠ Exhaustive Set of All Computation . \boxed{
24/72
\neq
\text{Exhaustive Set of All Computation}.
} 24/72 = Exhaustive Set of All Computation .
GCM-C05 — Computation / Observation / Materialization Separation
Computation ≠ Observation ≠ Materialization . \boxed{
\text{Computation}
\neq
\text{Observation}
\neq
\text{Materialization}.
} Computation = Observation = Materialization .
GCM-C06 — Observer Non-Mutation
Projection-only operation MUST satisfy:
Δ W = 0. \boxed{
\Delta W=0.
} Δ W = 0.
GCM-C07 — Global Dependency / Full Materialization Separation
Global Dependency ≠ Full Materialization . \boxed{
\text{Global Dependency}
\neq
\text{Full Materialization}.
} Global Dependency = Full Materialization .
GCM-C08 — Recursive Globality / Full Expansion Separation
Recursive Globality ≠ Recursive Full Expansion . \boxed{
\text{Recursive Globality}
\neq
\text{Recursive Full Expansion}.
} Recursive Globality = Recursive Full Expansion .
GCM-C09 — Finite Active Realization
Finite Active Realization + Unbounded Extensibility . \boxed{
\text{Finite Active Realization}
+
\text{Unbounded Extensibility}.
} Finite Active Realization + Unbounded Extensibility .
GCM-C10 — State / History Separation
State Equality ⇏ History Equality . \boxed{
\text{State Equality}
\not\Rightarrow
\text{History Equality}.
} State Equality ⇒ History Equality .
GCM-C11 — Endpoint / History Closure Separation
Endpoint Closure ≠ History Closure . \boxed{
\text{Endpoint Closure}
\neq
\text{History Closure}.
} Endpoint Closure = History Closure .
GCM-C12 — Operation Layer Separation
State Edit ≠ Rule Edit ≠ Foundation Revision . \boxed{
\text{State Edit}
\neq
\text{Rule Edit}
\neq
\text{Foundation Revision}.
} State Edit = Rule Edit = Foundation Revision .
GCM-C13 — Capability / Authority Separation
Can Execute ≠ May Execute . \boxed{
\text{Can Execute}
\neq
\text{May Execute}.
} Can Execute = May Execute .
GCM-C14 — Proposal / Commit Separation
Executor Output ≠ Canonical World Commit . \boxed{
\text{Executor Output}
\neq
\text{Canonical World Commit}.
} Executor Output = Canonical World Commit .
GCM-C15 — Local / Global Success Separation
Local Success ⇏ Global Commit . \boxed{
\text{Local Success}
\not\Rightarrow
\text{Global Commit}.
} Local Success ⇒ Global Commit .
GCM-C16 — Global Coherence / Synchronization Separation
Global Coherence ⇏ Global Synchronization . \boxed{
\text{Global Coherence}
\not\Rightarrow
\text{Global Synchronization}.
} Global Coherence ⇒ Global Synchronization .
GCM-C17 — Domain / Physical Space Separation
Domain ≠ Physical Space . \boxed{
\text{Domain}
\neq
\text{Physical Space}.
} Domain = Physical Space .
GCM-C18 — Mathematics / Optimization Separation
Mathematics ≠ Optimization . \boxed{
\text{Mathematics}
\neq
\text{Optimization}.
} Mathematics = Optimization .
GCM-C19 — Authority Non-Escalation
A u t h O u t ⪯ A u t h I n ⊕ E x p l i c i t D e l e g a t i o n . \boxed{
\mathsf{AuthOut}
\preceq
\mathsf{AuthIn}
\oplus
\mathsf{ExplicitDelegation}.
} AuthOut ⪯ AuthIn ⊕ ExplicitDelegation .
GCM-C20 — Foundation Constancy of Ordinary Runtime
F ( v ) → F ( v ) . \boxed{
\mathcal F^{(v)}
\rightarrow
\mathcal F^{(v)}.
} F ( v ) → F ( v ) .
GCM-C21 — Resolution Type Separation
ρ C ≠ ρ O ≠ M a t ≠ λ S T . \boxed{
\rho^C
\neq
\rho^O
\neq
\mathsf{Mat}
\neq
\lambda^{ST}.
} ρ C = ρ O = Mat = λ S T .
GCM-C22 — Lifecycle Type Separation
R e a c t i v a t e ≠ M a t e r i a l i z e . \boxed{
\mathsf{Reactivate}
\neq
\mathsf{Materialize}.
} Reactivate = Materialize .
GCM-C23 — Potential / Existence Separation
P o t e n t i a l ≠ C a n o n i c a l E x i s t e n c e . \boxed{
\mathsf{Potential}
\neq
\mathsf{CanonicalExistence}.
} Potential = CanonicalExistence .
GCM-C24 — Bounded Active / Bounded Cost Separation
Bounded Active Semantics ≠ Bounded Runtime Cost . \boxed{
\text{Bounded Active Semantics}
\neq
\text{Bounded Runtime Cost}.
} Bounded Active Semantics = Bounded Runtime Cost .
GCM-C25 — Typed Order Separation
≺ e x e c ≠ ≺ c a u s a l ≠ ≺ c o m m i t ≠ ≺ l o g . \boxed{
\prec_{\mathsf{exec}}
\neq
\prec_{\mathsf{causal}}
\neq
\prec_{\mathsf{commit}}
\neq
\prec_{\mathsf{log}}.
} ≺ exec = ≺ causal = ≺ commit = ≺ log .
GCM-C26 — Rollback Persistence
Rollback ≠ Erase History . \boxed{
\text{Rollback}
\neq
\text{Erase History}.
} Rollback = Erase History .
GCM-C27 — Unknown History Equivalence Safety
Unknown History Equivalence ⇒ No Merge By Default . \boxed{
\text{Unknown History Equivalence}
\Rightarrow
\text{No Merge By Default}.
} Unknown History Equivalence ⇒ No Merge By Default .
GCM-C28 — Foundation Revision Governance
Foundation Revision is explicit, versioned, and auditable . \boxed{
\text{Foundation Revision is explicit, versioned, and auditable}.
} Foundation Revision is explicit, versioned, and auditable .
34. Canonical compatibility rules
34.1 Parser compatibility
Runtime MAY accept legacy source notation when unambiguous,但 canonical emitter MUST 輸出目前 registry 定義的符號。
34.2 Semantic compatibility
Compatibility MUST NOT 只依字串、numeric ID 或 hash 判定。
34.3 Foundation compatibility
不同 Foundation version 之間 MUST NOT 被默認為 semantically identical。
34.4 History compatibility
History quotient / migration MUST 指定 semantics profile 與 version。
34.5 Configuration compatibility
Lossy projection MUST 可拒絕;unknown projection MUST NOT 被默認成 equivalent。
35. Canonical error classes
TW-02 SHOULD 至少對應下列 error classes:
GCM_E_UNTYPED_OPERATION
GCM_E_UNKNOWN_WORLD_BOUNDARY
GCM_E_UNKNOWN_CONFIGURATION
GCM_E_UNREACHABLE_ROUTE
GCM_E_INADMISSIBLE_ROUTE
GCM_E_UNAUTHORIZED_OPERATION
GCM_E_EXECUTOR_CONTRACT
GCM_E_BRIDGE_UNKNOWN
GCM_E_BRIDGE_LOSS_EXCEEDED
GCM_E_RECONCILIATION
GCM_E_VERIFICATION
GCM_E_COMMIT_REJECTED
GCM_E_FOUNDATION_BOUNDARY
GCM_E_STALE_PROJECTION
GCM_E_RESOURCE_INFEASIBLE
GCM_E_REACTIVATION_INVALID
GCM_E_HISTORY_EQUIVALENCE_UNKNOWN
GCM_E_REPLAY_GRADE_DOWNGRADE
GCM_E_SCHEMA_VERSION
GCM_E_PROVENANCE_INCOMPLETE
具體 numeric code 不由 TW-01 指定。
36. Minimal machine-readable schema obligations
TW-02 SHOULD 為下列 object 提供穩定 machine-readable schema:
WorldBoundaryRef;
FoundationRef;
ConfigurationRef;
OperationRequest;
OperationContract;
AuthorityContext;
RouteCandidate;
ExecutorContract;
BridgeContract;
Proposal;
VerificationResult;
CommitReceipt;
ProjectionContract;
MaterializationContract;
ActiveSupportContract;
ArchiveAnchor;
LifecycleReceipt;
EventReceipt;
HistoryRelation;
HistoryCompressionCertificate。
每個 persisted object SHOULD 至少帶:
schema_version;
stable semantic identifier;
source / lineage reference when applicable。
37. Specification revision rules
TW-01 的 revision MUST 版本化。
下列變更至少 SHOULD 視為 breaking / major semantic revision:
修改 state-plane 意義;
修改 canonical operation class;
放寬 authority inheritance;
允許 ordinary Runtime 修改 Foundation;
修改 commit gate 語義;
將 Observer operation 重新併入 World mutation;
修改 history equivalence default;
將 unknown bridge 自動視為 safe;
將 24/72 改成 exhaustive ontology。
新增 optional field、非破壞性 schema annotation 或新的 domain-specific profile MAY 是 backward-compatible revision,但仍 SHOULD 有 version / changelog。
38. Non-normative prior-art positioning
本規格不宣稱下列既有技術由 GCM 首創:
heterogeneous Models of Computation;
heterogeneous task / dataflow runtime;
privilege / coherence;
co-simulation / scheduled execution;
representation conversion legality;
hybrid systems;
partial observability;
materialized views;
adaptive / multi-resolution modeling;
working set / paging / external memory;
lazy evaluation / streaming;
virtual actor activation;
distributed causality / logical clocks;
provenance models;
event sourcing;
compensation / saga;
partial-order reduction。
GCM 的工程主張是把這些相鄰技術常分散處理的 obligations 放入同一個 World-boundary-relative typed contract 中,並要求 state planes、authority、materialization、resource realization、commit 與 history 不可互相偷換。
39. TW-02 與 TW-03 的直接交接
39.1 TW-02 — Reference Runtime Architecture
TW-02 SHOULD 將本規格映射成至少以下模組:
Foundation Registry
World Store
Domain Registry
Configuration Registry
Reachability / Resource Registry
Authority Engine
Admissibility Validator
Route Planner / Selector
Executor Registry
Bridge Registry
Proposal Store
Reconciliation Engine
Verification Engine
Commit / Rollback Gate
Observer / Projection Service
Materialization Manager
Active Support / Lifecycle Manager
History / Provenance Store
History Index / Summary
Foundation Lineage Registry
39.2 TW-03 — Conformance / Verification
TW-03 MUST 將本文件中的 GCM-C01–GCM-C28 轉成可執行或可審計 conformance tests,並建立 failure evidence、test vector 與 implementation profile。
40. Reference Runtime MVP 的最低映射
MVP v0.1 仍分五個 Milestone:
M0 — Canonical Kernel
最低實作:
World / Runtime / Observer / Foundation / History state-plane;
versioned registries;
canonical identifiers;
typed operation objects。
M1 — Reachability / Admissibility / Authority
最低驗證:
Can ≠ May . \text{Can}
\neq
\text{May}. Can = May .
並測 authority non-escalation。
M2 — Heterogeneous Execution
至少 3–5 個 representative executors;不要求實作全部 72 cells。
M3 — Reconciliation / Verify / Commit / History
最低驗證:
Proposal ≠ Commit . \text{Proposal}
\neq
\text{Commit}. Proposal = Commit .
並建立 typed receipts。
M4 — Bounded Active Runtime
驗證:
Global Dependency ≠ Full Materialization , \text{Global Dependency}
\neq
\text{Full Materialization}, Global Dependency = Full Materialization ,
Recursive Globality ≠ Recursive Full Expansion , \text{Recursive Globality}
\neq
\text{Recursive Full Expansion}, Recursive Globality = Recursive Full Expansion ,
並執行 TW-03 conformance suite。
41. 最終 Canonical Contract
一個 Runtime 若要宣稱其核心行為符合 GCM v0.1,最低必須滿足:
World-boundary-relative global coherence + typed state-plane separation + versioned computational configuration addressing + reachability / admissibility / authority separation + proposal / reconciliation / verification / commit separation + Observer / projection / materialization separation + finite active realization with explicit lifecycle + typed provenance and history semantics + explicit Foundation revision governance . \boxed{
\begin{aligned}
&\text{World-boundary-relative global coherence}
\\
+&\text{typed state-plane separation}
\\
+&\text{versioned computational configuration addressing}
\\
+&\text{reachability / admissibility / authority separation}
\\
+&\text{proposal / reconciliation / verification / commit separation}
\\
+&\text{Observer / projection / materialization separation}
\\
+&\text{finite active realization with explicit lifecycle}
\\
+&\text{typed provenance and history semantics}
\\
+&\text{explicit Foundation revision governance}.
\end{aligned}
} + + + + + + + + World-boundary-relative global coherence typed state-plane separation versioned computational configuration addressing reachability / admissibility / authority separation proposal / reconciliation / verification / commit separation Observer / projection / materialization separation finite active realization with explicit lifecycle typed provenance and history semantics explicit Foundation revision governance .
因此,GCM-compliant Runtime 的最低精神不是:
「它能調用很多種計算方法。」
而是:
它知道自己正在對哪個 World boundary、哪個 state plane、哪個 configuration、哪個 operation、哪個 authority scope、哪組 invariants 與哪段 history 做事;局部 executor 的成功不會自動升格為 World truth,而任何跨層改變都必須經由 explicit typed contract、verification、commit 或 versioned governance。
這就是 TW-01 v0.1 的 canonical formal contract。
Appendix A. Source-to-spec traceability
TW-01 area
Primary source lineage
World / Runtime / Observer / Foundation
Series-00, Paper-01
24/72 basis / configuration registry
Paper-02
Reachability / admissibility / authority / route
Paper-03
Observation / projection / materialization / resolution
Paper-04
Active support / dormancy / archive / resources
Paper-05
Typed history / replay / rollback / provenance
Paper-06
Appendix B. Deprecated shorthand
以下 notation 只可出現在歷史對照或 migration parser,不應成為新 canonical source:
未型別化 W t W_t W t ;
Γ t \Gamma_t Γ t ;
以 H t \mathcal H_t H t 表示 active horizon;
以 Λ \Lambda Λ 同時表示 resolution / materialization / scale;
以 O 3 \mathfrak O_3 O 3 表示 actual Observer;
以 B p → q B_{p\rightarrow q} B p → q 表示 representation bridge;
以單一 P P P 表示 Potential / Pin / Permission;
以單一 R R R 表示 Route / Receipt / Archive status。
Canonical Handoff
本文件完成後,後續實作文件不得再依聊天印象重建 GCM 核心語義。
下一份工程文件:
TW-02_GCM_Reference_Runtime_Architecture_v0.1.md
應以上述 TW-01 v0.1 為直接 normative input;若 TW-02 發現本規格存在不可實作、互相衝突或缺失的 MUST 條款,應提交 explicit specification issue / revision,而不是由 Runtime implementation 靜默修正語義。