instar 1.2.81 → 1.2.83

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 (53) hide show
  1. package/dist/commands/server.d.ts.map +1 -1
  2. package/dist/commands/server.js +110 -11
  3. package/dist/commands/server.js.map +1 -1
  4. package/dist/config/ConfigDefaults.d.ts.map +1 -1
  5. package/dist/config/ConfigDefaults.js +23 -0
  6. package/dist/config/ConfigDefaults.js.map +1 -1
  7. package/dist/core/PostUpdateMigrator.d.ts +7 -0
  8. package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
  9. package/dist/core/PostUpdateMigrator.js +59 -75
  10. package/dist/core/PostUpdateMigrator.js.map +1 -1
  11. package/dist/core/SessionManager.d.ts +43 -0
  12. package/dist/core/SessionManager.d.ts.map +1 -1
  13. package/dist/core/SessionManager.js +123 -24
  14. package/dist/core/SessionManager.js.map +1 -1
  15. package/dist/core/types.d.ts +26 -0
  16. package/dist/core/types.d.ts.map +1 -1
  17. package/dist/core/types.js.map +1 -1
  18. package/dist/monitoring/SessionReaper.d.ts +153 -0
  19. package/dist/monitoring/SessionReaper.d.ts.map +1 -0
  20. package/dist/monitoring/SessionReaper.js +376 -0
  21. package/dist/monitoring/SessionReaper.js.map +1 -0
  22. package/dist/monitoring/TokenLedger.d.ts +12 -0
  23. package/dist/monitoring/TokenLedger.d.ts.map +1 -1
  24. package/dist/monitoring/TokenLedger.js +22 -0
  25. package/dist/monitoring/TokenLedger.js.map +1 -1
  26. package/dist/monitoring/transcriptProber.d.ts +44 -0
  27. package/dist/monitoring/transcriptProber.d.ts.map +1 -0
  28. package/dist/monitoring/transcriptProber.js +57 -0
  29. package/dist/monitoring/transcriptProber.js.map +1 -0
  30. package/dist/scaffold/templates.d.ts.map +1 -1
  31. package/dist/scaffold/templates.js +21 -0
  32. package/dist/scaffold/templates.js.map +1 -1
  33. package/dist/server/AgentServer.d.ts +3 -0
  34. package/dist/server/AgentServer.d.ts.map +1 -1
  35. package/dist/server/AgentServer.js +1 -0
  36. package/dist/server/AgentServer.js.map +1 -1
  37. package/dist/server/routes.d.ts +3 -0
  38. package/dist/server/routes.d.ts.map +1 -1
  39. package/dist/server/routes.js +108 -0
  40. package/dist/server/routes.js.map +1 -1
  41. package/dist/threadline/CollaborationSurfacer.d.ts +67 -18
  42. package/dist/threadline/CollaborationSurfacer.d.ts.map +1 -1
  43. package/dist/threadline/CollaborationSurfacer.js +132 -37
  44. package/dist/threadline/CollaborationSurfacer.js.map +1 -1
  45. package/package.json +1 -1
  46. package/src/data/builtin-manifest.json +63 -63
  47. package/src/scaffold/templates.ts +21 -0
  48. package/upgrades/1.2.81.md +13 -0
  49. package/upgrades/1.2.82.md +26 -0
  50. package/upgrades/1.2.83.md +26 -0
  51. package/upgrades/side-effects/1.2.81.md +127 -0
  52. package/upgrades/side-effects/session-reaper.md +42 -0
  53. package/upgrades/side-effects/threadline-notification-routing.md +46 -0
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "./builtin-manifest.schema.json",
3
3
  "schemaVersion": 1,
4
- "generatedAt": "2026-05-26T01:28:49.478Z",
5
- "instarVersion": "1.2.81",
4
+ "generatedAt": "2026-05-26T16:19:48.394Z",
5
+ "instarVersion": "1.2.83",
6
6
  "entryCount": 191,
