instar 1.3.461 → 1.3.463

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 (38) hide show
  1. package/dist/commands/server.d.ts.map +1 -1
  2. package/dist/commands/server.js +7 -24
  3. package/dist/commands/server.js.map +1 -1
  4. package/dist/feedback-factory/cutoverReadiness.d.ts +34 -0
  5. package/dist/feedback-factory/cutoverReadiness.d.ts.map +1 -1
  6. package/dist/feedback-factory/cutoverReadiness.js +37 -0
  7. package/dist/feedback-factory/cutoverReadiness.js.map +1 -1
  8. package/dist/feedback-factory/migration/PersistedShadowImportTarget.d.ts +54 -0
  9. package/dist/feedback-factory/migration/PersistedShadowImportTarget.d.ts.map +1 -0
  10. package/dist/feedback-factory/migration/PersistedShadowImportTarget.js +121 -0
  11. package/dist/feedback-factory/migration/PersistedShadowImportTarget.js.map +1 -0
  12. package/dist/feedback-factory/migration/integrityPassRunner.d.ts +26 -0
  13. package/dist/feedback-factory/migration/integrityPassRunner.d.ts.map +1 -0
  14. package/dist/feedback-factory/migration/integrityPassRunner.js +83 -0
  15. package/dist/feedback-factory/migration/integrityPassRunner.js.map +1 -0
  16. package/dist/monitoring/sentinelConsolidatedSend.d.ts +26 -0
  17. package/dist/monitoring/sentinelConsolidatedSend.d.ts.map +1 -0
  18. package/dist/monitoring/sentinelConsolidatedSend.js +80 -0
  19. package/dist/monitoring/sentinelConsolidatedSend.js.map +1 -0
  20. package/dist/server/AgentServer.d.ts.map +1 -1
  21. package/dist/server/AgentServer.js +49 -0
  22. package/dist/server/AgentServer.js.map +1 -1
  23. package/dist/server/CapabilityIndex.d.ts.map +1 -1
  24. package/dist/server/CapabilityIndex.js +1 -0
  25. package/dist/server/CapabilityIndex.js.map +1 -1
  26. package/dist/server/middleware.d.ts.map +1 -1
  27. package/dist/server/middleware.js +3 -0
  28. package/dist/server/middleware.js.map +1 -1
  29. package/dist/server/routes.d.ts.map +1 -1
  30. package/dist/server/routes.js +28 -0
  31. package/dist/server/routes.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/data/builtin-manifest.json +47 -47
  34. package/upgrades/1.3.462.md +83 -0
  35. package/upgrades/1.3.463.md +27 -0
  36. package/upgrades/eli16/integrity-leg-shadow-import.md +27 -0
  37. package/upgrades/side-effects/integrity-leg-shadow-import.md +35 -0
  38. package/upgrades/side-effects/sentinel-escalation-selfheal.md +65 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instar",
3
- "version": "1.3.461",
3
+ "version": "1.3.463",
4
4
  "description": "Coherence infrastructure for self-evolving AI agents — on the Claude Code or Codex subscription you already have.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "./builtin-manifest.schema.json",
3
3
  "schemaVersion": 1,
4
- "generatedAt": "2026-06-10T03:19:26.946Z",
5
- "instarVersion": "1.3.461",
4
+ "generatedAt": "2026-06-10T04:04:50.737Z",
5
+ "instarVersion": "1.3.463",
6
6
  "entryCount": 199,
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
421
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
429
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
437
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
445
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
453
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
461
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
469
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
477
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
485
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
493
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
501
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
509
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
517
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
525
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
533
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
541
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
549
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
557
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
565
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
573
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
581
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
589
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
597
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
605
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
613
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
621
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
629
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
637
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
645
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
653
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
661
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
669
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
677
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
685
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
693
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
701
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
709
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
717
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
725
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
733
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
741
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
749
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
757
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
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": "1ed553bfb7805aff766d3d95e6e8f65778d535f804d86ba5b6b7916bc36f9068",
773
+ "contentHash": "f8368ea548abfd012ba860cd6c3de18b278029e88667be225795cf53e321d741",
774
774
  "since": "2025-01-01"
