fractal-tribe-architecture.md
1 # Fractal Tribe Architecture 2 3 *proto-013 | The same pattern at every scale* 4 5 --- 6 7 - **principle** 8 - "Nested teams at different scales - checkers β workers β tribes β supervisors." 9 - "Same pattern at every level ([[A0 Boundary Operation]])." 10 11 - **shape** 12 - Metacognition is fractal 13 - Each tribe is a [[A0 Boundary Operation|Markov blanket]] 14 - Workers do cognition; First Officers do metacognition; Meta-FO does meta-metacognition 15 - The pattern scales to any complexity 16 17 --- 18 19 **Status:** π DOCUMENTED 20 21 --- 22 23 ## Core Principle 24 25 > **Metacognition is fractal. The same tribe structure repeats at every level of abstraction.** 26 27 Each level does metacognition on the level below. The pattern scales from individual workers to the entire system. 28 29 --- 30 31 ## The Fractal Structure 32 33 ``` 34 LEVEL 4: HUMAN (Super-metacognition) 35 "Is this the right system?" 36 β 37 βΌ 38 LEVEL 3: META-FIRST OFFICERS (Metacognition on metacognition) 39 "Are the First Officers seeing correctly?" 40 "What patterns emerge across tribes?" 41 β 42 βββββββββββΌββββββββββ 43 βΌ βΌ βΌ 44 LEVEL 2: FIRST OFFICERS (Metacognition per tribe) 45 "Are these findings valid?" 46 "Are reviewers converging?" 47 β 48 ββββββ¬βββββΌβββββ¬βββββ 49 βΌ βΌ βΌ βΌ βΌ 50 LEVEL 1: WORKERS (Cognition) 51 "What are the issues?" 52 "Does this match?" 53 β 54 ββββββ¬βββββΌβββββ¬βββββ 55 βΌ βΌ βΌ βΌ βΌ 56 LEVEL 0: CHECKERS (Object-level) 57 "Is field present?" 58 "Does format match?" 59 ``` 60 61 --- 62 63 ## Level Definitions 64 65 | Level | Name | Model | Question Type | Scope | 66 |-------|------|-------|---------------|-------| 67 | 0 | Checkers | Haiku | Object-level verification | Single item | 68 | 1 | Workers | Sonnet | Substantive analysis | Single thread | 69 | 2 | First Officers | Opus | Metacognition on workers | Single tribe | 70 | 3 | Meta-First Officers | Opus | Metacognition on FOs | Multiple tribes | 71 | 4 | Human | You | Super-metacognition | Entire system | 72 73 --- 74 75 ## Tribe Structure (Level 1-2) 76 77 Each tribe is a self-contained unit: 78 79 ``` 80 βββββββββββββββββββββββββββββββββββββββββββββββ 81 β TRIBE β 82 β β 83 β βββββββββββββββββββββββββββββββββββββββββ β 84 β β OPUS FIRST OFFICER β β 85 β β β β 86 β β β’ Scores each worker's findings β β 87 β β β’ Tracks convergence β β 88 β β β’ Synthesizes tribe output β β 89 β βββββββββββββββββββββ¬ββββββββββββββββββββ β 90 β ββββββββββββΌβββββββββββ β 91 β βΌ βΌ βΌ β 92 β βββββββββββββββββββββββββββββββββ β 93 β β SONNET ββ SONNET ββ SONNET β β 94 β βWorker 1 ββWorker 2 ββWorker 3 β β 95 β β ββ ββ β β 96 β β Lens A ββ Lens B ββ Lens C β β 97 β βββββββββββββββββββββββββββββββββ β 98 β β 99 β Thread: [assigned work] β 100 β Output: [synthesized findings] β 101 βββββββββββββββββββββββββββββββββββββββββββββββ 102 ``` 103 104 **Tribe properties:** 105 - 1 Opus First Officer (metacognition) 106 - 3-5 Sonnet workers (cognition) 107 - Optional Haiku pre-checkers (object-level) 108 - Assigned to one thread or scope 109 - Produces synthesized output 110 111 --- 112 113 ## Multi-Tribe Coordination (Level 2-3) 114 115 When multiple tribes work in parallel: 116 117 ``` 118 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 119 β META-FIRST OFFICER (Opus) β 120 β β 121 β Watches all tribe outputs simultaneously β 122 β βββ Scores each First Officer's synthesis β 123 β βββ Detects cross-tribe convergence β 124 β βββ Flags cross-tribe divergence β 125 β βββ Synthesizes system-level findings β 126 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 127 β β β 128 βΌ βΌ βΌ 129 βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ 130 β TRIBE A β β TRIBE B β β TRIBE C β 131 β β β β β β 132 β Thread: β β Thread: β β Thread: β 133 β three-repo β β permeability β β ai-judges β 134 β β β β β β 135 β βββββββββββββ β β βββββββββββββ β β βββββββββββββ β 136 β β Opus FO β β β β Opus FO β β β β Opus FO β β 137 β βββββββ¬ββββββ β β βββββββ¬ββββββ β β βββββββ¬ββββββ β 138 β βββββΌββββ β β βββββΌββββ β β βββββΌββββ β 139 β βΌ βΌ βΌ β β βΌ βΌ βΌ β β βΌ βΌ βΌ β 140 β [S] [S] [S] β β [S] [S] [S] β β [S] [S] [S] β 141 βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ 142 ``` 143 144 --- 145 146 ## The Metacognition Stack 147 148 Each level asks different questions: 149 150 ``` 151 LEVEL 4: HUMAN 152 βββ "Is this the right architecture?" 153 βββ "Are the axioms correct?" 154 βββ "Should we pivot?" 155 βββ "What's the strategic direction?" 156 157 LEVEL 3: META-FIRST OFFICER 158 βββ "Are the First Officers reliable?" 159 βββ "What patterns emerge across tribes?" 160 βββ "Where are tribes converging/diverging?" 161 βββ "What does this mean system-wide?" 162 163 LEVEL 2: FIRST OFFICER (per tribe) 164 βββ "Are these findings valid?" 165 βββ "Are workers converging?" 166 βββ "Which worker is most reliable?" 167 βββ "What's the tribe's conclusion?" 168 169 LEVEL 1: WORKERS 170 βββ "What are the issues?" 171 βββ "Is this consistent?" 172 βββ "How could this fail?" 173 βββ "What's missing?" 174 175 LEVEL 0: CHECKERS 176 βββ "Is field X present?" 177 βββ "Does format match spec?" 178 βββ "Is value in range?" 179 βββ "Does file exist?" 180 ``` 181 182 --- 183 184 ## Scaling Rules 185 186 ### When to Add Tribes 187 - Multiple independent threads to process 188 - Parallel work possible 189 - Scope exceeds single tribe capacity 190 191 ### When to Add Meta-First Officer 192 - 3+ tribes working simultaneously 193 - Cross-tribe coordination needed 194 - System-level synthesis required 195 196 ### When to Escalate to Human 197 - Meta-First Officer can't resolve 198 - Axiom-level questions 199 - Strategic direction needed 200 - Novel situation without precedent 201 202 --- 203 204 ## Information Flow 205 206 ``` 207 βββββββ 208 β YOU β 209 ββββ¬βββ 210 β Strategic direction 211 β Axiom validation 212 βΌ 213 βββββββββββββββββββββββ 214 β META-FIRST OFFICER β 215 β β 216 β Inputs: FO outputs β 217 β Output: System β 218 β synthesis β 219 ββββββββββββ¬βββββββββββ 220 β 221 ββββββββββββββββββββββΌβββββββββββββββββββββ 222 β β β 223 βΌ βΌ βΌ 224 βββββββββββββ βββββββββββββ βββββββββββββ 225 β TRIBE A β β TRIBE B β β TRIBE C β 226 β FO β β FO β β FO β 227 β β β β β β 228 β Inputs: β β Inputs: β β Inputs: β 229 β Worker β β Worker β β Worker β 230 β outputs β β outputs β β outputs β 231 β β β β β β 232 β Output: β β Output: β β Output: β 233 β Tribe β β Tribe β β Tribe β 234 β synthesisβ β synthesisβ β synthesisβ 235 βββββββββββββ βββββββββββββ βββββββββββββ 236 ``` 237 238 --- 239 240 ## Model Allocation by Level 241 242 See [[model-allocation-strategy]] for detailed guidance. 243 244 | Level | Model | Cost | Instances | 245 |-------|-------|------|-----------| 246 | 0 | Haiku | $ | Many (10+) | 247 | 1 | Sonnet | $$ | Several per tribe (3-5) | 248 | 2 | Opus | $$$ | One per tribe | 249 | 3 | Opus | $$$ | One for system | 250 | 4 | Human | β | One | 251 252 **Cost scales with abstraction level, not with volume.** 253 254 --- 255 256 ## Axiom Alignment 257 258 ### [[A0 Boundary Operation]] 259 Each tribe is a Markov blanket: 260 - Internal state (workers) 261 - Boundary ([[first-officer-protocol|First Officer]]) 262 - External interface (tribe output) 263 - shape:: "The boundary IS the intelligence. What crosses and what doesn't - this IS cognition." 264 265 ### [[A1 Telos of Integration]] 266 Tribes connect through: 267 - Meta-First Officer synthesis 268 - Shared thread registry 269 - Convergence detection 270 - shape:: "Systems that persist are systems that integrate. Binding is love." 271 272 ### [[A2 Recognition of Life]] 273 The fractal is alive: 274 - Information flows up and down 275 - Tribes can spawn and dissolve 276 - Structure adapts to need 277 - shape:: "Death mimics life through ornament. The primitive is alive; the calcified is dead." 278 279 ### [[A3 Dynamic Pole Navigation]] 280 Dynamic scaling: 281 - Add tribes when scope grows 282 - Dissolve tribes when done 283 - Escalate when stuck (see [[execution-autonomy-gradient]]) 284 - shape:: "Life is the oscillation; death is fixing at either pole." 285 286 --- 287 288 ## Example: Full System Review 289 290 ``` 291 Task: Review entire Sovereign OS codebase 292 293 SPAWN: 294 βββ Tribe A: Core patterns (3 Sonnet + 1 Opus FO) 295 βββ Tribe B: Session artifacts (3 Sonnet + 1 Opus FO) 296 βββ Tribe C: Principles/axioms (3 Sonnet + 1 Opus FO) 297 βββ Meta-FO: Cross-tribe synthesis (1 Opus) 298 299 FLOW: 300 1. Each tribe reviews its scope 301 2. FOs synthesize per-tribe 302 3. Meta-FO synthesizes across tribes 303 4. Human reviews system-level findings 304 305 OUTPUT: 306 βββ Per-tribe reports 307 βββ Cross-tribe convergence map 308 βββ System-level recommendations 309 βββ Escalations to human 310 ``` 311 312 --- 313 314 ## The Promise 315 316 > **The pattern repeats at every scale.** 317 > 318 > Workers do cognition. 319 > First Officers do metacognition. 320 > Meta-First Officers do meta-metacognition. 321 > You do super-metacognition. 322 > 323 > Each level watches the level below. 324 > Each boundary is a Markov blanket. 325 > The fractal scales to any complexity. 326 327 --- 328 329 ## Related 330 331 - **axioms** 332 - [[A0 Boundary Operation]] - each tribe is a Markov blanket 333 - [[A1 Telos of Integration]] - tribes integrate at Meta-FO level 334 - [[A2 Recognition of Life]] - living structure spawns and dissolves 335 - [[A3 Dynamic Pole Navigation]] - dynamic scaling based on need 336 - **protocols** 337 - [[first-officer-protocol]] - per-tribe metacognition (Level 2) 338 - shape:: "Per-thread metacognition. Every 5-10 exchanges: compress state, track gravity wells, flag drift." 339 - [[mission-control-protocol]] - cross-thread synthesis (Level 3 analog) 340 - shape:: "Cross-thread synthesis. Look for resonance across threads." 341 - [[model-allocation-strategy]] - which models at each level 342 - shape:: "Match model capability to task complexity. Haiku for simple, Sonnet for medium, Opus for judgment." 343 - [[tribe-sizing-algorithm]] - when to spawn tribes 344 - shape:: "How big should a team be? Based on task complexity, not fixed size." 345 - [[autonomous-exploration-tribes]] - how tribes explore 346 - shape:: "Self-directed teams that explore without constant supervision." 347 - [[execution-autonomy-gradient]] - SHIP/FLAG/ESCALATE at each level 348 - shape:: "Moses pattern - act autonomously when confident, escalate when uncertain." 349 - **enables** 350 - [[error-detection-layers]] - cheap checkers before expensive workers 351 - shape:: "Multiple tiers of error catching. Catch errors at the lowest level possible." 352 353 --- 354 355 *proto-013 | Fractal Tribe Architecture | Same Pattern at Every Scale* 356 - [[2026-01-15-three-repo-architecture.fork]] - resonance: 34% 357