instar 1.3.581 → 1.3.583
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.
- package/dist/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +3 -1
- package/dist/commands/server.js.map +1 -1
- package/dist/core/PreferencesManager.d.ts +19 -0
- package/dist/core/PreferencesManager.d.ts.map +1 -1
- package/dist/core/PreferencesManager.js +25 -1
- package/dist/core/PreferencesManager.js.map +1 -1
- package/dist/core/SleepWakeDetector.d.ts +39 -0
- package/dist/core/SleepWakeDetector.d.ts.map +1 -1
- package/dist/core/SleepWakeDetector.js +52 -0
- package/dist/core/SleepWakeDetector.js.map +1 -1
- package/dist/core/types.d.ts +10 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/core/ws2SendWiring.d.ts +5 -3
- package/dist/core/ws2SendWiring.d.ts.map +1 -1
- package/dist/core/ws2SendWiring.js +7 -6
- package/dist/core/ws2SendWiring.js.map +1 -1
- package/dist/server/AgentServer.d.ts +3 -0
- package/dist/server/AgentServer.d.ts.map +1 -1
- package/dist/server/AgentServer.js +1 -0
- package/dist/server/AgentServer.js.map +1 -1
- package/dist/server/routes.d.ts +4 -0
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +11 -0
- package/dist/server/routes.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +47 -47
- package/upgrades/1.3.582.md +47 -0
- package/upgrades/1.3.583.md +51 -0
- package/upgrades/side-effects/sleepwake-recurring-drift-guard.md +46 -0
- package/upgrades/side-effects/ws2-send-3-preferences.md +50 -0
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./builtin-manifest.schema.json",
|
|
3
3
|
"schemaVersion": 1,
|
|
4
|
-
"generatedAt": "2026-06-
|
|
5
|
-
"instarVersion": "1.3.
|
|
4
|
+
"generatedAt": "2026-06-15T23:23:58.124Z",
|
|
5
|
+
"instarVersion": "1.3.583",
|
|
6
6
|
"entryCount": 201,
|
|
7
7
|
"entries": {
|
|
8
8
|
"hook:session-start": {
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
"type": "route-group",
|
|
419
419
|
"domain": "monitoring",
|
|
420
420
|
"sourcePath": "src/server/routes.ts",
|
|
421
|
-
"contentHash": "
|
|
421
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
422
422
|
"since": "2025-01-01"
|
|
423
423
|
},
|
|
424
424
|
"route-group:agents": {
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
"type": "route-group",
|
|
427
427
|
"domain": "sessions",
|
|
428
428
|
"sourcePath": "src/server/routes.ts",
|
|
429
|
-
"contentHash": "
|
|
429
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
430
430
|
"since": "2025-01-01"
|
|
431
431
|
},
|
|
432
432
|
"route-group:backups": {
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
"type": "route-group",
|
|
435
435
|
"domain": "operations",
|
|
436
436
|
"sourcePath": "src/server/routes.ts",
|
|
437
|
-
"contentHash": "
|
|
437
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
438
438
|
"since": "2025-01-01"
|
|
439
439
|
},
|
|
440
440
|
"route-group:git": {
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
"type": "route-group",
|
|
443
443
|
"domain": "coordination",
|
|
444
444
|
"sourcePath": "src/server/routes.ts",
|
|
445
|
-
"contentHash": "
|
|
445
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
446
446
|
"since": "2025-01-01"
|
|
447
447
|
},
|
|
448
448
|
"route-group:memory": {
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
"type": "route-group",
|
|
451
451
|
"domain": "memory",
|
|
452
452
|
"sourcePath": "src/server/routes.ts",
|
|
453
|
-
"contentHash": "
|
|
453
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
454
454
|
"since": "2025-01-01"
|
|
455
455
|
},
|
|
456
456
|
"route-group:semantic": {
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
"type": "route-group",
|
|
459
459
|
"domain": "memory",
|
|
460
460
|
"sourcePath": "src/server/routes.ts",
|
|
461
|
-
"contentHash": "
|
|
461
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
462
462
|
"since": "2025-01-01"
|
|
463
463
|
},
|
|
464
464
|
"route-group:status": {
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
"type": "route-group",
|
|
467
467
|
"domain": "monitoring",
|
|
468
468
|
"sourcePath": "src/server/routes.ts",
|
|
469
|
-
"contentHash": "
|
|
469
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
470
470
|
"since": "2025-01-01"
|
|
471
471
|
},
|
|
472
472
|
"route-group:capabilities": {
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
"type": "route-group",
|
|
475
475
|
"domain": "mapping",
|
|
476
476
|
"sourcePath": "src/server/routes.ts",
|
|
477
|
-
"contentHash": "
|
|
477
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
478
478
|
"since": "2025-01-01"
|
|
479
479
|
},
|
|
480
480
|
"route-group:project-map": {
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
"type": "route-group",
|
|
483
483
|
"domain": "mapping",
|
|
484
484
|
"sourcePath": "src/server/routes.ts",
|
|
485
|
-
"contentHash": "
|
|
485
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
486
486
|
"since": "2025-01-01"
|
|
487
487
|
},
|
|
488
488
|
"route-group:coherence": {
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
"type": "route-group",
|
|
491
491
|
"domain": "coherence",
|
|
492
492
|
"sourcePath": "src/server/routes.ts",
|
|
493
|
-
"contentHash": "
|
|
493
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
494
494
|
"since": "2025-01-01"
|
|
495
495
|
},
|
|
496
496
|
"route-group:topic-bindings": {
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
"type": "route-group",
|
|
499
499
|
"domain": "sessions",
|
|
500
500
|
"sourcePath": "src/server/routes.ts",
|
|
501
|
-
"contentHash": "
|
|
501
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
502
502
|
"since": "2025-01-01"
|
|
503
503
|
},
|
|
504
504
|
"route-group:context": {
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
"type": "route-group",
|
|
507
507
|
"domain": "context",
|
|
508
508
|
"sourcePath": "src/server/routes.ts",
|
|
509
|
-
"contentHash": "
|
|
509
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
510
510
|
"since": "2025-01-01"
|
|
511
511
|
},
|
|
512
512
|
"route-group:scope-coherence": {
|
|
@@ -514,7 +514,7 @@
|
|
|
514
514
|
"type": "route-group",
|
|
515
515
|
"domain": "coherence",
|
|
516
516
|
"sourcePath": "src/server/routes.ts",
|
|
517
|
-
"contentHash": "
|
|
517
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
518
518
|
"since": "2025-01-01"
|
|
519
519
|
},
|
|
520
520
|
"route-group:canonical-state": {
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
"type": "route-group",
|
|
523
523
|
"domain": "state",
|
|
524
524
|
"sourcePath": "src/server/routes.ts",
|
|
525
|
-
"contentHash": "
|
|
525
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
526
526
|
"since": "2025-01-01"
|
|
527
527
|
},
|
|
528
528
|
"route-group:ci": {
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
"type": "route-group",
|
|
531
531
|
"domain": "monitoring",
|
|
532
532
|
"sourcePath": "src/server/routes.ts",
|
|
533
|
-
"contentHash": "
|
|
533
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
534
534
|
"since": "2025-01-01"
|
|
535
535
|
},
|
|
536
536
|
"route-group:sessions": {
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
"type": "route-group",
|
|
539
539
|
"domain": "sessions",
|
|
540
540
|
"sourcePath": "src/server/routes.ts",
|
|
541
|
-
"contentHash": "
|
|
541
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
542
542
|
"since": "2025-01-01"
|
|
543
543
|
},
|
|
544
544
|
"route-group:jobs": {
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
"type": "route-group",
|
|
547
547
|
"domain": "scheduling",
|
|
548
548
|
"sourcePath": "src/server/routes.ts",
|
|
549
|
-
"contentHash": "
|
|
549
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
550
550
|
"since": "2025-01-01"
|
|
551
551
|
},
|
|
552
552
|
"route-group:skip-ledger": {
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
"type": "route-group",
|
|
555
555
|
"domain": "scheduling",
|
|
556
556
|
"sourcePath": "src/server/routes.ts",
|
|
557
|
-
"contentHash": "
|
|
557
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
558
558
|
"since": "2025-01-01"
|
|
559
559
|
},
|
|
560
560
|
"route-group:telegram": {
|
|
@@ -562,7 +562,7 @@
|
|
|
562
562
|
"type": "route-group",
|
|
563
563
|
"domain": "communication",
|
|
564
564
|
"sourcePath": "src/server/routes.ts",
|
|
565
|
-
"contentHash": "
|
|
565
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
566
566
|
"since": "2025-01-01"
|
|
567
567
|
},
|
|
568
568
|
"route-group:attention": {
|
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
"type": "route-group",
|
|
571
571
|
"domain": "communication",
|
|
572
572
|
"sourcePath": "src/server/routes.ts",
|
|
573
|
-
"contentHash": "
|
|
573
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
574
574
|
"since": "2025-01-01"
|
|
575
575
|
},
|
|
576
576
|
"route-group:relationships": {
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
"type": "route-group",
|
|
579
579
|
"domain": "relationships",
|
|
580
580
|
"sourcePath": "src/server/routes.ts",
|
|
581
|
-
"contentHash": "
|
|
581
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
582
582
|
"since": "2025-01-01"
|
|
583
583
|
},
|
|
584
584
|
"route-group:feedback": {
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
"type": "route-group",
|
|
587
587
|
"domain": "feedback",
|
|
588
588
|
"sourcePath": "src/server/routes.ts",
|
|
589
|
-
"contentHash": "
|
|
589
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
590
590
|
"since": "2025-01-01"
|
|
591
591
|
},
|
|
592
592
|
"route-group:updates": {
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
"type": "route-group",
|
|
595
595
|
"domain": "updates",
|
|
596
596
|
"sourcePath": "src/server/routes.ts",
|
|
597
|
-
"contentHash": "
|
|
597
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
598
598
|
"since": "2025-01-01"
|
|
599
599
|
},
|
|
600
600
|
"route-group:dispatches": {
|
|
@@ -602,7 +602,7 @@
|
|
|
602
602
|
"type": "route-group",
|
|
603
603
|
"domain": "dispatches",
|
|
604
604
|
"sourcePath": "src/server/routes.ts",
|
|
605
|
-
"contentHash": "
|
|
605
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
606
606
|
"since": "2025-01-01"
|
|
607
607
|
},
|
|
608
608
|
"route-group:quota": {
|
|
@@ -610,7 +610,7 @@
|
|
|
610
610
|
"type": "route-group",
|
|
611
611
|
"domain": "monitoring",
|
|
612
612
|
"sourcePath": "src/server/routes.ts",
|
|
613
|
-
"contentHash": "
|
|
613
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
614
614
|
"since": "2025-01-01"
|
|
615
615
|
},
|
|
616
616
|
"route-group:publishing": {
|
|
@@ -618,7 +618,7 @@
|
|
|
618
618
|
"type": "route-group",
|
|
619
619
|
"domain": "publishing",
|
|
620
620
|
"sourcePath": "src/server/routes.ts",
|
|
621
|
-
"contentHash": "
|
|
621
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
622
622
|
"since": "2025-01-01"
|
|
623
623
|
},
|
|
624
624
|
"route-group:private-views": {
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
"type": "route-group",
|
|
627
627
|
"domain": "publishing",
|
|
628
628
|
"sourcePath": "src/server/routes.ts",
|
|
629
|
-
"contentHash": "
|
|
629
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
630
630
|
"since": "2025-01-01"
|
|
631
631
|
},
|
|
632
632
|
"route-group:tunnel": {
|
|
@@ -634,7 +634,7 @@
|
|
|
634
634
|
"type": "route-group",
|
|
635
635
|
"domain": "networking",
|
|
636
636
|
"sourcePath": "src/server/routes.ts",
|
|
637
|
-
"contentHash": "
|
|
637
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
638
638
|
"since": "2025-01-01"
|
|
639
639
|
},
|
|
640
640
|
"route-group:events": {
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
"type": "route-group",
|
|
643
643
|
"domain": "networking",
|
|
644
644
|
"sourcePath": "src/server/routes.ts",
|
|
645
|
-
"contentHash": "
|
|
645
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
646
646
|
"since": "2025-01-01"
|
|
647
647
|
},
|
|
648
648
|
"route-group:evolution": {
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
"type": "route-group",
|
|
651
651
|
"domain": "evolution",
|
|
652
652
|
"sourcePath": "src/server/routes.ts",
|
|
653
|
-
"contentHash": "
|
|
653
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
654
654
|
"since": "2025-01-01"
|
|
655
655
|
},
|
|
656
656
|
"route-group:watchdog": {
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
"type": "route-group",
|
|
659
659
|
"domain": "monitoring",
|
|
660
660
|
"sourcePath": "src/server/routes.ts",
|
|
661
|
-
"contentHash": "
|
|
661
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
662
662
|
"since": "2025-01-01"
|
|
663
663
|
},
|
|
664
664
|
"route-group:topic-memory": {
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
"type": "route-group",
|
|
667
667
|
"domain": "memory",
|
|
668
668
|
"sourcePath": "src/server/routes.ts",
|
|
669
|
-
"contentHash": "
|
|
669
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
670
670
|
"since": "2025-01-01"
|
|
671
671
|
},
|
|
672
672
|
"route-group:state-sync": {
|
|
@@ -674,7 +674,7 @@
|
|
|
674
674
|
"type": "route-group",
|
|
675
675
|
"domain": "coordination",
|
|
676
676
|
"sourcePath": "src/server/routes.ts",
|
|
677
|
-
"contentHash": "
|
|
677
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
678
678
|
"since": "2025-01-01"
|
|
679
679
|
},
|
|
680
680
|
"route-group:intent": {
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
"type": "route-group",
|
|
683
683
|
"domain": "intent",
|
|
684
684
|
"sourcePath": "src/server/routes.ts",
|
|
685
|
-
"contentHash": "
|
|
685
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
686
686
|
"since": "2025-01-01"
|
|
687
687
|
},
|
|
688
688
|
"route-group:triage": {
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
"type": "route-group",
|
|
691
691
|
"domain": "safety",
|
|
692
692
|
"sourcePath": "src/server/routes.ts",
|
|
693
|
-
"contentHash": "
|
|
693
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
694
694
|
"since": "2025-01-01"
|
|
695
695
|
},
|
|
696
696
|
"route-group:operations": {
|
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
"type": "route-group",
|
|
699
699
|
"domain": "safety",
|
|
700
700
|
"sourcePath": "src/server/routes.ts",
|
|
701
|
-
"contentHash": "
|
|
701
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
702
702
|
"since": "2025-01-01"
|
|
703
703
|
},
|
|
704
704
|
"route-group:sentinel": {
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
"type": "route-group",
|
|
707
707
|
"domain": "safety",
|
|
708
708
|
"sourcePath": "src/server/routes.ts",
|
|
709
|
-
"contentHash": "
|
|
709
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
710
710
|
"since": "2025-01-01"
|
|
711
711
|
},
|
|
712
712
|
"route-group:trust": {
|
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
"type": "route-group",
|
|
715
715
|
"domain": "safety",
|
|
716
716
|
"sourcePath": "src/server/routes.ts",
|
|
717
|
-
"contentHash": "
|
|
717
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
718
718
|
"since": "2025-01-01"
|
|
719
719
|
},
|
|
720
720
|
"route-group:monitoring": {
|
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
"type": "route-group",
|
|
723
723
|
"domain": "monitoring",
|
|
724
724
|
"sourcePath": "src/server/routes.ts",
|
|
725
|
-
"contentHash": "
|
|
725
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
726
726
|
"since": "2025-01-01"
|
|
727
727
|
},
|
|
728
728
|
"route-group:commitments": {
|
|
@@ -730,7 +730,7 @@
|
|
|
730
730
|
"type": "route-group",
|
|
731
731
|
"domain": "commitments",
|
|
732
732
|
"sourcePath": "src/server/routes.ts",
|
|
733
|
-
"contentHash": "
|
|
733
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
734
734
|
"since": "2025-01-01"
|
|
735
735
|
},
|
|
736
736
|
"route-group:episodes": {
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
"type": "route-group",
|
|
739
739
|
"domain": "memory",
|
|
740
740
|
"sourcePath": "src/server/routes.ts",
|
|
741
|
-
"contentHash": "
|
|
741
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
742
742
|
"since": "2025-01-01"
|
|
743
743
|
},
|
|
744
744
|
"route-group:messages": {
|
|
@@ -746,7 +746,7 @@
|
|
|
746
746
|
"type": "route-group",
|
|
747
747
|
"domain": "coordination",
|
|
748
748
|
"sourcePath": "src/server/routes.ts",
|
|
749
|
-
"contentHash": "
|
|
749
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
750
750
|
"since": "2025-01-01"
|
|
751
751
|
},
|
|
752
752
|
"route-group:system-reviews": {
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
"type": "route-group",
|
|
755
755
|
"domain": "monitoring",
|
|
756
756
|
"sourcePath": "src/server/routes.ts",
|
|
757
|
-
"contentHash": "
|
|
757
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
758
758
|
"since": "2025-01-01"
|
|
759
759
|
},
|
|
760
760
|
"route-group:machine-mesh": {
|
|
@@ -770,7 +770,7 @@
|
|
|
770
770
|
"type": "route-group",
|
|
771
771
|
"domain": "security",
|
|
772
772
|
"sourcePath": "src/server/routes.ts",
|
|
773
|
-
"contentHash": "
|
|
773
|
+
"contentHash": "3cc60e918a373b7e290b7831998b6ba5c8260fd4f441b687dc45cb9413f34d2a",
|
|
774
774
|
"since": "2025-01-01"
|
|
775
775
|
},
|
|
776
776
|
"cli:init": {
|
|
@@ -1522,7 +1522,7 @@
|
|
|
1522
1522
|
"type": "subsystem",
|
|
1523
1523
|
"domain": "server",
|
|
1524
1524
|
"sourcePath": "src/server/AgentServer.ts",
|
|
1525
|
-
"contentHash": "
|
|
1525
|
+
"contentHash": "9fb97d1eb14b51e7956450cf33d15732c7d3a99dda89e294a7d96ecf0784d93b",
|
|
1526
1526
|
"since": "2025-01-01"
|
|
1527
1527
|
},
|
|
1528
1528
|
"subsystem:session-manager": {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Upgrade Guide — vNEXT
|
|
2
|
+
|
|
3
|
+
<!-- assembled-by: assemble-next-md -->
|
|
4
|
+
<!-- bump: patch -->
|
|
5
|
+
|
|
6
|
+
## What Changed
|
|
7
|
+
|
|
8
|
+
The `preferences` store is now wired into the WS2 send-side — the LAST of the 7 replicated
|
|
9
|
+
stores. Unlike the others, `preferences` had no emit seam (it rode the deprecated
|
|
10
|
+
`preferences-sync` verb), so this authors one on `PreferencesManager` (a
|
|
11
|
+
`setReplicationEmitter` + a best-effort emitPut at the end of `recordPreference`) and plumbs
|
|
12
|
+
the journal emitter to the correction-loop's PreferencesManager (the sole writer) through the
|
|
13
|
+
existing RouteContext replication channel. `ws2SendWiring`'s PENDING set is now EMPTY — every
|
|
14
|
+
replicated memory/PII store sends. PUT-ONLY (recordPreference upserts on dedupeKey; no delete
|
|
15
|
+
path). Dark by default (`multiMachine.stateSync.preferences`).
|
|
16
|
+
|
|
17
|
+
With this, **all seven WS2 stores send across machines**: learnings, relationships,
|
|
18
|
+
knowledge, evolutionActions, topicOperator, userRegistry, and preferences.
|
|
19
|
+
|
|
20
|
+
## What to Tell Your User
|
|
21
|
+
|
|
22
|
+
- **What I've learned about how you like to work now travels across machines**: "When you
|
|
23
|
+
correct me the same way enough times, I save it as a durable preference. If you run me on
|
|
24
|
+
more than one machine, a preference I learn on one now applies on the others — so I don't
|
|
25
|
+
have to re-learn 'lead with the action' separately per machine. Only the preference text +
|
|
26
|
+
how confident I am crosses; a preference that arrives from another machine is advisory, not
|
|
27
|
+
a hard rule. It stays off until you turn on multi-machine sync." ⚗️ Experimental — ships
|
|
28
|
+
dark.
|
|
29
|
+
|
|
30
|
+
## Summary of New Capabilities
|
|
31
|
+
|
|
32
|
+
| Capability | How to Use |
|
|
33
|
+
|-----------|-----------|
|
|
34
|
+
| Cross-machine replication of learned preferences (dedupeKey-keyed) | Automatic once `multiMachine.stateSync.preferences` is enabled (off by default) |
|
|
35
|
+
| Same preference (same dedupeKey) on two machines collapses to one record | Automatic (read path) |
|
|
36
|
+
| An upsert (re-recording the same preference) re-replicates the refreshed learning + confidence | Automatic (recordPreference path) |
|
|
37
|
+
|
|
38
|
+
## Evidence
|
|
39
|
+
|
|
40
|
+
Verified by a two-instance in-process E2E
|
|
41
|
+
(`tests/e2e/ws2-preferences-cross-instance.test.ts`): a preference recorded on instance A is
|
|
42
|
+
read back on B through the bypass-proof union reader as a foreign-origin record (dedupeKey-
|
|
43
|
+
keyed); and an upsert (same dedupeKey, refreshed learning + raised confidence) re-replicates
|
|
44
|
+
the latest record, over the real journal serve/apply path. `tsc --noEmit` clean; the new e2e
|
|
45
|
+
(2) passes; the existing PreferencesManager unit suites (41) stay green with the authored
|
|
46
|
+
seam; the ws2-send-wiring integration ratchet (4) accepts the PENDING→WIRED move (PENDING now
|
|
47
|
+
empty — all 7 stores wired).
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Upgrade Guide — vNEXT
|
|
2
|
+
|
|
3
|
+
<!-- assembled-by: assemble-next-md -->
|
|
4
|
+
<!-- bump: patch -->
|
|
5
|
+
|
|
6
|
+
## What Changed
|
|
7
|
+
|
|
8
|
+
A short timer drift that recurs while load sits in the **1.0–1.5/core band** slipped past both
|
|
9
|
+
existing guards: the load guard fires only above 1.5/core, and the consecutive burst floor resets
|
|
10
|
+
whenever on-time ticks fall between drifts. Its ~2-minute cadence also outlasted the 60s cooldown.
|
|
11
|
+
So each isolated drift emitted a **false `wake`**, firing the full wake-recovery cascade (tunnel
|
|
12
|
+
restart, Slack reconnect, mesh-lease churn, topic failover) — the source of a class of multi-machine
|
|
13
|
+
UX failures: a reply that's lost the conversation thread, messages that get no reply, and "remote
|
|
14
|
+
typing is disabled" (the 2026-06-15 incident, measured at ~1.13/core).
|
|
15
|
+
|
|
16
|
+
The detector now adds a **recurring-drift guard**: a short drift within `recentDriftWindowMs`
|
|
17
|
+
(default 5 min) of a prior short drift, while load is oversubscribed (`> recentDriftLoadFloor`,
|
|
18
|
+
default 1.0/core), is treated as recurring CPU starvation and suppressed. This generalizes the burst
|
|
19
|
+
floor from *consecutive* ticks to *recent* ticks, and the load gate confines it to the
|
|
20
|
+
oversubscribed band the hard guard leaves open.
|
|
21
|
+
|
|
22
|
+
## What to Tell Your User
|
|
23
|
+
|
|
24
|
+
- **Fewer spurious reconnects on a busy laptop**: "When my machine got busy I used to mistake the
|
|
25
|
+
slowdown for the computer going to sleep, which kicked off a disruptive recovery — dropping the
|
|
26
|
+
conversation thread, going quiet, or disabling typing. I now recognize that pattern and stay calm,
|
|
27
|
+
so those multi-machine glitches should largely stop."
|
|
28
|
+
- **Real sleeps still handled**: "If the machine genuinely sleeps, I still notice and recover
|
|
29
|
+
properly — nothing changes there."
|
|
30
|
+
|
|
31
|
+
## Summary of New Capabilities
|
|
32
|
+
|
|
33
|
+
| Capability | How to Use |
|
|
34
|
+
|-----------|-----------|
|
|
35
|
+
| Suppress false "wake" events from CPU starvation on a loaded host | automatic |
|
|
36
|
+
| Tune or disable the new guard | `monitoring.sleepWake.recentDriftWindowMs` / `.recentDriftLoadFloor` (set window to 0 to disable) |
|
|
37
|
+
|
|
38
|
+
## Evidence
|
|
39
|
+
|
|
40
|
+
Reproduction (live, 2026-06-15): on a host measured at loadavg ~18 on 16 cores (~1.13/core — above
|
|
41
|
+
1.0 but below the 1.5 hard guard), `server.log` showed `[SleepWakeDetector] Wake detected after
|
|
42
|
+
~33s/~21s sleep` recurring roughly every 2 minutes while the host was actively in use (not sleeping),
|
|
43
|
+
each triggering the wake-recovery cascade. The drifts were isolated (on-time ticks between them reset
|
|
44
|
+
the consecutive counter) and ~2 min apart (outlasting the 60s cooldown), so neither existing guard
|
|
45
|
+
caught them.
|
|
46
|
+
|
|
47
|
+
After the fix (verified by 45/45 sleep-wake unit tests across 5 files, both sides of the boundary): a
|
|
48
|
+
recurring short drift in the 1.0–1.5 band is suppressed (no `wake` emitted, recorded as
|
|
49
|
+
`cpu-starvation`); a genuinely isolated short drift, any drift on a light/idle host (ratio ≤ 1.0),
|
|
50
|
+
and every long (real) sleep still emit; `recentDriftWindowMs: 0` restores byte-identical prior
|
|
51
|
+
behavior. tsc clean.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Side-effects — SleepWakeDetector recurring-drift guard (gap #3 / CMT-1563)
|
|
2
|
+
|
|
3
|
+
## What changed (3 files)
|
|
4
|
+
|
|
5
|
+
- `src/core/SleepWakeDetector.ts` — new config `recentDriftWindowMs` (default 300000) +
|
|
6
|
+
`recentDriftLoadFloor` (default 1.0); new state `lastShortDriftAtMs`; a new suppression branch
|
|
7
|
+
in `start()` (after the load guard, before the cooldown) that suppresses a SHORT drift recurring
|
|
8
|
+
within the window while `loadRatio > recentDriftLoadFloor`. Reuses the existing `cpu-starvation`
|
|
9
|
+
suppression reason — the stats/telemetry type is unchanged.
|
|
10
|
+
- `src/core/types.ts` — `config.monitoring.sleepWake` gains the two optional knobs (mirrors the
|
|
11
|
+
existing `maxLoadRatio` plumbing; no ConfigDefaults change, no migration).
|
|
12
|
+
- `src/commands/server.ts` — the production `new SleepWakeDetector({...})` boot site forwards the
|
|
13
|
+
two new knobs from `config.monitoring.sleepWake`.
|
|
14
|
+
|
|
15
|
+
## Behavioral side-effects
|
|
16
|
+
|
|
17
|
+
- **On a moderately-loaded host (loadRatio in the 1.0–1.5 band):** a short timer drift that recurs
|
|
18
|
+
within 5 min of a prior short drift no longer emits a `wake` — so it no longer triggers the
|
|
19
|
+
wake-recovery cascade (tunnel restart / Slack reconnect / mesh-lease churn / topic failover). This
|
|
20
|
+
is the fix for the 2026-06-15 multi-machine UX cascade.
|
|
21
|
+
- **No change** on a light/idle host (ratio ≤ 1.0): repeated short drifts still emit (the existing
|
|
22
|
+
"genuinely-isolated drifts both emit" behavior is preserved — verified by the unchanged tests).
|
|
23
|
+
- **No change** for long sleeps (≥ `longSleepFloorSeconds`): always emitted, recovery preserved.
|
|
24
|
+
- **No change** for an isolated short drift (no prior drift in the window): still emits.
|
|
25
|
+
- The wake-reaper's cumulative-sleep accounting is unaffected — suppressed drifts were already
|
|
26
|
+
excluded from `wakeHistory`, and this branch suppresses the same way.
|
|
27
|
+
|
|
28
|
+
## Risk + rollback
|
|
29
|
+
|
|
30
|
+
- HIGH-risk surface (session-lifecycle / recovery trigger). Fail-safe direction: the branch only
|
|
31
|
+
ADDS suppression to a SHORT drift on an OVERSUBSCRIBED host; it can never suppress a real long
|
|
32
|
+
sleep or change light-host behavior.
|
|
33
|
+
- Rollback lever: `config.monitoring.sleepWake.recentDriftWindowMs: 0` disables the guard with no
|
|
34
|
+
logic redeploy (restores exactly today's behavior).
|
|
35
|
+
|
|
36
|
+
## Tests
|
|
37
|
+
|
|
38
|
+
- `tests/unit/sleep-wake-starvation-guard.test.ts` — new `describe('recurring-drift guard for the
|
|
39
|
+
moderate-load band')` with 5 cases (band-suppress, light-host-emit, isolated-emit, disable-lever,
|
|
40
|
+
long-sleep-exempt). Full sleep-wake unit suite: 39/39 green. tsc clean on the touched files.
|
|
41
|
+
|
|
42
|
+
## Migration parity
|
|
43
|
+
|
|
44
|
+
The fix ships in the class default, so every agent gets it on update (the boot site reads optional
|
|
45
|
+
config but the default is in the constructor). No `.claude`/hook/skill/CLAUDE.md template change is
|
|
46
|
+
required — this is an internal monitoring guard, not an agent-facing capability or route.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Side-Effects Review — WS2-SEND-3: preferences send-side replication (emit seam authored)
|
|
2
|
+
|
|
3
|
+
**Version / slug:** `ws2-send-3-preferences`
|
|
4
|
+
**Date:** `2026-06-15`
|
|
5
|
+
**Author:** `Instar Agent (echo)`
|
|
6
|
+
**Second-pass reviewer:** `not required` (no block/allow/lifecycle authority — additive, dark-gated data-replication wiring; see §4)
|
|
7
|
+
|
|
8
|
+
## Summary of the change
|
|
9
|
+
|
|
10
|
+
Completes WS2 send-side emission — the LAST of the 7 replicated stores. `preferences` had NO emit seam (it rode the deprecated `preferences-sync` mesh verb), so this AUTHORS one:
|
|
11
|
+
|
|
12
|
+
- `src/core/PreferencesManager.ts`: a new `PreferenceReplicationEmitter` interface + private `replication` field + `setReplicationEmitter()` (mirroring RelationshipManager), and a best-effort `this.replication?.emitPut(result)` fired at the end of `recordPreference` (after the durable write). PUT-ONLY: `recordPreference` is the sole writer and upserts on `dedupeKey`; there is no delete path.
|
|
13
|
+
- The sole `recordPreference` writer is the correction-loop's per-request PreferencesManager in `routes.ts` (16739). The journal emitter is plumbed to it through the EXISTING RouteContext replication-field channel: `replicatedRecordEmitter` added to `RouteContext` (routes.ts) + `AgentServerOptions` + the AgentServer→ctx forward + the server.ts AgentServer construction; routes.ts attaches it to `prefs` right after construction.
|
|
14
|
+
- `src/core/ws2SendWiring.ts`: `preferences` PENDING→WIRED; `WS2_SEND_PENDING_STORES` is now EMPTY (all 7 stores wired).
|
|
15
|
+
|
|
16
|
+
The union reader + projection already shipped (WS2.1). New e2e round-trip.
|
|
17
|
+
|
|
18
|
+
## Decision-point inventory
|
|
19
|
+
|
|
20
|
+
- `ReplicatedRecordEmitter.emit` dark gate (`stateSync.preferences.enabled`) — **pass-through** — pre-existing; `preferences` becomes a registered emit target. Default false ⇒ no-op.
|
|
21
|
+
- `PreferencesManager.recordPreference` emit funnel — **NEW (additive)** — the authored seam fires emitPut after the durable write, best-effort (try/catch). When no emitter is attached (default) it is a strict no-op — byte-identical single-machine behavior.
|
|
22
|
+
- `RouteContext.replicatedRecordEmitter` plumb — **NEW field (additive)** — null while dark; mirrors the existing preferenceReplicaStore plumbing.
|
|
23
|
+
- `ws2SendWiring` ratchet — **modify** — `preferences` reclassified PENDING→WIRED; PENDING now empty.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 1. Over-block
|
|
28
|
+
No block/allow surface. The emitter never rejects a preference write; null projection / over-cap is a counted no-op and the local write always succeeds.
|
|
29
|
+
|
|
30
|
+
## 2. Under-block
|
|
31
|
+
Not applicable (no block surface). PUT-ONLY is correct + complete: `recordPreference` only upserts (keyed on dedupeKey, bumping a counter + refreshing the learning), so a put carries the latest state and there is no delete event to wire — there is no tombstone by construction. The authored seam fires on the SOLE write path (the correction loop), so capture is complete (unlike userRegistry, preferences has exactly one writer).
|
|
32
|
+
|
|
33
|
+
## 3. Level-of-abstraction fit
|
|
34
|
+
Correct layer. The seam lives on the manager (mirroring every other store's seam); the attach happens at the single write site via the existing RouteContext replication-field channel. No new abstraction.
|
|
35
|
+
|
|
36
|
+
## 4. Signal vs authority compliance
|
|
37
|
+
Compliant. No blocking authority. The authored seam is additive/best-effort: a builder/journal fault is swallowed + counted, never propagated, so a preference write can never fail because replication did (the durable write already completed before the emit). The union read is advisory HIGH-tier (a replicated preference is a HINT, never authoritative). Per `docs/signal-vs-authority.md`.
|
|
38
|
+
|
|
39
|
+
## 5. Interactions
|
|
40
|
+
- Uses the single `replicatedRecordEmitter`, plumbed to routes via the new RouteContext field. Distinct store key/kind from the other WS2 stores. No double-fire (recordPreference is the single funnel; an upsert re-emits the latest, which is the intended status-refresh behavior).
|
|
41
|
+
- Touches `server.ts` + `ws2SendWiring.ts` (shared WS2-SEND files) + PreferencesManager.ts + routes.ts + AgentServer.ts → serialized on top of merged userRegistry; no parallel WS2-SEND PRs.
|
|
42
|
+
|
|
43
|
+
## 6. External surfaces
|
|
44
|
+
Dark by default (`multiMachine.stateSync.preferences`). Off ⇒ byte-identical single-machine behavior (the authored seam is a no-op without an attached emitter). On (multi-machine, opt-in): crosses the dedupeKey-keyed projection (learning text — credential-scrubbed, confidence, dedupeCount, provenance, recordedAt); the `violationPattern` is NEVER included (local-only). A received record is quoted `<replicated-untrusted-data>`, advisory only.
|
|
45
|
+
|
|
46
|
+
## 7. Multi-machine posture (Cross-Machine Coherence)
|
|
47
|
+
**Replicated (put-only).** Path: `recordPreference → (authored seam) emitPut → ReplicatedRecordEmitter.emit → CoherenceJournal.emitReplicatedRecord → peer serve/apply → ReplicatedPeerStreamReader → preferencesUnionReader`. Identity = dedupeKey (the same learned preference on two machines collapses to one record). An upsert re-emits the latest (HLC-ordered). No delete path. Verified end-to-end by the new e2e (put round-trip + upsert re-replicates refreshed learning + bumped confidence).
|
|
48
|
+
|
|
49
|
+
## 8. Rollback cost
|
|
50
|
+
Trivial. Dark by default. Back-out = revert the change or set the flag false (instant, no migration). The authored seam is inert without an attached emitter, so reverting only the server.ts/routes plumbing (leaving the manager seam) is also safe. Receive-side + envelope schema already shipped, unaffected.
|