@cleocode/cleo 2026.4.106 → 2026.4.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. package/bin/cleo.js +29 -0
  2. package/dist/cli/index.js +1091 -963
  3. package/dist/cli/index.js.map +4 -4
  4. package/migrations/drizzle-brain/20260421195921_t1165-baseline-reset/migration.sql +11 -0
  5. package/migrations/drizzle-brain/20260421195921_t1165-baseline-reset/snapshot.json +3799 -0
  6. package/migrations/drizzle-nexus/20260421200001_t1165-baseline-reset/migration.sql +8 -0
  7. package/migrations/drizzle-nexus/20260421200001_t1165-baseline-reset/snapshot.json +1372 -0
  8. package/migrations/drizzle-signaldock/20260412000000_initial-global-signaldock/migration.sql +209 -0
  9. package/migrations/drizzle-signaldock/20260412000000_initial-global-signaldock/snapshot.json +2060 -0
  10. package/migrations/drizzle-tasks/20260421195851_t1165-baseline-reset/migration.sql +8 -0
  11. package/migrations/drizzle-tasks/20260421195851_t1165-baseline-reset/snapshot.json +5387 -0
  12. package/migrations/drizzle-tasks/20260422004703_t1174-adopt-partial-index-where/migration.sql +27 -0
  13. package/migrations/drizzle-tasks/20260422004703_t1174-adopt-partial-index-where/snapshot.json +5401 -0
  14. package/migrations/drizzle-telemetry/20260415000001_t624-initial/migration.sql +23 -0
  15. package/migrations/drizzle-telemetry/20260422000000_t1176-telemetry-baseline-reset/migration.sql +8 -0
  16. package/migrations/drizzle-telemetry/20260422000000_t1176-telemetry-baseline-reset/snapshot.json +227 -0
  17. package/package.json +11 -11
  18. package/migrations/drizzle-tasks/20260421000001_t1126-sentient-proposal-index/migration.sql +0 -18
