|
1 | | -PLACEHOLDER |
| 1 | +# **20.32.010.010 — CST-Core Requirements** |
| 2 | + |
| 3 | +## **0. Document Purpose (Informative)** |
| 4 | + |
| 5 | +This document defines the normative requirements for **CST-Core**, the foundational stability-tracking module in the Thought Simulator architecture. CST-Core computes structural stability metrics, detects instability, and emits freeze, thaw, and continuity-restoration signals for identity layers. All requirements in this document are derived from the architectural specification in *cst-core.md*. |
| 6 | + |
| 7 | +CST-Core tracks: |
| 8 | + |
| 9 | +- identity structure |
| 10 | +- referent structure |
| 11 | +- temporal anchors |
| 12 | +- discourse anchors |
| 13 | +- lineage continuity |
| 14 | +- register state |
| 15 | +- field-importance stability |
| 16 | + |
| 17 | +It computes drift, oscillation, ambiguity, collapse, continuity, freeze, thaw, and determinism signals over a 10-turn sliding window. |
| 18 | + |
| 19 | +**Architectural Role (Informative)** |
| 20 | +CST-Core is a **stateful metric generator**. It maintains metric histories across turns in order to detect temporal phenomena (drift, oscillation, ambiguity, collapse). It is **not a state machine** and has **no structural authority** over identity-layer topology. Structural commands (Freeze, Thaw, Collapse-recovery, Create, Split, Merge) are issued exclusively by CST-MS. CST-Core emits only the three signals Freeze, Thaw, and Continuity-restoration directly to COB; all other raw metrics are sent only to CST-MS and CST-Mux. |
| 21 | + |
| 22 | +## 0.1 Block Diagram of OuBA, COB, CST-Core, CST-MS and CST-Mux |
| 23 | + |
| 24 | +```mermaid |
| 25 | +flowchart LR |
| 26 | +
|
| 27 | + %% ===== Meaning Layer → Stability Layer ===== |
| 28 | + OuBA --> COB |
| 29 | + OuBA --> CSTCore |
| 30 | +
|
| 31 | + %% ===== Stability Layer ===== |
| 32 | + CSTCore --> CSTMS |
| 33 | + CSTCore --> CSTMux |
| 34 | + CSTMS --> CSTMux |
| 35 | + CSTCore --> COB |
| 36 | + CSTMS --> COB |
| 37 | + COB --> CSTCore |
| 38 | + COB --> CSTMS |
| 39 | +``` |
| 40 | + |
| 41 | +--- |
| 42 | + |
| 43 | +# **1. Structural Snapshots** |
| 44 | + |
| 45 | +## **1.1 Snapshot Extraction (Informative)** |
| 46 | +At each turn *t*, CST-Core extracts a structural snapshot for each identity layer *L*. Snapshots include referent maps, temporal anchors, discourse anchors, lineage connections, register state, and field-importance weights. Snapshots are derived from COB identity-layer state and from committed OuBA (TPSnS) references. |
| 47 | + |
| 48 | +## **1.2 Snapshot Requirements (Normative)** |
| 49 | +**HLR-20.32.010.010-001** |
| 50 | +CST-Core SHALL extract a structural snapshot for every identity layer *L* at each turn *t*. |
| 51 | + |
| 52 | +**HLR-20.32.010.010-002** |
| 53 | +CST-Core SHALL store snapshots in a deterministic format that is replay-safe. |
| 54 | + |
| 55 | +**HLR-20.32.010.010-003** |
| 56 | +CST-Core SHALL ensure snapshot extraction uses no randomness, sampling, or external state. |
| 57 | + |
| 58 | +**HLR-20.32.010.010-040** |
| 59 | +CST-Core SHALL accept committed identity-layer snapshots from OuBA (TPSnS) as a stable, replay-safe reference for identity-layer topology, freeze/thaw state, and continuity status. |
| 60 | + |
| 61 | +--- |
| 62 | + |
| 63 | +# **2. Counting, Frequency, and History** |
| 64 | + |
| 65 | +## **2.1 Feature Counting (Informative)** |
| 66 | +CST-Core counts how often structural features appear across the last 10 turns and computes normalized frequencies and ordered histories. These histories constitute the state required for temporal metric detection; they do not constitute a state machine. |
| 67 | + |
| 68 | +## **2.2 Counting Requirements (Normative)** |
| 69 | +**HLR-20.32.010.010-004** |
| 70 | +CST-Core SHALL compute feature counts over a fixed 10-turn sliding window. |
| 71 | + |
| 72 | +**HLR-20.32.010.010-005** |
| 73 | +CST-Core SHALL compute normalized feature frequencies over the same window. |
| 74 | + |
| 75 | +**HLR-20.32.010.010-006** |
| 76 | +CST-Core SHALL maintain ordered feature histories for all tracked features. |
| 77 | + |
| 78 | +--- |
| 79 | + |
| 80 | +# **3. Drift Detection** |
| 81 | + |
| 82 | +## **3.1 Drift Definition (Informative)** |
| 83 | +Drift measures how much a structural feature changes from turn to turn. Integrated drift over 10 turns indicates sustained instability. |
| 84 | + |
| 85 | +## **3.2 Drift Requirements (Normative)** |
| 86 | +**HLR-20.32.010.010-007** |
| 87 | +CST-Core SHALL compute per-turn drift using a deterministic structural distance function. |
| 88 | + |
| 89 | +**HLR-20.32.010.010-008** |
| 90 | +CST-Core SHALL compute integrated drift over a 10-turn window. |
| 91 | + |
| 92 | +**HLR-20.32.010.010-009** |
| 93 | +CST-Core SHALL use domain-specific deterministic distance functions for identity, referent, lineage, register, and anchor drift. |
| 94 | + |
| 95 | +**HLR-20.32.010.010-010** |
| 96 | +CST-Core SHALL emit a drift signal when integrated drift exceeds the layer-specific drift threshold. |
| 97 | + |
| 98 | +--- |
| 99 | + |
| 100 | +# **4. Oscillation Detection** |
| 101 | + |
| 102 | +## **4.1 Oscillation Definition (Informative)** |
| 103 | +Oscillation measures how often a structural feature flips state across the 10-turn window. High oscillation indicates instability. |
| 104 | + |
| 105 | +## **4.2 Oscillation Requirements (Normative)** |
| 106 | +**HLR-20.32.010.010-011** |
| 107 | +CST-Core SHALL compute oscillation as the count of state flips between consecutive turns. |
| 108 | + |
| 109 | +**HLR-20.32.010.010-012** |
| 110 | +CST-Core SHALL compare oscillation against a deterministic, monotonic oscillation threshold. |
| 111 | + |
| 112 | +**HLR-20.32.010.010-013** |
| 113 | +CST-Core SHALL emit an oscillation signal when oscillation exceeds the layer-specific threshold. |
| 114 | + |
| 115 | +--- |
| 116 | + |
| 117 | +# **5. Ambiguity Detection** |
| 118 | + |
| 119 | +## **5.1 Ambiguity Definition (Informative)** |
| 120 | +Ambiguity measures uncertainty or overlap in structural interpretation. High ambiguity is a strong predictor of collapse. |
| 121 | + |
| 122 | +## **5.2 Ambiguity Requirements (Normative)** |
| 123 | +**HLR-20.32.010.010-014** |
| 124 | +CST-Core SHALL compute per-turn ambiguity using deterministic domain-specific ambiguity functions. |
| 125 | + |
| 126 | +**HLR-20.32.010.010-015** |
| 127 | +CST-Core SHALL compute integrated ambiguity over a 10-turn window. |
| 128 | + |
| 129 | +**HLR-20.32.010.010-016** |
| 130 | +CST-Core SHALL compare integrated ambiguity against a deterministic, monotonic ambiguity threshold. |
| 131 | + |
| 132 | +**HLR-20.32.010.010-017** |
| 133 | +CST-Core SHALL emit an ambiguity signal when integrated ambiguity exceeds the layer-specific threshold. |
| 134 | + |
| 135 | +--- |
| 136 | + |
| 137 | +# **6. Collapse Detection** |
| 138 | + |
| 139 | +## **6.1 Collapse Definition (Informative)** |
| 140 | +Collapse measures structural failure — the point at which continuity cannot be maintained without intervention. |
| 141 | + |
| 142 | +## **6.2 Collapse Requirements (Normative)** |
| 143 | +**HLR-20.32.010.010-018** |
| 144 | +CST-Core SHALL compute stability scores per turn for all tracked structural domains. |
| 145 | + |
| 146 | +**HLR-20.32.010.010-019** |
| 147 | +CST-Core SHALL compute integrated stability over a 10-turn window. |
| 148 | + |
| 149 | +**HLR-20.32.010.010-020** |
| 150 | +CST-Core SHALL compute collapse as the complement of integrated stability. |
| 151 | + |
| 152 | +**HLR-20.32.010.010-021** |
| 153 | +CST-Core SHALL emit a collapse signal when collapse exceeds the layer-specific collapse threshold. |
| 154 | + |
| 155 | +--- |
| 156 | + |
| 157 | +# **7. Freeze Detection** |
| 158 | + |
| 159 | +## **7.1 Freeze Definition (Informative)** |
| 160 | +Freeze halts structural updates to prevent further degradation when instability becomes unsafe. CST-Core emits a Freeze signal; it does not itself exercise structural authority over COB identity layers. |
| 161 | + |
| 162 | +## **7.2 Freeze Requirements (Normative)** |
| 163 | +**HLR-20.32.010.010-022** |
| 164 | +CST-Core SHALL compute a combined instability score from drift, oscillation, ambiguity, and collapse. |
| 165 | + |
| 166 | +**HLR-20.32.010.010-023** |
| 167 | +CST-Core SHALL emit a Freeze signal when combined instability exceeds the layer-specific freeze threshold. |
| 168 | + |
| 169 | +**HLR-20.32.010.010-024** |
| 170 | +CST-Core SHALL halt snapshot updates for frozen layers (local metric-tracking freeze). |
| 171 | + |
| 172 | +**HLR-20.32.010.010-025** |
| 173 | +CST-Core SHALL halt stability-metric updates for frozen layers (local metric-tracking freeze). |
| 174 | + |
| 175 | +**HLR-20.32.010.010-026** |
| 176 | +CST-Core SHALL halt threshold adaptation for frozen layers (local metric-tracking freeze). |
| 177 | + |
| 178 | +--- |
| 179 | + |
| 180 | +# **8. Thaw Detection** |
| 181 | + |
| 182 | +## **8.1 Thaw Definition (Informative)** |
| 183 | +Thaw restores normal structural evolution once stability returns. Thaw is condition-based, not time-based. CST-Core emits a Thaw signal; it does not itself exercise structural authority over COB identity layers. |
| 184 | + |
| 185 | +## **8.2 Thaw Requirements (Normative)** |
| 186 | +**HLR-20.32.010.010-027** |
| 187 | +CST-Core SHALL emit a Thaw signal when combined instability falls below the layer-specific recovery threshold. |
| 188 | + |
| 189 | +**HLR-20.32.010.010-028** |
| 190 | +CST-Core SHALL resume snapshot updates upon thaw (local metric-tracking thaw). |
| 191 | + |
| 192 | +**HLR-20.32.010.010-029** |
| 193 | +CST-Core SHALL resume stability-metric updates upon thaw (local metric-tracking thaw). |
| 194 | + |
| 195 | +**HLR-20.32.010.010-030** |
| 196 | +CST-Core SHALL resume threshold adaptation upon thaw (local metric-tracking thaw). |
| 197 | + |
| 198 | +--- |
| 199 | + |
| 200 | +# **9. Continuity Restoration** |
| 201 | + |
| 202 | +## **9.1 Continuity Definition (Informative)** |
| 203 | +Continuity restoration repairs structural stability after freeze or collapse, enabling safe resumption of normal evolution. CST-Core emits a Continuity-restoration signal; it does not itself exercise structural authority over COB identity layers. |
| 204 | + |
| 205 | +## **9.2 Continuity Requirements (Normative)** |
| 206 | +**HLR-20.32.010.010-031** |
| 207 | +CST-Core SHALL compute continuity scores per turn for each identity layer. |
| 208 | + |
| 209 | +**HLR-20.32.010.010-032** |
| 210 | +CST-Core SHALL compute integrated continuity over a 10-turn window. |
| 211 | + |
| 212 | +**HLR-20.32.010.010-033** |
| 213 | +CST-Core SHALL emit a Continuity-restoration signal when integrated continuity exceeds the layer-specific continuity-recovery threshold. |
| 214 | + |
| 215 | +**HLR-20.32.010.010-034** |
| 216 | +CST-Core SHALL apply queued structural corrections deterministically during continuity restoration (local metric-tracking only). |
| 217 | + |
| 218 | +--- |
| 219 | + |
| 220 | +# **10. Determinism, Thresholds, and Replay** |
| 221 | + |
| 222 | +## **10.1 Determinism (Informative)** |
| 223 | +CST-Core is fully deterministic: no randomness, no external state, no wall-clock time, and replay-safe behavior. It maintains metric histories but is not a state machine. |
| 224 | + |
| 225 | +## **10.2 Determinism Requirements (Normative)** |
| 226 | +**HLR-20.32.010.010-035** |
| 227 | +CST-Core SHALL compute all metrics as pure functions of snapshots, OuBA cues, previous CST signals, and deterministic history. |
| 228 | + |
| 229 | +**HLR-20.32.010.010-036** |
| 230 | +CST-Core SHALL ensure all threshold updates follow deterministic, monotonic rules. |
| 231 | + |
| 232 | +**HLR-20.32.010.010-037** |
| 233 | +CST-Core SHALL guarantee replay-safe behavior for all metrics, thresholds, and signals. |
| 234 | + |
| 235 | +**HLR-20.32.010.010-038** |
| 236 | +CST-Core SHALL emit stability signals in a deterministic, fixed order. |
| 237 | + |
| 238 | +**HLR-20.32.010.010-039** |
| 239 | +CST-Core SHALL log all metric values required for replay consistency. |
| 240 | + |
| 241 | +--- |
| 242 | + |
| 243 | +# **11. Signal Emission and Routing (New)** |
| 244 | + |
| 245 | +## **11.1 Signal Routing (Informative)** |
| 246 | +CST-Core emits two classes of signals: |
| 247 | + |
| 248 | +- **Structural signals** (Freeze, Thaw, Continuity-restoration) are sent to both COB and CST-Mux. |
| 249 | +- **Raw metric signals** (Drift, Oscillation, Ambiguity, Collapse) are sent only to CST-MS (for synthesis) and to CST-Mux (for TP replay). |
| 250 | + |
| 251 | +CST-Core never receives commands or feedback from CST-MS. All signals are also recorded via CST-Mux for deterministic TP replay. |
| 252 | + |
| 253 | +## **11.2 Signal Routing Requirements (Normative)** |
| 254 | + |
| 255 | +**HLR-20.32.010.010-041** |
| 256 | +CST-Core SHALL emit Freeze, Thaw, and Continuity-restoration signals to both COB and CST-Mux. |
| 257 | + |
| 258 | +**HLR-20.32.010.010-042** |
| 259 | +CST-Core SHALL emit Drift, Oscillation, Ambiguity, and Collapse signals only to CST-MS and CST-Mux. |
| 260 | + |
| 261 | +**HLR-20.32.010.010-043** |
| 262 | +CST-Core SHALL NOT emit Drift, Oscillation, Ambiguity, or Collapse signals directly to COB. |
| 263 | + |
| 264 | +**HLR-20.32.010.010-044** |
| 265 | +CST-Core SHALL send all raw metric values and metric histories required by CST-MS for synthesis. |
| 266 | + |
| 267 | +**HLR-20.32.010.010-045** |
| 268 | +CST-Core SHALL NOT accept commands, control signals, or feedback from CST-MS. |
| 269 | + |
| 270 | +**HLR-20.32.010.010-046** |
| 271 | +CST-Core SHALL ensure every emitted signal is also available to CST-Mux for inclusion in the Unified Stability Packet and TP replay. |
| 272 | + |
| 273 | +**HLR-20.32.010.010-047** |
| 274 | +CST-Core SHALL remain free of structural authority; it SHALL NOT issue Create, Split, Merge, or Collapse-recovery commands to COB. |
| 275 | + |
| 276 | +--- |
| 277 | + |
| 278 | +# **End of Document** |
0 commit comments