You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/prompts/00_SESSION_A_META.md
+32-49Lines changed: 32 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,45 +14,34 @@ Your job: wire the SPO distance harvest, stripe shift detector, CLAM path encodi
14
14
15
15
---
16
16
17
-
## MODULE PLACEMENT
18
-
19
-
SPO and BNN are default-on, first-class dependencies (not experimental). New modules integrate with existing top-level modules — don't duplicate types that already exist.
17
+
## DIRECTORY STRUCTURE
20
18
21
19
```
22
-
EXISTING (use these, extend them, DO NOT duplicate):
23
-
src/nars/
24
-
truth.rs ← TruthValue with revision, from_evidence() — USE THIS
This is the cosine replacement. 238× fewer cycles, 7.3× more information per computation. The detailed spec is in `spo_distance_harvest_cosine_replacement_prompt.md`. Key deliverables:
132
121
@@ -152,15 +141,13 @@ impl SpoDistanceResult {
152
141
### 2.2 Functions to Build
153
142
154
143
```
155
-
spo_distance(a, b) → SpoDistanceResult — the core 13-cycle computation
156
-
harvest_to_nars(result) → crate::nars::TruthValue— USE EXISTING TYPE (has revision rule)
AccumulatedHarvest::accumulate(result) — EMA + NARS revision across searches
148
+
feed_sigma_graph(result) → Vec<SigmaEdge> — emit typed edges from harvest
160
149
```
161
150
162
-
**CRITICAL**: `harvest_to_nars()` returns `crate::nars::TruthValue`, NOT a new NarsTruth type. The existing type already has `revision()`, `from_evidence()`, `deduction()`, etc. — use them.
163
-
164
151
### 2.3 Key Constraint
165
152
166
153
The XOR bitmasks (`x_xor`, `y_xor`, `z_xor`) computed for distance are the SAME bitmasks used for `cross_plane_vote()`. The halo extraction is FREE — no extra compute. Do not compute XOR twice.
@@ -169,7 +156,7 @@ The XOR bitmasks (`x_xor`, `y_xor`, `z_xor`) computed for distance are the SAME
**Extends: `src/search/spo_harvest.rs` + new `src/search/shift_detector.rs`**
159
+
**Extends: `src/extensions/spo/spo_harvest.rs` + new `src/extensions/spo/shift_detector.rs`**
173
160
174
161
Detailed specs in `spo_distance_granularity_investigation.md` and `sigma_stripe_shift_detector_addendum.md`.
175
162
@@ -211,7 +198,7 @@ impl ShiftDetector {
211
198
}
212
199
```
213
200
214
-
**Wire into CollapseGate** (already exists in `src/extensions/spo/gestalt.rs`, also connects to `src/search/distribution.rs`):
201
+
**Wire into CollapseGate (already exists in src/extensions/spo/gestalt.rs):
215
202
- Shift toward noise → bias HOLD
216
203
- Shift toward foveal → bias FLOW
217
204
- Bimodal → speciation event
@@ -269,8 +256,6 @@ One u16. Three query types. O(log n + k):
269
256
270
257
Detailed spec in `nars_causal_trajectory_hydration_prompt.md`. This is the biggest new module.
271
258
272
-
**NOTE**: `src/search/causal.rs` (37KB) already implements Pearl's 3-rung causal ladder (Correlate/Intervene/Counterfact). The causal trajectory recorder should produce edges compatible with that system — Rung 1 from halo correlations, Rung 2 from BPReLU intervention asymmetry, Rung 3 from ClamPath sibling (counterfactual) queries.
273
-
274
259
### 6.1 Core Structures
275
260
276
261
```rust
@@ -321,8 +306,6 @@ FullSimultaneous — all three at once → Gestalt snap (rare)
321
306
322
307
**Extends existing: `ladybug-rs/src/extensions/spo/gestalt.rs` (DO NOT rewrite — add to it)**
323
308
324
-
**NOTE**: There are TWO gestalt modules — `src/qualia/gestalt.rs` (Buber I/Thou/It, 19KB) and `src/extensions/spo/gestalt.rs` (BundlingProposal, 34KB). Phase 7 extends the SPO one. The qualia one maps Buber roles to Xyz geometry — it's complementary, not redundant.
325
-
326
309
### 7.1 Wire detect_bundling() Into CLAM Harvest Loop
327
310
328
311
When `AccumulatedHarvest` SO/SP/PO evidence crosses `CollapseMode` threshold → auto-create `BundlingProposal`.
0 commit comments