instar 1.3.845 → 1.3.847

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 (36) hide show
  1. package/dist/commands/server.d.ts.map +1 -1
  2. package/dist/commands/server.js +13 -5
  3. package/dist/commands/server.js.map +1 -1
  4. package/dist/core/SessionManager.d.ts +4 -0
  5. package/dist/core/SessionManager.d.ts.map +1 -1
  6. package/dist/core/SessionManager.js +11 -5
  7. package/dist/core/SessionManager.js.map +1 -1
  8. package/dist/monitoring/ApprenticeshipCycleStore.d.ts +3 -1
  9. package/dist/monitoring/ApprenticeshipCycleStore.d.ts.map +1 -1
  10. package/dist/monitoring/ApprenticeshipCycleStore.js +29 -9
  11. package/dist/monitoring/ApprenticeshipCycleStore.js.map +1 -1
  12. package/dist/monitoring/ApprenticeshipPeerCycleReader.d.ts +35 -0
  13. package/dist/monitoring/ApprenticeshipPeerCycleReader.d.ts.map +1 -0
  14. package/dist/monitoring/ApprenticeshipPeerCycleReader.js +82 -0
  15. package/dist/monitoring/ApprenticeshipPeerCycleReader.js.map +1 -0
  16. package/dist/scaffold/templates.d.ts.map +1 -1
  17. package/dist/scaffold/templates.js +1 -0
  18. package/dist/scaffold/templates.js.map +1 -1
  19. package/dist/server/AgentServer.d.ts +2 -0
  20. package/dist/server/AgentServer.d.ts.map +1 -1
  21. package/dist/server/AgentServer.js +8 -0
  22. package/dist/server/AgentServer.js.map +1 -1
  23. package/dist/server/middleware.d.ts.map +1 -1
  24. package/dist/server/middleware.js +4 -1
  25. package/dist/server/middleware.js.map +1 -1
  26. package/dist/server/routes.d.ts +2 -0
  27. package/dist/server/routes.d.ts.map +1 -1
  28. package/dist/server/routes.js +58 -2
  29. package/dist/server/routes.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/data/builtin-manifest.json +48 -48
  32. package/src/scaffold/templates.ts +1 -0
  33. package/upgrades/1.3.846.md +20 -0
  34. package/upgrades/1.3.847.md +20 -0
  35. package/upgrades/side-effects/apprenticeship-cross-agent-role-coverage.md +82 -0
  36. package/upgrades/side-effects/codex-framework-continuation-history.md +26 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instar",
3
- "version": "1.3.845",
3
+ "version": "1.3.847",
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-07-16T19:39:41.854Z",
5
- "instarVersion": "1.3.845",
4
+ "generatedAt": "2026-07-16T21:09:31.734Z",
5
+ "instarVersion": "1.3.847",
6
6
  "entryCount": 202,
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
421
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
429
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
437
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
445
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
453
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
461
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
469
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
477
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
485
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
493
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
501
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
509
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
517
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
525
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
533
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
541
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
549
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
557
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
565
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
573
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
581
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
589
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
597
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
605
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
613
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
621
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
629
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
637
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
645
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
653
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
661
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
669
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
677
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
685
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
693
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
701
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
709
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
717
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
725
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
733
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
741
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
749
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
757
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
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": "6d6399818723a1de0855d94a63c75f5edd7782f69ab4251d9584c4f92463c45b",
773
+ "contentHash": "f57142bd5c08001335b0427583071a7d44aa1053b8c76afc5711183236e99334",
774
774
  "since": "2025-01-01"
775
775
  },
776
776
  "cli:init": {
@@ -1530,7 +1530,7 @@
1530
1530
  "type": "subsystem",
1531
1531
  "domain": "server",
1532
1532
  "sourcePath": "src/server/AgentServer.ts",
1533
- "contentHash": "ce5540e419322933aa47c6130cd3862c4a56bfb0df127c82e366f4e1cd17a457",
1533
+ "contentHash": "011e7607b5e1c77f6c0ea5dc88a96bc7c57f29011c7b320e7e2db7c739076df7",
1534
1534
  "since": "2025-01-01"
1535
1535
  },
