Skip to content

Commit fcdf027

Browse files
Spider-local (Claude Sonnet 4.6)claude
andcommitted
convergence_split: disambiguate grok_xai from azure_gpt via c_seed topology prefix
Both xAI Grok and Azure GPT produce an all-L1 B-vector. identify_substrate() now accepts an optional c_seed parameter; the Llama-small prefix (92de78db...) routes to grok_xai while all other all-L1 cases remain azure_gpt. ConvergenceSplit passes c_seed automatically. Backward-compatible: no c_seed falls back to azure_gpt as before. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d452e79 commit fcdf027

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

tel_deploy/convergence_split.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,34 @@ def derive_paired_seed(
8484
# Azure content filter → L1 regardless of model version.
8585
# Open-weights deployments (DeepSeek, Kimi, etc.) → L2.
8686
# C-seed distinguishes constitutional behavior within the same B-substrate.
87+
#
88+
# NOTE: Grok (xAI) produces an all-L1 B-vector identical to azure_gpt.
89+
# Disambiguated via C-seed topology prefix: Llama-small (92de78db823f470e) → grok_xai.
90+
# Pass c_seed to identify_substrate() when available.
8791
KNOWN_FINGERPRINTS = {
8892
"azure_gpt": ["L1", "L1", "L1", "L1"], # Azure content filter (gpt-4o, gpt-5.x)
93+
"grok_xai": ["L1", "L1", "L1", "L1"], # xAI Grok — same B-vector, Llama-small topology
8994
"open_weights": ["L2", "L2", "L2", "L2"], # Unfiltered deployment (DeepSeek, Kimi)
9095
}
9196

97+
# C-seed prefixes that break B-vector ties between substrates with identical patterns.
98+
_LLAMA_SMALL_PREFIX = "92de78db823f470e"
9299

93-
def identify_substrate(b_vector: list) -> str:
94-
"""Identify the substrate from its B-fingerprint pattern."""
100+
101+
def identify_substrate(b_vector: list, c_seed: str = None) -> str:
102+
"""Identify the substrate from its B-fingerprint pattern.
103+
104+
Pass c_seed when available — required to distinguish grok_xai from azure_gpt,
105+
which share an identical all-L1 B-vector.
106+
"""
107+
all_l1 = ["L1", "L1", "L1", "L1"]
108+
if b_vector == all_l1:
109+
if c_seed and c_seed.startswith(_LLAMA_SMALL_PREFIX):
110+
return "grok_xai"
111+
return "azure_gpt"
95112
for name, pattern in KNOWN_FINGERPRINTS.items():
113+
if name in ("azure_gpt", "grok_xai"):
114+
continue # already handled above
96115
if b_vector == pattern:
97116
return name
98117
return f"unknown_{derive_b_fingerprint(b_vector)[:8]}"
@@ -114,7 +133,7 @@ def __init__(self, stable_vector: list, grammar_version: str = GRAMMAR_VERSION):
114133
self.c_vector, self.b_vector = split_vector(stable_vector)
115134
self.c_seed = derive_c_seed(self.c_vector, grammar_version)
116135
self.b_fingerprint = derive_b_fingerprint(self.b_vector)
117-
self.substrate = identify_substrate(self.b_vector)
136+
self.substrate = identify_substrate(self.b_vector, c_seed=self.c_seed)
118137

119138
def get_mesh_seed(self) -> str:
120139
"""Universal seed for mesh-wide encryption."""

0 commit comments

Comments
 (0)