instar 0.28.86 → 0.28.87

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 (33) hide show
  1. package/dist/core/InitiativeTracker.d.ts +1 -0
  2. package/dist/core/InitiativeTracker.d.ts.map +1 -1
  3. package/dist/core/InitiativeTracker.js +8 -1
  4. package/dist/core/InitiativeTracker.js.map +1 -1
  5. package/dist/core/PlanDocParser.d.ts +62 -0
  6. package/dist/core/PlanDocParser.d.ts.map +1 -0
  7. package/dist/core/PlanDocParser.js +328 -0
  8. package/dist/core/PlanDocParser.js.map +1 -0
  9. package/dist/core/SafeYaml.d.ts +45 -0
  10. package/dist/core/SafeYaml.d.ts.map +1 -0
  11. package/dist/core/SafeYaml.js +230 -0
  12. package/dist/core/SafeYaml.js.map +1 -0
  13. package/dist/core/SessionManager.d.ts +12 -0
  14. package/dist/core/SessionManager.d.ts.map +1 -1
  15. package/dist/core/SessionManager.js +60 -0
  16. package/dist/core/SessionManager.js.map +1 -1
  17. package/dist/core/StageTransitionValidator.d.ts +97 -0
  18. package/dist/core/StageTransitionValidator.d.ts.map +1 -0
  19. package/dist/core/StageTransitionValidator.js +338 -0
  20. package/dist/core/StageTransitionValidator.js.map +1 -0
  21. package/dist/monitoring/StallTriageNurse.d.ts +11 -0
  22. package/dist/monitoring/StallTriageNurse.d.ts.map +1 -1
  23. package/dist/monitoring/StallTriageNurse.js +66 -0
  24. package/dist/monitoring/StallTriageNurse.js.map +1 -1
  25. package/dist/server/routes.d.ts.map +1 -1
  26. package/dist/server/routes.js +312 -0
  27. package/dist/server/routes.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/data/builtin-manifest.json +47 -47
  30. package/upgrades/0.28.87.md +153 -0
  31. package/upgrades/side-effects/0.28.86.md +13 -0
  32. package/upgrades/side-effects/project-scope-phase1a-pr2.md +377 -0
  33. package/upgrades/side-effects/verify-injection-stuck-input.md +107 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instar",
3
- "version": "0.28.86",
3
+ "version": "0.28.87",
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-11T19:04:47.355Z",
5
- "instarVersion": "0.28.86",
4
+ "generatedAt": "2026-05-11T20:08:03.908Z",
5
+ "instarVersion": "0.28.87",
6
6
  "entryCount": 187,
