instar 1.2.2 → 1.2.3

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.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Persistent autonomy infrastructure for AI agents",
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-21T04:38:07.750Z",
5
- "instarVersion": "1.2.2",
4
+ "generatedAt": "2026-05-21T06:01:43.565Z",
5
+ "instarVersion": "1.2.3",
6
6
  "entryCount": 190,
7
7
  "entries": {
8
8
  "hook:session-start": {
@@ -392,7 +392,7 @@
392
392
  "type": "route-group",
393
393
  "domain": "monitoring",
394
394
  "sourcePath": "src/server/routes.ts",
395
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
395
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
396
396
  "since": "2025-01-01"
397
397
  },
398
398
  "route-group:agents": {
@@ -400,7 +400,7 @@
400
400
  "type": "route-group",
401
401
  "domain": "sessions",
402
402
  "sourcePath": "src/server/routes.ts",
403
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
403
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
404
404
  "since": "2025-01-01"
405
405
  },
406
406
  "route-group:backups": {
@@ -408,7 +408,7 @@
408
408
  "type": "route-group",
409
409
  "domain": "operations",
410
410
  "sourcePath": "src/server/routes.ts",
411
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
411
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
412
412
  "since": "2025-01-01"
413
413
  },
414
414
  "route-group:git": {
@@ -416,7 +416,7 @@
416
416
  "type": "route-group",
417
417
  "domain": "coordination",
418
418
  "sourcePath": "src/server/routes.ts",
419
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
419
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
420
420
  "since": "2025-01-01"
421
421
  },
422
422
  "route-group:memory": {
@@ -424,7 +424,7 @@
424
424
  "type": "route-group",
425
425
  "domain": "memory",
426
426
  "sourcePath": "src/server/routes.ts",
427
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
427
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
428
428
  "since": "2025-01-01"
429
429
  },
430
430
  "route-group:semantic": {
@@ -432,7 +432,7 @@
432
432
  "type": "route-group",
433
433
  "domain": "memory",
434
434
  "sourcePath": "src/server/routes.ts",
435
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
435
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
436
436
  "since": "2025-01-01"
437
437
  },
438
438
  "route-group:status": {
@@ -440,7 +440,7 @@
440
440
  "type": "route-group",
441
441
  "domain": "monitoring",
442
442
  "sourcePath": "src/server/routes.ts",
443
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
443
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
444
444
  "since": "2025-01-01"
445
445
  },
446
446
  "route-group:capabilities": {
@@ -448,7 +448,7 @@
448
448
  "type": "route-group",
449
449
  "domain": "mapping",
450
450
  "sourcePath": "src/server/routes.ts",
451
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
451
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
452
452
  "since": "2025-01-01"
453
453
  },
454
454
  "route-group:project-map": {
@@ -456,7 +456,7 @@
456
456
  "type": "route-group",
457
457
  "domain": "mapping",
458
458
  "sourcePath": "src/server/routes.ts",
459
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
459
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
460
460
  "since": "2025-01-01"
461
461
  },
462
462
  "route-group:coherence": {
@@ -464,7 +464,7 @@
464
464
  "type": "route-group",
465
465
  "domain": "coherence",
466
466
  "sourcePath": "src/server/routes.ts",
467
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
467
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
468
468
  "since": "2025-01-01"
469
469
  },
470
470
  "route-group:topic-bindings": {
@@ -472,7 +472,7 @@
472
472
  "type": "route-group",
473
473
  "domain": "sessions",
474
474
  "sourcePath": "src/server/routes.ts",
475
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
475
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
476
476
  "since": "2025-01-01"
477
477
  },
478
478
  "route-group:context": {
@@ -480,7 +480,7 @@
480
480
  "type": "route-group",
481
481
  "domain": "context",
482
482
  "sourcePath": "src/server/routes.ts",
483
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
483
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
484
484
  "since": "2025-01-01"
485
485
  },
486
486
  "route-group:scope-coherence": {
@@ -488,7 +488,7 @@
488
488
  "type": "route-group",
489
489
  "domain": "coherence",
490
490
  "sourcePath": "src/server/routes.ts",
491
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
491
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
492
492
  "since": "2025-01-01"
493
493
  },
494
494
  "route-group:canonical-state": {
@@ -496,7 +496,7 @@
496
496
  "type": "route-group",
497
497
  "domain": "state",
498
498
  "sourcePath": "src/server/routes.ts",
499
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
499
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
500
500
  "since": "2025-01-01"
501
501
  },
502
502
  "route-group:ci": {
@@ -504,7 +504,7 @@
504
504
  "type": "route-group",
505
505
  "domain": "monitoring",
506
506
  "sourcePath": "src/server/routes.ts",
507
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
507
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
508
508
  "since": "2025-01-01"
509
509
  },
510
510
  "route-group:sessions": {
@@ -512,7 +512,7 @@
512
512
  "type": "route-group",
513
513
  "domain": "sessions",
514
514
  "sourcePath": "src/server/routes.ts",
515
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
515
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
516
516
  "since": "2025-01-01"
517
517
  },
518
518
  "route-group:jobs": {
@@ -520,7 +520,7 @@
520
520
  "type": "route-group",
521
521
  "domain": "scheduling",
522
522
  "sourcePath": "src/server/routes.ts",
523
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
523
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
524
524
  "since": "2025-01-01"
525
525
  },
526
526
  "route-group:skip-ledger": {
@@ -528,7 +528,7 @@
528
528
  "type": "route-group",
529
529
  "domain": "scheduling",
530
530
  "sourcePath": "src/server/routes.ts",
531
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
531
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
532
532
  "since": "2025-01-01"
533
533
  },
534
534
  "route-group:telegram": {
@@ -536,7 +536,7 @@
536
536
  "type": "route-group",
537
537
  "domain": "communication",
538
538
  "sourcePath": "src/server/routes.ts",
539
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
539
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
540
540
  "since": "2025-01-01"
541
541
  },
542
542
  "route-group:attention": {
@@ -544,7 +544,7 @@
544
544
  "type": "route-group",
545
545
  "domain": "communication",
546
546
  "sourcePath": "src/server/routes.ts",
547
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
547
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
548
548
  "since": "2025-01-01"
549
549
  },
550
550
  "route-group:relationships": {
@@ -552,7 +552,7 @@
552
552
  "type": "route-group",
553
553
  "domain": "relationships",
554
554
  "sourcePath": "src/server/routes.ts",
555
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
555
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
556
556
  "since": "2025-01-01"
557
557
  },
558
558
  "route-group:feedback": {
@@ -560,7 +560,7 @@
560
560
  "type": "route-group",
561
561
  "domain": "feedback",
562
562
  "sourcePath": "src/server/routes.ts",
563
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
563
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
564
564
  "since": "2025-01-01"
565
565
  },
566
566
  "route-group:updates": {
@@ -568,7 +568,7 @@
568
568
  "type": "route-group",
569
569
  "domain": "updates",
570
570
  "sourcePath": "src/server/routes.ts",
571
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
571
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
572
572
  "since": "2025-01-01"
573
573
  },
574
574
  "route-group:dispatches": {
@@ -576,7 +576,7 @@
576
576
  "type": "route-group",
577
577
  "domain": "dispatches",
578
578
  "sourcePath": "src/server/routes.ts",
579
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
579
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
580
580
  "since": "2025-01-01"
581
581
  },
582
582
  "route-group:quota": {
@@ -584,7 +584,7 @@
584
584
  "type": "route-group",
585
585
  "domain": "monitoring",
586
586
  "sourcePath": "src/server/routes.ts",
587
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
587
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
588
588
  "since": "2025-01-01"
589
589
  },
590
590
  "route-group:publishing": {
@@ -592,7 +592,7 @@
592
592
  "type": "route-group",
593
593
  "domain": "publishing",
594
594
  "sourcePath": "src/server/routes.ts",
595
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
595
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
596
596
  "since": "2025-01-01"
597
597
  },
598
598
  "route-group:private-views": {
@@ -600,7 +600,7 @@
600
600
  "type": "route-group",
601
601
  "domain": "publishing",
602
602
  "sourcePath": "src/server/routes.ts",
603
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
603
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
604
604
  "since": "2025-01-01"
605
605
  },
606
606
  "route-group:tunnel": {
@@ -608,7 +608,7 @@
608
608
  "type": "route-group",
609
609
  "domain": "networking",
610
610
  "sourcePath": "src/server/routes.ts",
611
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
611
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
612
612
  "since": "2025-01-01"
613
613
  },
614
614
  "route-group:events": {
@@ -616,7 +616,7 @@
616
616
  "type": "route-group",
617
617
  "domain": "networking",
618
618
  "sourcePath": "src/server/routes.ts",
619
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
619
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
620
620
  "since": "2025-01-01"
621
621
  },
622
622
  "route-group:evolution": {
@@ -624,7 +624,7 @@
624
624
  "type": "route-group",
625
625
  "domain": "evolution",
626
626
  "sourcePath": "src/server/routes.ts",
627
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
627
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
628
628
  "since": "2025-01-01"
629
629
  },
630
630
  "route-group:watchdog": {
@@ -632,7 +632,7 @@
632
632
  "type": "route-group",
633
633
  "domain": "monitoring",
634
634
  "sourcePath": "src/server/routes.ts",
635
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
635
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
636
636
  "since": "2025-01-01"
637
637
  },
638
638
  "route-group:topic-memory": {
@@ -640,7 +640,7 @@
640
640
  "type": "route-group",
641
641
  "domain": "memory",
642
642
  "sourcePath": "src/server/routes.ts",
643
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
643
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
644
644
  "since": "2025-01-01"
645
645
  },
646
646
  "route-group:state-sync": {
@@ -648,7 +648,7 @@
648
648
  "type": "route-group",
649
649
  "domain": "coordination",
650
650
  "sourcePath": "src/server/routes.ts",
651
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
651
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
652
652
  "since": "2025-01-01"
653
653
  },
654
654
  "route-group:intent": {
@@ -656,7 +656,7 @@
656
656
  "type": "route-group",
657
657
  "domain": "intent",
658
658
  "sourcePath": "src/server/routes.ts",
659
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
659
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
660
660
  "since": "2025-01-01"
661
661
  },
662
662
  "route-group:triage": {
@@ -664,7 +664,7 @@
664
664
  "type": "route-group",
665
665
  "domain": "safety",
666
666
  "sourcePath": "src/server/routes.ts",
667
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
667
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
668
668
  "since": "2025-01-01"
669
669
  },
670
670
  "route-group:operations": {
@@ -672,7 +672,7 @@
672
672
  "type": "route-group",
673
673
  "domain": "safety",
674
674
  "sourcePath": "src/server/routes.ts",
675
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
675
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
676
676
  "since": "2025-01-01"
677
677
  },
678
678
  "route-group:sentinel": {
@@ -680,7 +680,7 @@
680
680
  "type": "route-group",
681
681
  "domain": "safety",
682
682
  "sourcePath": "src/server/routes.ts",
683
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
683
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
684
684
  "since": "2025-01-01"
685
685
  },
686
686
  "route-group:trust": {
@@ -688,7 +688,7 @@
688
688
  "type": "route-group",
689
689
  "domain": "safety",
690
690
  "sourcePath": "src/server/routes.ts",
691
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
691
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
692
692
  "since": "2025-01-01"
693
693
  },
694
694
  "route-group:monitoring": {
@@ -696,7 +696,7 @@
696
696
  "type": "route-group",
697
697
  "domain": "monitoring",
698
698
  "sourcePath": "src/server/routes.ts",
699
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
699
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
700
700
  "since": "2025-01-01"
701
701
  },
702
702
  "route-group:commitments": {
@@ -704,7 +704,7 @@
704
704
  "type": "route-group",
705
705
  "domain": "commitments",
706
706
  "sourcePath": "src/server/routes.ts",
707
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
707
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
708
708
  "since": "2025-01-01"
709
709
  },
710
710
  "route-group:episodes": {
@@ -712,7 +712,7 @@
712
712
  "type": "route-group",
713
713
  "domain": "memory",
714
714
  "sourcePath": "src/server/routes.ts",
715
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
715
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
716
716
  "since": "2025-01-01"
717
717
  },
718
718
  "route-group:messages": {
@@ -720,7 +720,7 @@
720
720
  "type": "route-group",
721
721
  "domain": "coordination",
722
722
  "sourcePath": "src/server/routes.ts",
723
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
723
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
724
724
  "since": "2025-01-01"
725
725
  },
726
726
  "route-group:system-reviews": {
@@ -728,7 +728,7 @@
728
728
  "type": "route-group",
729
729
  "domain": "monitoring",
730
730
  "sourcePath": "src/server/routes.ts",
731
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
731
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
732
732
  "since": "2025-01-01"
733
733
  },
734
734
  "route-group:machine-mesh": {
@@ -744,7 +744,7 @@
744
744
  "type": "route-group",
745
745
  "domain": "security",
746
746
  "sourcePath": "src/server/routes.ts",
747
- "contentHash": "e0abd503b434c2df51917a9a68f8a9a2d514c61faf43012712878282eb9ccf8d",
747
+ "contentHash": "6c19b445bbf110caa476b8a54386ca8c83e3061fc28a7f291a0f15642f956283",
748
748
  "since": "2025-01-01"
749
749
  },
750
750
  "cli:init": {
@@ -0,0 +1,43 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- bump: minor -->
4
+ <!-- minor = new agent-facing capability without breaking changes -->
5
+
6
+ ## What Changed
7
+
8
+ **feat(server): `/capabilities` now actually enumerates the primitives it claims to know about — and a lint locks the promise structurally.**
9
+
10
+ The agent CLAUDE.md template tells every new agent: *"Before EVER saying 'I don't have' or 'this isn't available' — check what actually exists: `curl /capabilities`. It is the source of truth about what you can do."* That promise was silently false. `GET /capabilities` is a hand-curated object literal in `routes.ts`, and several agent-facing primitives lived as registered routes without ever appearing in the response:
11
+
12
+ - **Secret Drop** — the safe-channel credential intake (`POST /secrets/request`, `/secrets/retrieve/:token`, `/secrets/pending`, `DELETE /secrets/pending/:token`). Agents that trusted `/capabilities` as authoritative reached for chat-paste / env-var workarounds because the discovery primitive didn't list it.
13
+ - **CommitmentTracker** — `/commitments/*` CRUD that feeds PromiseBeacon.
14
+ - **TokenLedger** — `/tokens/{summary,sessions,by-project,orphans}` for token-usage observability.
15
+ - **SemanticMemory** — `/semantic/*`, the successor to the deprecated `/memory` endpoint.
16
+ - **Private Viewer endpoints** — `POST /view`, `GET /views`, `GET/PUT/DELETE /view/:viewId` were behind a block that only reported a count.
17
+ - **Telegraph publishing endpoints** — `POST /publish`, `GET /published`, `PUT /publish/:pagePath` were behind a block that only reported a count and a warning.
18
+
19
+ This release surfaces all of the above in `/capabilities` with full endpoint listings, including a hardening note on the `secrets` block pointing at `.instar/scripts/secret-drop-retrieve.mjs` as the safe retrieval helper (raw `curl` against `/secrets/retrieve` leaks the secret into the Bash transcript).
20
+
21
+ The structural enforcement is a new unit test, `tests/unit/capabilities-discoverability.test.ts`, that walks `src/server/routes.ts` for every top-level route prefix and asserts each either appears in the `/capabilities` response body or is on an explicit `INTERNAL_ALLOWLIST` with a one-line reason. Adding a new route prefix that is neither surfaced nor allowlisted will fail CI until the author makes a deliberate choice about discoverability.
22
+
23
+ ## What to Tell Your User
24
+
25
+ No user-visible behavior change. Agents will, however, become more accurate about what they can do: when asked "can you do X?" they will read their live self-discovery surface first, and that surface now actually lists the full picture. The most visible improvement is that agents will reach for Secret Drop when a user needs to share a credential, instead of falling back to "paste it in chat" or "put it in an env var."
26
+
27
+ ## Summary of New Capabilities
28
+
29
+ For the agent: the same primitives existed before, but they were only discoverable by reading the CLAUDE.md template — a ~1500-line document that is easy to skim past. Now they are first-class entries in the live `/capabilities` response.
30
+
31
+ Quick check from an agent session:
32
+
33
+ ```bash
34
+ curl -s -H "Authorization: Bearer $AUTH" http://localhost:$INSTAR_PORT/capabilities | jq '.secrets, .commitments, .tokens, .semantic, .privateViewer.endpoints, .publishing.endpoints'
35
+ ```
36
+
37
+ ## Evidence
38
+
39
+ The discoverability gap was reproduced before the fix: `curl /capabilities | jq 'keys'` on v1.1.4 returned a 25-key object with no `secrets`, `commitments`, `tokens`, or `semantic` blocks, and `.privateViewer` / `.publishing` exposed only counts. After the fix, the same call returns all six blocks with explicit endpoint listings.
40
+
41
+ The new lint test was verified end-to-end: with the `secrets` block removed from the response, `npx vitest run tests/unit/capabilities-discoverability.test.ts` fails with a precise error pointing the author at the missing entry; with the block restored, all 81 tests pass.
42
+
43
+ Origin: case study seeded into topic 11141 ("🔍 Discoverability Secret Access") on 2026-05-20, root-cause audit on 2026-05-21.
@@ -0,0 +1,116 @@
1
+ # Side-Effects Review — Capabilities Discoverability
2
+
3
+ **Version / slug:** `capabilities-discoverability`
4
+ **Date:** `2026-05-21`
5
+ **Author:** `Echo (instar-developing agent)`
6
+ **Second-pass reviewer:** `not required` (additive observability change with no decision-point surface)
7
+
8
+ ## Summary of the change
9
+
10
+ Surfaces six previously-invisible primitives in the `GET /capabilities` response — `secrets`, `commitments`, `tokens`, `semantic`, plus explicit endpoint arrays on the existing `publishing` and `privateViewer` blocks. Adds a new unit test `tests/unit/capabilities-discoverability.test.ts` that walks `src/server/routes.ts` for every top-level route prefix and asserts each either appears in the `/capabilities` response body or is on an explicit `INTERNAL_ALLOWLIST` with a one-line reason.
11
+
12
+ Files touched:
13
+
14
+ - `src/server/routes.ts` — six additive blocks inside the existing `GET /capabilities` handler.
15
+ - `src/data/builtin-manifest.json` — regenerated content hashes for the `route-group` entries that cover routes.ts.
16
+ - `tests/unit/capabilities-discoverability.test.ts` — new lint test.
17
+ - `upgrades/NEXT.md` — release notes.
18
+ - `docs/specs/capabilities-discoverability.md` + `docs/specs/capabilities-discoverability.eli16.md` — spec + ELI16 companion.
19
+
20
+ ## Decision-point inventory
21
+
22
+ - `GET /capabilities` response body — **modify (additive)** — the agent's authoritative self-discovery surface. Six new fields added; no existing field removed or shape-changed.
23
+ - New lint test — **add** — fails CI if any route prefix isn't either surfaced or allowlisted. No runtime block authority.
24
+
25
+ ---
26
+
27
+ ## 1. Over-block
28
+
29
+ **What legitimate inputs does this change reject that it shouldn't?**
30
+
31
+ No block/allow surface — over-block not applicable. The runtime change is pure response-body enrichment. The lint test only blocks at CI when a new route prefix is registered without a discoverability decision being made; that's the intent.
32
+
33
+ ---
34
+
35
+ ## 2. Under-block
36
+
37
+ **What failure modes does this still miss?**
38
+
39
+ The lint asserts each prefix appears *somewhere* in the response body. It does NOT verify the surfaced entries actually match the live routes — a typo in the endpoint listing string ("POST /secrtes/request") would slip through. This is the minimum-viable bar; a follow-up could compare the endpoint strings against the actual registered routes. Tracked but not blocking.
40
+
41
+ The lint also does not catch the case where a route prefix exists, is allowlisted as "surfaced inside X block," but X block was later removed. The allowlist is comment-anchored, not code-anchored. Acceptable because each allowlist entry has a one-line reason; reviewer catches drift on the next PR that touches X.
42
+
43
+ ---
44
+
45
+ ## 3. Level-of-abstraction fit
46
+
47
+ **Is this at the right layer?**
48
+
49
+ The runtime change is at the right layer: it enriches a response handler that already exists, no new module needed. The lint is at the right layer: a unit test that parses source, no server runtime needed, fast enough to run on every push.
50
+
51
+ The deferred follow-up (introspecting `/capabilities` from `FeatureRegistry` + live router) would be a refactor at a higher layer — replacing the hand-curated object literal with a derivation. That's the right home for a future PR but would balloon scope here.
52
+
53
+ ---
54
+
55
+ ## 4. Signal vs authority compliance
56
+
57
+ **Required reference:** [docs/signal-vs-authority.md](../../docs/signal-vs-authority.md)
58
+
59
+ **Does this change hold blocking authority with brittle logic?**
60
+
61
+ - [x] No — this change has no block/allow surface at runtime.
62
+
63
+ The lint test holds CI-time block authority (it can fail a build), but that authority is delegated to a human reviewer + branch-protection rules; the lint itself just emits a signal. The runtime change is pure observability — no decision point is gated on the new fields.
64
+
65
+ ---
66
+
67
+ ## 5. Interactions
68
+
69
+ **Does this interact with existing checks, recovery paths, or infrastructure?**
70
+
71
+ - **Shadowing:** the `/capabilities` response is consumed by agents, by the dashboard, by `feature-delivery-completeness.test.ts`, and by `SeedMigration.test.ts`. All consumers do field-presence checks, not exact-shape assertions; additive fields are safe. Verified by running the full unit suite — no new failures introduced.
72
+ - **Double-fire:** no overlap with other checks; `/capabilities` is a single read endpoint.
73
+ - **Races:** no shared state introduced.
74
+ - **Feedback loops:** none. The response is read-only.
75
+
76
+ The new lint test reads `src/server/routes.ts` and the `INTERNAL_ALLOWLIST` literal. Its only "interaction" is with future PRs that add route prefixes — the lint will fail loudly until those PRs either surface or allowlist the new prefix. That's the intent.
77
+
78
+ ---
79
+
80
+ ## 6. External surfaces
81
+
82
+ **Does this change anything visible outside the immediate code path?**
83
+
84
+ - **Agents on the same machine:** yes — agents will see additional fields in `/capabilities`. All new fields are nested under new keys (`secrets`, `commitments`, etc.) or are new keys (`endpoints`) on existing nested objects. No existing key changes shape. Agents that ignore unknown keys continue to work; agents that iterate keys now see more capabilities, which is the intended behavior.
85
+ - **Other users / install base:** no behavioral change. The next release will publish the enlarged response.
86
+ - **External systems:** no external surface touched.
87
+ - **Persistent state:** none — `/capabilities` is a read endpoint, no writes.
88
+ - **Timing / runtime conditions:** the new blocks include `secretDrop.listPending().length` and reads of `ctx.publisher?.listPages()`, `ctx.viewer?.list()`. All three are cheap in-memory reads that the response already touched. No new latency surface.
89
+
90
+ ---
91
+
92
+ ## 7. Rollback cost
93
+
94
+ **If this turns out wrong in production, what's the back-out?**
95
+
96
+ Pure code change. Revert the two files (`src/server/routes.ts` and the new test) and the manifest will regenerate on the next build. No persistent state, no agent-state repair needed.
97
+
98
+ User-visible regression during rollback window: the new `/capabilities` fields would disappear, and any agent that had started relying on them in the meantime would see a temporary loss of discoverability for those primitives. The primitives themselves keep working — only the discovery surface contracts.
99
+
100
+ Realistic rollback cost: under 5 minutes, single revert + patch release. No downtime.
101
+
102
+ ---
103
+
104
+ ## Conclusion
105
+
106
+ This is a low-risk additive observability change. It closes a structural-honesty gap in the agent's self-discovery surface and locks the promise with a lint that catches future regressions. The runtime change is pure response enrichment with no decision-point surface; the lint is a signal-only test that delegates block authority to the CI gate. Two follow-ups are explicitly deferred and tracked in the spec. No second-pass review required.
107
+
108
+ ---
109
+
110
+ ## Evidence pointers
111
+
112
+ - Spec: `docs/specs/capabilities-discoverability.md`
113
+ - ELI16: `docs/specs/capabilities-discoverability.eli16.md`
114
+ - Repro of the gap (pre-fix): `curl /capabilities | jq 'keys'` on v1.1.4 returns no `secrets`, `commitments`, `tokens`, or `semantic` blocks.
115
+ - Repro of the fix: the new unit test passes 81/81 with the additions in place; removing the `secrets` block from the response makes the corresponding test fail with a precise error pointing the author at the missing entry.
116
+ - Origin: topic 11141 ("🔍 Discoverability Secret Access"), case study seeded 2026-05-20.