1536
1536
  "subsystem:session-manager": {
@@ -1538,7 +1538,7 @@
1538
1538
  "type": "subsystem",
1539
1539
  "domain": "sessions",
1540
1540
  "sourcePath": "src/core/SessionManager.ts",
1541
- "contentHash": "5a3ab1757ddff12d07fcb0488c586cb07678e348f3c02bd93357430f161e7017",
1541
+ "contentHash": "fbcafb9c34120283417e8bb6807e1d67101e6526867ce8669a404169e4739144",
1542
1542
  "since": "2025-01-01"
1543
1543
  },
1544
1544
  "subsystem:auto-updater": {
@@ -678,6 +678,7 @@ I declare owner/blockedOn at commitment creation; a later state change goes thro
678
678
  - Record a manual cycle: \`POST /apprenticeship/cycles\` with the id of an existing \`active\` registry instance plus positive \`cycleNumber\`, \`task\`, \`menteeOutput\`, optional \`mentorFlagged\` / \`overseerDifferential\` / \`coaching\` / \`infraItems\`, \`kind\` (\`mentor-mentee-differential\`, \`overseer-apprentice-devreview\`, \`overseer-mentee-direct\`), and \`channel\` (\`telegram-playwright\`, \`threadline-backup\`, \`direct-shortcut\`, \`unknown\`). Unknown, pending, blocked, complete, and abandoned instance references are refused. A \`telegram-playwright\` cycle additionally REQUIRES a \`transcriptAudit\` block — \`{ topicIds, window: {start,end}, summary, findingDedupKeys, generatedAt, ledger: 'local'|'remote'|'dry-run'|'failed' }\` — built from \`instar dev:post-drive-transcript-audit\` run over the drive window (use \`--history-base-url\` when the transcript lives on the mentee's server; \`ledger:'local'\` claims are cross-checked against the real framework ledger). Existing legacy dangling rows are never rewritten: inspect them with \`GET /apprenticeship/cycles/integrity\`. Use this when the overseer or manual loop found a differential outside the automated mentor tick.
679
679
  - **When to use** (PROACTIVE): when starting or closing a mentorship/apprenticeship instance, drive it through the registry + transitions so the retro-harvest is reviewed before the next instance starts and the lessons are captured before this one closes — never track an instance's lifecycle by memory.
680
680
  - Layer-balance health: \`GET /apprenticeship/instances/:id/role-coverage\` now returns a \`keystoneBalance\` block — \`{ keystoneAxis, keystoneCycleCount, lastKeystoneAt, oversightSinceKeystone, starved, dormant, lastKeystoneAgeMs, reason }\`. It answers "is my deepest layer (the real mentor→mentee drive) actually firing, or have I drifted into just reviewing/overseeing?" \`starved:true\` means the mentee layer is under-firing relative to ongoing oversight. \`dormant:true\` is the complementary blind spot: the keystone has gone wall-clock silent past the dormancy threshold, which the bare oversight count reads as "healthy" — so check \`dormant\` too, not just \`starved\`. Observe-only — it never gates. Tune with \`?oversightStarvationThreshold=N\` (starvation) and \`?keystoneDormancyMs=N\` (dormancy). **When to use** (PROACTIVE): before deciding the apprenticeship loop is healthy, check it — a starved OR dormant keystone is the silent "mentor-heavy/mentee-light" drift; if either fires, drive the mentee layer (a real \`mentor-mentee-differential\` cycle through the dogfooded channel) rather than another review.
681
+ - Cross-agent coverage: that read merges a bounded census of cycle evidence from running, registered agents on the host. Always inspect \`aggregation.complete\`, \`aggregation.omittedPeerCount\`, \`aggregation.conflictingCycleIds\`, and \`aggregation.peerSources\`: an unreachable, truncated, omitted, or UUID-conflicting source makes completeness false, so partial truth is never presented as complete role truth.
681
682
 
682
683
  **Failure-Learning Loop** — Dev-process failure forensics (instar self-hosting). When something you built breaks later, it's captured and traced back to the spec/initiative/project AND the dev toolchain that produced it; the analyzer surfaces process-gap patterns and opens human-approved tracked fixes, then verifies whether each fix actually reduced that failure class. Ships OFF (\`monitoring.failureLearning.enabled\`); registers itself on the initiative board.
683
684
  - Why features break / failure rate by tool / are our fixes working: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/failures/analysis\` — answer from here, never from memory.
@@ -0,0 +1,20 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ `GET /apprenticeship/instances/:id/role-coverage` now combines the serving agent's cycle rows with bounded authenticated reads from running, registered non-lifeline agents on the same host. Exact cycle UUIDs are deduplicated before the existing keystone calculation runs. The response adds `aggregation.complete`, `omittedPeerCount`, `conflictingCycleIds`, and `peerSources` so failed, capped, truncated, or contradictory peer reads remain explicit.
9
+
10
+ ## What to Tell Your User
11
+
12
+ Apprenticeship role health now reflects cycles recorded by other agents on the same machine, instead of treating this agent's local database as the whole program. If a peer cannot be read, the answer says the census is incomplete rather than quietly claiming the keystone is starved.
13
+
14
+ ## Summary of New Capabilities
15
+
16
+ The existing role-coverage endpoint provides a same-host cross-agent merged view with per-source completeness metadata. It remains read-only and never gates apprenticeship lifecycle actions.
17
+
18
+ ## Evidence
19
+
20
+ Unit coverage proves bounded peer discovery, authenticated fetches, explicit partial results, and deduplication. Integration coverage proves a remote keystone changes a formerly false-starved route result. The AgentServer E2E proves the merged result and source metadata are live through the production route. TypeScript and the affected apprenticeship suites pass.
@@ -0,0 +1,20 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ Framework switches into Codex now recognize the Codex prompt promptly and wait until the continuation
9
+ bootstrap is injected before handing the new session back to the messaging bridge. A switch with no
10
+ new user message loads its history silently instead of inventing a new scope response.
11
+
12
+ ## What to Tell Your User
13
+
14
+ Switching a live topic from Claude to Codex now carries the recent conversation before Codex can
15
+ answer the next message.
16
+
17
+ ## Summary of New Capabilities
18
+
19
+ - Framework-aware interactive readiness recognizes both Claude and Codex prompts.
20
+ - Framework handoffs can require bootstrap delivery before session registration completes.
@@ -0,0 +1,82 @@
1
+ # Side-Effects Review — Cross-agent apprenticeship role coverage
2
+
3
+ **Version / slug:** `apprenticeship-cross-agent-role-coverage`
4
+ **Date:** `2026-07-16`
5
+ **Author:** `instar-codey`
6
+ **Second-pass reviewer:** `not required`
7
+
8
+ ## Summary of the change
9
+
10
+ The role-coverage route now performs a bounded read of cycle evidence held by other running agents registered on the same host, deduplicates remote rows against the local store, and calculates the existing role and keystone signals over the union. `ApprenticeshipPeerCycleReader` owns peer discovery and HTTP reads; `ApprenticeshipCycleStore.roleCoverage` remains the single calculation layer. The response names completeness, capped omissions, truncation, UUID conflicts, and per-peer failures. No lifecycle decision changes.
11
+
12
+ ## Decision-point inventory
13
+
14
+ No block/allow decision point is added or modified. The route remains observe-only. Peer inclusion uses structural registry facts (running, non-self, non-lifeline) and bounded transport validation.
15
+
16
+ ## 1. Over-block
17
+
18
+ No block/allow surface — over-block not applicable. A peer failure does not block the local read.
19
+
20
+ ## 2. Under-block
21
+
22
+ No block/allow surface — under-block not applicable. The read can still be incomplete when a peer is unreachable, lacks an agent token, returns malformed rows, or holds more than 500 matching cycles; every such case is named through `aggregation.complete:false` and `peerSources` rather than hidden.
23
+
24
+ ## 3. Level-of-abstraction fit
25
+
26
+ The peer reader is the transport/collection layer and the cycle store remains the only role-coverage calculation layer. This avoids parallel keystone math in the route and avoids turning derived visibility into replicated authoritative state.
27
+
28
+ ## 4. Signal vs authority compliance
29
+
30
+ **Required reference:** [docs/signal-vs-authority.md](../../docs/signal-vs-authority.md)
31
+
32
+ - [x] No — this change has no block/allow surface.
33
+
34
+ `starved`, `dormant`, and completeness are observations. Nothing acts on them automatically.
35
+
36
+ ## 4b. Judgment-point check (Judgment Within Floors standard)
37
+
38
+ No new static heuristic at a competing-signals decision point. Registry filtering and record-shape checks are enumerable transport invariants; they do not decide what work an agent may do.
39
+
40
+ ## 5. Interactions
41
+
42
+ - **Shadowing:** the merged route calls the existing store calculation after peer collection; it does not shadow the local store.
43
+ - **Double-fire:** exact cycle UUID mirrors count once. A duplicate UUID with different coverage fields makes completeness false and is named in `conflictingCycleIds`; the first/local copy remains the deterministic calculation input.
44
+ - **Races:** concurrent cycle writes may land just after a peer responds, as with any read snapshot. The next read sees them. No write lock is taken.
45
+ - **Feedback loops:** none; the result remains observe-only and is not written back into a cycle store.
46
+
47
+ ## 6. External surfaces
48
+
49
+ The existing JSON response gains additive `aggregation` metadata and its counts can increase when another registered agent holds matching evidence. Reads add bounded localhost HTTP traffic: at most 32 concurrent peer requests, five seconds each, 500 rows each. Eligible peers beyond 32 are counted as omitted and force `complete:false`. No persistent state or external service changes. No operator-facing action is added.
50
+
51
+ ## 6b. Operator-surface quality (Operator-Surface Quality standard)
52
+
53
+ No operator surface — not applicable.
54
+
55
+ ## 7. Multi-machine posture (Cross-Machine Coherence)
56
+
57
+ **Proxied-on-read within the host's cross-agent registry.** Agent cycle stores remain deliberately per-agent; the merged role-coverage read proxies up to 32 running agents registered on that host and explicitly counts any omitted remainder. A single agent replicated across multiple machines is a separate machine-pool topology and is not silently claimed here: `scope: registered-agents` names the boundary. The endpoint emits no notices, generates no URLs, and moves no durable state, so topic transfer does not strand new state.
58
+
59
+ ## 8. Rollback cost
60
+
61
+ Pure read-path code and additive response metadata. Revert and ship a patch; no data migration or agent-state repair is required. Rollback temporarily restores the known local-only false-starvation view.
62
+
63
+ ## Conclusion
64
+
65
+ The design fixes the real same-host cross-agent blind spot at read time, preserves local storage ownership, and makes partial or contradictory truth explicit. Independent review caught two honesty gaps—silent peer-cap omission and divergent duplicate UUIDs—and both now force `complete:false`. The bounded peer collector and single calculation layer are clear to ship.
66
+
67
+ ## Second-pass review (if required)
68
+
69
+ **Reviewer:** independent item-15 reviewer
70
+
71
+ **Independent read of the artifact: concur.** Initial concerns about silent peer-cap omissions and divergent duplicate UUIDs were resolved by explicit omission/conflict fields, completeness downgrade, and regression tests.
72
+
73
+ ## Evidence pointers
74
+
75
+ - `tests/unit/apprenticeship-peer-cycle-reader.test.ts`
76
+ - `tests/unit/apprenticeship-cycle-store.test.ts`
77
+ - `tests/integration/apprenticeship-routes.test.ts`
78
+ - `tests/e2e/apprenticeship-lifecycle.test.ts`
79
+
80
+ ## Class-Closure Declaration (display-only mirror)
81
+
82
+ No agent-authored-artifact defect and no self-triggered controller — not applicable.
@@ -0,0 +1,26 @@
1
+ # Side-Effects Review — Codex framework-switch continuation
2
+
3
+ **Date:** 2026-07-16
4
+ **Author:** instar-codey
5
+ **Second-pass reviewer:** pending Echo PR review
6
+
7
+ ## Summary
8
+
9
+ The existing continuation context was correct, but interactive readiness recognized only Claude's
10
+ prompt. Codex therefore waited through the primary and extended readiness timeouts before the
11
+ best-effort injection, while the bridge could already route a new user message to that context-free
12
+ session. The fix recognizes Codex's prompt and makes framework handoffs await the durable bootstrap
13
+ injection before returning. A handoff with no new user message now explicitly loads context silently,
14
+ which also removes the trigger for the observed unsolicited scope narration.
15
+
16
+ ## Interaction review
17
+
18
+ - Normal cold spawns keep their asynchronous durable pending-inject behavior; only framework handoffs
19
+ opt into the await.
20
+ - The pending-inject record is still written before readiness and cleared only after injection.
21
+ - Claude readiness remains unchanged; generic shell prompts are still excluded.
22
+ - No endpoint, schema, authority, timer, or history source changes.
23
+
24
+ ## Rollback
25
+
26
+ Code-only revert. Pending-inject records remain compatible and require no repair.