@@ -0,0 +1,3799 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "id": "b398bf2f-5b28-4c82-a1ea-547fe8efaca8",
5
+ "prevIds": [
6
+ "00000000-0000-0000-0000-000000000000"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "name": "brain_backfill_runs",
11
+ "entityType": "tables"
12
+ },
13
+ {
14
+ "name": "brain_consolidation_events",
15
+ "entityType": "tables"
16
+ },
17
+ {
18
+ "name": "brain_decisions",
19
+ "entityType": "tables"
20
+ },
21
+ {
22
+ "name": "brain_learnings",
23
+ "entityType": "tables"
24
+ },
25
+ {
26
+ "name": "brain_memory_links",
27
+ "entityType": "tables"
28
+ },
29
+ {
30
+ "name": "brain_modulators",
31
+ "entityType": "tables"
32
+ },
33
+ {
34
+ "name": "brain_observations",
35
+ "entityType": "tables"
36
+ },
37
+ {
38
+ "name": "brain_page_edges",
39
+ "entityType": "tables"
40
+ },
41
+ {
42
+ "name": "brain_page_nodes",
43
+ "entityType": "tables"
44
+ },
45
+ {
46
+ "name": "brain_patterns",
47
+ "entityType": "tables"
48
+ },
49
+ {
50
+ "name": "brain_plasticity_events",
51
+ "entityType": "tables"
52
+ },
53
+ {
54
+ "name": "brain_promotion_log",
55
+ "entityType": "tables"
56
+ },
57
+ {
58
+ "name": "brain_retrieval_log",
59
+ "entityType": "tables"
60
+ },
61
+ {
62
+ "name": "brain_schema_meta",
63
+ "entityType": "tables"
64
+ },
65
+ {
66
+ "name": "brain_sticky_notes",
67
+ "entityType": "tables"
68
+ },
69
+ {
70
+ "name": "brain_transcript_events",
71
+ "entityType": "tables"
72
+ },
73
+ {
74
+ "name": "brain_weight_history",
75
+ "entityType": "tables"
76
+ },
77
+ {
78
+ "type": "text",
79
+ "notNull": false,
80
+ "autoincrement": false,
81
+ "default": null,
82
+ "generated": null,
83
+ "name": "id",
84
+ "entityType": "columns",
85
+ "table": "brain_backfill_runs"
86
+ },
87
+ {
88
+ "type": "text",
89
+ "notNull": true,
90
+ "autoincrement": false,
91
+ "default": null,
92
+ "generated": null,
93
+ "name": "kind",
94
+ "entityType": "columns",
95
+ "table": "brain_backfill_runs"
96
+ },
97
+ {
98
+ "type": "text",
99
+ "notNull": true,
100
+ "autoincrement": false,
101
+ "default": "'staged'",
102
+ "generated": null,
103
+ "name": "status",
104
+ "entityType": "columns",
105
+ "table": "brain_backfill_runs"
106
+ },
107
+ {
108
+ "type": "text",
109
+ "notNull": true,
110
+ "autoincrement": false,
111
+ "default": "(datetime('now'))",
112
+ "generated": null,
113
+ "name": "created_at",
114
+ "entityType": "columns",
115
+ "table": "brain_backfill_runs"
116
+ },
117
+ {
118
+ "type": "text",
119
+ "notNull": false,
120
+ "autoincrement": false,
121
+ "default": null,
122
+ "generated": null,
123
+ "name": "approved_at",
124
+ "entityType": "columns",
125
+ "table": "brain_backfill_runs"
126
+ },
127
+ {
128
+ "type": "integer",
129
+ "notNull": true,
130
+ "autoincrement": false,
131
+ "default": "0",
132
+ "generated": null,
133
+ "name": "rows_affected",
134
+ "entityType": "columns",
135
+ "table": "brain_backfill_runs"
136
+ },
137
+ {
138
+ "type": "text",
139
+ "notNull": false,
140
+ "autoincrement": false,
141
+ "default": null,
142
+ "generated": null,
143
+ "name": "rollback_snapshot_json",
144
+ "entityType": "columns",
145
+ "table": "brain_backfill_runs"
146
+ },
147
+ {
148
+ "type": "text",
149
+ "notNull": true,
150
+ "autoincrement": false,
151
+ "default": "'unknown'",
152
+ "generated": null,
153
+ "name": "source",
154
+ "entityType": "columns",
155
+ "table": "brain_backfill_runs"
156
+ },
157
+ {
158
+ "type": "text",
159
+ "notNull": true,
160
+ "autoincrement": false,
161
+ "default": "'brain_observations'",
162
+ "generated": null,
163
+ "name": "target_table",
164
+ "entityType": "columns",
165
+ "table": "brain_backfill_runs"
166
+ },
167
+ {
168
+ "type": "text",
169
+ "notNull": false,
170
+ "autoincrement": false,
171
+ "default": null,
172
+ "generated": null,
173
+ "name": "approved_by",
174
+ "entityType": "columns",
175
+ "table": "brain_backfill_runs"
176
+ },
177
+ {
178
+ "type": "integer",
179
+ "notNull": false,
180
+ "autoincrement": true,
181
+ "default": null,
182
+ "generated": null,
183
+ "name": "id",
184
+ "entityType": "columns",
185
+ "table": "brain_consolidation_events"
186
+ },
187
+ {
188
+ "type": "text",
189
+ "notNull": true,
190
+ "autoincrement": false,
191
+ "default": null,
192
+ "generated": null,
193
+ "name": "trigger",
194
+ "entityType": "columns",
195
+ "table": "brain_consolidation_events"
196
+ },
197
+ {
198
+ "type": "text",
199
+ "notNull": false,
200
+ "autoincrement": false,
201
+ "default": null,
202
+ "generated": null,
203
+ "name": "session_id",
204
+ "entityType": "columns",
205
+ "table": "brain_consolidation_events"
206
+ },
207
+ {
208
+ "type": "text",
209
+ "notNull": true,
210
+ "autoincrement": false,
211
+ "default": null,
212
+ "generated": null,
213
+ "name": "step_results_json",
214
+ "entityType": "columns",
215
+ "table": "brain_consolidation_events"
216
+ },
217
+ {
218
+ "type": "integer",
219
+ "notNull": false,
220
+ "autoincrement": false,
221
+ "default": null,
222
+ "generated": null,
223
+ "name": "duration_ms",
224
+ "entityType": "columns",
225
+ "table": "brain_consolidation_events"
226
+ },
227
+ {
228
+ "type": "integer",
229
+ "notNull": true,
230
+ "autoincrement": false,
231
+ "default": "true",
232
+ "generated": null,
233
+ "name": "succeeded",
234
+ "entityType": "columns",
235
+ "table": "brain_consolidation_events"
236
+ },
237
+ {
238
+ "type": "text",
239
+ "notNull": true,
240
+ "autoincrement": false,
241
+ "default": "(datetime('now'))",
242
+ "generated": null,
243
+ "name": "started_at",
244
+ "entityType": "columns",
245
+ "table": "brain_consolidation_events"
246
+ },
247
+ {
248
+ "type": "text",
249
+ "notNull": false,
250
+ "autoincrement": false,
251
+ "default": null,
252
+ "generated": null,
253
+ "name": "id",
254
+ "entityType": "columns",
255
+ "table": "brain_decisions"
256
+ },
257
+ {
258
+ "type": "text",
259
+ "notNull": true,
260
+ "autoincrement": false,
261
+ "default": null,
262
+ "generated": null,
263
+ "name": "type",
264
+ "entityType": "columns",
265
+ "table": "brain_decisions"
266
+ },
267
+ {
268
+ "type": "text",
269
+ "notNull": true,
270
+ "autoincrement": false,
271
+ "default": null,
272
+ "generated": null,
273
+ "name": "decision",
274
+ "entityType": "columns",
275
+ "table": "brain_decisions"
276
+ },
277
+ {
278
+ "type": "text",
279
+ "notNull": true,
280
+ "autoincrement": false,
281
+ "default": null,
282
+ "generated": null,
283
+ "name": "rationale",
284
+ "entityType": "columns",
285
+ "table": "brain_decisions"
286
+ },
287
+ {
288
+ "type": "text",
289
+ "notNull": true,
290
+ "autoincrement": false,
291
+ "default": null,
292
+ "generated": null,
293
+ "name": "confidence",
294
+ "entityType": "columns",
295
+ "table": "brain_decisions"
296
+ },
297
+ {
298
+ "type": "text",
299
+ "notNull": false,
300
+ "autoincrement": false,
301
+ "default": null,
302
+ "generated": null,
303
+ "name": "outcome",
304
+ "entityType": "columns",
305
+ "table": "brain_decisions"
306
+ },
307
+ {
308
+ "type": "text",
309
+ "notNull": false,
310
+ "autoincrement": false,
311
+ "default": null,
312
+ "generated": null,
313
+ "name": "alternatives_json",
314
+ "entityType": "columns",
315
+ "table": "brain_decisions"
316
+ },
317
+ {
318
+ "type": "text",
319
+ "notNull": false,
320
+ "autoincrement": false,
321
+ "default": null,
322
+ "generated": null,
323
+ "name": "context_epic_id",
324
+ "entityType": "columns",
325
+ "table": "brain_decisions"
326
+ },
327
+ {
328
+ "type": "text",
329
+ "notNull": false,
330
+ "autoincrement": false,
331
+ "default": null,
332
+ "generated": null,
333
+ "name": "context_task_id",
334
+ "entityType": "columns",
335
+ "table": "brain_decisions"
336
+ },
337
+ {
338
+ "type": "text",
339
+ "notNull": false,
340
+ "autoincrement": false,
341
+ "default": null,
342
+ "generated": null,
343
+ "name": "context_phase",
344
+ "entityType": "columns",
345
+ "table": "brain_decisions"
346
+ },
347
+ {
348
+ "type": "real",
349
+ "notNull": false,
350
+ "autoincrement": false,
351
+ "default": null,
352
+ "generated": null,
353
+ "name": "quality_score",
354
+ "entityType": "columns",
355
+ "table": "brain_decisions"
356
+ },
357
+ {
358
+ "type": "text",
359
+ "notNull": true,
360
+ "autoincrement": false,
361
+ "default": "(datetime('now'))",
362
+ "generated": null,
363
+ "name": "created_at",
364
+ "entityType": "columns",
365
+ "table": "brain_decisions"
366
+ },
367
+ {
368
+ "type": "text",
369
+ "notNull": false,
370
+ "autoincrement": false,
371
+ "default": null,
372
+ "generated": null,
373
+ "name": "updated_at",
374
+ "entityType": "columns",
375
+ "table": "brain_decisions"
376
+ },
377
+ {
378
+ "type": "text",
379
+ "notNull": false,
380
+ "autoincrement": false,
381
+ "default": "'medium'",
382
+ "generated": null,
383
+ "name": "memory_tier",
384
+ "entityType": "columns",
385
+ "table": "brain_decisions"
386
+ },
387
+ {
388
+ "type": "text",
389
+ "notNull": false,
390
+ "autoincrement": false,
391
+ "default": "'semantic'",
392
+ "generated": null,
393
+ "name": "memory_type",
394
+ "entityType": "columns",
395
+ "table": "brain_decisions"
396
+ },
397
+ {
398
+ "type": "integer",
399
+ "notNull": true,
400
+ "autoincrement": false,
401
+ "default": "false",
402
+ "generated": null,
403
+ "name": "verified",
404
+ "entityType": "columns",
405
+ "table": "brain_decisions"
406
+ },
407
+ {
408
+ "type": "text",
409
+ "notNull": true,
410
+ "autoincrement": false,
411
+ "default": "(datetime('now'))",
412
+ "generated": null,
413
+ "name": "valid_at",
414
+ "entityType": "columns",
415
+ "table": "brain_decisions"
416
+ },
417
+ {
418
+ "type": "text",
419
+ "notNull": false,
420
+ "autoincrement": false,
421
+ "default": null,
422
+ "generated": null,
423
+ "name": "invalid_at",
424
+ "entityType": "columns",
425
+ "table": "brain_decisions"
426
+ },
427
+ {
428
+ "type": "text",
429
+ "notNull": false,
430
+ "autoincrement": false,
431
+ "default": "'agent'",
432
+ "generated": null,
433
+ "name": "source_confidence",
434
+ "entityType": "columns",
435
+ "table": "brain_decisions"
436
+ },
437
+ {
438
+ "type": "integer",
439
+ "notNull": true,
440
+ "autoincrement": false,
441
+ "default": "0",
442
+ "generated": null,
443
+ "name": "citation_count",
444
+ "entityType": "columns",
445
+ "table": "brain_decisions"
446
+ },
447
+ {
448
+ "type": "text",
449
+ "notNull": false,
450
+ "autoincrement": false,
451
+ "default": null,
452
+ "generated": null,
453
+ "name": "tier_promoted_at",
454
+ "entityType": "columns",
455
+ "table": "brain_decisions"
456
+ },
457
+ {
458
+ "type": "text",
459
+ "notNull": false,
460
+ "autoincrement": false,
461
+ "default": null,
462
+ "generated": null,
463
+ "name": "tier_promotion_reason",
464
+ "entityType": "columns",
465
+ "table": "brain_decisions"
466
+ },
467
+ {
468
+ "type": "text",
469
+ "notNull": false,
470
+ "autoincrement": false,
471
+ "default": null,
472
+ "generated": null,
473
+ "name": "content_hash",
474
+ "entityType": "columns",
475
+ "table": "brain_decisions"
476
+ },
477
+ {
478
+ "type": "text",
479
+ "notNull": false,
480
+ "autoincrement": false,
481
+ "default": null,
482
+ "generated": null,
483
+ "name": "id",
484
+ "entityType": "columns",
485
+ "table": "brain_learnings"
486
+ },
487
+ {
488
+ "type": "text",
489
+ "notNull": true,
490
+ "autoincrement": false,
491
+ "default": null,
492
+ "generated": null,
493
+ "name": "insight",
494
+ "entityType": "columns",
495
+ "table": "brain_learnings"
496
+ },
497
+ {
498
+ "type": "text",
499
+ "notNull": true,
500
+ "autoincrement": false,
501
+ "default": null,
502
+ "generated": null,
503
+ "name": "source",
504
+ "entityType": "columns",
505
+ "table": "brain_learnings"
506
+ },
507
+ {
508
+ "type": "real",
509
+ "notNull": true,
510
+ "autoincrement": false,
511
+ "default": null,
512
+ "generated": null,
513
+ "name": "confidence",
514
+ "entityType": "columns",
515
+ "table": "brain_learnings"
516
+ },
517
+ {
518
+ "type": "integer",
519
+ "notNull": true,
520
+ "autoincrement": false,
521
+ "default": "false",
522
+ "generated": null,
523
+ "name": "actionable",
524
+ "entityType": "columns",
525
+ "table": "brain_learnings"
526
+ },
527
+ {
528
+ "type": "text",
529
+ "notNull": false,
530
+ "autoincrement": false,
531
+ "default": null,
532
+ "generated": null,
533
+ "name": "application",
534
+ "entityType": "columns",
535
+ "table": "brain_learnings"
536
+ },
537
+ {
538
+ "type": "text",
539
+ "notNull": false,
540
+ "autoincrement": false,
541
+ "default": null,
542
+ "generated": null,
543
+ "name": "applicable_types_json",
544
+ "entityType": "columns",
545
+ "table": "brain_learnings"
546
+ },
547
+ {
548
+ "type": "text",
549
+ "notNull": true,
550
+ "autoincrement": false,
551
+ "default": "(datetime('now'))",
552
+ "generated": null,
553
+ "name": "created_at",
554
+ "entityType": "columns",
555
+ "table": "brain_learnings"
556
+ },
557
+ {
558
+ "type": "text",
559
+ "notNull": false,
560
+ "autoincrement": false,
561
+ "default": null,
562
+ "generated": null,
563
+ "name": "updated_at",
564
+ "entityType": "columns",
565
+ "table": "brain_learnings"
566
+ },
567
+ {
568
+ "type": "real",
569
+ "notNull": false,
570
+ "autoincrement": false,
571
+ "default": null,
572
+ "generated": null,
573
+ "name": "quality_score",
574
+ "entityType": "columns",
575
+ "table": "brain_learnings"
576
+ },
577
+ {
578
+ "type": "text",
579
+ "notNull": false,
580
+ "autoincrement": false,
581
+ "default": "'short'",
582
+ "generated": null,
583
+ "name": "memory_tier",
584
+ "entityType": "columns",
585
+ "table": "brain_learnings"
586
+ },
587
+ {
588
+ "type": "text",
589
+ "notNull": false,
590
+ "autoincrement": false,
591
+ "default": "'semantic'",
592
+ "generated": null,
593
+ "name": "memory_type",
594
+ "entityType": "columns",
595
+ "table": "brain_learnings"
596
+ },
597
+ {
598
+ "type": "integer",
599
+ "notNull": true,
600
+ "autoincrement": false,
601
+ "default": "false",
602
+ "generated": null,
603
+ "name": "verified",
604
+ "entityType": "columns",
605
+ "table": "brain_learnings"
606
+ },
607
+ {
608
+ "type": "text",
609
+ "notNull": true,
610
+ "autoincrement": false,
611
+ "default": "(datetime('now'))",
612
+ "generated": null,
613
+ "name": "valid_at",
614
+ "entityType": "columns",
615
+ "table": "brain_learnings"
616
+ },
617
+ {
618
+ "type": "text",
619
+ "notNull": false,
620
+ "autoincrement": false,
621
+ "default": null,
622
+ "generated": null,
623
+ "name": "invalid_at",
624
+ "entityType": "columns",
625
+ "table": "brain_learnings"
626
+ },
627
+ {
628
+ "type": "text",
629
+ "notNull": false,
630
+ "autoincrement": false,
631
+ "default": "'agent'",
632
+ "generated": null,
633
+ "name": "source_confidence",
634
+ "entityType": "columns",
635
+ "table": "brain_learnings"
636
+ },
637
+ {
638
+ "type": "integer",
639
+ "notNull": true,
640
+ "autoincrement": false,
641
+ "default": "0",
642
+ "generated": null,
643
+ "name": "citation_count",
644
+ "entityType": "columns",
645
+ "table": "brain_learnings"
646
+ },
647
+ {
648
+ "type": "text",
649
+ "notNull": false,
650
+ "autoincrement": false,
651
+ "default": null,
652
+ "generated": null,
653
+ "name": "tier_promoted_at",
654
+ "entityType": "columns",
655
+ "table": "brain_learnings"
656
+ },
657
+ {
658
+ "type": "text",
659
+ "notNull": false,
660
+ "autoincrement": false,
661
+ "default": null,
662
+ "generated": null,
663
+ "name": "tier_promotion_reason",
664
+ "entityType": "columns",
665
+ "table": "brain_learnings"
666
+ },
667
+ {
668
+ "type": "text",
669
+ "notNull": false,
670
+ "autoincrement": false,
671
+ "default": null,
672
+ "generated": null,
673
+ "name": "content_hash",
674
+ "entityType": "columns",
675
+ "table": "brain_learnings"
676
+ },
677
+ {
678
+ "type": "text",
679
+ "notNull": true,
680
+ "autoincrement": false,
681
+ "default": null,
682
+ "generated": null,
683
+ "name": "memory_type",
684
+ "entityType": "columns",
685
+ "table": "brain_memory_links"
686
+ },
687
+ {
688
+ "type": "text",
689
+ "notNull": true,
690
+ "autoincrement": false,
691
+ "default": null,
692
+ "generated": null,
693
+ "name": "memory_id",
694
+ "entityType": "columns",
695
+ "table": "brain_memory_links"
696
+ },
697
+ {
698
+ "type": "text",
699
+ "notNull": true,
700
+ "autoincrement": false,
701
+ "default": null,
702
+ "generated": null,
703
+ "name": "task_id",
704
+ "entityType": "columns",
705
+ "table": "brain_memory_links"
706
+ },
707
+ {
708
+ "type": "text",
709
+ "notNull": true,
710
+ "autoincrement": false,
711
+ "default": null,
712
+ "generated": null,
713
+ "name": "link_type",
714
+ "entityType": "columns",
715
+ "table": "brain_memory_links"
716
+ },
717
+ {
718
+ "type": "text",
719
+ "notNull": true,
720
+ "autoincrement": false,
721
+ "default": "(datetime('now'))",
722
+ "generated": null,
723
+ "name": "created_at",
724
+ "entityType": "columns",
725
+ "table": "brain_memory_links"
726
+ },
727
+ {
728
+ "type": "integer",
729
+ "notNull": false,
730
+ "autoincrement": true,
731
+ "default": null,
732
+ "generated": null,
733
+ "name": "id",
734
+ "entityType": "columns",
735
+ "table": "brain_modulators"
736
+ },
737
+ {
738
+ "type": "text",
739
+ "notNull": true,
740
+ "autoincrement": false,
741
+ "default": null,
742
+ "generated": null,
743
+ "name": "modulator_type",
744
+ "entityType": "columns",
745
+ "table": "brain_modulators"
746
+ },
747
+ {
748
+ "type": "real",
749
+ "notNull": true,
750
+ "autoincrement": false,
751
+ "default": null,
752
+ "generated": null,
753
+ "name": "valence",
754
+ "entityType": "columns",
755
+ "table": "brain_modulators"
756
+ },
757
+ {
758
+ "type": "real",
759
+ "notNull": true,
760
+ "autoincrement": false,
761
+ "default": "1",
762
+ "generated": null,
763
+ "name": "magnitude",
764
+ "entityType": "columns",
765
+ "table": "brain_modulators"
766
+ },
767
+ {
768
+ "type": "text",
769
+ "notNull": false,
770
+ "autoincrement": false,
771
+ "default": null,
772
+ "generated": null,
773
+ "name": "source_event_id",
774
+ "entityType": "columns",
775
+ "table": "brain_modulators"
776
+ },
777
+ {
778
+ "type": "text",
779
+ "notNull": false,
780
+ "autoincrement": false,
781
+ "default": null,
782
+ "generated": null,
783
+ "name": "session_id",
784
+ "entityType": "columns",
785
+ "table": "brain_modulators"
786
+ },
787
+ {
788
+ "type": "text",
789
+ "notNull": false,
790
+ "autoincrement": false,
791
+ "default": null,
792
+ "generated": null,
793
+ "name": "description",
794
+ "entityType": "columns",
795
+ "table": "brain_modulators"
796
+ },
797
+ {
798
+ "type": "text",
799
+ "notNull": true,
800
+ "autoincrement": false,
801
+ "default": "(datetime('now'))",
802
+ "generated": null,
803
+ "name": "created_at",
804
+ "entityType": "columns",
805
+ "table": "brain_modulators"
806
+ },
807
+ {
808
+ "type": "text",
809
+ "notNull": false,
810
+ "autoincrement": false,
811
+ "default": null,
812
+ "generated": null,
813
+ "name": "id",
814
+ "entityType": "columns",
815
+ "table": "brain_observations"
816
+ },
817
+ {
818
+ "type": "text",
819
+ "notNull": true,
820
+ "autoincrement": false,
821
+ "default": null,
822
+ "generated": null,
823
+ "name": "type",
824
+ "entityType": "columns",
825
+ "table": "brain_observations"
826
+ },
827
+ {
828
+ "type": "text",
829
+ "notNull": true,
830
+ "autoincrement": false,
831
+ "default": null,
832
+ "generated": null,
833
+ "name": "title",
834
+ "entityType": "columns",
835
+ "table": "brain_observations"
836
+ },
837
+ {
838
+ "type": "text",
839
+ "notNull": false,
840
+ "autoincrement": false,
841
+ "default": null,
842
+ "generated": null,
843
+ "name": "subtitle",
844
+ "entityType": "columns",
845
+ "table": "brain_observations"
846
+ },
847
+ {
848
+ "type": "text",
849
+ "notNull": false,
850
+ "autoincrement": false,
851
+ "default": null,
852
+ "generated": null,
853
+ "name": "narrative",
854
+ "entityType": "columns",
855
+ "table": "brain_observations"
856
+ },
857
+ {
858
+ "type": "text",
859
+ "notNull": false,
860
+ "autoincrement": false,
861
+ "default": null,
862
+ "generated": null,
863
+ "name": "facts_json",
864
+ "entityType": "columns",
865
+ "table": "brain_observations"
866
+ },
867
+ {
868
+ "type": "text",
869
+ "notNull": false,
870
+ "autoincrement": false,
871
+ "default": null,
872
+ "generated": null,
873
+ "name": "concepts_json",
874
+ "entityType": "columns",
875
+ "table": "brain_observations"
876
+ },
877
+ {
878
+ "type": "text",
879
+ "notNull": false,
880
+ "autoincrement": false,
881
+ "default": null,
882
+ "generated": null,
883
+ "name": "project",
884
+ "entityType": "columns",
885
+ "table": "brain_observations"
886
+ },
887
+ {
888
+ "type": "text",
889
+ "notNull": false,
890
+ "autoincrement": false,
891
+ "default": null,
892
+ "generated": null,
893
+ "name": "files_read_json",
894
+ "entityType": "columns",
895
+ "table": "brain_observations"
896
+ },
897
+ {
898
+ "type": "text",
899
+ "notNull": false,
900
+ "autoincrement": false,
901
+ "default": null,
902
+ "generated": null,
903
+ "name": "files_modified_json",
904
+ "entityType": "columns",
905
+ "table": "brain_observations"
906
+ },
907
+ {
908
+ "type": "text",
909
+ "notNull": false,
910
+ "autoincrement": false,
911
+ "default": null,
912
+ "generated": null,
913
+ "name": "source_session_id",
914
+ "entityType": "columns",
915
+ "table": "brain_observations"
916
+ },
917
+ {
918
+ "type": "text",
919
+ "notNull": true,
920
+ "autoincrement": false,
921
+ "default": "'agent'",
922
+ "generated": null,
923
+ "name": "source_type",
924
+ "entityType": "columns",
925
+ "table": "brain_observations"
926
+ },
927
+ {
928
+ "type": "text",
929
+ "notNull": false,
930
+ "autoincrement": false,
931
+ "default": null,
932
+ "generated": null,
933
+ "name": "agent",
934
+ "entityType": "columns",
935
+ "table": "brain_observations"
936
+ },
937
+ {
938
+ "type": "text",
939
+ "notNull": false,
940
+ "autoincrement": false,
941
+ "default": null,
942
+ "generated": null,
943
+ "name": "content_hash",
944
+ "entityType": "columns",
945
+ "table": "brain_observations"
946
+ },
947
+ {
948
+ "type": "integer",
949
+ "notNull": false,
950
+ "autoincrement": false,
951
+ "default": null,
952
+ "generated": null,
953
+ "name": "discovery_tokens",
954
+ "entityType": "columns",
955
+ "table": "brain_observations"
956
+ },
957
+ {
958
+ "type": "real",
959
+ "notNull": false,
960
+ "autoincrement": false,
961
+ "default": null,
962
+ "generated": null,
963
+ "name": "quality_score",
964
+ "entityType": "columns",
965
+ "table": "brain_observations"
966
+ },
967
+ {
968
+ "type": "text",
969
+ "notNull": true,
970
+ "autoincrement": false,
971
+ "default": "(datetime('now'))",
972
+ "generated": null,
973
+ "name": "created_at",
974
+ "entityType": "columns",
975
+ "table": "brain_observations"
976
+ },
977
+ {
978
+ "type": "text",
979
+ "notNull": false,
980
+ "autoincrement": false,
981
+ "default": null,
982
+ "generated": null,
983
+ "name": "updated_at",
984
+ "entityType": "columns",
985
+ "table": "brain_observations"
986
+ },
987
+ {
988
+ "type": "text",
989
+ "notNull": false,
990
+ "autoincrement": false,
991
+ "default": "'short'",
992
+ "generated": null,
993
+ "name": "memory_tier",
994
+ "entityType": "columns",
995
+ "table": "brain_observations"
996
+ },
997
+ {
998
+ "type": "text",
999
+ "notNull": false,
1000
+ "autoincrement": false,
1001
+ "default": "'episodic'",
1002
+ "generated": null,
1003
+ "name": "memory_type",
1004
+ "entityType": "columns",
1005
+ "table": "brain_observations"
1006
+ },
1007
+ {
1008
+ "type": "integer",
1009
+ "notNull": true,
1010
+ "autoincrement": false,
1011
+ "default": "false",
1012
+ "generated": null,
1013
+ "name": "verified",
1014
+ "entityType": "columns",
1015
+ "table": "brain_observations"
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "notNull": true,
1020
+ "autoincrement": false,
1021
+ "default": "(datetime('now'))",
1022
+ "generated": null,
1023
+ "name": "valid_at",
1024
+ "entityType": "columns",
1025
+ "table": "brain_observations"
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "notNull": false,
1030
+ "autoincrement": false,
1031
+ "default": null,
1032
+ "generated": null,
1033
+ "name": "invalid_at",
1034
+ "entityType": "columns",
1035
+ "table": "brain_observations"
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "notNull": false,
1040
+ "autoincrement": false,
1041
+ "default": "'agent'",
1042
+ "generated": null,
1043
+ "name": "source_confidence",
1044
+ "entityType": "columns",
1045
+ "table": "brain_observations"
1046
+ },
1047
+ {
1048
+ "type": "integer",
1049
+ "notNull": true,
1050
+ "autoincrement": false,
1051
+ "default": "0",
1052
+ "generated": null,
1053
+ "name": "citation_count",
1054
+ "entityType": "columns",
1055
+ "table": "brain_observations"
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "notNull": false,
1060
+ "autoincrement": false,
1061
+ "default": null,
1062
+ "generated": null,
1063
+ "name": "tier_promoted_at",
1064
+ "entityType": "columns",
1065
+ "table": "brain_observations"
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "notNull": false,
1070
+ "autoincrement": false,
1071
+ "default": null,
1072
+ "generated": null,
1073
+ "name": "tier_promotion_reason",
1074
+ "entityType": "columns",
1075
+ "table": "brain_observations"
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "notNull": false,
1080
+ "autoincrement": false,
1081
+ "default": null,
1082
+ "generated": null,
1083
+ "name": "attachments_json",
1084
+ "entityType": "columns",
1085
+ "table": "brain_observations"
1086
+ },
1087
+ {
1088
+ "type": "real",
1089
+ "notNull": false,
1090
+ "autoincrement": false,
1091
+ "default": "0.5",
1092
+ "generated": null,
1093
+ "name": "stability_score",
1094
+ "entityType": "columns",
1095
+ "table": "brain_observations"
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "notNull": true,
1100
+ "autoincrement": false,
1101
+ "default": null,
1102
+ "generated": null,
1103
+ "name": "from_id",
1104
+ "entityType": "columns",
1105
+ "table": "brain_page_edges"
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "notNull": true,
1110
+ "autoincrement": false,
1111
+ "default": null,
1112
+ "generated": null,
1113
+ "name": "to_id",
1114
+ "entityType": "columns",
1115
+ "table": "brain_page_edges"
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "notNull": true,
1120
+ "autoincrement": false,
1121
+ "default": null,
1122
+ "generated": null,
1123
+ "name": "edge_type",
1124
+ "entityType": "columns",
1125
+ "table": "brain_page_edges"
1126
+ },
1127
+ {
1128
+ "type": "real",
1129
+ "notNull": true,
1130
+ "autoincrement": false,
1131
+ "default": "1",
1132
+ "generated": null,
1133
+ "name": "weight",
1134
+ "entityType": "columns",
1135
+ "table": "brain_page_edges"
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "notNull": false,
1140
+ "autoincrement": false,
1141
+ "default": null,
1142
+ "generated": null,
1143
+ "name": "provenance",
1144
+ "entityType": "columns",
1145
+ "table": "brain_page_edges"
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "notNull": true,
1150
+ "autoincrement": false,
1151
+ "default": "(datetime('now'))",
1152
+ "generated": null,
1153
+ "name": "created_at",
1154
+ "entityType": "columns",
1155
+ "table": "brain_page_edges"
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "notNull": false,
1160
+ "autoincrement": false,
1161
+ "default": null,
1162
+ "generated": null,
1163
+ "name": "last_reinforced_at",
1164
+ "entityType": "columns",
1165
+ "table": "brain_page_edges"
1166
+ },
1167
+ {
1168
+ "type": "integer",
1169
+ "notNull": true,
1170
+ "autoincrement": false,
1171
+ "default": "0",
1172
+ "generated": null,
1173
+ "name": "reinforcement_count",
1174
+ "entityType": "columns",
1175
+ "table": "brain_page_edges"
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "notNull": true,
1180
+ "autoincrement": false,
1181
+ "default": "'static'",
1182
+ "generated": null,
1183
+ "name": "plasticity_class",
1184
+ "entityType": "columns",
1185
+ "table": "brain_page_edges"
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "notNull": false,
1190
+ "autoincrement": false,
1191
+ "default": null,
1192
+ "generated": null,
1193
+ "name": "last_depressed_at",
1194
+ "entityType": "columns",
1195
+ "table": "brain_page_edges"
1196
+ },
1197
+ {
1198
+ "type": "integer",
1199
+ "notNull": true,
1200
+ "autoincrement": false,
1201
+ "default": "0",
1202
+ "generated": null,
1203
+ "name": "depression_count",
1204
+ "entityType": "columns",
1205
+ "table": "brain_page_edges"
1206
+ },
1207
+ {
1208
+ "type": "real",
1209
+ "notNull": false,
1210
+ "autoincrement": false,
1211
+ "default": null,
1212
+ "generated": null,
1213
+ "name": "stability_score",
1214
+ "entityType": "columns",
1215
+ "table": "brain_page_edges"
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "notNull": false,
1220
+ "autoincrement": false,
1221
+ "default": null,
1222
+ "generated": null,
1223
+ "name": "id",
1224
+ "entityType": "columns",
1225
+ "table": "brain_page_nodes"
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "notNull": true,
1230
+ "autoincrement": false,
1231
+ "default": null,
1232
+ "generated": null,
1233
+ "name": "node_type",
1234
+ "entityType": "columns",
1235
+ "table": "brain_page_nodes"
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "notNull": true,
1240
+ "autoincrement": false,
1241
+ "default": null,
1242
+ "generated": null,
1243
+ "name": "label",
1244
+ "entityType": "columns",
1245
+ "table": "brain_page_nodes"
1246
+ },
1247
+ {
1248
+ "type": "real",
1249
+ "notNull": true,
1250
+ "autoincrement": false,
1251
+ "default": "0.5",
1252
+ "generated": null,
1253
+ "name": "quality_score",
1254
+ "entityType": "columns",
1255
+ "table": "brain_page_nodes"
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "notNull": false,
1260
+ "autoincrement": false,
1261
+ "default": null,
1262
+ "generated": null,
1263
+ "name": "content_hash",
1264
+ "entityType": "columns",
1265
+ "table": "brain_page_nodes"
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "notNull": true,
1270
+ "autoincrement": false,
1271
+ "default": "(datetime('now'))",
1272
+ "generated": null,
1273
+ "name": "last_activity_at",
1274
+ "entityType": "columns",
1275
+ "table": "brain_page_nodes"
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "notNull": false,
1280
+ "autoincrement": false,
1281
+ "default": null,
1282
+ "generated": null,
1283
+ "name": "metadata_json",
1284
+ "entityType": "columns",
1285
+ "table": "brain_page_nodes"
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "notNull": true,
1290
+ "autoincrement": false,
1291
+ "default": "(datetime('now'))",
1292
+ "generated": null,
1293
+ "name": "created_at",
1294
+ "entityType": "columns",
1295
+ "table": "brain_page_nodes"
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "notNull": false,
1300
+ "autoincrement": false,
1301
+ "default": null,
1302
+ "generated": null,
1303
+ "name": "updated_at",
1304
+ "entityType": "columns",
1305
+ "table": "brain_page_nodes"
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "notNull": false,
1310
+ "autoincrement": false,
1311
+ "default": null,
1312
+ "generated": null,
1313
+ "name": "id",
1314
+ "entityType": "columns",
1315
+ "table": "brain_patterns"
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "notNull": true,
1320
+ "autoincrement": false,
1321
+ "default": null,
1322
+ "generated": null,
1323
+ "name": "type",
1324
+ "entityType": "columns",
1325
+ "table": "brain_patterns"
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "notNull": true,
1330
+ "autoincrement": false,
1331
+ "default": null,
1332
+ "generated": null,
1333
+ "name": "pattern",
1334
+ "entityType": "columns",
1335
+ "table": "brain_patterns"
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "notNull": true,
1340
+ "autoincrement": false,
1341
+ "default": null,
1342
+ "generated": null,
1343
+ "name": "context",
1344
+ "entityType": "columns",
1345
+ "table": "brain_patterns"
1346
+ },
1347
+ {
1348
+ "type": "integer",
1349
+ "notNull": true,
1350
+ "autoincrement": false,
1351
+ "default": "1",
1352
+ "generated": null,
1353
+ "name": "frequency",
1354
+ "entityType": "columns",
1355
+ "table": "brain_patterns"
1356
+ },
1357
+ {
1358
+ "type": "real",
1359
+ "notNull": false,
1360
+ "autoincrement": false,
1361
+ "default": null,
1362
+ "generated": null,
1363
+ "name": "success_rate",
1364
+ "entityType": "columns",
1365
+ "table": "brain_patterns"
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "notNull": false,
1370
+ "autoincrement": false,
1371
+ "default": null,
1372
+ "generated": null,
1373
+ "name": "impact",
1374
+ "entityType": "columns",
1375
+ "table": "brain_patterns"
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "notNull": false,
1380
+ "autoincrement": false,
1381
+ "default": null,
1382
+ "generated": null,
1383
+ "name": "anti_pattern",
1384
+ "entityType": "columns",
1385
+ "table": "brain_patterns"
1386
+ },
1387
+ {
1388
+ "type": "text",
1389
+ "notNull": false,
1390
+ "autoincrement": false,
1391
+ "default": null,
1392
+ "generated": null,
1393
+ "name": "mitigation",
1394
+ "entityType": "columns",
1395
+ "table": "brain_patterns"
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "notNull": false,
1400
+ "autoincrement": false,
1401
+ "default": "'[]'",
1402
+ "generated": null,
1403
+ "name": "examples_json",
1404
+ "entityType": "columns",
1405
+ "table": "brain_patterns"
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "notNull": true,
1410
+ "autoincrement": false,
1411
+ "default": "(datetime('now'))",
1412
+ "generated": null,
1413
+ "name": "extracted_at",
1414
+ "entityType": "columns",
1415
+ "table": "brain_patterns"
1416
+ },
1417
+ {
1418
+ "type": "text",
1419
+ "notNull": false,
1420
+ "autoincrement": false,
1421
+ "default": null,
1422
+ "generated": null,
1423
+ "name": "updated_at",
1424
+ "entityType": "columns",
1425
+ "table": "brain_patterns"
1426
+ },
1427
+ {
1428
+ "type": "real",
1429
+ "notNull": false,
1430
+ "autoincrement": false,
1431
+ "default": null,
1432
+ "generated": null,
1433
+ "name": "quality_score",
1434
+ "entityType": "columns",
1435
+ "table": "brain_patterns"
1436
+ },
1437
+ {
1438
+ "type": "text",
1439
+ "notNull": false,
1440
+ "autoincrement": false,
1441
+ "default": "'medium'",
1442
+ "generated": null,
1443
+ "name": "memory_tier",
1444
+ "entityType": "columns",
1445
+ "table": "brain_patterns"
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "notNull": false,
1450
+ "autoincrement": false,
1451
+ "default": "'procedural'",
1452
+ "generated": null,
1453
+ "name": "memory_type",
1454
+ "entityType": "columns",
1455
+ "table": "brain_patterns"
1456
+ },
1457
+ {
1458
+ "type": "integer",
1459
+ "notNull": true,
1460
+ "autoincrement": false,
1461
+ "default": "false",
1462
+ "generated": null,
1463
+ "name": "verified",
1464
+ "entityType": "columns",
1465
+ "table": "brain_patterns"
1466
+ },
1467
+ {
1468
+ "type": "text",
1469
+ "notNull": true,
1470
+ "autoincrement": false,
1471
+ "default": "(datetime('now'))",
1472
+ "generated": null,
1473
+ "name": "valid_at",
1474
+ "entityType": "columns",
1475
+ "table": "brain_patterns"
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "notNull": false,
1480
+ "autoincrement": false,
1481
+ "default": null,
1482
+ "generated": null,
1483
+ "name": "invalid_at",
1484
+ "entityType": "columns",
1485
+ "table": "brain_patterns"
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "notNull": false,
1490
+ "autoincrement": false,
1491
+ "default": "'agent'",
1492
+ "generated": null,
1493
+ "name": "source_confidence",
1494
+ "entityType": "columns",
1495
+ "table": "brain_patterns"
1496
+ },
1497
+ {
1498
+ "type": "integer",
1499
+ "notNull": true,
1500
+ "autoincrement": false,
1501
+ "default": "0",
1502
+ "generated": null,
1503
+ "name": "citation_count",
1504
+ "entityType": "columns",
1505
+ "table": "brain_patterns"
1506
+ },
1507
+ {
1508
+ "type": "text",
1509
+ "notNull": false,
1510
+ "autoincrement": false,
1511
+ "default": null,
1512
+ "generated": null,
1513
+ "name": "tier_promoted_at",
1514
+ "entityType": "columns",
1515
+ "table": "brain_patterns"
1516
+ },
1517
+ {
1518
+ "type": "text",
1519
+ "notNull": false,
1520
+ "autoincrement": false,
1521
+ "default": null,
1522
+ "generated": null,
1523
+ "name": "tier_promotion_reason",
1524
+ "entityType": "columns",
1525
+ "table": "brain_patterns"
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "notNull": false,
1530
+ "autoincrement": false,
1531
+ "default": null,
1532
+ "generated": null,
1533
+ "name": "content_hash",
1534
+ "entityType": "columns",
1535
+ "table": "brain_patterns"
1536
+ },
1537
+ {
1538
+ "type": "integer",
1539
+ "notNull": false,
1540
+ "autoincrement": true,
1541
+ "default": null,
1542
+ "generated": null,
1543
+ "name": "id",
1544
+ "entityType": "columns",
1545
+ "table": "brain_plasticity_events"
1546
+ },
1547
+ {
1548
+ "type": "text",
1549
+ "notNull": true,
1550
+ "autoincrement": false,
1551
+ "default": null,
1552
+ "generated": null,
1553
+ "name": "source_node",
1554
+ "entityType": "columns",
1555
+ "table": "brain_plasticity_events"
1556
+ },
1557
+ {
1558
+ "type": "text",
1559
+ "notNull": true,
1560
+ "autoincrement": false,
1561
+ "default": null,
1562
+ "generated": null,
1563
+ "name": "target_node",
1564
+ "entityType": "columns",
1565
+ "table": "brain_plasticity_events"
1566
+ },
1567
+ {
1568
+ "type": "real",
1569
+ "notNull": true,
1570
+ "autoincrement": false,
1571
+ "default": null,
1572
+ "generated": null,
1573
+ "name": "delta_w",
1574
+ "entityType": "columns",
1575
+ "table": "brain_plasticity_events"
1576
+ },
1577
+ {
1578
+ "type": "text",
1579
+ "notNull": true,
1580
+ "autoincrement": false,
1581
+ "default": null,
1582
+ "generated": null,
1583
+ "name": "kind",
1584
+ "entityType": "columns",
1585
+ "table": "brain_plasticity_events"
1586
+ },
1587
+ {
1588
+ "type": "text",
1589
+ "notNull": true,
1590
+ "autoincrement": false,
1591
+ "default": "(datetime('now'))",
1592
+ "generated": null,
1593
+ "name": "timestamp",
1594
+ "entityType": "columns",
1595
+ "table": "brain_plasticity_events"
1596
+ },
1597
+ {
1598
+ "type": "text",
1599
+ "notNull": false,
1600
+ "autoincrement": false,
1601
+ "default": null,
1602
+ "generated": null,
1603
+ "name": "session_id",
1604
+ "entityType": "columns",
1605
+ "table": "brain_plasticity_events"
1606
+ },
1607
+ {
1608
+ "type": "real",
1609
+ "notNull": false,
1610
+ "autoincrement": false,
1611
+ "default": null,
1612
+ "generated": null,
1613
+ "name": "weight_before",
1614
+ "entityType": "columns",
1615
+ "table": "brain_plasticity_events"
1616
+ },
1617
+ {
1618
+ "type": "real",
1619
+ "notNull": false,
1620
+ "autoincrement": false,
1621
+ "default": null,
1622
+ "generated": null,
1623
+ "name": "weight_after",
1624
+ "entityType": "columns",
1625
+ "table": "brain_plasticity_events"
1626
+ },
1627
+ {
1628
+ "type": "integer",
1629
+ "notNull": false,
1630
+ "autoincrement": false,
1631
+ "default": null,
1632
+ "generated": null,
1633
+ "name": "retrieval_log_id",
1634
+ "entityType": "columns",
1635
+ "table": "brain_plasticity_events"
1636
+ },
1637
+ {
1638
+ "type": "real",
1639
+ "notNull": false,
1640
+ "autoincrement": false,
1641
+ "default": null,
1642
+ "generated": null,
1643
+ "name": "reward_signal",
1644
+ "entityType": "columns",
1645
+ "table": "brain_plasticity_events"
1646
+ },
1647
+ {
1648
+ "type": "integer",
1649
+ "notNull": false,
1650
+ "autoincrement": false,
1651
+ "default": null,
1652
+ "generated": null,
1653
+ "name": "delta_t_ms",
1654
+ "entityType": "columns",
1655
+ "table": "brain_plasticity_events"
1656
+ },
1657
+ {
1658
+ "type": "text",
1659
+ "notNull": false,
1660
+ "autoincrement": false,
1661
+ "default": null,
1662
+ "generated": null,
1663
+ "name": "id",
1664
+ "entityType": "columns",
1665
+ "table": "brain_promotion_log"
1666
+ },
1667
+ {
1668
+ "type": "text",
1669
+ "notNull": true,
1670
+ "autoincrement": false,
1671
+ "default": null,
1672
+ "generated": null,
1673
+ "name": "observation_id",
1674
+ "entityType": "columns",
1675
+ "table": "brain_promotion_log"
1676
+ },
1677
+ {
1678
+ "type": "text",
1679
+ "notNull": true,
1680
+ "autoincrement": false,
1681
+ "default": null,
1682
+ "generated": null,
1683
+ "name": "from_tier",
1684
+ "entityType": "columns",
1685
+ "table": "brain_promotion_log"
1686
+ },
1687
+ {
1688
+ "type": "text",
1689
+ "notNull": true,
1690
+ "autoincrement": false,
1691
+ "default": null,
1692
+ "generated": null,
1693
+ "name": "to_tier",
1694
+ "entityType": "columns",
1695
+ "table": "brain_promotion_log"
1696
+ },
1697
+ {
1698
+ "type": "real",
1699
+ "notNull": true,
1700
+ "autoincrement": false,
1701
+ "default": null,
1702
+ "generated": null,
1703
+ "name": "score",
1704
+ "entityType": "columns",
1705
+ "table": "brain_promotion_log"
1706
+ },
1707
+ {
1708
+ "type": "text",
1709
+ "notNull": true,
1710
+ "autoincrement": false,
1711
+ "default": "(datetime('now'))",
1712
+ "generated": null,
1713
+ "name": "decided_at",
1714
+ "entityType": "columns",
1715
+ "table": "brain_promotion_log"
1716
+ },
1717
+ {
1718
+ "type": "text",
1719
+ "notNull": true,
1720
+ "autoincrement": false,
1721
+ "default": "'composite-scorer'",
1722
+ "generated": null,
1723
+ "name": "decided_by",
1724
+ "entityType": "columns",
1725
+ "table": "brain_promotion_log"
1726
+ },
1727
+ {
1728
+ "type": "text",
1729
+ "notNull": false,
1730
+ "autoincrement": false,
1731
+ "default": null,
1732
+ "generated": null,
1733
+ "name": "rationale_json",
1734
+ "entityType": "columns",
1735
+ "table": "brain_promotion_log"
1736
+ },
1737
+ {
1738
+ "type": "integer",
1739
+ "notNull": false,
1740
+ "autoincrement": true,
1741
+ "default": null,
1742
+ "generated": null,
1743
+ "name": "id",
1744
+ "entityType": "columns",
1745
+ "table": "brain_retrieval_log"
1746
+ },
1747
+ {
1748
+ "type": "text",
1749
+ "notNull": true,
1750
+ "autoincrement": false,
1751
+ "default": null,
1752
+ "generated": null,
1753
+ "name": "query",
1754
+ "entityType": "columns",
1755
+ "table": "brain_retrieval_log"
1756
+ },
1757
+ {
1758
+ "type": "text",
1759
+ "notNull": true,
1760
+ "autoincrement": false,
1761
+ "default": null,
1762
+ "generated": null,
1763
+ "name": "entry_ids",
1764
+ "entityType": "columns",
1765
+ "table": "brain_retrieval_log"
1766
+ },
1767
+ {
1768
+ "type": "integer",
1769
+ "notNull": true,
1770
+ "autoincrement": false,
1771
+ "default": null,
1772
+ "generated": null,
1773
+ "name": "entry_count",
1774
+ "entityType": "columns",
1775
+ "table": "brain_retrieval_log"
1776
+ },
1777
+ {
1778
+ "type": "text",
1779
+ "notNull": true,
1780
+ "autoincrement": false,
1781
+ "default": null,
1782
+ "generated": null,
1783
+ "name": "source",
1784
+ "entityType": "columns",
1785
+ "table": "brain_retrieval_log"
1786
+ },
1787
+ {
1788
+ "type": "integer",
1789
+ "notNull": false,
1790
+ "autoincrement": false,
1791
+ "default": null,
1792
+ "generated": null,
1793
+ "name": "tokens_used",
1794
+ "entityType": "columns",
1795
+ "table": "brain_retrieval_log"
1796
+ },
1797
+ {
1798
+ "type": "text",
1799
+ "notNull": false,
1800
+ "autoincrement": false,
1801
+ "default": null,
1802
+ "generated": null,
1803
+ "name": "session_id",
1804
+ "entityType": "columns",
1805
+ "table": "brain_retrieval_log"
1806
+ },
1807
+ {
1808
+ "type": "text",
1809
+ "notNull": true,
1810
+ "autoincrement": false,
1811
+ "default": "(datetime('now'))",
1812
+ "generated": null,
1813
+ "name": "created_at",
1814
+ "entityType": "columns",
1815
+ "table": "brain_retrieval_log"
1816
+ },
1817
+ {
1818
+ "type": "integer",
1819
+ "notNull": false,
1820
+ "autoincrement": false,
1821
+ "default": null,
1822
+ "generated": null,
1823
+ "name": "retrieval_order",
1824
+ "entityType": "columns",
1825
+ "table": "brain_retrieval_log"
1826
+ },
1827
+ {
1828
+ "type": "integer",
1829
+ "notNull": false,
1830
+ "autoincrement": false,
1831
+ "default": null,
1832
+ "generated": null,
1833
+ "name": "delta_ms",
1834
+ "entityType": "columns",
1835
+ "table": "brain_retrieval_log"
1836
+ },
1837
+ {
1838
+ "type": "real",
1839
+ "notNull": false,
1840
+ "autoincrement": false,
1841
+ "default": null,
1842
+ "generated": null,
1843
+ "name": "reward_signal",
1844
+ "entityType": "columns",
1845
+ "table": "brain_retrieval_log"
1846
+ },
1847
+ {
1848
+ "type": "text",
1849
+ "notNull": false,
1850
+ "autoincrement": false,
1851
+ "default": null,
1852
+ "generated": null,
1853
+ "name": "key",
1854
+ "entityType": "columns",
1855
+ "table": "brain_schema_meta"
1856
+ },
1857
+ {
1858
+ "type": "text",
1859
+ "notNull": true,
1860
+ "autoincrement": false,
1861
+ "default": null,
1862
+ "generated": null,
1863
+ "name": "value",
1864
+ "entityType": "columns",
1865
+ "table": "brain_schema_meta"
1866
+ },
1867
+ {
1868
+ "type": "text",
1869
+ "notNull": false,
1870
+ "autoincrement": false,
1871
+ "default": null,
1872
+ "generated": null,
1873
+ "name": "id",
1874
+ "entityType": "columns",
1875
+ "table": "brain_sticky_notes"
1876
+ },
1877
+ {
1878
+ "type": "text",
1879
+ "notNull": true,
1880
+ "autoincrement": false,
1881
+ "default": null,
1882
+ "generated": null,
1883
+ "name": "content",
1884
+ "entityType": "columns",
1885
+ "table": "brain_sticky_notes"
1886
+ },
1887
+ {
1888
+ "type": "text",
1889
+ "notNull": true,
1890
+ "autoincrement": false,
1891
+ "default": "(datetime('now'))",
1892
+ "generated": null,
1893
+ "name": "created_at",
1894
+ "entityType": "columns",
1895
+ "table": "brain_sticky_notes"
1896
+ },
1897
+ {
1898
+ "type": "text",
1899
+ "notNull": false,
1900
+ "autoincrement": false,
1901
+ "default": null,
1902
+ "generated": null,
1903
+ "name": "updated_at",
1904
+ "entityType": "columns",
1905
+ "table": "brain_sticky_notes"
1906
+ },
1907
+ {
1908
+ "type": "text",
1909
+ "notNull": false,
1910
+ "autoincrement": false,
1911
+ "default": null,
1912
+ "generated": null,
1913
+ "name": "tags_json",
1914
+ "entityType": "columns",
1915
+ "table": "brain_sticky_notes"
1916
+ },
1917
+ {
1918
+ "type": "text",
1919
+ "notNull": true,
1920
+ "autoincrement": false,
1921
+ "default": "'active'",
1922
+ "generated": null,
1923
+ "name": "status",
1924
+ "entityType": "columns",
1925
+ "table": "brain_sticky_notes"
1926
+ },
1927
+ {
1928
+ "type": "text",
1929
+ "notNull": false,
1930
+ "autoincrement": false,
1931
+ "default": null,
1932
+ "generated": null,
1933
+ "name": "converted_to_json",
1934
+ "entityType": "columns",
1935
+ "table": "brain_sticky_notes"
1936
+ },
1937
+ {
1938
+ "type": "text",
1939
+ "notNull": false,
1940
+ "autoincrement": false,
1941
+ "default": null,
1942
+ "generated": null,
1943
+ "name": "color",
1944
+ "entityType": "columns",
1945
+ "table": "brain_sticky_notes"
1946
+ },
1947
+ {
1948
+ "type": "text",
1949
+ "notNull": false,
1950
+ "autoincrement": false,
1951
+ "default": null,
1952
+ "generated": null,
1953
+ "name": "priority",
1954
+ "entityType": "columns",
1955
+ "table": "brain_sticky_notes"
1956
+ },
1957
+ {
1958
+ "type": "text",
1959
+ "notNull": false,
1960
+ "autoincrement": false,
1961
+ "default": "'sticky-note'",
1962
+ "generated": null,
1963
+ "name": "source_type",
1964
+ "entityType": "columns",
1965
+ "table": "brain_sticky_notes"
1966
+ },
1967
+ {
1968
+ "type": "text",
1969
+ "notNull": false,
1970
+ "autoincrement": false,
1971
+ "default": null,
1972
+ "generated": null,
1973
+ "name": "id",
1974
+ "entityType": "columns",
1975
+ "table": "brain_transcript_events"
1976
+ },
1977
+ {
1978
+ "type": "text",
1979
+ "notNull": true,
1980
+ "autoincrement": false,
1981
+ "default": null,
1982
+ "generated": null,
1983
+ "name": "session_id",
1984
+ "entityType": "columns",
1985
+ "table": "brain_transcript_events"
1986
+ },
1987
+ {
1988
+ "type": "integer",
1989
+ "notNull": true,
1990
+ "autoincrement": false,
1991
+ "default": null,
1992
+ "generated": null,
1993
+ "name": "seq",
1994
+ "entityType": "columns",
1995
+ "table": "brain_transcript_events"
1996
+ },
1997
+ {
1998
+ "type": "text",
1999
+ "notNull": true,
2000
+ "autoincrement": false,
2001
+ "default": null,
2002
+ "generated": null,
2003
+ "name": "role",
2004
+ "entityType": "columns",
2005
+ "table": "brain_transcript_events"
2006
+ },
2007
+ {
2008
+ "type": "text",
2009
+ "notNull": true,
2010
+ "autoincrement": false,
2011
+ "default": null,
2012
+ "generated": null,
2013
+ "name": "block_type",
2014
+ "entityType": "columns",
2015
+ "table": "brain_transcript_events"
2016
+ },
2017
+ {
2018
+ "type": "text",
2019
+ "notNull": true,
2020
+ "autoincrement": false,
2021
+ "default": null,
2022
+ "generated": null,
2023
+ "name": "content",
2024
+ "entityType": "columns",
2025
+ "table": "brain_transcript_events"
2026
+ },
2027
+ {
2028
+ "type": "integer",
2029
+ "notNull": false,
2030
+ "autoincrement": false,
2031
+ "default": null,
2032
+ "generated": null,
2033
+ "name": "tokens",
2034
+ "entityType": "columns",
2035
+ "table": "brain_transcript_events"
2036
+ },
2037
+ {
2038
+ "type": "text",
2039
+ "notNull": false,
2040
+ "autoincrement": false,
2041
+ "default": null,
2042
+ "generated": null,
2043
+ "name": "redacted_at",
2044
+ "entityType": "columns",
2045
+ "table": "brain_transcript_events"
2046
+ },
2047
+ {
2048
+ "type": "text",
2049
+ "notNull": true,
2050
+ "autoincrement": false,
2051
+ "default": "(datetime('now'))",
2052
+ "generated": null,
2053
+ "name": "created_at",
2054
+ "entityType": "columns",
2055
+ "table": "brain_transcript_events"
2056
+ },
2057
+ {
2058
+ "type": "integer",
2059
+ "notNull": false,
2060
+ "autoincrement": true,
2061
+ "default": null,
2062
+ "generated": null,
2063
+ "name": "id",
2064
+ "entityType": "columns",
2065
+ "table": "brain_weight_history"
2066
+ },
2067
+ {
2068
+ "type": "text",
2069
+ "notNull": true,
2070
+ "autoincrement": false,
2071
+ "default": null,
2072
+ "generated": null,
2073
+ "name": "edge_from_id",
2074
+ "entityType": "columns",
2075
+ "table": "brain_weight_history"
2076
+ },
2077
+ {
2078
+ "type": "text",
2079
+ "notNull": true,
2080
+ "autoincrement": false,
2081
+ "default": null,
2082
+ "generated": null,
2083
+ "name": "edge_to_id",
2084
+ "entityType": "columns",
2085
+ "table": "brain_weight_history"
2086
+ },
2087
+ {
2088
+ "type": "text",
2089
+ "notNull": true,
2090
+ "autoincrement": false,
2091
+ "default": null,
2092
+ "generated": null,
2093
+ "name": "edge_type",
2094
+ "entityType": "columns",
2095
+ "table": "brain_weight_history"
2096
+ },
2097
+ {
2098
+ "type": "real",
2099
+ "notNull": false,
2100
+ "autoincrement": false,
2101
+ "default": null,
2102
+ "generated": null,
2103
+ "name": "weight_before",
2104
+ "entityType": "columns",
2105
+ "table": "brain_weight_history"
2106
+ },
2107
+ {
2108
+ "type": "real",
2109
+ "notNull": true,
2110
+ "autoincrement": false,
2111
+ "default": null,
2112
+ "generated": null,
2113
+ "name": "weight_after",
2114
+ "entityType": "columns",
2115
+ "table": "brain_weight_history"
2116
+ },
2117
+ {
2118
+ "type": "real",
2119
+ "notNull": true,
2120
+ "autoincrement": false,
2121
+ "default": null,
2122
+ "generated": null,
2123
+ "name": "delta_weight",
2124
+ "entityType": "columns",
2125
+ "table": "brain_weight_history"
2126
+ },
2127
+ {
2128
+ "type": "text",
2129
+ "notNull": true,
2130
+ "autoincrement": false,
2131
+ "default": null,
2132
+ "generated": null,
2133
+ "name": "event_kind",
2134
+ "entityType": "columns",
2135
+ "table": "brain_weight_history"
2136
+ },
2137
+ {
2138
+ "type": "integer",
2139
+ "notNull": false,
2140
+ "autoincrement": false,
2141
+ "default": null,
2142
+ "generated": null,
2143
+ "name": "source_plasticity_event_id",
2144
+ "entityType": "columns",
2145
+ "table": "brain_weight_history"
2146
+ },
2147
+ {
2148
+ "type": "integer",
2149
+ "notNull": false,
2150
+ "autoincrement": false,
2151
+ "default": null,
2152
+ "generated": null,
2153
+ "name": "retrieval_log_id",
2154
+ "entityType": "columns",
2155
+ "table": "brain_weight_history"
2156
+ },
2157
+ {
2158
+ "type": "real",
2159
+ "notNull": false,
2160
+ "autoincrement": false,
2161
+ "default": null,
2162
+ "generated": null,
2163
+ "name": "reward_signal",
2164
+ "entityType": "columns",
2165
+ "table": "brain_weight_history"
2166
+ },
2167
+ {
2168
+ "type": "text",
2169
+ "notNull": true,
2170
+ "autoincrement": false,
2171
+ "default": "(datetime('now'))",
2172
+ "generated": null,
2173
+ "name": "changed_at",
2174
+ "entityType": "columns",
2175
+ "table": "brain_weight_history"
2176
+ },
2177
+ {
2178
+ "columns": [
2179
+ "memory_type",
2180
+ "memory_id",
2181
+ "task_id",
2182
+ "link_type"
2183
+ ],
2184
+ "nameExplicit": false,
2185
+ "name": "brain_memory_links_pk",
2186
+ "entityType": "pks",
2187
+ "table": "brain_memory_links"
2188
+ },
2189
+ {
2190
+ "columns": [
2191
+ "from_id",
2192
+ "to_id",
2193
+ "edge_type"
2194
+ ],
2195
+ "nameExplicit": false,
2196
+ "name": "brain_page_edges_pk",
2197
+ "entityType": "pks",
2198
+ "table": "brain_page_edges"
2199
+ },
2200
+ {
2201
+ "columns": [
2202
+ "id"
2203
+ ],
2204
+ "nameExplicit": false,
2205
+ "name": "brain_backfill_runs_pk",
2206
+ "table": "brain_backfill_runs",
2207
+ "entityType": "pks"
2208
+ },
2209
+ {
2210
+ "columns": [
2211
+ "id"
2212
+ ],
2213
+ "nameExplicit": false,
2214
+ "name": "brain_consolidation_events_pk",
2215
+ "table": "brain_consolidation_events",
2216
+ "entityType": "pks"
2217
+ },
2218
+ {
2219
+ "columns": [
2220
+ "id"
2221
+ ],
2222
+ "nameExplicit": false,
2223
+ "name": "brain_decisions_pk",
2224
+ "table": "brain_decisions",
2225
+ "entityType": "pks"
2226
+ },
2227
+ {
2228
+ "columns": [
2229
+ "id"
2230
+ ],
2231
+ "nameExplicit": false,
2232
+ "name": "brain_learnings_pk",
2233
+ "table": "brain_learnings",
2234
+ "entityType": "pks"
2235
+ },
2236
+ {
2237
+ "columns": [
2238
+ "id"
2239
+ ],
2240
+ "nameExplicit": false,
2241
+ "name": "brain_modulators_pk",
2242
+ "table": "brain_modulators",
2243
+ "entityType": "pks"
2244
+ },
2245
+ {
2246
+ "columns": [
2247
+ "id"
2248
+ ],
2249
+ "nameExplicit": false,
2250
+ "name": "brain_observations_pk",
2251
+ "table": "brain_observations",
2252
+ "entityType": "pks"
2253
+ },
2254
+ {
2255
+ "columns": [
2256
+ "id"
2257
+ ],
2258
+ "nameExplicit": false,
2259
+ "name": "brain_page_nodes_pk",
2260
+ "table": "brain_page_nodes",
2261
+ "entityType": "pks"
2262
+ },
2263
+ {
2264
+ "columns": [
2265
+ "id"
2266
+ ],
2267
+ "nameExplicit": false,
2268
+ "name": "brain_patterns_pk",
2269
+ "table": "brain_patterns",
2270
+ "entityType": "pks"
2271
+ },
2272
+ {
2273
+ "columns": [
2274
+ "id"
2275
+ ],
2276
+ "nameExplicit": false,
2277
+ "name": "brain_plasticity_events_pk",
2278
+ "table": "brain_plasticity_events",
2279
+ "entityType": "pks"
2280
+ },
2281
+ {
2282
+ "columns": [
2283
+ "id"
2284
+ ],
2285
+ "nameExplicit": false,
2286
+ "name": "brain_promotion_log_pk",
2287
+ "table": "brain_promotion_log",
2288
+ "entityType": "pks"
2289
+ },
2290
+ {
2291
+ "columns": [
2292
+ "id"
2293
+ ],
2294
+ "nameExplicit": false,
2295
+ "name": "brain_retrieval_log_pk",
2296
+ "table": "brain_retrieval_log",
2297
+ "entityType": "pks"
2298
+ },
2299
+ {
2300
+ "columns": [
2301
+ "key"
2302
+ ],
2303
+ "nameExplicit": false,
2304
+ "name": "brain_schema_meta_pk",
2305
+ "table": "brain_schema_meta",
2306
+ "entityType": "pks"
2307
+ },
2308
+ {
2309
+ "columns": [
2310
+ "id"
2311
+ ],
2312
+ "nameExplicit": false,
2313
+ "name": "brain_sticky_notes_pk",
2314
+ "table": "brain_sticky_notes",
2315
+ "entityType": "pks"
2316
+ },
2317
+ {
2318
+ "columns": [
2319
+ "id"
2320
+ ],
2321
+ "nameExplicit": false,
2322
+ "name": "brain_transcript_events_pk",
2323
+ "table": "brain_transcript_events",
2324
+ "entityType": "pks"
2325
+ },
2326
+ {
2327
+ "columns": [
2328
+ "id"
2329
+ ],
2330
+ "nameExplicit": false,
2331
+ "name": "brain_weight_history_pk",
2332
+ "table": "brain_weight_history",
2333
+ "entityType": "pks"
2334
+ },
2335
+ {
2336
+ "columns": [
2337
+ {
2338
+ "value": "status",
2339
+ "isExpression": false
2340
+ }
2341
+ ],
2342
+ "isUnique": false,
2343
+ "where": null,
2344
+ "origin": "manual",
2345
+ "name": "idx_backfill_runs_status",
2346
+ "entityType": "indexes",
2347
+ "table": "brain_backfill_runs"
2348
+ },
2349
+ {
2350
+ "columns": [
2351
+ {
2352
+ "value": "kind",
2353
+ "isExpression": false
2354
+ }
2355
+ ],
2356
+ "isUnique": false,
2357
+ "where": null,
2358
+ "origin": "manual",
2359
+ "name": "idx_backfill_runs_kind",
2360
+ "entityType": "indexes",
2361
+ "table": "brain_backfill_runs"
2362
+ },
2363
+ {
2364
+ "columns": [
2365
+ {
2366
+ "value": "created_at",
2367
+ "isExpression": false
2368
+ }
2369
+ ],
2370
+ "isUnique": false,
2371
+ "where": null,
2372
+ "origin": "manual",
2373
+ "name": "idx_backfill_runs_created_at",
2374
+ "entityType": "indexes",
2375
+ "table": "brain_backfill_runs"
2376
+ },
2377
+ {
2378
+ "columns": [
2379
+ {
2380
+ "value": "started_at",
2381
+ "isExpression": false
2382
+ }
2383
+ ],
2384
+ "isUnique": false,
2385
+ "where": null,
2386
+ "origin": "manual",
2387
+ "name": "idx_consolidation_events_started_at",
2388
+ "entityType": "indexes",
2389
+ "table": "brain_consolidation_events"
2390
+ },
2391
+ {
2392
+ "columns": [
2393
+ {
2394
+ "value": "trigger",
2395
+ "isExpression": false
2396
+ }
2397
+ ],
2398
+ "isUnique": false,
2399
+ "where": null,
2400
+ "origin": "manual",
2401
+ "name": "idx_consolidation_events_trigger",
2402
+ "entityType": "indexes",
2403
+ "table": "brain_consolidation_events"
2404
+ },
2405
+ {
2406
+ "columns": [
2407
+ {
2408
+ "value": "session_id",
2409
+ "isExpression": false
2410
+ }
2411
+ ],
2412
+ "isUnique": false,
2413
+ "where": null,
2414
+ "origin": "manual",
2415
+ "name": "idx_consolidation_events_session",
2416
+ "entityType": "indexes",
2417
+ "table": "brain_consolidation_events"
2418
+ },
2419
+ {
2420
+ "columns": [
2421
+ {
2422
+ "value": "type",
2423
+ "isExpression": false
2424
+ }
2425
+ ],
2426
+ "isUnique": false,
2427
+ "where": null,
2428
+ "origin": "manual",
2429
+ "name": "idx_brain_decisions_type",
2430
+ "entityType": "indexes",
2431
+ "table": "brain_decisions"
2432
+ },
2433
+ {
2434
+ "columns": [
2435
+ {
2436
+ "value": "confidence",
2437
+ "isExpression": false
2438
+ }
2439
+ ],
2440
+ "isUnique": false,
2441
+ "where": null,
2442
+ "origin": "manual",
2443
+ "name": "idx_brain_decisions_confidence",
2444
+ "entityType": "indexes",
2445
+ "table": "brain_decisions"
2446
+ },
2447
+ {
2448
+ "columns": [
2449
+ {
2450
+ "value": "outcome",
2451
+ "isExpression": false
2452
+ }
2453
+ ],
2454
+ "isUnique": false,
2455
+ "where": null,
2456
+ "origin": "manual",
2457
+ "name": "idx_brain_decisions_outcome",
2458
+ "entityType": "indexes",
2459
+ "table": "brain_decisions"
2460
+ },
2461
+ {
2462
+ "columns": [
2463
+ {
2464
+ "value": "context_epic_id",
2465
+ "isExpression": false
2466
+ }
2467
+ ],
2468
+ "isUnique": false,
2469
+ "where": null,
2470
+ "origin": "manual",
2471
+ "name": "idx_brain_decisions_context_epic",
2472
+ "entityType": "indexes",
2473
+ "table": "brain_decisions"
2474
+ },
2475
+ {
2476
+ "columns": [
2477
+ {
2478
+ "value": "context_task_id",
2479
+ "isExpression": false
2480
+ }
2481
+ ],
2482
+ "isUnique": false,
2483
+ "where": null,
2484
+ "origin": "manual",
2485
+ "name": "idx_brain_decisions_context_task",
2486
+ "entityType": "indexes",
2487
+ "table": "brain_decisions"
2488
+ },
2489
+ {
2490
+ "columns": [
2491
+ {
2492
+ "value": "quality_score",
2493
+ "isExpression": false
2494
+ }
2495
+ ],
2496
+ "isUnique": false,
2497
+ "where": null,
2498
+ "origin": "manual",
2499
+ "name": "idx_brain_decisions_quality",
2500
+ "entityType": "indexes",
2501
+ "table": "brain_decisions"
2502
+ },
2503
+ {
2504
+ "columns": [
2505
+ {
2506
+ "value": "memory_tier",
2507
+ "isExpression": false
2508
+ }
2509
+ ],
2510
+ "isUnique": false,
2511
+ "where": null,
2512
+ "origin": "manual",
2513
+ "name": "idx_brain_decisions_tier",
2514
+ "entityType": "indexes",
2515
+ "table": "brain_decisions"
2516
+ },
2517
+ {
2518
+ "columns": [
2519
+ {
2520
+ "value": "memory_type",
2521
+ "isExpression": false
2522
+ }
2523
+ ],
2524
+ "isUnique": false,
2525
+ "where": null,
2526
+ "origin": "manual",
2527
+ "name": "idx_brain_decisions_mem_type",
2528
+ "entityType": "indexes",
2529
+ "table": "brain_decisions"
2530
+ },
2531
+ {
2532
+ "columns": [
2533
+ {
2534
+ "value": "verified",
2535
+ "isExpression": false
2536
+ }
2537
+ ],
2538
+ "isUnique": false,
2539
+ "where": null,
2540
+ "origin": "manual",
2541
+ "name": "idx_brain_decisions_verified",
2542
+ "entityType": "indexes",
2543
+ "table": "brain_decisions"
2544
+ },
2545
+ {
2546
+ "columns": [
2547
+ {
2548
+ "value": "valid_at",
2549
+ "isExpression": false
2550
+ }
2551
+ ],
2552
+ "isUnique": false,
2553
+ "where": null,
2554
+ "origin": "manual",
2555
+ "name": "idx_brain_decisions_valid_at",
2556
+ "entityType": "indexes",
2557
+ "table": "brain_decisions"
2558
+ },
2559
+ {
2560
+ "columns": [
2561
+ {
2562
+ "value": "source_confidence",
2563
+ "isExpression": false
2564
+ }
2565
+ ],
2566
+ "isUnique": false,
2567
+ "where": null,
2568
+ "origin": "manual",
2569
+ "name": "idx_brain_decisions_source_conf",
2570
+ "entityType": "indexes",
2571
+ "table": "brain_decisions"
2572
+ },
2573
+ {
2574
+ "columns": [
2575
+ {
2576
+ "value": "tier_promoted_at",
2577
+ "isExpression": false
2578
+ }
2579
+ ],
2580
+ "isUnique": false,
2581
+ "where": null,
2582
+ "origin": "manual",
2583
+ "name": "idx_brain_decisions_tier_promoted_at",
2584
+ "entityType": "indexes",
2585
+ "table": "brain_decisions"
2586
+ },
2587
+ {
2588
+ "columns": [
2589
+ {
2590
+ "value": "content_hash",
2591
+ "isExpression": false
2592
+ }
2593
+ ],
2594
+ "isUnique": false,
2595
+ "where": null,
2596
+ "origin": "manual",
2597
+ "name": "idx_brain_decisions_content_hash",
2598
+ "entityType": "indexes",
2599
+ "table": "brain_decisions"
2600
+ },
2601
+ {
2602
+ "columns": [
2603
+ {
2604
+ "value": "confidence",
2605
+ "isExpression": false
2606
+ }
2607
+ ],
2608
+ "isUnique": false,
2609
+ "where": null,
2610
+ "origin": "manual",
2611
+ "name": "idx_brain_learnings_confidence",
2612
+ "entityType": "indexes",
2613
+ "table": "brain_learnings"
2614
+ },
2615
+ {
2616
+ "columns": [
2617
+ {
2618
+ "value": "actionable",
2619
+ "isExpression": false
2620
+ }
2621
+ ],
2622
+ "isUnique": false,
2623
+ "where": null,
2624
+ "origin": "manual",
2625
+ "name": "idx_brain_learnings_actionable",
2626
+ "entityType": "indexes",
2627
+ "table": "brain_learnings"
2628
+ },
2629
+ {
2630
+ "columns": [
2631
+ {
2632
+ "value": "quality_score",
2633
+ "isExpression": false
2634
+ }
2635
+ ],
2636
+ "isUnique": false,
2637
+ "where": null,
2638
+ "origin": "manual",
2639
+ "name": "idx_brain_learnings_quality",
2640
+ "entityType": "indexes",
2641
+ "table": "brain_learnings"
2642
+ },
2643
+ {
2644
+ "columns": [
2645
+ {
2646
+ "value": "memory_tier",
2647
+ "isExpression": false
2648
+ }
2649
+ ],
2650
+ "isUnique": false,
2651
+ "where": null,
2652
+ "origin": "manual",
2653
+ "name": "idx_brain_learnings_tier",
2654
+ "entityType": "indexes",
2655
+ "table": "brain_learnings"
2656
+ },
2657
+ {
2658
+ "columns": [
2659
+ {
2660
+ "value": "memory_type",
2661
+ "isExpression": false
2662
+ }
2663
+ ],
2664
+ "isUnique": false,
2665
+ "where": null,
2666
+ "origin": "manual",
2667
+ "name": "idx_brain_learnings_mem_type",
2668
+ "entityType": "indexes",
2669
+ "table": "brain_learnings"
2670
+ },
2671
+ {
2672
+ "columns": [
2673
+ {
2674
+ "value": "verified",
2675
+ "isExpression": false
2676
+ }
2677
+ ],
2678
+ "isUnique": false,
2679
+ "where": null,
2680
+ "origin": "manual",
2681
+ "name": "idx_brain_learnings_verified",
2682
+ "entityType": "indexes",
2683
+ "table": "brain_learnings"
2684
+ },
2685
+ {
2686
+ "columns": [
2687
+ {
2688
+ "value": "valid_at",
2689
+ "isExpression": false
2690
+ }
2691
+ ],
2692
+ "isUnique": false,
2693
+ "where": null,
2694
+ "origin": "manual",
2695
+ "name": "idx_brain_learnings_valid_at",
2696
+ "entityType": "indexes",
2697
+ "table": "brain_learnings"
2698
+ },
2699
+ {
2700
+ "columns": [
2701
+ {
2702
+ "value": "invalid_at",
2703
+ "isExpression": false
2704
+ }
2705
+ ],
2706
+ "isUnique": false,
2707
+ "where": null,
2708
+ "origin": "manual",
2709
+ "name": "idx_brain_learnings_invalid",
2710
+ "entityType": "indexes",
2711
+ "table": "brain_learnings"
2712
+ },
2713
+ {
2714
+ "columns": [
2715
+ {
2716
+ "value": "source_confidence",
2717
+ "isExpression": false
2718
+ }
2719
+ ],
2720
+ "isUnique": false,
2721
+ "where": null,
2722
+ "origin": "manual",
2723
+ "name": "idx_brain_learnings_source_conf",
2724
+ "entityType": "indexes",
2725
+ "table": "brain_learnings"
2726
+ },
2727
+ {
2728
+ "columns": [
2729
+ {
2730
+ "value": "tier_promoted_at",
2731
+ "isExpression": false
2732
+ }
2733
+ ],
2734
+ "isUnique": false,
2735
+ "where": null,
2736
+ "origin": "manual",
2737
+ "name": "idx_brain_learnings_tier_promoted_at",
2738
+ "entityType": "indexes",
2739
+ "table": "brain_learnings"
2740
+ },
2741
+ {
2742
+ "columns": [
2743
+ {
2744
+ "value": "content_hash",
2745
+ "isExpression": false
2746
+ }
2747
+ ],
2748
+ "isUnique": false,
2749
+ "where": null,
2750
+ "origin": "manual",
2751
+ "name": "idx_brain_learnings_content_hash",
2752
+ "entityType": "indexes",
2753
+ "table": "brain_learnings"
2754
+ },
2755
+ {
2756
+ "columns": [
2757
+ {
2758
+ "value": "task_id",
2759
+ "isExpression": false
2760
+ }
2761
+ ],
2762
+ "isUnique": false,
2763
+ "where": null,
2764
+ "origin": "manual",
2765
+ "name": "idx_brain_links_task",
2766
+ "entityType": "indexes",
2767
+ "table": "brain_memory_links"
2768
+ },
2769
+ {
2770
+ "columns": [
2771
+ {
2772
+ "value": "memory_type",
2773
+ "isExpression": false
2774
+ },
2775
+ {
2776
+ "value": "memory_id",
2777
+ "isExpression": false
2778
+ }
2779
+ ],
2780
+ "isUnique": false,
2781
+ "where": null,
2782
+ "origin": "manual",
2783
+ "name": "idx_brain_links_memory",
2784
+ "entityType": "indexes",
2785
+ "table": "brain_memory_links"
2786
+ },
2787
+ {
2788
+ "columns": [
2789
+ {
2790
+ "value": "modulator_type",
2791
+ "isExpression": false
2792
+ }
2793
+ ],
2794
+ "isUnique": false,
2795
+ "where": null,
2796
+ "origin": "manual",
2797
+ "name": "idx_modulators_type",
2798
+ "entityType": "indexes",
2799
+ "table": "brain_modulators"
2800
+ },
2801
+ {
2802
+ "columns": [
2803
+ {
2804
+ "value": "session_id",
2805
+ "isExpression": false
2806
+ }
2807
+ ],
2808
+ "isUnique": false,
2809
+ "where": null,
2810
+ "origin": "manual",
2811
+ "name": "idx_modulators_session",
2812
+ "entityType": "indexes",
2813
+ "table": "brain_modulators"
2814
+ },
2815
+ {
2816
+ "columns": [
2817
+ {
2818
+ "value": "created_at",
2819
+ "isExpression": false
2820
+ }
2821
+ ],
2822
+ "isUnique": false,
2823
+ "where": null,
2824
+ "origin": "manual",
2825
+ "name": "idx_modulators_created_at",
2826
+ "entityType": "indexes",
2827
+ "table": "brain_modulators"
2828
+ },
2829
+ {
2830
+ "columns": [
2831
+ {
2832
+ "value": "source_event_id",
2833
+ "isExpression": false
2834
+ }
2835
+ ],
2836
+ "isUnique": false,
2837
+ "where": null,
2838
+ "origin": "manual",
2839
+ "name": "idx_modulators_source_event",
2840
+ "entityType": "indexes",
2841
+ "table": "brain_modulators"
2842
+ },
2843
+ {
2844
+ "columns": [
2845
+ {
2846
+ "value": "valence",
2847
+ "isExpression": false
2848
+ }
2849
+ ],
2850
+ "isUnique": false,
2851
+ "where": null,
2852
+ "origin": "manual",
2853
+ "name": "idx_modulators_valence",
2854
+ "entityType": "indexes",
2855
+ "table": "brain_modulators"
2856
+ },
2857
+ {
2858
+ "columns": [
2859
+ {
2860
+ "value": "type",
2861
+ "isExpression": false
2862
+ }
2863
+ ],
2864
+ "isUnique": false,
2865
+ "where": null,
2866
+ "origin": "manual",
2867
+ "name": "idx_brain_observations_type",
2868
+ "entityType": "indexes",
2869
+ "table": "brain_observations"
2870
+ },
2871
+ {
2872
+ "columns": [
2873
+ {
2874
+ "value": "project",
2875
+ "isExpression": false
2876
+ }
2877
+ ],
2878
+ "isUnique": false,
2879
+ "where": null,
2880
+ "origin": "manual",
2881
+ "name": "idx_brain_observations_project",
2882
+ "entityType": "indexes",
2883
+ "table": "brain_observations"
2884
+ },
2885
+ {
2886
+ "columns": [
2887
+ {
2888
+ "value": "created_at",
2889
+ "isExpression": false
2890
+ }
2891
+ ],
2892
+ "isUnique": false,
2893
+ "where": null,
2894
+ "origin": "manual",
2895
+ "name": "idx_brain_observations_created_at",
2896
+ "entityType": "indexes",
2897
+ "table": "brain_observations"
2898
+ },
2899
+ {
2900
+ "columns": [
2901
+ {
2902
+ "value": "source_type",
2903
+ "isExpression": false
2904
+ }
2905
+ ],
2906
+ "isUnique": false,
2907
+ "where": null,
2908
+ "origin": "manual",
2909
+ "name": "idx_brain_observations_source_type",
2910
+ "entityType": "indexes",
2911
+ "table": "brain_observations"
2912
+ },
2913
+ {
2914
+ "columns": [
2915
+ {
2916
+ "value": "source_session_id",
2917
+ "isExpression": false
2918
+ }
2919
+ ],
2920
+ "isUnique": false,
2921
+ "where": null,
2922
+ "origin": "manual",
2923
+ "name": "idx_brain_observations_source_session",
2924
+ "entityType": "indexes",
2925
+ "table": "brain_observations"
2926
+ },
2927
+ {
2928
+ "columns": [
2929
+ {
2930
+ "value": "content_hash",
2931
+ "isExpression": false
2932
+ },
2933
+ {
2934
+ "value": "created_at",
2935
+ "isExpression": false
2936
+ }
2937
+ ],
2938
+ "isUnique": false,
2939
+ "where": null,
2940
+ "origin": "manual",
2941
+ "name": "idx_brain_observations_content_hash_created_at",
2942
+ "entityType": "indexes",
2943
+ "table": "brain_observations"
2944
+ },
2945
+ {
2946
+ "columns": [
2947
+ {
2948
+ "value": "type",
2949
+ "isExpression": false
2950
+ },
2951
+ {
2952
+ "value": "project",
2953
+ "isExpression": false
2954
+ }
2955
+ ],
2956
+ "isUnique": false,
2957
+ "where": null,
2958
+ "origin": "manual",
2959
+ "name": "idx_brain_observations_type_project",
2960
+ "entityType": "indexes",
2961
+ "table": "brain_observations"
2962
+ },
2963
+ {
2964
+ "columns": [
2965
+ {
2966
+ "value": "agent",
2967
+ "isExpression": false
2968
+ }
2969
+ ],
2970
+ "isUnique": false,
2971
+ "where": null,
2972
+ "origin": "manual",
2973
+ "name": "idx_brain_observations_agent",
2974
+ "entityType": "indexes",
2975
+ "table": "brain_observations"
2976
+ },
2977
+ {
2978
+ "columns": [
2979
+ {
2980
+ "value": "quality_score",
2981
+ "isExpression": false
2982
+ }
2983
+ ],
2984
+ "isUnique": false,
2985
+ "where": null,
2986
+ "origin": "manual",
2987
+ "name": "idx_brain_observations_quality",
2988
+ "entityType": "indexes",
2989
+ "table": "brain_observations"
2990
+ },
2991
+ {
2992
+ "columns": [
2993
+ {
2994
+ "value": "memory_tier",
2995
+ "isExpression": false
2996
+ }
2997
+ ],
2998
+ "isUnique": false,
2999
+ "where": null,
3000
+ "origin": "manual",
3001
+ "name": "idx_brain_observations_tier",
3002
+ "entityType": "indexes",
3003
+ "table": "brain_observations"
3004
+ },
3005
+ {
3006
+ "columns": [
3007
+ {
3008
+ "value": "memory_type",
3009
+ "isExpression": false
3010
+ }
3011
+ ],
3012
+ "isUnique": false,
3013
+ "where": null,
3014
+ "origin": "manual",
3015
+ "name": "idx_brain_observations_mem_type",
3016
+ "entityType": "indexes",
3017
+ "table": "brain_observations"
3018
+ },
3019
+ {
3020
+ "columns": [
3021
+ {
3022
+ "value": "verified",
3023
+ "isExpression": false
3024
+ }
3025
+ ],
3026
+ "isUnique": false,
3027
+ "where": null,
3028
+ "origin": "manual",
3029
+ "name": "idx_brain_observations_verified",
3030
+ "entityType": "indexes",
3031
+ "table": "brain_observations"
3032
+ },
3033
+ {
3034
+ "columns": [
3035
+ {
3036
+ "value": "valid_at",
3037
+ "isExpression": false
3038
+ }
3039
+ ],
3040
+ "isUnique": false,
3041
+ "where": null,
3042
+ "origin": "manual",
3043
+ "name": "idx_brain_observations_valid_at",
3044
+ "entityType": "indexes",
3045
+ "table": "brain_observations"
3046
+ },
3047
+ {
3048
+ "columns": [
3049
+ {
3050
+ "value": "invalid_at",
3051
+ "isExpression": false
3052
+ }
3053
+ ],
3054
+ "isUnique": false,
3055
+ "where": null,
3056
+ "origin": "manual",
3057
+ "name": "idx_brain_observations_invalid",
3058
+ "entityType": "indexes",
3059
+ "table": "brain_observations"
3060
+ },
3061
+ {
3062
+ "columns": [
3063
+ {
3064
+ "value": "source_confidence",
3065
+ "isExpression": false
3066
+ }
3067
+ ],
3068
+ "isUnique": false,
3069
+ "where": null,
3070
+ "origin": "manual",
3071
+ "name": "idx_brain_observations_source_conf",
3072
+ "entityType": "indexes",
3073
+ "table": "brain_observations"
3074
+ },
3075
+ {
3076
+ "columns": [
3077
+ {
3078
+ "value": "tier_promoted_at",
3079
+ "isExpression": false
3080
+ }
3081
+ ],
3082
+ "isUnique": false,
3083
+ "where": null,
3084
+ "origin": "manual",
3085
+ "name": "idx_brain_observations_tier_promoted_at",
3086
+ "entityType": "indexes",
3087
+ "table": "brain_observations"
3088
+ },
3089
+ {
3090
+ "columns": [
3091
+ {
3092
+ "value": "stability_score",
3093
+ "isExpression": false
3094
+ }
3095
+ ],
3096
+ "isUnique": false,
3097
+ "where": null,
3098
+ "origin": "manual",
3099
+ "name": "idx_brain_observations_stability_score",
3100
+ "entityType": "indexes",
3101
+ "table": "brain_observations"
3102
+ },
3103
+ {
3104
+ "columns": [
3105
+ {
3106
+ "value": "from_id",
3107
+ "isExpression": false
3108
+ }
3109
+ ],
3110
+ "isUnique": false,
3111
+ "where": null,
3112
+ "origin": "manual",
3113
+ "name": "idx_brain_edges_from",
3114
+ "entityType": "indexes",
3115
+ "table": "brain_page_edges"
3116
+ },
3117
+ {
3118
+ "columns": [
3119
+ {
3120
+ "value": "to_id",
3121
+ "isExpression": false
3122
+ }
3123
+ ],
3124
+ "isUnique": false,
3125
+ "where": null,
3126
+ "origin": "manual",
3127
+ "name": "idx_brain_edges_to",
3128
+ "entityType": "indexes",
3129
+ "table": "brain_page_edges"
3130
+ },
3131
+ {
3132
+ "columns": [
3133
+ {
3134
+ "value": "edge_type",
3135
+ "isExpression": false
3136
+ }
3137
+ ],
3138
+ "isUnique": false,
3139
+ "where": null,
3140
+ "origin": "manual",
3141
+ "name": "idx_brain_edges_type",
3142
+ "entityType": "indexes",
3143
+ "table": "brain_page_edges"
3144
+ },
3145
+ {
3146
+ "columns": [
3147
+ {
3148
+ "value": "last_reinforced_at",
3149
+ "isExpression": false
3150
+ }
3151
+ ],
3152
+ "isUnique": false,
3153
+ "where": null,
3154
+ "origin": "manual",
3155
+ "name": "idx_brain_edges_last_reinforced",
3156
+ "entityType": "indexes",
3157
+ "table": "brain_page_edges"
3158
+ },
3159
+ {
3160
+ "columns": [
3161
+ {
3162
+ "value": "plasticity_class",
3163
+ "isExpression": false
3164
+ }
3165
+ ],
3166
+ "isUnique": false,
3167
+ "where": null,
3168
+ "origin": "manual",
3169
+ "name": "idx_brain_edges_plasticity_class",
3170
+ "entityType": "indexes",
3171
+ "table": "brain_page_edges"
3172
+ },
3173
+ {
3174
+ "columns": [
3175
+ {
3176
+ "value": "stability_score",
3177
+ "isExpression": false
3178
+ }
3179
+ ],
3180
+ "isUnique": false,
3181
+ "where": null,
3182
+ "origin": "manual",
3183
+ "name": "idx_brain_edges_stability",
3184
+ "entityType": "indexes",
3185
+ "table": "brain_page_edges"
3186
+ },
3187
+ {
3188
+ "columns": [
3189
+ {
3190
+ "value": "node_type",
3191
+ "isExpression": false
3192
+ }
3193
+ ],
3194
+ "isUnique": false,
3195
+ "where": null,
3196
+ "origin": "manual",
3197
+ "name": "idx_brain_nodes_type",
3198
+ "entityType": "indexes",
3199
+ "table": "brain_page_nodes"
3200
+ },
3201
+ {
3202
+ "columns": [
3203
+ {
3204
+ "value": "quality_score",
3205
+ "isExpression": false
3206
+ }
3207
+ ],
3208
+ "isUnique": false,
3209
+ "where": null,
3210
+ "origin": "manual",
3211
+ "name": "idx_brain_nodes_quality",
3212
+ "entityType": "indexes",
3213
+ "table": "brain_page_nodes"
3214
+ },
3215
+ {
3216
+ "columns": [
3217
+ {
3218
+ "value": "content_hash",
3219
+ "isExpression": false
3220
+ }
3221
+ ],
3222
+ "isUnique": false,
3223
+ "where": null,
3224
+ "origin": "manual",
3225
+ "name": "idx_brain_nodes_content_hash",
3226
+ "entityType": "indexes",
3227
+ "table": "brain_page_nodes"
3228
+ },
3229
+ {
3230
+ "columns": [
3231
+ {
3232
+ "value": "last_activity_at",
3233
+ "isExpression": false
3234
+ }
3235
+ ],
3236
+ "isUnique": false,
3237
+ "where": null,
3238
+ "origin": "manual",
3239
+ "name": "idx_brain_nodes_last_activity",
3240
+ "entityType": "indexes",
3241
+ "table": "brain_page_nodes"
3242
+ },
3243
+ {
3244
+ "columns": [
3245
+ {
3246
+ "value": "type",
3247
+ "isExpression": false
3248
+ }
3249
+ ],
3250
+ "isUnique": false,
3251
+ "where": null,
3252
+ "origin": "manual",
3253
+ "name": "idx_brain_patterns_type",
3254
+ "entityType": "indexes",
3255
+ "table": "brain_patterns"
3256
+ },
3257
+ {
3258
+ "columns": [
3259
+ {
3260
+ "value": "impact",
3261
+ "isExpression": false
3262
+ }
3263
+ ],
3264
+ "isUnique": false,
3265
+ "where": null,
3266
+ "origin": "manual",
3267
+ "name": "idx_brain_patterns_impact",
3268
+ "entityType": "indexes",
3269
+ "table": "brain_patterns"
3270
+ },
3271
+ {
3272
+ "columns": [
3273
+ {
3274
+ "value": "frequency",
3275
+ "isExpression": false
3276
+ }
3277
+ ],
3278
+ "isUnique": false,
3279
+ "where": null,
3280
+ "origin": "manual",
3281
+ "name": "idx_brain_patterns_frequency",
3282
+ "entityType": "indexes",
3283
+ "table": "brain_patterns"
3284
+ },
3285
+ {
3286
+ "columns": [
3287
+ {
3288
+ "value": "quality_score",
3289
+ "isExpression": false
3290
+ }
3291
+ ],
3292
+ "isUnique": false,
3293
+ "where": null,
3294
+ "origin": "manual",
3295
+ "name": "idx_brain_patterns_quality",
3296
+ "entityType": "indexes",
3297
+ "table": "brain_patterns"
3298
+ },
3299
+ {
3300
+ "columns": [
3301
+ {
3302
+ "value": "memory_tier",
3303
+ "isExpression": false
3304
+ }
3305
+ ],
3306
+ "isUnique": false,
3307
+ "where": null,
3308
+ "origin": "manual",
3309
+ "name": "idx_brain_patterns_tier",
3310
+ "entityType": "indexes",
3311
+ "table": "brain_patterns"
3312
+ },
3313
+ {
3314
+ "columns": [
3315
+ {
3316
+ "value": "memory_type",
3317
+ "isExpression": false
3318
+ }
3319
+ ],
3320
+ "isUnique": false,
3321
+ "where": null,
3322
+ "origin": "manual",
3323
+ "name": "idx_brain_patterns_mem_type",
3324
+ "entityType": "indexes",
3325
+ "table": "brain_patterns"
3326
+ },
3327
+ {
3328
+ "columns": [
3329
+ {
3330
+ "value": "verified",
3331
+ "isExpression": false
3332
+ }
3333
+ ],
3334
+ "isUnique": false,
3335
+ "where": null,
3336
+ "origin": "manual",
3337
+ "name": "idx_brain_patterns_verified",
3338
+ "entityType": "indexes",
3339
+ "table": "brain_patterns"
3340
+ },
3341
+ {
3342
+ "columns": [
3343
+ {
3344
+ "value": "valid_at",
3345
+ "isExpression": false
3346
+ }
3347
+ ],
3348
+ "isUnique": false,
3349
+ "where": null,
3350
+ "origin": "manual",
3351
+ "name": "idx_brain_patterns_valid_at",
3352
+ "entityType": "indexes",
3353
+ "table": "brain_patterns"
3354
+ },
3355
+ {
3356
+ "columns": [
3357
+ {
3358
+ "value": "source_confidence",
3359
+ "isExpression": false
3360
+ }
3361
+ ],
3362
+ "isUnique": false,
3363
+ "where": null,
3364
+ "origin": "manual",
3365
+ "name": "idx_brain_patterns_source_conf",
3366
+ "entityType": "indexes",
3367
+ "table": "brain_patterns"
3368
+ },
3369
+ {
3370
+ "columns": [
3371
+ {
3372
+ "value": "tier_promoted_at",
3373
+ "isExpression": false
3374
+ }
3375
+ ],
3376
+ "isUnique": false,
3377
+ "where": null,
3378
+ "origin": "manual",
3379
+ "name": "idx_brain_patterns_tier_promoted_at",
3380
+ "entityType": "indexes",
3381
+ "table": "brain_patterns"
3382
+ },
3383
+ {
3384
+ "columns": [
3385
+ {
3386
+ "value": "content_hash",
3387
+ "isExpression": false
3388
+ }
3389
+ ],
3390
+ "isUnique": false,
3391
+ "where": null,
3392
+ "origin": "manual",
3393
+ "name": "idx_brain_patterns_content_hash",
3394
+ "entityType": "indexes",
3395
+ "table": "brain_patterns"
3396
+ },
3397
+ {
3398
+ "columns": [
3399
+ {
3400
+ "value": "source_node",
3401
+ "isExpression": false
3402
+ }
3403
+ ],
3404
+ "isUnique": false,
3405
+ "where": null,
3406
+ "origin": "manual",
3407
+ "name": "idx_plasticity_source",
3408
+ "entityType": "indexes",
3409
+ "table": "brain_plasticity_events"
3410
+ },
3411
+ {
3412
+ "columns": [
3413
+ {
3414
+ "value": "target_node",
3415
+ "isExpression": false
3416
+ }
3417
+ ],
3418
+ "isUnique": false,
3419
+ "where": null,
3420
+ "origin": "manual",
3421
+ "name": "idx_plasticity_target",
3422
+ "entityType": "indexes",
3423
+ "table": "brain_plasticity_events"
3424
+ },
3425
+ {
3426
+ "columns": [
3427
+ {
3428
+ "value": "timestamp",
3429
+ "isExpression": false
3430
+ }
3431
+ ],
3432
+ "isUnique": false,
3433
+ "where": null,
3434
+ "origin": "manual",
3435
+ "name": "idx_plasticity_timestamp",
3436
+ "entityType": "indexes",
3437
+ "table": "brain_plasticity_events"
3438
+ },
3439
+ {
3440
+ "columns": [
3441
+ {
3442
+ "value": "session_id",
3443
+ "isExpression": false
3444
+ }
3445
+ ],
3446
+ "isUnique": false,
3447
+ "where": null,
3448
+ "origin": "manual",
3449
+ "name": "idx_plasticity_session",
3450
+ "entityType": "indexes",
3451
+ "table": "brain_plasticity_events"
3452
+ },
3453
+ {
3454
+ "columns": [
3455
+ {
3456
+ "value": "kind",
3457
+ "isExpression": false
3458
+ }
3459
+ ],
3460
+ "isUnique": false,
3461
+ "where": null,
3462
+ "origin": "manual",
3463
+ "name": "idx_plasticity_kind",
3464
+ "entityType": "indexes",
3465
+ "table": "brain_plasticity_events"
3466
+ },
3467
+ {
3468
+ "columns": [
3469
+ {
3470
+ "value": "retrieval_log_id",
3471
+ "isExpression": false
3472
+ }
3473
+ ],
3474
+ "isUnique": false,
3475
+ "where": null,
3476
+ "origin": "manual",
3477
+ "name": "idx_plasticity_retrieval_log",
3478
+ "entityType": "indexes",
3479
+ "table": "brain_plasticity_events"
3480
+ },
3481
+ {
3482
+ "columns": [
3483
+ {
3484
+ "value": "reward_signal",
3485
+ "isExpression": false
3486
+ }
3487
+ ],
3488
+ "isUnique": false,
3489
+ "where": null,
3490
+ "origin": "manual",
3491
+ "name": "idx_plasticity_reward",
3492
+ "entityType": "indexes",
3493
+ "table": "brain_plasticity_events"
3494
+ },
3495
+ {
3496
+ "columns": [
3497
+ {
3498
+ "value": "observation_id",
3499
+ "isExpression": false
3500
+ }
3501
+ ],
3502
+ "isUnique": false,
3503
+ "where": null,
3504
+ "origin": "manual",
3505
+ "name": "idx_promotion_log_observation",
3506
+ "entityType": "indexes",
3507
+ "table": "brain_promotion_log"
3508
+ },
3509
+ {
3510
+ "columns": [
3511
+ {
3512
+ "value": "decided_at",
3513
+ "isExpression": false
3514
+ }
3515
+ ],
3516
+ "isUnique": false,
3517
+ "where": null,
3518
+ "origin": "manual",
3519
+ "name": "idx_promotion_log_decided_at",
3520
+ "entityType": "indexes",
3521
+ "table": "brain_promotion_log"
3522
+ },
3523
+ {
3524
+ "columns": [
3525
+ {
3526
+ "value": "to_tier",
3527
+ "isExpression": false
3528
+ }
3529
+ ],
3530
+ "isUnique": false,
3531
+ "where": null,
3532
+ "origin": "manual",
3533
+ "name": "idx_promotion_log_to_tier",
3534
+ "entityType": "indexes",
3535
+ "table": "brain_promotion_log"
3536
+ },
3537
+ {
3538
+ "columns": [
3539
+ {
3540
+ "value": "score",
3541
+ "isExpression": false
3542
+ }
3543
+ ],
3544
+ "isUnique": false,
3545
+ "where": null,
3546
+ "origin": "manual",
3547
+ "name": "idx_promotion_log_score",
3548
+ "entityType": "indexes",
3549
+ "table": "brain_promotion_log"
3550
+ },
3551
+ {
3552
+ "columns": [
3553
+ {
3554
+ "value": "created_at",
3555
+ "isExpression": false
3556
+ }
3557
+ ],
3558
+ "isUnique": false,
3559
+ "where": null,
3560
+ "origin": "manual",
3561
+ "name": "idx_retrieval_log_created",
3562
+ "entityType": "indexes",
3563
+ "table": "brain_retrieval_log"
3564
+ },
3565
+ {
3566
+ "columns": [
3567
+ {
3568
+ "value": "source",
3569
+ "isExpression": false
3570
+ }
3571
+ ],
3572
+ "isUnique": false,
3573
+ "where": null,
3574
+ "origin": "manual",
3575
+ "name": "idx_retrieval_log_source",
3576
+ "entityType": "indexes",
3577
+ "table": "brain_retrieval_log"
3578
+ },
3579
+ {
3580
+ "columns": [
3581
+ {
3582
+ "value": "session_id",
3583
+ "isExpression": false
3584
+ }
3585
+ ],
3586
+ "isUnique": false,
3587
+ "where": null,
3588
+ "origin": "manual",
3589
+ "name": "idx_retrieval_log_session",
3590
+ "entityType": "indexes",
3591
+ "table": "brain_retrieval_log"
3592
+ },
3593
+ {
3594
+ "columns": [
3595
+ {
3596
+ "value": "reward_signal",
3597
+ "isExpression": false
3598
+ }
3599
+ ],
3600
+ "isUnique": false,
3601
+ "where": null,
3602
+ "origin": "manual",
3603
+ "name": "idx_retrieval_log_reward",
3604
+ "entityType": "indexes",
3605
+ "table": "brain_retrieval_log"
3606
+ },
3607
+ {
3608
+ "columns": [
3609
+ {
3610
+ "value": "status",
3611
+ "isExpression": false
3612
+ }
3613
+ ],
3614
+ "isUnique": false,
3615
+ "where": null,
3616
+ "origin": "manual",
3617
+ "name": "idx_brain_sticky_status",
3618
+ "entityType": "indexes",
3619
+ "table": "brain_sticky_notes"
3620
+ },
3621
+ {
3622
+ "columns": [
3623
+ {
3624
+ "value": "created_at",
3625
+ "isExpression": false
3626
+ }
3627
+ ],
3628
+ "isUnique": false,
3629
+ "where": null,
3630
+ "origin": "manual",
3631
+ "name": "idx_brain_sticky_created",
3632
+ "entityType": "indexes",
3633
+ "table": "brain_sticky_notes"
3634
+ },
3635
+ {
3636
+ "columns": [
3637
+ {
3638
+ "value": "tags_json",
3639
+ "isExpression": false
3640
+ }
3641
+ ],
3642
+ "isUnique": false,
3643
+ "where": null,
3644
+ "origin": "manual",
3645
+ "name": "idx_brain_sticky_tags",
3646
+ "entityType": "indexes",
3647
+ "table": "brain_sticky_notes"
3648
+ },
3649
+ {
3650
+ "columns": [
3651
+ {
3652
+ "value": "session_id",
3653
+ "isExpression": false
3654
+ }
3655
+ ],
3656
+ "isUnique": false,
3657
+ "where": null,
3658
+ "origin": "manual",
3659
+ "name": "idx_transcript_events_session",
3660
+ "entityType": "indexes",
3661
+ "table": "brain_transcript_events"
3662
+ },
3663
+ {
3664
+ "columns": [
3665
+ {
3666
+ "value": "role",
3667
+ "isExpression": false
3668
+ }
3669
+ ],
3670
+ "isUnique": false,
3671
+ "where": null,
3672
+ "origin": "manual",
3673
+ "name": "idx_transcript_events_role",
3674
+ "entityType": "indexes",
3675
+ "table": "brain_transcript_events"
3676
+ },
3677
+ {
3678
+ "columns": [
3679
+ {
3680
+ "value": "block_type",
3681
+ "isExpression": false
3682
+ }
3683
+ ],
3684
+ "isUnique": false,
3685
+ "where": null,
3686
+ "origin": "manual",
3687
+ "name": "idx_transcript_events_block_type",
3688
+ "entityType": "indexes",
3689
+ "table": "brain_transcript_events"
3690
+ },
3691
+ {
3692
+ "columns": [
3693
+ {
3694
+ "value": "created_at",
3695
+ "isExpression": false
3696
+ }
3697
+ ],
3698
+ "isUnique": false,
3699
+ "where": null,
3700
+ "origin": "manual",
3701
+ "name": "idx_transcript_events_created_at",
3702
+ "entityType": "indexes",
3703
+ "table": "brain_transcript_events"
3704
+ },
3705
+ {
3706
+ "columns": [
3707
+ {
3708
+ "value": "edge_from_id",
3709
+ "isExpression": false
3710
+ },
3711
+ {
3712
+ "value": "edge_to_id",
3713
+ "isExpression": false
3714
+ },
3715
+ {
3716
+ "value": "edge_type",
3717
+ "isExpression": false
3718
+ }
3719
+ ],
3720
+ "isUnique": false,
3721
+ "where": null,
3722
+ "origin": "manual",
3723
+ "name": "idx_weight_history_edge",
3724
+ "entityType": "indexes",
3725
+ "table": "brain_weight_history"
3726
+ },
3727
+ {
3728
+ "columns": [
3729
+ {
3730
+ "value": "edge_from_id",
3731
+ "isExpression": false
3732
+ }
3733
+ ],
3734
+ "isUnique": false,
3735
+ "where": null,
3736
+ "origin": "manual",
3737
+ "name": "idx_weight_history_from",
3738
+ "entityType": "indexes",
3739
+ "table": "brain_weight_history"
3740
+ },
3741
+ {
3742
+ "columns": [
3743
+ {
3744
+ "value": "edge_to_id",
3745
+ "isExpression": false
3746
+ }
3747
+ ],
3748
+ "isUnique": false,
3749
+ "where": null,
3750
+ "origin": "manual",
3751
+ "name": "idx_weight_history_to",
3752
+ "entityType": "indexes",
3753
+ "table": "brain_weight_history"
3754
+ },
3755
+ {
3756
+ "columns": [
3757
+ {
3758
+ "value": "changed_at",
3759
+ "isExpression": false
3760
+ }
3761
+ ],
3762
+ "isUnique": false,
3763
+ "where": null,
3764
+ "origin": "manual",
3765
+ "name": "idx_weight_history_changed_at",
3766
+ "entityType": "indexes",
3767
+ "table": "brain_weight_history"
3768
+ },
3769
+ {
3770
+ "columns": [
3771
+ {
3772
+ "value": "event_kind",
3773
+ "isExpression": false
3774
+ }
3775
+ ],
3776
+ "isUnique": false,
3777
+ "where": null,
3778
+ "origin": "manual",
3779
+ "name": "idx_weight_history_event_kind",
3780
+ "entityType": "indexes",
3781
+ "table": "brain_weight_history"
3782
+ },
3783
+ {
3784
+ "columns": [
3785
+ {
3786
+ "value": "source_plasticity_event_id",
3787
+ "isExpression": false
3788
+ }
3789
+ ],
3790
+ "isUnique": false,
3791
+ "where": null,
3792
+ "origin": "manual",
3793
+ "name": "idx_weight_history_plasticity_event",
3794
+ "entityType": "indexes",
3795
+ "table": "brain_weight_history"
3796
+ }
3797
+ ],
3798
+ "renames": []
3799
+ }