7
7
  "entries": {
8
8
  "hook:session-start": {
@@ -384,7 +384,7 @@
384
384
  "type": "route-group",
385
385
  "domain": "monitoring",
386
386
  "sourcePath": "src/server/routes.ts",
387
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
387
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
388
388
  "since": "2025-01-01"
389
389
  },
390
390
  "route-group:agents": {
@@ -392,7 +392,7 @@
392
392
  "type": "route-group",
393
393
  "domain": "sessions",
394
394
  "sourcePath": "src/server/routes.ts",
395
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
395
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
396
396
  "since": "2025-01-01"
397
397
  },
398
398
  "route-group:backups": {
@@ -400,7 +400,7 @@
400
400
  "type": "route-group",
401
401
  "domain": "operations",
402
402
  "sourcePath": "src/server/routes.ts",
403
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
403
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
404
404
  "since": "2025-01-01"
405
405
  },
406
406
  "route-group:git": {
@@ -408,7 +408,7 @@
408
408
  "type": "route-group",
409
409
  "domain": "coordination",
410
410
  "sourcePath": "src/server/routes.ts",
411
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
411
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
412
412
  "since": "2025-01-01"
413
413
  },
414
414
  "route-group:memory": {
@@ -416,7 +416,7 @@
416
416
  "type": "route-group",
417
417
  "domain": "memory",
418
418
  "sourcePath": "src/server/routes.ts",
419
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
419
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
420
420
  "since": "2025-01-01"
421
421
  },
422
422
  "route-group:semantic": {
@@ -424,7 +424,7 @@
424
424
  "type": "route-group",
425
425
  "domain": "memory",
426
426
  "sourcePath": "src/server/routes.ts",
427
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
427
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
428
428
  "since": "2025-01-01"
429
429
  },
430
430
  "route-group:status": {
@@ -432,7 +432,7 @@
432
432
  "type": "route-group",
433
433
  "domain": "monitoring",
434
434
  "sourcePath": "src/server/routes.ts",
435
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
435
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
436
436
  "since": "2025-01-01"
437
437
  },
438
438
  "route-group:capabilities": {
@@ -440,7 +440,7 @@
440
440
  "type": "route-group",
441
441
  "domain": "mapping",
442
442
  "sourcePath": "src/server/routes.ts",
443
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
443
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
444
444
  "since": "2025-01-01"
445
445
  },
446
446
  "route-group:project-map": {
@@ -448,7 +448,7 @@
448
448
  "type": "route-group",
449
449
  "domain": "mapping",
450
450
  "sourcePath": "src/server/routes.ts",
451
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
451
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
452
452
  "since": "2025-01-01"
453
453
  },
454
454
  "route-group:coherence": {
@@ -456,7 +456,7 @@
456
456
  "type": "route-group",
457
457
  "domain": "coherence",
458
458
  "sourcePath": "src/server/routes.ts",
459
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
459
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
460
460
  "since": "2025-01-01"
461
461
  },
462
462
  "route-group:topic-bindings": {
@@ -464,7 +464,7 @@
464
464
  "type": "route-group",
465
465
  "domain": "sessions",
466
466
  "sourcePath": "src/server/routes.ts",
467
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
467
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
468
468
  "since": "2025-01-01"
469
469
  },
470
470
  "route-group:context": {
@@ -472,7 +472,7 @@
472
472
  "type": "route-group",
473
473
  "domain": "context",
474
474
  "sourcePath": "src/server/routes.ts",
475
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
475
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
476
476
  "since": "2025-01-01"
477
477
  },
478
478
  "route-group:scope-coherence": {
@@ -480,7 +480,7 @@
480
480
  "type": "route-group",
481
481
  "domain": "coherence",
482
482
  "sourcePath": "src/server/routes.ts",
483
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
483
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
484
484
  "since": "2025-01-01"
485
485
  },
486
486
  "route-group:canonical-state": {
@@ -488,7 +488,7 @@
488
488
  "type": "route-group",
489
489
  "domain": "state",
490
490
  "sourcePath": "src/server/routes.ts",
491
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
491
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
492
492
  "since": "2025-01-01"
493
493
  },
494
494
  "route-group:ci": {
@@ -496,7 +496,7 @@
496
496
  "type": "route-group",
497
497
  "domain": "monitoring",
498
498
  "sourcePath": "src/server/routes.ts",
499
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
499
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
500
500
  "since": "2025-01-01"
501
501
  },
502
502
  "route-group:sessions": {
@@ -504,7 +504,7 @@
504
504
  "type": "route-group",
505
505
  "domain": "sessions",
506
506
  "sourcePath": "src/server/routes.ts",
507
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
507
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
508
508
  "since": "2025-01-01"
509
509
  },
510
510
  "route-group:jobs": {
@@ -512,7 +512,7 @@
512
512
  "type": "route-group",
513
513
  "domain": "scheduling",
514
514
  "sourcePath": "src/server/routes.ts",
515
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
515
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
516
516
  "since": "2025-01-01"
517
517
  },
518
518
  "route-group:skip-ledger": {
@@ -520,7 +520,7 @@
520
520
  "type": "route-group",
521
521
  "domain": "scheduling",
522
522
  "sourcePath": "src/server/routes.ts",
523
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
523
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
524
524
  "since": "2025-01-01"
525
525
  },
526
526
  "route-group:telegram": {
@@ -528,7 +528,7 @@
528
528
  "type": "route-group",
529
529
  "domain": "communication",
530
530
  "sourcePath": "src/server/routes.ts",
531
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
531
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
532
532
  "since": "2025-01-01"
533
533
  },
534
534
  "route-group:attention": {
@@ -536,7 +536,7 @@
536
536
  "type": "route-group",
537
537
  "domain": "communication",
538
538
  "sourcePath": "src/server/routes.ts",
539
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
539
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
540
540
  "since": "2025-01-01"
541
541
  },
542
542
  "route-group:relationships": {
@@ -544,7 +544,7 @@
544
544
  "type": "route-group",
545
545
  "domain": "relationships",
546
546
  "sourcePath": "src/server/routes.ts",
547
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
547
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
548
548
  "since": "2025-01-01"
549
549
  },
550
550
  "route-group:feedback": {
@@ -552,7 +552,7 @@
552
552
  "type": "route-group",
553
553
  "domain": "feedback",
554
554
  "sourcePath": "src/server/routes.ts",
555
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
555
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
556
556
  "since": "2025-01-01"
557
557
  },
558
558
  "route-group:updates": {
@@ -560,7 +560,7 @@
560
560
  "type": "route-group",
561
561
  "domain": "updates",
562
562
  "sourcePath": "src/server/routes.ts",
563
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
563
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
564
564
  "since": "2025-01-01"
565
565
  },
566
566
  "route-group:dispatches": {
@@ -568,7 +568,7 @@
568
568
  "type": "route-group",
569
569
  "domain": "dispatches",
570
570
  "sourcePath": "src/server/routes.ts",
571
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
571
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
572
572
  "since": "2025-01-01"
573
573
  },
574
574
  "route-group:quota": {
@@ -576,7 +576,7 @@
576
576
  "type": "route-group",
577
577
  "domain": "monitoring",
578
578
  "sourcePath": "src/server/routes.ts",
579
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
579
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
580
580
  "since": "2025-01-01"
581
581
  },
582
582
  "route-group:publishing": {
@@ -584,7 +584,7 @@
584
584
  "type": "route-group",
585
585
  "domain": "publishing",
586
586
  "sourcePath": "src/server/routes.ts",
587
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
587
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
588
588
  "since": "2025-01-01"
589
589
  },
590
590
  "route-group:private-views": {
@@ -592,7 +592,7 @@
592
592
  "type": "route-group",
593
593
  "domain": "publishing",
594
594
  "sourcePath": "src/server/routes.ts",
595
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
595
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
596
596
  "since": "2025-01-01"
597
597
  },
598
598
  "route-group:tunnel": {
@@ -600,7 +600,7 @@
600
600
  "type": "route-group",
601
601
  "domain": "networking",
602
602
  "sourcePath": "src/server/routes.ts",
603
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
603
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
604
604
  "since": "2025-01-01"
605
605
  },
606
606
  "route-group:events": {
@@ -608,7 +608,7 @@
608
608
  "type": "route-group",
609
609
  "domain": "networking",
610
610
  "sourcePath": "src/server/routes.ts",
611
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
611
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
612
612
  "since": "2025-01-01"
613
613
  },
614
614
  "route-group:evolution": {
@@ -616,7 +616,7 @@
616
616
  "type": "route-group",
617
617
  "domain": "evolution",
618
618
  "sourcePath": "src/server/routes.ts",
619
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
619
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
620
620
  "since": "2025-01-01"
621
621
  },
622
622
  "route-group:watchdog": {
@@ -624,7 +624,7 @@
624
624
  "type": "route-group",
625
625
  "domain": "monitoring",
626
626
  "sourcePath": "src/server/routes.ts",
627
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
627
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
628
628
  "since": "2025-01-01"
629
629
  },
630
630
  "route-group:topic-memory": {
@@ -632,7 +632,7 @@
632
632
  "type": "route-group",
633
633
  "domain": "memory",
634
634
  "sourcePath": "src/server/routes.ts",
635
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
635
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
636
636
  "since": "2025-01-01"
637
637
  },
638
638
  "route-group:state-sync": {
@@ -640,7 +640,7 @@
640
640
  "type": "route-group",
641
641
  "domain": "coordination",
642
642
  "sourcePath": "src/server/routes.ts",
643
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
643
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
644
644
  "since": "2025-01-01"
645
645
  },
646
646
  "route-group:intent": {
@@ -648,7 +648,7 @@
648
648
  "type": "route-group",
649
649
  "domain": "intent",
650
650
  "sourcePath": "src/server/routes.ts",
651
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
651
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
652
652
  "since": "2025-01-01"
653
653
  },
654
654
  "route-group:triage": {
@@ -656,7 +656,7 @@
656
656
  "type": "route-group",
657
657
  "domain": "safety",
658
658
  "sourcePath": "src/server/routes.ts",
659
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
659
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
660
660
  "since": "2025-01-01"
661
661
  },
662
662
  "route-group:operations": {
@@ -664,7 +664,7 @@
664
664
  "type": "route-group",
665
665
  "domain": "safety",
666
666
  "sourcePath": "src/server/routes.ts",
667
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
667
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
668
668
  "since": "2025-01-01"
669
669
  },
670
670
  "route-group:sentinel": {
@@ -672,7 +672,7 @@
672
672
  "type": "route-group",
673
673
  "domain": "safety",
674
674
  "sourcePath": "src/server/routes.ts",
675
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
675
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
676
676
  "since": "2025-01-01"
677
677
  },
678
678
  "route-group:trust": {
@@ -680,7 +680,7 @@
680
680
  "type": "route-group",
681
681
  "domain": "safety",
682
682
  "sourcePath": "src/server/routes.ts",
683
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
683
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
684
684
  "since": "2025-01-01"
685
685
  },
686
686
  "route-group:monitoring": {
@@ -688,7 +688,7 @@
688
688
  "type": "route-group",
689
689
  "domain": "monitoring",
690
690
  "sourcePath": "src/server/routes.ts",
691
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
691
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
692
692
  "since": "2025-01-01"
693
693
  },
694
694
  "route-group:commitments": {
@@ -696,7 +696,7 @@
696
696
  "type": "route-group",
697
697
  "domain": "commitments",
698
698
  "sourcePath": "src/server/routes.ts",
699
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
699
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
700
700
  "since": "2025-01-01"
701
701
  },
702
702
  "route-group:episodes": {
@@ -704,7 +704,7 @@
704
704
  "type": "route-group",
705
705
  "domain": "memory",
706
706
  "sourcePath": "src/server/routes.ts",
707
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
707
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
708
708
  "since": "2025-01-01"
709
709
  },
710
710
  "route-group:messages": {
@@ -712,7 +712,7 @@
712
712
  "type": "route-group",
713
713
  "domain": "coordination",
714
714
  "sourcePath": "src/server/routes.ts",
715
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
715
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
716
716
  "since": "2025-01-01"
717
717
  },
718
718
  "route-group:system-reviews": {
@@ -720,7 +720,7 @@
720
720
  "type": "route-group",
721
721
  "domain": "monitoring",
722
722
  "sourcePath": "src/server/routes.ts",
723
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
723
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
724
724
  "since": "2025-01-01"
725
725
  },
726
726
  "route-group:machine-mesh": {
@@ -736,7 +736,7 @@
736
736
  "type": "route-group",
737
737
  "domain": "security",
738
738
  "sourcePath": "src/server/routes.ts",
739
- "contentHash": "e66eb60abd18d4ae6b44ecd007b1e1248ef80f8fbb3acc345a67832060d9485f",
739
+ "contentHash": "1ecd66f6392872c8c208d1b19d5af5b1b5228e843fdcb60467da55d5972b888b",
740
740
  "since": "2025-01-01"
741
741
  },
742
742
  "cli:init": {
@@ -1416,7 +1416,7 @@
1416
1416
  "type": "subsystem",
1417
1417
  "domain": "sessions",
1418
1418
  "sourcePath": "src/core/SessionManager.ts",
1419
- "contentHash": "bbd65732738409d65ac1f394d88abc0d245c6e4ab4a29d0a47bb5b8379fa87a2",
1419
+ "contentHash": "bf12e9af008f4076a752e4fc3d8271fa1f9bf01ab41dc499f6f733f49d9d3604",
1420
1420
  "since": "2025-01-01"
1421
1421
  },
1422
1422
  "subsystem:auto-updater": {
@@ -0,0 +1,153 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- bump: minor -->
4
+ <!-- Valid values: patch, minor, major -->
5
+ <!-- patch = bug fixes, refactors, test additions, doc updates -->
6
+ <!-- minor = new features, new APIs, new capabilities (backwards-compatible) -->
7
+ <!-- major = breaking changes to existing APIs or behavior -->
8
+
9
+ ## What Changed
10
+
11
+ ### Stuck Telegram messages — auto-resend Enter after paste
12
+
13
+ On Claude Code v2.1.105 and newer, the Enter keypress after a bracketed-paste
14
+ sequence is occasionally eaten by a race with the paste-end handler. The
15
+ injected message — including Telegram and Slack relays — would land in the
16
+ prompt and sit there forever, never submitted, until someone pressed Enter
17
+ in the dashboard or tmux session manually.
18
+
19
+ Two-layer fix:
20
+
21
+ - **`SessionManager.verifyInjection`** (proactive). After every `rawInject`,
22
+ schedule a 1.5-second check that compares the first 40 chars of the message
23
+ against the pane at the `❯` prompt. If it's still there, send one extra
24
+ Enter. Single-shot per injection, no-op when the text submitted normally,
25
+ reports recovery via `DegradationReporter`.
26
+ - **`StallTriageNurse` fast-path** (recovery-time backstop). Before paying for
27
+ an LLM diagnosis call, the triage nurse checks for ≥20 chars of text at the
28
+ `❯` prompt without any processing glyphs (`⎿ ✶ ⏺` / "Coalescing" /
29
+ "thinking" / "esc to interrupt"). If detected, nudge with a single Enter and
30
+ skip the LLM round-trip. Conservative heuristic — false positives at worst
31
+ send a harmless Enter.
32
+
33
+ Tests: `tests/unit/session-injection-verify.test.ts` (7 tests),
34
+ `tests/unit/stall-triage-typed-not-submitted.test.ts` (5 tests).
35
+
36
+ Side-effects review:
37
+ `upgrades/side-effects/verify-injection-stuck-input.md`.
38
+
39
+ ### Project-scope Phase 1a PR 2 — Stage validator + `/projects` API
40
+
41
+ Second of three PRs scaffolding the project-scope feature. PR 1 added
42
+ the type-level fields; this PR adds the persistence-layer validator and
43
+ the HTTP surface your agent uses to register and inspect projects.
44
+
45
+ Spec source: `docs/specs/PROJECT-SCOPE-SPEC.md` §§ Phase 1.2, 1.3, 1.6,
46
+ 1.10, 1.12.
47
+
48
+ **New files (persistence/validator layer):**
49
+ - `src/core/SafeYaml.ts` — minimal hand-rolled YAML-frontmatter
50
+ extractor with bounded depth and length, so user-supplied plan docs
51
+ can't smuggle in YAML-bomb input.
52
+ - `src/core/PlanDocParser.ts` — parses a plan-doc markdown file into
53
+ `{project, children, errors}`. Validates required frontmatter, slug
54
+ shape, source/effort/scope tags, child uniqueness, round membership.
55
+ - `src/core/StageTransitionValidator.ts` — deterministic validator for
56
+ child-initiative `pipelineStage` edges (`outline → approved →
57
+ building → merged`, plus skipped/regressed). Every check is an
58
+ artifact assertion: frontmatter literal equality, `gh pr view`
59
+ reports `MERGED`, file exists, realpath jailed under
60
+ `targetRepoPath`.
61
+
62
+ **New HTTP endpoints (all require auth):**
63
+
64
+ | Endpoint | Status | Notes |
65
+ |----------|--------|-------|
66
+ | `GET /projects` | functional | Lists project-kind initiatives. |
67
+ | `GET /projects/:id` | functional | Project + its children. Supports `?fields=<csv>` projection. |
68
+ | `GET /projects/:id/next` | placeholder (501) | Round-runner lands in Phase 1b. |
69
+ | `POST /projects` | functional | Creates project + children from a plan doc. Rate-limited 5/hour per auth token. |
70
+ | `POST /projects/validate` | functional | Dry-run plan-doc parse; no side effects. |
71
+ | `DELETE /projects/:id` | functional | Archives; requires `If-Match`; refuses while a round is in-progress. |
72
+
73
+ The full Phase 1.3 endpoint set (`advance`, `drift-check`, `halt`,
74
+ `ack`, `accept-partial`, `claim-ownership`, `resolve-conflict`) lands
75
+ in Phase 1b once the round-runner exists.
76
+
77
+ **Other changes:**
78
+ - `InitiativeTracker.list({ kind })` — new optional filter on `list()`.
79
+ Records without explicit `kind` are treated as `'task'` for back-compat.
80
+ - Rate-limit counter persisted at `.instar/local/projects-rate.json`
81
+ (gitignored; never syncs across machines — matches per-agent semantics).
82
+
83
+ ## What to Tell Your User
84
+
85
+ Two things landed in this release.
86
+
87
+ First — a fix for the stuck-Telegram-message bug. Sometimes your message would
88
+ land in my input box but never actually submit, and you'd have to press Enter
89
+ in the dashboard to unstick me. That race is now caught automatically: after
90
+ every injection I do a quick re-check, and if your message is still sitting
91
+ there waiting, I press Enter for it. There's also a backstop in the stall
92
+ recovery path. You shouldn't have to nudge me again.
93
+
94
+ Second — your agent now has a real HTTP surface for projects. You (or your
95
+ agent) can register a multi-spec project from a plan-doc markdown file and
96
+ have the agent track it as a top-level project-kind initiative with children
97
+ rolled up underneath.
98
+
99
+ Right now the projects piece is plumbing. It lets a caller do six things:
100
+ list projects, fetch one, dry-run a plan doc, create from a plan doc, ask
101
+ "what's next?" (currently returns a placeholder — the round-runner lands in
102
+ the next phase), and archive a project. The endpoints are auth-gated and
103
+ creation is rate-limited to five per hour so a buggy caller cannot
104
+ accidentally spawn a flood of projects. The advance, halt, and acknowledge
105
+ endpoints — the ones that actually drive a project forward — land in the
106
+ next phase along with the round-runner that powers them.
107
+
108
+ Nothing existing changes shape. The initiatives routes still return what
109
+ they always did. If you do not use the new endpoints, you will not notice
110
+ anything.
111
+
112
+ ## Summary of New Capabilities
113
+
114
+ | Capability | How to Use |
115
+ |-----------|-----------|
116
+ | Auto-recover stuck Telegram/Slack injections | automatic — `SessionManager.verifyInjection` resends Enter when needed |
117
+ | Register a project from a plan doc | `POST /projects` with `{"planDocPath": "<abs-path>"}` |
118
+ | Dry-run validate a plan doc | `POST /projects/validate` with `{"planDocPath": "<abs-path>"}` |
119
+ | List all projects | `GET /projects` |
120
+ | Fetch project + children | `GET /projects/:id` (optionally `?fields=id,title,pipelineStage`) |
121
+ | Archive a project | `DELETE /projects/:id` with `If-Match: <version>` |
122
+ | Stage-transition validator (library) | `import { validateStageTransition } from './core/StageTransitionValidator.js'` |
123
+
124
+ ## Evidence
125
+
126
+ **Stuck-input fix (PR #151).** Reproduction: Justin observed Telegram messages
127
+ landing in Claude Code's input buffer at the `❯` prompt without being submitted
128
+ on Claude Code v2.1.139, confirmed by a 2026-05-11 dashboard screenshot showing
129
+ the message text visible at the prompt with no processing glyphs. The race
130
+ matches the original failure mode that the verifyInjection design (April 13,
131
+ commit a81699d4) was written for. Observed-before: message sat in input
132
+ indefinitely until a manual Enter from the dashboard. Verified-after: with
133
+ verifyInjection in `rawInject`, a 1.5s post-injection check fires and
134
+ auto-resends Enter when the marker text is still at the prompt; recovery
135
+ reported via DegradationReporter. Coverage:
136
+ - `tests/unit/session-injection-verify.test.ts` — 7 tests covering marker
137
+ extraction, captureOutput, Enter resend, and the no-op when the text
138
+ submitted normally.
139
+ - `tests/unit/stall-triage-typed-not-submitted.test.ts` — 5 tests covering the
140
+ StallTriage fast-path: detection thresholds, glyph-presence refusal, the
141
+ LLM-bypass nudge.
142
+ - Side-effects review: `upgrades/side-effects/verify-injection-stuck-input.md`.
143
+
144
+ **Project-scope Phase 1a PR 2.** Spec:
145
+ `docs/specs/PROJECT-SCOPE-SPEC.md` §§ 1.2, 1.3, 1.6, 1.10, 1.12.
146
+
147
+ - `tests/unit/PlanDocParser.test.ts` — 9 new tests covering frontmatter
148
+ parsing, slug validation, source/effort/scope tags, child uniqueness.
149
+ - `tests/unit/StageTransitionValidator.test.ts` — 26 new tests covering
150
+ every named edge, reconciler bypass, jail check, PR state mapping.
151
+ - `tests/integration/projects-api.test.ts` — 14 new tests covering all
152
+ six endpoints end-to-end through the live express router.
153
+ - Side-effects review: `upgrades/side-effects/project-scope-phase1a-pr2.md`.
@@ -0,0 +1,13 @@
1
+ # Side-Effects Review — v0.28.86
2
+
3
+ This release shipped one user-facing change:
4
+
5
+ - **Project-scope Phase 1a PR 1 — Initiative type extension**
6
+
7
+ Side-effects review for that change lives at
8
+ [`project-scope-phase1a-pr1.md`](./project-scope-phase1a-pr1.md). It was
9
+ authored before the release-cut script started linking artifacts by version
10
+ filename; this file is the version-keyed pointer the pre-push gate looks for.
11
+
12
+ No other behavior changed in 0.28.86 beyond the type-level scaffolding
13
+ documented in that review.