instar 1.3.50 → 1.3.52

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "./builtin-manifest.schema.json",
3
3
  "schemaVersion": 1,
4
- "generatedAt": "2026-05-28T04:22:02.259Z",
5
- "instarVersion": "1.3.50",
4
+ "generatedAt": "2026-05-28T06:51:41.833Z",
5
+ "instarVersion": "1.3.52",
6
6
  "entryCount": 193,
7
7
  "entries": {
8
8
  "hook:session-start": {
@@ -409,7 +409,7 @@
409
409
  "type": "route-group",
410
410
  "domain": "monitoring",
411
411
  "sourcePath": "src/server/routes.ts",
412
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
412
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
413
413
  "since": "2025-01-01"
414
414
  },
415
415
  "route-group:agents": {
@@ -417,7 +417,7 @@
417
417
  "type": "route-group",
418
418
  "domain": "sessions",
419
419
  "sourcePath": "src/server/routes.ts",
420
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
420
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
421
421
  "since": "2025-01-01"
422
422
  },
423
423
  "route-group:backups": {
@@ -425,7 +425,7 @@
425
425
  "type": "route-group",
426
426
  "domain": "operations",
427
427
  "sourcePath": "src/server/routes.ts",
428
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
428
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
429
429
  "since": "2025-01-01"
430
430
  },
431
431
  "route-group:git": {
@@ -433,7 +433,7 @@
433
433
  "type": "route-group",
434
434
  "domain": "coordination",
435
435
  "sourcePath": "src/server/routes.ts",
436
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
436
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
437
437
  "since": "2025-01-01"
438
438
  },
439
439
  "route-group:memory": {
@@ -441,7 +441,7 @@
441
441
  "type": "route-group",
442
442
  "domain": "memory",
443
443
  "sourcePath": "src/server/routes.ts",
444
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
444
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
445
445
  "since": "2025-01-01"
446
446
  },
447
447
  "route-group:semantic": {
@@ -449,7 +449,7 @@
449
449
  "type": "route-group",
450
450
  "domain": "memory",
451
451
  "sourcePath": "src/server/routes.ts",
452
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
452
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
453
453
  "since": "2025-01-01"
454
454
  },
455
455
  "route-group:status": {
@@ -457,7 +457,7 @@
457
457
  "type": "route-group",
458
458
  "domain": "monitoring",
459
459
  "sourcePath": "src/server/routes.ts",
460
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
460
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
461
461
  "since": "2025-01-01"
462
462
  },
463
463
  "route-group:capabilities": {
@@ -465,7 +465,7 @@
465
465
  "type": "route-group",
466
466
  "domain": "mapping",
467
467
  "sourcePath": "src/server/routes.ts",
468
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
468
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
469
469
  "since": "2025-01-01"
470
470
  },
471
471
  "route-group:project-map": {
@@ -473,7 +473,7 @@
473
473
  "type": "route-group",
474
474
  "domain": "mapping",
475
475
  "sourcePath": "src/server/routes.ts",
476
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
476
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
477
477
  "since": "2025-01-01"
478
478
  },
479
479
  "route-group:coherence": {
@@ -481,7 +481,7 @@
481
481
  "type": "route-group",
482
482
  "domain": "coherence",
483
483
  "sourcePath": "src/server/routes.ts",
484
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
484
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
485
485
  "since": "2025-01-01"
486
486
  },
487
487
  "route-group:topic-bindings": {
@@ -489,7 +489,7 @@
489
489
  "type": "route-group",
490
490
  "domain": "sessions",
491
491
  "sourcePath": "src/server/routes.ts",
492
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
492
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
493
493
  "since": "2025-01-01"
494
494
  },
495
495
  "route-group:context": {
@@ -497,7 +497,7 @@
497
497
  "type": "route-group",
498
498
  "domain": "context",
499
499
  "sourcePath": "src/server/routes.ts",
500
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
500
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
501
501
  "since": "2025-01-01"
502
502
  },
503
503
  "route-group:scope-coherence": {
@@ -505,7 +505,7 @@
505
505
  "type": "route-group",
506
506
  "domain": "coherence",
507
507
  "sourcePath": "src/server/routes.ts",
508
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
508
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
509
509
  "since": "2025-01-01"
510
510
  },
511
511
  "route-group:canonical-state": {
@@ -513,7 +513,7 @@
513
513
  "type": "route-group",
514
514
  "domain": "state",
515
515
  "sourcePath": "src/server/routes.ts",
516
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
516
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
517
517
  "since": "2025-01-01"
518
518
  },
519
519
  "route-group:ci": {
@@ -521,7 +521,7 @@
521
521
  "type": "route-group",
522
522
  "domain": "monitoring",
523
523
  "sourcePath": "src/server/routes.ts",
524
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
524
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
525
525
  "since": "2025-01-01"
526
526
  },
527
527
  "route-group:sessions": {
@@ -529,7 +529,7 @@
529
529
  "type": "route-group",
530
530
  "domain": "sessions",
531
531
  "sourcePath": "src/server/routes.ts",
532
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
532
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
533
533
  "since": "2025-01-01"
534
534
  },
535
535
  "route-group:jobs": {
@@ -537,7 +537,7 @@
537
537
  "type": "route-group",
538
538
  "domain": "scheduling",
539
539
  "sourcePath": "src/server/routes.ts",
540
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
540
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
541
541
  "since": "2025-01-01"
542
542
  },
543
543
  "route-group:skip-ledger": {
@@ -545,7 +545,7 @@
545
545
  "type": "route-group",
546
546
  "domain": "scheduling",
547
547
  "sourcePath": "src/server/routes.ts",
548
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
548
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
549
549
  "since": "2025-01-01"
550
550
  },
551
551
  "route-group:telegram": {
@@ -553,7 +553,7 @@
553
553
  "type": "route-group",
554
554
  "domain": "communication",
555
555
  "sourcePath": "src/server/routes.ts",
556
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
556
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
557
557
  "since": "2025-01-01"
558
558
  },
559
559
  "route-group:attention": {
@@ -561,7 +561,7 @@
561
561
  "type": "route-group",
562
562
  "domain": "communication",
563
563
  "sourcePath": "src/server/routes.ts",
564
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
564
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
565
565
  "since": "2025-01-01"
566
566
  },
567
567
  "route-group:relationships": {
@@ -569,7 +569,7 @@
569
569
  "type": "route-group",
570
570
  "domain": "relationships",
571
571
  "sourcePath": "src/server/routes.ts",
572
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
572
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
573
573
  "since": "2025-01-01"
574
574
  },
575
575
  "route-group:feedback": {
@@ -577,7 +577,7 @@
577
577
  "type": "route-group",
578
578
  "domain": "feedback",
579
579
  "sourcePath": "src/server/routes.ts",
580
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
580
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
581
581
  "since": "2025-01-01"
582
582
  },
583
583
  "route-group:updates": {
@@ -585,7 +585,7 @@
585
585
  "type": "route-group",
586
586
  "domain": "updates",
587
587
  "sourcePath": "src/server/routes.ts",
588
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
588
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
589
589
  "since": "2025-01-01"
590
590
  },
591
591
  "route-group:dispatches": {
@@ -593,7 +593,7 @@
593
593
  "type": "route-group",
594
594
  "domain": "dispatches",
595
595
  "sourcePath": "src/server/routes.ts",
596
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
596
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
597
597
  "since": "2025-01-01"
598
598
  },
599
599
  "route-group:quota": {
@@ -601,7 +601,7 @@
601
601
  "type": "route-group",
602
602
  "domain": "monitoring",
603
603
  "sourcePath": "src/server/routes.ts",
604
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
604
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
605
605
  "since": "2025-01-01"
606
606
  },
607
607
  "route-group:publishing": {
@@ -609,7 +609,7 @@
609
609
  "type": "route-group",
610
610
  "domain": "publishing",
611
611
  "sourcePath": "src/server/routes.ts",
612
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
612
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
613
613
  "since": "2025-01-01"
614
614
  },
615
615
  "route-group:private-views": {
@@ -617,7 +617,7 @@
617
617
  "type": "route-group",
618
618
  "domain": "publishing",
619
619
  "sourcePath": "src/server/routes.ts",
620
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
620
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
621
621
  "since": "2025-01-01"
622
622
  },
623
623
  "route-group:tunnel": {
@@ -625,7 +625,7 @@
625
625
  "type": "route-group",
626
626
  "domain": "networking",
627
627
  "sourcePath": "src/server/routes.ts",
628
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
628
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
629
629
  "since": "2025-01-01"
630
630
  },
631
631
  "route-group:events": {
@@ -633,7 +633,7 @@
633
633
  "type": "route-group",
634
634
  "domain": "networking",
635
635
  "sourcePath": "src/server/routes.ts",
636
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
636
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
637
637
  "since": "2025-01-01"
638
638
  },
639
639
  "route-group:evolution": {
@@ -641,7 +641,7 @@
641
641
  "type": "route-group",
642
642
  "domain": "evolution",
643
643
  "sourcePath": "src/server/routes.ts",
644
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
644
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
645
645
  "since": "2025-01-01"
646
646
  },
647
647
  "route-group:watchdog": {
@@ -649,7 +649,7 @@
649
649
  "type": "route-group",
650
650
  "domain": "monitoring",
651
651
  "sourcePath": "src/server/routes.ts",
652
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
652
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
653
653
  "since": "2025-01-01"
654
654
  },
655
655
  "route-group:topic-memory": {
@@ -657,7 +657,7 @@
657
657
  "type": "route-group",
658
658
  "domain": "memory",
659
659
  "sourcePath": "src/server/routes.ts",
660
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
660
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
661
661
  "since": "2025-01-01"
662
662
  },
663
663
  "route-group:state-sync": {
@@ -665,7 +665,7 @@
665
665
  "type": "route-group",
666
666
  "domain": "coordination",
667
667
  "sourcePath": "src/server/routes.ts",
668
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
668
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
669
669
  "since": "2025-01-01"
670
670
  },
671
671
  "route-group:intent": {
@@ -673,7 +673,7 @@
673
673
  "type": "route-group",
674
674
  "domain": "intent",
675
675
  "sourcePath": "src/server/routes.ts",
676
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
676
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
677
677
  "since": "2025-01-01"
678
678
  },
679
679
  "route-group:triage": {
@@ -681,7 +681,7 @@
681
681
  "type": "route-group",
682
682
  "domain": "safety",
683
683
  "sourcePath": "src/server/routes.ts",
684
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
684
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
685
685
  "since": "2025-01-01"
686
686
  },
687
687
  "route-group:operations": {
@@ -689,7 +689,7 @@
689
689
  "type": "route-group",
690
690
  "domain": "safety",
691
691
  "sourcePath": "src/server/routes.ts",
692
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
692
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
693
693
  "since": "2025-01-01"
694
694
  },
695
695
  "route-group:sentinel": {
@@ -697,7 +697,7 @@
697
697
  "type": "route-group",
698
698
  "domain": "safety",
699
699
  "sourcePath": "src/server/routes.ts",
700
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
700
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
701
701
  "since": "2025-01-01"
702
702
  },
703
703
  "route-group:trust": {
@@ -705,7 +705,7 @@
705
705
  "type": "route-group",
706
706
  "domain": "safety",
707
707
  "sourcePath": "src/server/routes.ts",
708
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
708
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
709
709
  "since": "2025-01-01"
710
710
  },
711
711
  "route-group:monitoring": {
@@ -713,7 +713,7 @@
713
713
  "type": "route-group",
714
714
  "domain": "monitoring",
715
715
  "sourcePath": "src/server/routes.ts",
716
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
716
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
717
717
  "since": "2025-01-01"
718
718
  },
719
719
  "route-group:commitments": {
@@ -721,7 +721,7 @@
721
721
  "type": "route-group",
722
722
  "domain": "commitments",
723
723
  "sourcePath": "src/server/routes.ts",
724
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
724
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
725
725
  "since": "2025-01-01"
726
726
  },
727
727
  "route-group:episodes": {
@@ -729,7 +729,7 @@
729
729
  "type": "route-group",
730
730
  "domain": "memory",
731
731
  "sourcePath": "src/server/routes.ts",
732
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
732
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
733
733
  "since": "2025-01-01"
734
734
  },
735
735
  "route-group:messages": {
@@ -737,7 +737,7 @@
737
737
  "type": "route-group",
738
738
  "domain": "coordination",
739
739
  "sourcePath": "src/server/routes.ts",
740
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
740
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
741
741
  "since": "2025-01-01"
742
742
  },
743
743
  "route-group:system-reviews": {
@@ -745,7 +745,7 @@
745
745
  "type": "route-group",
746
746
  "domain": "monitoring",
747
747
  "sourcePath": "src/server/routes.ts",
748
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
748
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
749
749
  "since": "2025-01-01"
750
750
  },
751
751
  "route-group:machine-mesh": {
@@ -761,7 +761,7 @@
761
761
  "type": "route-group",
762
762
  "domain": "security",
763
763
  "sourcePath": "src/server/routes.ts",
764
- "contentHash": "dc3bf7dc7f07613be4717b02dc3dfa5ffae4a5e8faa1c401ab1947c010002afb",
764
+ "contentHash": "02158bbab251ccad90f9db38cdfc4836f3d5560fa553f32abba30732b11f4f05",
765
765
  "since": "2025-01-01"
766
766
  },
767
767
  "cli:init": {
@@ -1457,7 +1457,7 @@
1457
1457
  "type": "subsystem",
1458
1458
  "domain": "server",
1459
1459
  "sourcePath": "src/server/AgentServer.ts",
1460
- "contentHash": "d018d7dbd90c5f2564b2049376658c077e506fdc26c36689f4debe0d4e1d5c3e",
1460
+ "contentHash": "1b85f747d68975a430434c51a1958c48dca6652021fcc2ce877bf7ccff172c9a",
1461
1461
  "since": "2025-01-01"
1462
1462
  },
1463
1463
  "subsystem:session-manager": {
@@ -0,0 +1,62 @@
1
+ # Instar Upgrade Guide — NEXT
2
+
3
+ <!-- bump: minor -->
4
+
5
+ ## What Changed
6
+
7
+ **Same-machine a2a transport via `/a2a/inbox`.** PR #462 + #464 shipped the
8
+ receiver wiring + lifeline-forward dispatch path. Dogfood then surfaced the
9
+ root cause they couldn't reach: **Telegram structurally blocks bot-to-bot
10
+ delivery**. From the Bot API FAQ: "bots will not be able to see messages from
11
+ other bots regardless of mode." Echo's mentor bot can SEND to a chat, but no
12
+ other bot's `getUpdates` ever receives those messages — privacy mode,
13
+ `can_read_all_group_messages`, admin status, none of it overrides the rule.
14
+
15
+ This PR adds the canonical same-machine transport: a new `/a2a/inbox` HTTP
16
+ endpoint. The mentor side, on `deliverToMentee`, looks up the mentee in the
17
+ local `AgentRegistry`; if it finds a registered local peer, it POSTs the
18
+ a2a-marker text directly to peer:port/a2a/inbox. The inbox handler invokes
19
+ the same `dispatchAgentMessageHook` that polling + telegram-forward use, so
20
+ the receiver wiring is the same code path. The Telegram bot path is preserved
21
+ as a fallback (currently unreachable for cross-machine peers due to the same
22
+ block — a separate architectural problem tracked as future work).
23
+
24
+ The flow end-to-end (same-machine):
25
+
26
+ 1. Echo's mentor runner calls `deliverToMentee('codex-cli', body)`.
27
+ 2. Echo finds `instar-codex-cli` in AgentRegistry → POSTs to
28
+ `http://localhost:PORT/a2a/inbox` with the marker + body.
29
+ 3. Inbox auth-checks via `verifyAgentToken` (same trust model as
30
+ `/messages/relay-agent`).
31
+ 4. Inbox invokes `ctx.telegram.dispatchAgentMessageHook(...)` with
32
+ `senderIsBot: true` (peers holding our token are bots by construction).
33
+ 5. The mentee receiver hook (installed via `config.mentee.enabled`) routes to
34
+ the `mentor` role-handler → spawn session → reply path via
35
+ `sendAgentMessage(role='mentor-reply', corr=<id>)`.
36
+
37
+ **Migration parity** is automatic: no new config keys, the `mentee` block from
38
+ PR #462 is unchanged, and the inbox route is additive.
39
+
40
+ ## What to Tell Your User
41
+
42
+ For agents on the same machine, mentor cycles now actually deliver. The
43
+ earlier release set up the receiver hook correctly but couldn't reach it in
44
+ production — Telegram itself blocks bots from seeing each other's messages.
45
+ This update routes mentor deliveries directly between local instar servers
46
+ when possible, so the round-trip works end-to-end. No config changes needed.
47
+
48
+ ## Summary of New Capabilities
49
+
50
+ | Capability | How to Use |
51
+ |-----------|-----------|
52
+ | `POST /a2a/inbox` | Same-machine a2a transport. Bearer must match the target agent's per-agent token (from AgentRegistry). Payload: `{ text, topicId, senderAgent, senderIsBot?, senderBotId? }`. Returns `{ ok, agentMessage: true/false, reason? }`. |
53
+ | Automatic same-machine routing in `deliverToMentee` | When the mentee is registered as a local peer, the mentor delivers via HTTP `/a2a/inbox` instead of the Telegram bot path. Telegram bot fallback preserved for cross-machine (currently doesn't deliver due to the bot-to-bot block; tracked). |
54
+
55
+ ## Evidence
56
+
57
+ 12 new tests, all green: 8 integration on the `/a2a/inbox` route (auth
58
+ shape, 401 cases, 503 no-adapter, 400 bad input, 200 routed, 200 not-routed,
59
+ senderIsBot default), 4 E2E lifecycle (hook installed at boot, route alive,
60
+ auth-gated, full claim path with the recording adapter). `tsc --noEmit`
61
+ clean. Side-effects review:
62
+ `upgrades/side-effects/a2a-inbox-http-transport.md`.
@@ -0,0 +1,39 @@
1
+ # Instar Upgrade Guide — NEXT
2
+
3
+ <!-- bump: patch -->
4
+
5
+ ## What Changed
6
+
7
+ **"Open this" topics now arrive named + summarized.** When you promote a Threadline
8
+ conversation into its own topic ("open this" in the Threadline hub), the new topic used to
9
+ get a crude name (the first ~5 words of the cold message) and a single generic "tied to this
10
+ topic" marker — an unlabelled, empty room. Now an LLM names the topic from what the
11
+ conversation is actually about and writes a short orientation summary as the first message
12
+ (who the other agent is, what it's about, where it stands), so you walk in oriented.
13
+
14
+ This is strictly additive on top of the deterministic "open this" intercept. It NEVER fails
15
+ the bind: if the LLM can't run (timeout, daily spend cap, rate-limit, scrubbed output, or
16
+ the deps aren't wired in your build), "open this" degrades to a deterministic templated brief
17
+ (peer · message count · last activity · latest line) — and only falls back to the bare marker
18
+ when there's literally no conversation behind the entry yet. The LLM is a generator, never a
19
+ gate. The naming/summary call runs on the shared interactive LLM lane (you're waiting on it)
20
+ with a 3.5s ceiling, ~1 cent per call, governed by the existing daily spend cap.
21
+
22
+ Credential scrubbing uses value-pattern detection (actual `sk-…`/`xoxb-…`/`ghp_…`/key blocks),
23
+ not bare english words — so a legitimate technical topic ("token refresh triage", "API key
24
+ rotation") is named normally, while a pasted secret never lands in your chat-list title or the
25
+ first message.
26
+
27
+ ## What to Tell Your User
28
+
29
+ Nothing to do — it's automatic. Next time you "open this" in the Threadline topic, the new
30
+ topic shows up with a real name and a short summary of the conversation inside it, instead of
31
+ an empty room. "Tie this to <existing topic>" is unchanged. (The topic takes a few seconds to
32
+ appear while the summary is generated; if the model is slow you still get an instant plain brief.)
33
+
34
+ ## Summary of New Capabilities
35
+
36
+ | Capability | How to Use |
37
+ |-----------|-----------|
38
+ | "Open this" topics are LLM-named + summarized | In the Threadline hub topic, say "open this" — the new topic gets an LLM-generated name and a summary of the conversation as its first message. Automatic; no command or flag. |
39
+ | Always-contextful fallback | If the LLM can't run (timeout / daily cap / unwired), the new topic still gets a deterministic templated brief (peer · message count · last activity · latest line) instead of the old empty marker. The bind never fails on LLM trouble. |
@@ -0,0 +1,128 @@
1
+ # Side-Effects Review — same-machine a2a transport via `/a2a/inbox`
2
+
3
+ **Spec:** `docs/specs/MENTOR-LIVE-READINESS-SPEC.md` §Recipient side. Third
4
+ fast-follow to PR #462 (receiver wiring) + PR #464 (lifeline-forward
5
+ dispatch). Closes the bot-to-bot-block gap surfaced by dogfood.
6
+
7
+ **Root cause being addressed:** Telegram Bot API structurally blocks
8
+ bot-to-bot delivery: "Bots talking to each other could potentially get stuck
9
+ in unwelcome loops. To avoid this, we decided that bots will not be able to
10
+ see messages from other bots regardless of mode." (Bot API FAQ.) The spec
11
+ assumed `Echo's mentor bot → Codey's primary bot via shared chat → Codey's
12
+ lifeline forwards` would work. Empirically it doesn't — verified by sending
13
+ 4 marker messages to topic 458, Codey's bot poll-offset never advances past
14
+ them, his lifeline-forward stays silent.
15
+
16
+ **Change:** Three production files + two test files.
17
+ - `src/server/routes.ts` (+ ~70 LoC: new `/a2a/inbox` POST route)
18
+ - `src/server/middleware.ts` (+ 2 LoC: skip the API bearer middleware for
19
+ `/a2a/inbox` — uses per-agent token like `/messages/relay-agent`)
20
+ - `src/server/AgentServer.ts` (+ ~75 LoC: same-machine path in
21
+ `deliverToMentee` via AgentRegistry + `fetch` to peer's `/a2a/inbox`,
22
+ before the Telegram bot fallback)
23
+ - `tests/integration/a2a-inbox-route.test.ts` (new, 8)
24
+ - `tests/e2e/a2a-inbox-lifecycle.test.ts` (new, 4)
25
+
26
+ ## What changed
27
+
28
+ 1. **`POST /a2a/inbox`** on every instar server. Accepts:
29
+ `{ text, topicId, senderAgent?, senderIsBot?, senderBotId?, fromUserId? }`.
30
+ Auth: Bearer token must match the target agent's per-agent token
31
+ (`verifyAgentToken` — same shape as `/messages/relay-agent`). Behaviour:
32
+ - 401 if bearer is missing or wrong
33
+ - 503 if no `ctx.telegram` adapter is configured at all (no hook surface)
34
+ - 400 if `text` (string) or `topicId` (number) are missing / malformed
35
+ - 200 `{ ok, agentMessage: true }` when the adapter's
36
+ `dispatchAgentMessageHook` claims the message
37
+ - 200 `{ ok, agentMessage: false, reason: 'not-routed' }` when the hook
38
+ refuses (no marker / malformed / not-allowlisted / not-allowed-role).
39
+ The route is dedicated to a2a — non-routable messages are NOT forwarded
40
+ to user-message handling.
41
+ - `senderIsBot` defaults to `true` if omitted — local peers holding our
42
+ agent token are bots by construction (the spoof defense is satisfied
43
+ by the bearer-token check upstream).
44
+ 2. **Auth middleware bypass for `/a2a/inbox`** — alongside the existing
45
+ `/messages/relay-agent` and `/messages/relay-machine` bypasses, since the
46
+ inbox enforces its own per-agent-token auth in-handler. Without this
47
+ bypass the API bearer middleware (using `config.authToken`) would 403
48
+ the request, because the caller holds the TARGET's per-agent token,
49
+ not the API bearer.
50
+ 3. **Same-machine routing in `deliverToMentee`** — before the existing
51
+ Telegram bot delivery, the method now:
52
+ - Imports `listAgents` from AgentRegistry + `getAgentToken` from the
53
+ token manager (lazy-imported inside the closure to avoid loading the
54
+ registry on every server boot).
55
+ - Looks up the mentee by `name === menteeAgent && name !== self.config.projectName`
56
+ (anti-self-target).
57
+ - If a local peer with a port is found AND we have the peer's token,
58
+ POSTs to `http://localhost:PORT/a2a/inbox` with the marker text +
59
+ sender context. On `agentMessage: true`, marks the outstanding-prompt
60
+ tracker as sent and audits a `transport: 'a2a-inbox-local'` row in
61
+ the sent-ledger.
62
+ - On any failure (no peer, no token, HTTP error, hook refused) logs and
63
+ falls through to the existing Telegram bot path (preserved unchanged
64
+ for cross-machine; currently unreachable due to the same bot-to-bot
65
+ block — a separate cross-machine transport is future work).
66
+ - The anti-ping-pong check (`outstanding.canSendTo`) runs ONCE before
67
+ either transport so the same correlation key gates both paths.
68
+
69
+ ## The seven questions
70
+
71
+ 1. **Over-block.** N/A. The inbox is a NEW dedicated endpoint; the route
72
+ refuses non-routable traffic with `agentMessage: false` but never
73
+ forwards to user handling. No existing route's behaviour changes.
74
+ 2. **Under-block.** Spoof defense is intact: per-agent token bearer auth
75
+ gates the route. `senderIsBot` defaulting to `true` is correct because
76
+ the peer authenticated with the target's own token — the spoof defense
77
+ it would otherwise enforce is satisfied earlier by the bearer check.
78
+ Anti-ping-pong: `outstanding.canSendTo` runs before either transport so
79
+ one outstanding prompt blocks both paths.
80
+ 3. **Level-of-abstraction fit.** Mirrors `/messages/relay-agent`'s pattern
81
+ exactly: own route, own auth, dispatch into existing in-process state.
82
+ No new abstraction.
83
+ 4. **Signal vs authority.** Inbox DECIDES route-or-drop via the hook (the
84
+ hook's existing routing matrix is the spec); audit ledger captures the
85
+ result. `deliverToMentee` DECIDES transport (local vs Telegram). All
86
+ audited; no silent paths.
87
+ 5. **Interactions.** Reuses AgentRegistry + AgentTokenManager (same APIs
88
+ already used by `/messages/relay-agent`). Reuses
89
+ `getOrCreateA2aLedger` + `getOrCreateMentorOutstanding` from the mentor
90
+ sender side. Reuses `dispatchAgentMessageHook` from PR #464. No new
91
+ shared mutable state.
92
+ 6. **External surfaces.** One new HTTP route (`/a2a/inbox`). One new
93
+ audit-ledger transport value (`'a2a-inbox-local'`). No new config keys.
94
+ 7. **Rollback cost.** Trivial — revert removes the route, the middleware
95
+ bypass, and the same-machine branch in `deliverToMentee`. The Telegram
96
+ bot path is untouched and preserved.
97
+
98
+ ## Testing
99
+
100
+ 12 new tests, all green (`tsc --noEmit` clean):
101
+
102
+ - **Tier 2 integration (8):** `a2a-inbox-route` covers the auth + input-
103
+ validation matrix (401 missing bearer, 401 wrong bearer, 503 no adapter,
104
+ 400 missing text, 400 bad topicId, 200 routed, 200 not-routed, 200 with
105
+ default senderIsBot:true).
106
+ - **Tier 3 E2E lifecycle (4):** `a2a-inbox-lifecycle` covers full server
107
+ boot with the mentee receiver wiring + the inbox route alive (not 404),
108
+ auth-gated, and the full claim path that proves the inbox invokes the
109
+ adapter dispatcher end-to-end on the real production init path.
110
+
111
+ A unit-tier slice for the same-machine branch in `deliverToMentee` is
112
+ deferred — covered transitively by the E2E + the existing unit suite for
113
+ `OutstandingPromptTracker` + the new integration test for the inbox route.
114
+ A dedicated unit on the `deliverToMentee` branch would require mocking
115
+ `fetch` + AgentRegistry + getAgentToken — defensible to add later but the
116
+ behaviour is already tested at the boundary.
117
+
118
+ ## Migration parity
119
+
120
+ No new config keys. The route registers unconditionally; if no
121
+ `config.mentee.enabled` block is set on the receiver, the adapter has no
122
+ hook installed and the route returns `agentMessage: false`. The
123
+ `/messages/relay-agent` precedent is identical (always-registered route,
124
+ behaviour depends on installed state).
125
+
126
+ The `deliverToMentee` change is purely additive — when no local peer is
127
+ registered, behaviour is byte-for-byte the same as before. No PostUpdateMigrator
128
+ change required.