775
775
  },
776
776
  "cli:init": {
@@ -1506,7 +1506,7 @@
1506
1506
  "type": "subsystem",
1507
1507
  "domain": "server",
1508
1508
  "sourcePath": "src/server/AgentServer.ts",
1509
- "contentHash": "14cae0304a5a9d275cb282874387888f253a9253bec2e029c56c837ef294a3e4",
1509
+ "contentHash": "c649846feae2eaef0c33a8ca902817fc84ff200eb306bbf4b2c37e26b8f91747",
1510
1510
  "since": "2025-01-01"
1511
1511
  },
1512
1512
  "subsystem:session-manager": {
@@ -0,0 +1,83 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ Makes the SentinelNotifier's consolidated-escalation delivery **self-heal a deleted lifeline/system topic instead of silently swallowing the error**. Both `sendConsolidated` closures in `server.ts` (the sentinel-notify path and the stop-notify path) did `try { telegram.sendToTopic(lifelineTopicId, text) } catch { return false }`. When the lifeline/system topic is deleted on the Telegram side, every send returns `400: message thread not found`, and the bare `catch` black-holed it — so stall/stop escalations the system generated never reached the user, with zero log trace. New shared helper `sendConsolidatedWithSelfHeal` (`src/monitoring/sentinelConsolidatedSend.ts`): sends to the lifeline topic; on failure it (1) logs the real error (de-swallow) and (2) calls the adapter's existing `ensureLifelineTopic()` — which recreates a deleted topic and persists the new id — then retries the send once. Both call sites now use it. No behavior change on the happy path (a working topic sends and returns immediately, never touching `ensureLifelineTopic`).
9
+
10
+ ## What to Tell Your User
11
+
12
+ If your "Lifeline"/system topic ever gets deleted, the alerts the system tries to send you there (a session went quiet, a session stopped) used to vanish without a trace — you'd just get silence. Now those alerts heal themselves: the system recreates the topic and delivers the alert, and any delivery failure is logged instead of disappearing. (This is the foundation under the broader "tell me when a session stalls, in that session's own topic, and auto-recover it" work.)
13
+
14
+ ## Summary of New Capabilities
15
+
16
+ | Capability | How to Use |
17
+ |-----------|-----------|
18
+ | Sentinel/stop escalations self-heal a deleted lifeline topic + never swallow the send error | automatic — no config |
19
+
20
+ ## Evidence
21
+
22
+ Reproduction (live, 2026-06-09): the configured lifeline topic (`lifelineTopicId: 2`, "Lifeline") had been deleted on Telegram. `logs/sentinel-events.jsonl` showed the active-silence sentinel correctly detecting stalled sessions and emitting `escalated` ("session went quiet ~16 min ago, want me to dig in?") — immediately followed by `notify-error: sendConsolidated returned false`, **41 times in one day**. A direct probe (`POST /telegram/reply/2`) returned exactly `400: Bad Request: message thread not found`, confirming the dead topic. The user received pure silence, so a stalled session was indistinguishable from a working one.
23
+
24
+ After the fix: `tests/unit/sentinel-consolidated-send.test.ts` (7 cases) pins the happy path (no ensureLifelineTopic call), the dead-topic self-heal (recreate id 2→new, retry, deliver), the no-topic-configured path, and all three failure modes (ensure returns null / ensure throws / retry fails) — each returning false WITH a logged reason, never a silent swallow. tsc + repo lint clean. (The 15 unrelated A2ARedeliverySentinel / SessionActivitySentinel local failures are pre-existing on main, not introduced here.)
25
+
26
+ ## The problem
27
+
28
+ The operator couldn't tell whether a session had stalled or was just working —
29
+ because for almost an hour it heard nothing. Here's what was actually happening
30
+ under the hood, and it's worse than "the agent didn't notice."
31
+
32
+ The agent's stall-detector **did** notice. It saw a session go quiet, gave it a
33
+ nudge, and tried to send the operator a message: "this session went quiet ~16
34
+ minutes ago, want me to dig in?" That message goes to a dedicated "Lifeline"
35
+ system topic in Telegram.
36
+
37
+ But that Lifeline topic had been **deleted** on the Telegram side, while the
38
+ config still pointed at it. So every send came back with `message thread not
39
+ found` — and the code did `catch { return false }`, i.e. it threw the error in
40
+ the trash and moved on. **41 times in one day** the system had something
41
+ important to tell the operator and it silently failed to send. The operator got
42
+ pure silence, which looks exactly like "nothing's wrong."
43
+
44
+ So the real bug wasn't a missing alert — it was a generated alert dying on the
45
+ way out the door, invisibly.
46
+
47
+ ## What already exists
48
+
49
+ The Telegram adapter already has a method, `ensureLifelineTopic()`, that knows
50
+ how to **recreate** a deleted Lifeline topic and remember the new one. The alert
51
+ path just never called it — and worse, it hid the failure instead of reacting to
52
+ it.
53
+
54
+ ## What's new
55
+
56
+ One small, shared helper that both alert paths now use. When it tries to send an
57
+ alert and the send fails, it:
58
+
59
+ 1. **Logs the real error** instead of swallowing it — so a delivery failure can
60
+ never again be invisible.
61
+ 2. **Heals the topic** — calls `ensureLifelineTopic()` to recreate the deleted
62
+ topic, then retries the send once.
63
+
64
+ If the topic is fine, nothing changes — it sends and returns immediately. Only on
65
+ a failure does the heal-and-retry kick in.
66
+
67
+ ## The safeguards in plain terms
68
+
69
+ - **No silent failures, ever.** Every send failure is now logged with the real
70
+ reason, so the next time something can't be delivered, it's diagnosable in
71
+ seconds instead of invisible for hours.
72
+ - **Self-healing, not just louder.** A deleted system topic now repairs itself
73
+ and the alert still gets through.
74
+ - **Zero change on the happy path.** A working topic behaves exactly as before —
75
+ the heal logic only runs when a send actually fails.
76
+ - **Bounded.** It retries once, never loops.
77
+
78
+ ## What you need to decide
79
+
80
+ Nothing — it ships as a normal patch with safe behavior. This is the foundation
81
+ under the bigger piece you asked for (stall alerts that land in the *stalled
82
+ session's own topic*, and auto-recovering the session, not just alerting): step
83
+ one was making sure these alerts can't silently disappear in the first place.
@@ -0,0 +1,27 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ The feedback-migration **cutover-readiness door** can now resolve its **integrity** leg. A new trigger — `POST /cutover-readiness/integrity-pass` — runs the REAL pre-click integrity pass and records the verdict to the canonical integrity path.
9
+
10
+ Previously the door's formula (`ready = integrity.passed && parity.cleared && !parity.stale`) was unsatisfiable: the parity leg worked (#1007), but `recordIntegrityReport` had **zero callers** — nothing ever ran a real import and wrote the report, so `integrity.passed` could never become true and the door could never open. The import-dryrun route is deliberately walled off from the integrity path (its report can never green the gate), so it couldn't fill the gap either.
11
+
12
+ The new pass: live read-only fetch → AS-IS import into a **persisted shadow** (`PersistedShadowImportTarget`, a throwaway JSONL copy — never canonical) → the full integrity gate over the readback → `recordIntegrityReport`. A passing report greens the leg; a failing one flips it closed (the door always reflects the latest real verdict). The heavy 145K-row pass runs OFF the event loop in a child process (`integrityPassRunner`) — the same event-loop-contention lesson that drove the parity fix (#948) — sharing `CutoverReadiness`'s single-flight guard and max-hold backstop.
13
+
14
+ ## What to Tell Your User
15
+
16
+ Internal migration infrastructure — nothing to configure. This wires the last piece needed for the cutover-readiness door to go fully green ahead of the operator-gated cutover click. Building or deploying it does NOT green the door — that requires explicitly running the integrity pass, and the cutover flip itself remains the operator's manual click.
17
+
18
+ ## Summary of New Capabilities
19
+
20
+ | Capability | How to use |
21
+ |-----------|-----------|
22
+ | Run the REAL pre-click integrity pass + record the canonical verdict | `POST /cutover-readiness/integrity-pass` (Bearer-gated; 409 when no `feedbackMigration.paritySource` is configured) |
23
+ | Durable AS-IS import shadow for verification | `new PersistedShadowImportTarget(dir)` — JSONL-backed, dup-PK refusing, `dispose()`-able; never canonical |
24
+
25
+ ## Evidence
26
+
27
+ Unit `tests/unit/cutover-readiness.test.ts` (28, incl. 7 new `runIntegrityPass`: greens-on-pass → door ready with parity / flips-closed-on-fail / no-record-on-abort / no-record-on-fetch-fail / unconfigured-refuse / single-flight-guard) + `tests/unit/feedback-factory/persisted-shadow-import-target.test.ts` (5 new). Integration `tests/integration/cutover-readiness-routes.test.ts` (14, incl. 4 new integrity-pass route). E2E `tests/e2e/cutover-readiness-lifecycle.test.ts` (5, incl. 1 new feature-alive on the real AgentServer init path). All green; `tsc --noEmit` clean. The integrity substance was independently proven over the live 145K-row corpus (0 issues). Earned from topic 12476 (feedback-process migration, Phase-2 / cutover-readiness integrity leg).
@@ -0,0 +1,27 @@
1
+ # ELI16 — Wire the cutover door's integrity check so it can actually go green
2
+
3
+ ## What this is
4
+
5
+ The feedback-process migration (Dawn → Echo) ends with one irreversible step: an operator clicks "cut over," and from then on the new instance is canonical. To make that click safe, there's a **readiness door** that only reads green when two things are true: the live data still matches (parity), AND a real import of the curated data passes every integrity check (no corrupted clusters, no broken links, no schema surprises).
6
+
7
+ The door's formula is literally `ready = integrity.passed && parity.cleared && !parity.stale`.
8
+
9
+ ## What already existed
10
+
11
+ - The **parity** half works (verified live — a clusters-only pass clears in ~1s).
12
+ - The integrity gate's *math* existed (`runIntegrityGate` — checksums, fingerprint-uniqueness, schema-equivalence, referential integrity) and was already proven clean over the live 145K-row corpus.
13
+ - BUT the function that records a passing integrity report — `recordIntegrityReport` — had **zero callers**. Nothing in the running server ever ran a real import and wrote that report. So the integrity half could never turn green, which meant the door could never open. The migration was stuck one wire short of the finish line.
14
+
15
+ ## What's new
16
+
17
+ A single new trigger: **`POST /cutover-readiness/integrity-pass`**. When called, it:
18
+ 1. Fetches the live curated corpus (read-only).
19
+ 2. Imports it AS-IS into a **persisted shadow** (a throwaway on-disk copy — never the canonical database).
20
+ 3. Runs the full integrity gate over what landed.
21
+ 4. Records the verdict to the canonical integrity path — a **passing** report turns the integrity leg green; a **failing** one keeps it shut (the door always reflects the latest real check).
22
+
23
+ Because importing 145K rows would freeze the server's event loop, the heavy work runs in a **separate child process** (the same lesson that drove the parity fix). The shadow is a verification copy only — the real production import still happens *after* the operator clicks, on Dawn's side.
24
+
25
+ ## What you need to decide
26
+
27
+ Nothing changes automatically. Building or merging this **cannot** make the door go green — that only happens when someone explicitly triggers the pass on the deployed server. The cutover click itself stays entirely the operator's. This change just makes "is everything up to the door green?" answerable from real evidence instead of an un-runnable gap.
@@ -0,0 +1,35 @@
1
+ # Side-effects review — cutover integrity-pass wiring
2
+
3
+ ## The change
4
+
5
+ Wires the previously-unwired integrity leg of the cutover-readiness door. New surface:
6
+ - `POST /cutover-readiness/integrity-pass` (routes.ts) → `CutoverReadiness.runIntegrityPass()`.
7
+ - `runIntegrityImport` dep + closure (AgentServer) spawns `integrityPassRunner` as a child `node` process.
8
+ - `PersistedShadowImportTarget` — a durable JSONL-backed `ImportTarget`.
9
+ - Extended route budget (middleware) + capability-index entry.
10
+
11
+ ## Blast radius — what this can and cannot touch
12
+
13
+ - **It cannot mutate canonical data.** The import target is a throwaway on-disk shadow dir (`stateDir/state/cutover-integrity-shadow`), `dispose()`d after each pass. There is NO Portal/Prisma write path here. Read side is `GET /api/instar/read` only (read-only token).
14
+ - **It cannot accidentally green the irreversible cutover door.** The door greens only when `recordIntegrityReport` is called with a passing report, which happens ONLY on an explicit `POST /cutover-readiness/integrity-pass`. Shipping/merging/deploying this route does nothing until that trigger fires. The cutover flip itself remains the operator's manual click — there is still no fire-cutover route.
15
+ - **A failing pass is safe + honest.** A failing integrity report is recorded too (door reads closed) so the door reflects the LATEST real verdict, never a stale green. A pre-import abort (fingerprint collision → null report) records nothing and leaves prior state. A failed fetch records nothing (absence of evidence).
16
+
17
+ ## Concurrency + resource safety
18
+
19
+ - Shares `CutoverReadiness`'s single-flight `liveFetchInFlight` guard with parity-pass + import-dryrun — only one live source fetch at a time (the #948 lock-pileup guard). A concurrent integrity-pass is refused 409.
20
+ - The 145K-row fetch+import runs OFF the server event loop in a child process (the in-process import-dryrun budget-fails at 720s; #948). The child's internal fetch budget (600s) sits under `CutoverReadiness`'s 12-min max-hold backstop, which releases the lock if the child ever hangs; the child also carries an 11-min execFile wall-clock cap. Worst case is an orphaned child + a released lock, never a wedged server.
21
+ - Memory: `--max-old-space-size=4096` on the child; the shadow is JSONL on disk, not held in RAM beyond the readback.
22
+
23
+ ## Failure modes considered
24
+
25
+ - Child exits non-zero with a valid failing verdict on stdout → parsed + recorded (door flips closed), not treated as a crash. Only a no-verdict crash (exit 2 / killed) throws → 409, nothing recorded.
26
+ - No paritySource configured → `runIntegrityImport` is null → 409 "no import source configured" (verified by the e2e feature-alive test on the real AgentServer init path).
27
+ - Stale/torn integrity report on disk → `integrityStatus()` reads deny-safe (not passed).
28
+
29
+ ## Migration parity
30
+
31
+ No agent-installed file changes (no settings/hooks/CLAUDE.md template/config-default changes), so no `PostUpdateMigrator` entry is required. The route ships in server code and reaches existing agents on their normal server update. The new capability-index entry surfaces it to agents (Agent Awareness Standard).
32
+
33
+ ## Tests
34
+
35
+ Unit (PersistedShadowImportTarget + runIntegrityPass both-sides-of-boundary), integration (route greens-on-pass / flips-on-fail / 409-fetch-fail / 503-unavailable), e2e (route alive on real AgentServer init path). All green; tsc clean.