instar 1.3.49 → 1.3.51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instar",
3
- "version": "1.3.49",
3
+ "version": "1.3.51",
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-05-28T03:52:42.963Z",
5
- "instarVersion": "1.3.49",
4
+ "generatedAt": "2026-05-28T06:36:08.823Z",
5
+ "instarVersion": "1.3.51",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
412
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
420
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
428
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
436
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
444
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
452
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
460
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
468
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
476
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
484
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
492
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
500
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
508
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
516
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
524
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
532
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
540
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
548
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
556
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
564
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
572
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
580
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
588
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
596
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
604
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
612
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
620
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
628
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
636
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
644
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
652
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
660
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
668
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
676
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
684
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
692
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
700
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
708
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
716
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
724
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
732
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
740
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
748
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "8c1ca53475ef9ebe286fcdc8a4bbf5a46e0503b242dfa1040685e15ea0eea830",
764
+ "contentHash": "b00038a2fd922de8407c786d29ff86296ab470d491e9edc66a42beaae80039a1",
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": "ba49a34f5358b90fe392c012295ad80d1a052736a2ddc9ecb2baffe80977f770",
1461
1461
  "since": "2025-01-01"
1462
1462
  },
1463
1463
  "subsystem:session-manager": {
@@ -1521,7 +1521,7 @@
1521
1521
  "type": "subsystem",
1522
1522
  "domain": "communication",
1523
1523
  "sourcePath": "src/lifeline/TelegramLifeline.ts",
1524
- "contentHash": "4a2f251ab4d091cf62d9826a1738729838775254ff00d6c743787193ca48dd8b",
1524
+ "contentHash": "f44cbf8d78df7dab429a50f3e70c2bb27b6f36a8fb32ea48e7f088650680eec2",
1525
1525
  "since": "2025-01-01"
1526
1526
  },
1527
1527
  "subsystem:orphan-process-reaper": {
@@ -0,0 +1,70 @@
1
+ # Instar Upgrade Guide — NEXT
2
+
3
+ <!-- bump: patch -->
4
+
5
+ ## What Changed
6
+
7
+ **Fix: mentee receiver wiring now fires on the lifeline-forward path.** The
8
+ mentee receiver wiring shipped in PR #462 installs an a2a hook on the primary
9
+ `TelegramAdapter`. But the hook only fired when the adapter polled directly.
10
+ In production both Echo and Codey run with `--no-telegram` — the primary
11
+ adapter is in send-only mode and never polls; the lifeline polls and forwards
12
+ messages via `/internal/telegram-forward`, which called
13
+ `ctx.telegram.onTopicMessage` directly and BYPASSED the a2a hook gate. The
14
+ mentee-side receiver was dead in production as a result.
15
+
16
+ This PR closes the gap end-to-end:
17
+
18
+ 1. **`TelegramAdapter.dispatchAgentMessageHook(ctx)` (new public method)** —
19
+ extracts the hook invocation from the polling text-dispatch path into a
20
+ reusable dispatcher. Polling now calls it; the lifeline-forward handler
21
+ ALSO calls it. Same gate, both paths.
22
+ 2. **`/internal/telegram-forward` (server)** — invokes
23
+ `dispatchAgentMessageHook` BEFORE falling through to `onTopicMessage`. If
24
+ the hook claims the message (`handled:true`), the route short-circuits
25
+ with `{ ok: true, forwarded: true, agentMessage: true }` and the
26
+ user-message path is NOT also dispatched.
27
+ 3. **`TelegramLifeline.forwardToServer` (lifeline)** — populates `senderIsBot`,
28
+ `senderChatId`, `senderBotId` in the forward body from the Telegram update.
29
+ Required so the a2a hook's spoof defense (drop a marker from a real user
30
+ typing a marker-shaped string) can apply on forwarded messages.
31
+
32
+ **Backward compatibility:** newer server / older lifeline → `senderIsBot`
33
+ omitted → treated as falsy → marker-bearing forwards drop closed (matches the
34
+ spec invariant: a real user typing a marker MUST be dropped). Newer
35
+ lifeline / older server → unknown fields ignored, no regression.
36
+
37
+ **Caught by:** dogfood — Echo + Codey on v1.3.49, both with the receiver
38
+ wiring from PR #462 installed and Codey's `config.mentee` block populated.
39
+ Manual `/mentor/tick` failed silently because Codey's hook was never invoked
40
+ on the lifeline-forward path. Spec §Recipient side describes the hook as
41
+ "registered with `TelegramAdapter.onMessage`"; the original implementation
42
+ read this as the polling path, missing the dual-path nature of message
43
+ ingress in send-only mode.
44
+
45
+ ## What to Tell Your User
46
+
47
+ A small fix that closes a quiet but real gap: the cross-agent mentor pipeline
48
+ now actually fires end-to-end in production, not just in tests. The previous
49
+ release shipped the receiver wiring, but only the polling adapter saw
50
+ inbound a2a messages — and in production we run a separate process for
51
+ polling, so the wiring was dead. After this update, mentor prompts route
52
+ correctly through to mentee sessions, and replies come back. No config
53
+ changes required on your end.
54
+
55
+ ## Summary of New Capabilities
56
+
57
+ | Capability | How to Use |
58
+ |-----------|-----------|
59
+ | `TelegramAdapter.dispatchAgentMessageHook(ctx)` | Public dispatcher — any caller in possession of the adapter can invoke the agent-message hook the same way the polling path does. The lifeline-forward handler now does this automatically. |
60
+ | Lifeline-forward carries spoof-defense fields | `senderIsBot`/`senderChatId`/`senderBotId` are populated in the `/internal/telegram-forward` body so the a2a hook's spoof defense applies on forwarded messages. |
61
+
62
+ ## Evidence
63
+
64
+ 11 new tests, all green: 8 unit on `dispatchAgentMessageHook` (no-op safe,
65
+ handled returns true, fall-through, FAIL-OPEN on hook throw, three
66
+ senderBotId derivation modes, caller override); 3 integration on the
67
+ `/internal/telegram-forward` route (short-circuit when claimed,
68
+ fall-through when not, backward-compat with adapters lacking the method).
69
+ `tsc --noEmit` clean. Side-effects review:
70
+ `upgrades/side-effects/mentee-receiver-forward-dispatch.md`.
@@ -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`.