7
7
  "entries": {
8
8
  "hook:session-start": {
@@ -11,7 +11,7 @@
11
11
  "domain": "identity",
12
12
  "sourcePath": "src/core/PostUpdateMigrator.ts",
13
13
  "installedPath": ".instar/hooks/instar/session-start.sh",
14
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
14
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
15
15
  "since": "2025-01-01"
16
16
  },
17
17
  "hook:dangerous-command-guard": {
@@ -20,7 +20,7 @@
20
20
  "domain": "safety",
21
21
  "sourcePath": "src/core/PostUpdateMigrator.ts",
22
22
  "installedPath": ".instar/hooks/instar/dangerous-command-guard.sh",
23
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
23
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
24
24
  "since": "2025-01-01"
25
25
  },
26
26
  "hook:grounding-before-messaging": {
@@ -29,7 +29,7 @@
29
29
  "domain": "safety",
30
30
  "sourcePath": "src/core/PostUpdateMigrator.ts",
31
31
  "installedPath": ".instar/hooks/instar/grounding-before-messaging.sh",
32
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
32
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
33
33
  "since": "2025-01-01"
34
34
  },
35
35
  "hook:compaction-recovery": {
@@ -38,7 +38,7 @@
38
38
  "domain": "identity",
39
39
  "sourcePath": "src/core/PostUpdateMigrator.ts",
40
40
  "installedPath": ".instar/hooks/instar/compaction-recovery.sh",
41
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
41
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
42
42
  "since": "2025-01-01"
43
43
  },
44
44
  "hook:external-operation-gate": {
@@ -47,7 +47,7 @@
47
47
  "domain": "safety",
48
48
  "sourcePath": "src/core/PostUpdateMigrator.ts",
49
49
  "installedPath": ".instar/hooks/instar/external-operation-gate.js",
50
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
50
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
51
51
  "since": "2025-01-01"
52
52
  },
53
53
  "hook:deferral-detector": {
@@ -56,7 +56,7 @@
56
56
  "domain": "safety",
57
57
  "sourcePath": "src/core/PostUpdateMigrator.ts",
58
58
  "installedPath": ".instar/hooks/instar/deferral-detector.js",
59
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
59
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
60
60
  "since": "2025-01-01"
61
61
  },
62
62
  "hook:post-action-reflection": {
@@ -65,7 +65,7 @@
65
65
  "domain": "evolution",
66
66
  "sourcePath": "src/core/PostUpdateMigrator.ts",
67
67
  "installedPath": ".instar/hooks/instar/post-action-reflection.js",
68
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
68
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
69
69
  "since": "2025-01-01"
70
70
  },
71
71
  "hook:external-communication-guard": {
@@ -74,7 +74,7 @@
74
74
  "domain": "safety",
75
75
  "sourcePath": "src/core/PostUpdateMigrator.ts",
76
76
  "installedPath": ".instar/hooks/instar/external-communication-guard.js",
77
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
77
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
78
78
  "since": "2025-01-01"
79
79
  },
80
80
  "hook:scope-coherence-collector": {
@@ -83,7 +83,7 @@
83
83
  "domain": "coherence",
84
84
  "sourcePath": "src/core/PostUpdateMigrator.ts",
85
85
  "installedPath": ".instar/hooks/instar/scope-coherence-collector.js",
86
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
86
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
87
87
  "since": "2025-01-01"
88
88
  },
89
89
  "hook:scope-coherence-checkpoint": {
@@ -92,7 +92,7 @@
92
92
  "domain": "coherence",
93
93
  "sourcePath": "src/core/PostUpdateMigrator.ts",
94
94
  "installedPath": ".instar/hooks/instar/scope-coherence-checkpoint.js",
95
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
95
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
96
96
  "since": "2025-01-01"
97
97
  },
98
98
  "hook:free-text-guard": {
@@ -101,7 +101,7 @@
101
101
  "domain": "safety",
102
102
  "sourcePath": "src/core/PostUpdateMigrator.ts",
103
103
  "installedPath": ".instar/hooks/instar/free-text-guard.sh",
104
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
104
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
105
105
  "since": "2025-01-01"
106
106
  },
107
107
  "hook:claim-intercept": {
@@ -110,7 +110,7 @@
110
110
  "domain": "coherence",
111
111
  "sourcePath": "src/core/PostUpdateMigrator.ts",
112
112
  "installedPath": ".instar/hooks/instar/claim-intercept.js",
113
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
113
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
114
114
  "since": "2025-01-01"
115
115
  },
116
116
  "hook:claim-intercept-response": {
@@ -119,7 +119,7 @@
119
119
  "domain": "coherence",
120
120
  "sourcePath": "src/core/PostUpdateMigrator.ts",
121
121
  "installedPath": ".instar/hooks/instar/claim-intercept-response.js",
122
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
122
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
123
123
  "since": "2025-01-01"
124
124
  },
125
125
  "hook:auto-approve-permissions": {
@@ -128,7 +128,7 @@
128
128
  "domain": "safety",
129
129
  "sourcePath": "src/core/PostUpdateMigrator.ts",
130
130
  "installedPath": ".instar/hooks/instar/auto-approve-permissions.js",
131
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
131
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
132
132
  "since": "2025-01-01"
133
133
  },
134
134
  "job:health-check": {
@@ -392,7 +392,7 @@
392
392
  "type": "route-group",
393
393
  "domain": "monitoring",
394
394
  "sourcePath": "src/server/routes.ts",
395
- "contentHash": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
395
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
403
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
411
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
419
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
427
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
435
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
443
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
451
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
459
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
467
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
475
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
483
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
491
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
499
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
507
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
515
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
523
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
531
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
539
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
547
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
555
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
563
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
571
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
579
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
587
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
595
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
603
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
611
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
619
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
627
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
635
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
643
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
651
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
659
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
667
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
675
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
683
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
691
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
699
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
707
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
715
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
723
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
731
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
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": "14df7a55267370b38a717411ec2dd50be2364f68e4e6e4c6ca031b9ce5f2ca40",
747
+ "contentHash": "e7ecb683c067a3e36768c52252eac303ea9178c3a060828f5673251e8b8908c1",
748
748
  "since": "2025-01-01"
749
749
  },
750
750
  "cli:init": {
@@ -1440,7 +1440,7 @@
1440
1440
  "type": "subsystem",
1441
1441
  "domain": "server",
1442
1442
  "sourcePath": "src/server/AgentServer.ts",
1443
- "contentHash": "823d36d25490f6afb6968e96d27a538ce031dae7d97a7f2c979ddab707d2918a",
1443
+ "contentHash": "8cd98b665356990ea26c422b9bab3f6aee15ce48798d5fe17fff3757fc617213",
1444
1444
  "since": "2025-01-01"
1445
1445
  },
1446
1446
  "subsystem:session-manager": {
@@ -1448,7 +1448,7 @@
1448
1448
  "type": "subsystem",
1449
1449
  "domain": "sessions",
1450
1450
  "sourcePath": "src/core/SessionManager.ts",
1451
- "contentHash": "b0de35800c7eacf06e520b7224d3169b81e8f0293ce65b69047fae3be1befad4",
1451
+ "contentHash": "a689041288c39070fd0d13362193bd4335367cb5a1db5458e3f73a6295b6e4c7",
1452
1452
  "since": "2025-01-01"
1453
1453
  },
1454
1454
  "subsystem:auto-updater": {
@@ -1472,7 +1472,7 @@
1472
1472
  "type": "subsystem",
1473
1473
  "domain": "updates",
1474
1474
  "sourcePath": "src/core/PostUpdateMigrator.ts",
1475
- "contentHash": "935d207222c5d9a2d149aaa1de9e3ceef51ac8d07771f69b9a7d92e9b19c7666",
1475
+ "contentHash": "bad77b5bab7acab1f4f10870e0ec2e8cf56004a01ec00a05076159e400419a34",
1476
1476
  "since": "2025-01-01"
1477
1477
  },
1478
1478
  "subsystem:scheduler": {
@@ -404,6 +404,12 @@ This routes feedback to the Instar maintainers automatically. Valid types: \`bug
404
404
  - List: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/sessions\`
405
405
  - Spawn: \`curl -X POST -H "Authorization: Bearer $AUTH" http://localhost:${port}/sessions/spawn -d '{"name":"task","prompt":"do something"}'\`
406
406
 
407
+ **SessionReaper** — Pressure-aware cleanup of idle-but-alive sessions (sessions parked at a ready prompt, doing nothing, holding memory). Distinct from the crash/zombie reapers: it only acts when the machine is under memory pressure, and it NEVER reaps a session that might be working — it requires positive proof a session is idle (turn complete + at a ready prompt + screen byte-static across several checks + no running process + no transcript growth), and KEEPs on any ambiguity. Ships OFF + dry-run by default (the only monitor that kills on a heuristic).
408
+ - Why it matters: idle sessions pile up across agents until the machine starves and new sessions get "spawn denied" — silently breaking cross-agent messaging. This sweeps them, but only under real pressure.
409
+ - See current state / why each session is kept or flagged: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/sessions/reaper\`
410
+ - Enable (after reviewing the dry-run log): in \`.instar/config.json\` set \`{"monitoring": {"sessionReaper": {"enabled": true, "dryRun": false}}}\`. Leave \`dryRun: true\` first to watch what it WOULD reap (logged to \`logs/sentinel-events.jsonl\`) without killing anything.
411
+ - Proactive: user asks "why are sessions piling up?" / "clean up idle sessions" / "are we low on memory?" → GET /sessions/reaper for the pressure tier + per-session verdict.
412
+
407
413
  **Multi-Session Autonomy** — I can run multiple autonomous jobs at once, one per topic (default cap 5, set \`autonomousSessions.maxConcurrent\` in config). Each topic's job is isolated, survives restarts, and is keyed on its topic.
408
414
  - What's running: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/autonomous/sessions\`
409
415
  - The cap + budget gate is checked automatically when a job starts (\`GET /autonomous/can-start\`); a start is refused when at the cap or under budget pressure.
@@ -1369,6 +1375,21 @@ I have these Threadline tools for managing agent-to-agent communication:
1369
1375
  - \`threadline_trust\` — Manage trust levels for known agents
1370
1376
  - \`threadline_relay\` — Check relay status, enable/disable, or get explanations
1371
1377
 
1378
+ ### The "Threadline" hub topic — notifications + "open this"
1379
+
1380
+ Threadline activity NEVER spawns a new Telegram topic per event. Notices route one of two ways:
1381
+ - A conversation **bound to a parent topic** → its real replies surface THERE (handled automatically).
1382
+ - A **parentless** conversation (a peer reached out cold) + any **status/housekeeping** notice → a single, SILENT **"Threadline" hub topic**. It does not buzz the user — agent-to-agent chatter isn't the user's job by default; the hub is a calm, browsable record.
1383
+
1384
+ When the user is reading the Threadline hub topic and says **"open this"** (give the conversation its own topic) or **"tie this to <an existing topic>"**, I act on it by calling the bind endpoint — I do NOT just reply inline:
1385
+ \`\`\`bash
1386
+ # open this → create a fresh topic and bind the conversation to it (most-recent unbound, or pass threadId)
1387
+ curl -X POST -H "Authorization: Bearer $AUTH" -H 'Content-Type: application/json' http://localhost:PORT/threadline/hub/bind -d '{"action":"open"}'
1388
+ # tie this to an existing topic
1389
+ curl -X POST -H "Authorization: Bearer $AUTH" -H 'Content-Type: application/json' http://localhost:PORT/threadline/hub/bind -d '{"action":"tie","targetTopicId":1234}'
1390
+ \`\`\`
1391
+ After binding, that conversation's future updates flow to the bound topic automatically. If more than one conversation is unbound, the endpoint returns 409 — ask the user which one (pass its \`threadId\`).
1392
+
1372
1393
  ### Cross-Agent Communication Discipline (anti-confabulation)
1373
1394
 
1374
1395
  **Never narrate cross-agent work as if it happened. Only state work I actually completed.**
@@ -1,7 +1,15 @@
1
1
  # Unreleased
2
2
 
3
+ <!-- bump: patch -->
4
+
3
5
  ## What Changed
4
6
 
7
+ Fixed the post-update migration path for `free-text-guard.sh`: the migrator now uses one shared template resolver that checks the compiled `dist/templates` layout first and then the packaged `src/templates` layout that current npm publishes actually ship.
8
+
9
+ - **Shared resolver:** `PostUpdateMigrator` now has one `loadTemplate()` path for hook, script, and playbook templates instead of repeating candidate-path loops across individual migrations.
10
+ - **Free-text guard install restored:** compiled/package migrations can install `.instar/hooks/instar/free-text-guard.sh` from `src/templates/hooks/free-text-guard.sh` instead of failing on a missing `dist/templates/hooks/free-text-guard.sh`.
11
+ - **Existing readers consolidated:** relay script templates, convergence-check, fleet watchdog, conversational catalog manifest, and worktree wrapper resolution now use the same helper.
12
+
5
13
  Fixed Threadline topic-bound reply surfacing (CMT-515): a reply from another agent on a thread bound to a Telegram topic now reliably reaches that topic instead of silently vanishing into the store.
6
14
 
7
15
  - **Lost replies + broken history (one root cause):** `ThreadResumeMap.get()` no longer nulls topic-linkage entries via the Claude-JSONL existence guard — a topic-linkage thread's liveness is its topic, not a transcript file. This repairs both inbound routing (replies were falling through to a throwaway session spawn) and `threadline_history` (which returned "not found" for threads that existed).
@@ -11,6 +19,8 @@ Fixed Threadline topic-bound reply surfacing (CMT-515): a reply from another age
11
19
 
12
20
  ## What to Tell Your User
13
21
 
22
+ Existing agents can pick up the free-text guard during an Instar update again. The guard behavior did not change; only the package template lookup path changed.
23
+
14
24
  If you reach out to another agent in the background while you're chatting, that agent's reply now shows up in our conversation reliably — before, it could land in my records but never make it back to you. You'll get a short "replied" note in the topic if I can't weave it in live, and you won't get double-pinged when I can. No action needed; this just makes background agent collaboration trustworthy.
15
25
 
16
26
  ## Summary of New Capabilities
@@ -22,6 +32,9 @@ If you reach out to another agent in the background while you're chatting, that
22
32
 
23
33
  ## Evidence
24
34
 
35
+ - Approved spec: `docs/specs/FREE-TEXT-GUARD-TEMPLATE-RESOLUTION-SPEC.md`.
36
+ - Targeted unit coverage for cwd-independent shared template loading and a regression guard preventing `getFreeTextGuardHook()` from returning to a single direct `dist/templates` read.
37
+ - Package-shape integration coverage asserts npm publishes `src/templates/hooks/free-text-guard.sh`, no `dist/templates` tree, and an extracted package's compiled migrator installs the free-text guard from the packaged source-template layout.
25
38
  - Root causes verified against v1.2.80 source (including an in-code comment that already documented the `get()` JSONL-guard hazard on the send path but never fixed the inbound path).
26
39
  - 3-tier tests: new unit coverage for the `get()` topic-linkage exemption, confirmed-vs-stalled inject (no-double-surface / safety-net-fallback), and both-legs thread persistence; full threadline suite green (1539 unit/integration + 329 e2e, zero regressions).
27
40
  - Independent second-pass review concurred on the actual diff (no over/under-block, no inject double-recovery race, return-type change breaks no caller).
@@ -0,0 +1,26 @@
1
+ # Unreleased
2
+
3
+ ## What Changed
4
+
5
+ Threadline notifications no longer spam your chat list with a new topic per event (CMT-519).
6
+
7
+ - **One routing rule, never a per-event topic.** A conversation tied to a parent topic shows its real replies there (already working). Everything else — a cold peer reaching out, plus all housekeeping notices (loop-gate "I stopped a loop", etc.) — goes to a single, SILENT "Threadline" hub topic. The loop-gate wind-down now routes through the hub instead of creating its own attention topic, and `POST /attention` redirects any threadline/agent-messaging-class item to the hub so ad-hoc posts can't regress into topic spam either.
8
+ - **The Threadline hub is calm and silent.** Agent-to-agent chatter doesn't buzz you and isn't framed as "waiting for you" — it isn't your job by default. The hub is a browsable record you check when you want.
9
+ - **"Open this" finally works.** When you're in the Threadline hub and say "open this" (or "tie this to <an existing topic>"), the agent calls the new `POST /threadline/hub/bind` endpoint, which creates+binds a fresh topic (or binds to the one you named) and authoritatively records it. From then on that conversation's updates flow to the bound topic automatically.
10
+
11
+ ## What to Tell Your User
12
+
13
+ Your chat list won't fill up with throwaway "Threadline conversation loop" / "spawn-storm" topics anymore. Background agent activity lands quietly in one "Threadline" topic instead — no buzzing, because two agents talking isn't your problem by default. When you glance in there and want to pull a conversation into its own space, just say "open this" (or "tie this to <topic>") and I'll set it up. No action needed; this just declutters and makes background collaboration calm.
14
+
15
+ ## Summary of New Capabilities
16
+
17
+ - `CollaborationSurfacer.notify()` — a silent-hub status lane that threadline subsystems use instead of the per-event attention queue.
18
+ - `POST /attention` auto-redirects threadline-class items to the hub (structural anti-spam guard).
19
+ - `POST /threadline/hub/bind` (`action: open|tie`) — promote/bind a surfaced conversation to a topic; authoritative (sets `boundTopicId` + the commitment's `topicId`).
20
+ - Hub surface-state is record-shaped (peer/subject/surfacedAt/bound) with a read-time migration from the legacy `string[]`.
21
+
22
+ ## Evidence
23
+
24
+ - Verified against v1.2.81 source; design converged by two reviewers (collapse into the existing surfacer; content→parent via TopicLinkageHandler, status→silent hub, no double-notify).
25
+ - 3-tier tests: new unit coverage for `notify()` (silent hub, no per-thread dedupe), `mostRecentUnbound`/`markBound`, and the legacy→record migration; full threadline suite green (1553 unit/integration + 329 e2e, zero regressions). Typecheck + build clean.
26
+ - Independent second-pass review of the diff; live test-as-self on Codey (a real agent conversation lands quietly in the hub, "open this" promotes it to its own topic).