instar 0.28.87 → 0.28.89
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/dist/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +56 -17
- package/dist/commands/server.js.map +1 -1
- package/dist/core/ProjectDigestCache.d.ts +58 -0
- package/dist/core/ProjectDigestCache.d.ts.map +1 -0
- package/dist/core/ProjectDigestCache.js +146 -0
- package/dist/core/ProjectDigestCache.js.map +1 -0
- package/dist/core/SessionRefresh.d.ts +108 -0
- package/dist/core/SessionRefresh.d.ts.map +1 -0
- package/dist/core/SessionRefresh.js +157 -0
- package/dist/core/SessionRefresh.js.map +1 -0
- package/dist/server/AgentServer.d.ts +1 -0
- package/dist/server/AgentServer.d.ts.map +1 -1
- package/dist/server/AgentServer.js +1 -0
- package/dist/server/AgentServer.js.map +1 -1
- package/dist/server/routes.d.ts +4 -0
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +48 -0
- package/dist/server/routes.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +58 -50
- package/src/templates/hooks/compaction-recovery.sh +50 -0
- package/src/templates/hooks/session-start.sh +50 -0
- package/upgrades/0.28.88.md +91 -0
- package/upgrades/0.28.89.md +31 -0
- package/upgrades/side-effects/0.28.87.md +13 -0
- package/upgrades/side-effects/project-scope-phase1a-pr3.md +477 -0
- package/upgrades/side-effects/session-self-refresh.md +382 -0
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./builtin-manifest.schema.json",
|
|
3
3
|
"schemaVersion": 1,
|
|
4
|
-
"generatedAt": "2026-05-
|
|
5
|
-
"instarVersion": "0.28.
|
|
6
|
-
"entryCount":
|
|
4
|
+
"generatedAt": "2026-05-12T00:41:37.612Z",
|
|
5
|
+
"instarVersion": "0.28.89",
|
|
6
|
+
"entryCount": 188,
|
|
7
7
|
"entries": {
|
|
8
8
|
"hook:session-start": {
|
|
9
9
|
"id": "hook:session-start",
|
|
@@ -363,6 +363,14 @@
|
|
|
363
363
|
"contentHash": "5b3557fa3662cf0c7b7bab85a252cc2e567b3fc64a04a92d430374ef1f264ca6",
|
|
364
364
|
"since": "2025-01-01"
|
|
365
365
|
},
|
|
366
|
+
"skill:instar-project": {
|
|
367
|
+
"id": "skill:instar-project",
|
|
368
|
+
"type": "skill",
|
|
369
|
+
"domain": "skills",
|
|
370
|
+
"sourcePath": ".claude/skills/instar-project/SKILL.md",
|
|
371
|
+
"contentHash": "8c8a924740d8afedeb5e0b4bea7a3760c9654dc6b49a9a415429fe0366ff8429",
|
|
372
|
+
"since": "2025-01-01"
|
|
373
|
+
},
|
|
366
374
|
"skill:secret-setup": {
|
|
367
375
|
"id": "skill:secret-setup",
|
|
368
376
|
"type": "skill",
|
|
@@ -384,7 +392,7 @@
|
|
|
384
392
|
"type": "route-group",
|
|
385
393
|
"domain": "monitoring",
|
|
386
394
|
"sourcePath": "src/server/routes.ts",
|
|
387
|
-
"contentHash": "
|
|
395
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
388
396
|
"since": "2025-01-01"
|
|
389
397
|
},
|
|
390
398
|
"route-group:agents": {
|
|
@@ -392,7 +400,7 @@
|
|
|
392
400
|
"type": "route-group",
|
|
393
401
|
"domain": "sessions",
|
|
394
402
|
"sourcePath": "src/server/routes.ts",
|
|
395
|
-
"contentHash": "
|
|
403
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
396
404
|
"since": "2025-01-01"
|
|
397
405
|
},
|
|
398
406
|
"route-group:backups": {
|
|
@@ -400,7 +408,7 @@
|
|
|
400
408
|
"type": "route-group",
|
|
401
409
|
"domain": "operations",
|
|
402
410
|
"sourcePath": "src/server/routes.ts",
|
|
403
|
-
"contentHash": "
|
|
411
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
404
412
|
"since": "2025-01-01"
|
|
405
413
|
},
|
|
406
414
|
"route-group:git": {
|
|
@@ -408,7 +416,7 @@
|
|
|
408
416
|
"type": "route-group",
|
|
409
417
|
"domain": "coordination",
|
|
410
418
|
"sourcePath": "src/server/routes.ts",
|
|
411
|
-
"contentHash": "
|
|
419
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
412
420
|
"since": "2025-01-01"
|
|
413
421
|
},
|
|
414
422
|
"route-group:memory": {
|
|
@@ -416,7 +424,7 @@
|
|
|
416
424
|
"type": "route-group",
|
|
417
425
|
"domain": "memory",
|
|
418
426
|
"sourcePath": "src/server/routes.ts",
|
|
419
|
-
"contentHash": "
|
|
427
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
420
428
|
"since": "2025-01-01"
|
|
421
429
|
},
|
|
422
430
|
"route-group:semantic": {
|
|
@@ -424,7 +432,7 @@
|
|
|
424
432
|
"type": "route-group",
|
|
425
433
|
"domain": "memory",
|
|
426
434
|
"sourcePath": "src/server/routes.ts",
|
|
427
|
-
"contentHash": "
|
|
435
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
428
436
|
"since": "2025-01-01"
|
|
429
437
|
},
|
|
430
438
|
"route-group:status": {
|
|
@@ -432,7 +440,7 @@
|
|
|
432
440
|
"type": "route-group",
|
|
433
441
|
"domain": "monitoring",
|
|
434
442
|
"sourcePath": "src/server/routes.ts",
|
|
435
|
-
"contentHash": "
|
|
443
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
436
444
|
"since": "2025-01-01"
|
|
437
445
|
},
|
|
438
446
|
"route-group:capabilities": {
|
|
@@ -440,7 +448,7 @@
|
|
|
440
448
|
"type": "route-group",
|
|
441
449
|
"domain": "mapping",
|
|
442
450
|
"sourcePath": "src/server/routes.ts",
|
|
443
|
-
"contentHash": "
|
|
451
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
444
452
|
"since": "2025-01-01"
|
|
445
453
|
},
|
|
446
454
|
"route-group:project-map": {
|
|
@@ -448,7 +456,7 @@
|
|
|
448
456
|
"type": "route-group",
|
|
449
457
|
"domain": "mapping",
|
|
450
458
|
"sourcePath": "src/server/routes.ts",
|
|
451
|
-
"contentHash": "
|
|
459
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
452
460
|
"since": "2025-01-01"
|
|
453
461
|
},
|
|
454
462
|
"route-group:coherence": {
|
|
@@ -456,7 +464,7 @@
|
|
|
456
464
|
"type": "route-group",
|
|
457
465
|
"domain": "coherence",
|
|
458
466
|
"sourcePath": "src/server/routes.ts",
|
|
459
|
-
"contentHash": "
|
|
467
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
460
468
|
"since": "2025-01-01"
|
|
461
469
|
},
|
|
462
470
|
"route-group:topic-bindings": {
|
|
@@ -464,7 +472,7 @@
|
|
|
464
472
|
"type": "route-group",
|
|
465
473
|
"domain": "sessions",
|
|
466
474
|
"sourcePath": "src/server/routes.ts",
|
|
467
|
-
"contentHash": "
|
|
475
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
468
476
|
"since": "2025-01-01"
|
|
469
477
|
},
|
|
470
478
|
"route-group:context": {
|
|
@@ -472,7 +480,7 @@
|
|
|
472
480
|
"type": "route-group",
|
|
473
481
|
"domain": "context",
|
|
474
482
|
"sourcePath": "src/server/routes.ts",
|
|
475
|
-
"contentHash": "
|
|
483
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
476
484
|
"since": "2025-01-01"
|
|
477
485
|
},
|
|
478
486
|
"route-group:scope-coherence": {
|
|
@@ -480,7 +488,7 @@
|
|
|
480
488
|
"type": "route-group",
|
|
481
489
|
"domain": "coherence",
|
|
482
490
|
"sourcePath": "src/server/routes.ts",
|
|
483
|
-
"contentHash": "
|
|
491
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
484
492
|
"since": "2025-01-01"
|
|
485
493
|
},
|
|
486
494
|
"route-group:canonical-state": {
|
|
@@ -488,7 +496,7 @@
|
|
|
488
496
|
"type": "route-group",
|
|
489
497
|
"domain": "state",
|
|
490
498
|
"sourcePath": "src/server/routes.ts",
|
|
491
|
-
"contentHash": "
|
|
499
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
492
500
|
"since": "2025-01-01"
|
|
493
501
|
},
|
|
494
502
|
"route-group:ci": {
|
|
@@ -496,7 +504,7 @@
|
|
|
496
504
|
"type": "route-group",
|
|
497
505
|
"domain": "monitoring",
|
|
498
506
|
"sourcePath": "src/server/routes.ts",
|
|
499
|
-
"contentHash": "
|
|
507
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
500
508
|
"since": "2025-01-01"
|
|
501
509
|
},
|
|
502
510
|
"route-group:sessions": {
|
|
@@ -504,7 +512,7 @@
|
|
|
504
512
|
"type": "route-group",
|
|
505
513
|
"domain": "sessions",
|
|
506
514
|
"sourcePath": "src/server/routes.ts",
|
|
507
|
-
"contentHash": "
|
|
515
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
508
516
|
"since": "2025-01-01"
|
|
509
517
|
},
|
|
510
518
|
"route-group:jobs": {
|
|
@@ -512,7 +520,7 @@
|
|
|
512
520
|
"type": "route-group",
|
|
513
521
|
"domain": "scheduling",
|
|
514
522
|
"sourcePath": "src/server/routes.ts",
|
|
515
|
-
"contentHash": "
|
|
523
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
516
524
|
"since": "2025-01-01"
|
|
517
525
|
},
|
|
518
526
|
"route-group:skip-ledger": {
|
|
@@ -520,7 +528,7 @@
|
|
|
520
528
|
"type": "route-group",
|
|
521
529
|
"domain": "scheduling",
|
|
522
530
|
"sourcePath": "src/server/routes.ts",
|
|
523
|
-
"contentHash": "
|
|
531
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
524
532
|
"since": "2025-01-01"
|
|
525
533
|
},
|
|
526
534
|
"route-group:telegram": {
|
|
@@ -528,7 +536,7 @@
|
|
|
528
536
|
"type": "route-group",
|
|
529
537
|
"domain": "communication",
|
|
530
538
|
"sourcePath": "src/server/routes.ts",
|
|
531
|
-
"contentHash": "
|
|
539
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
532
540
|
"since": "2025-01-01"
|
|
533
541
|
},
|
|
534
542
|
"route-group:attention": {
|
|
@@ -536,7 +544,7 @@
|
|
|
536
544
|
"type": "route-group",
|
|
537
545
|
"domain": "communication",
|
|
538
546
|
"sourcePath": "src/server/routes.ts",
|
|
539
|
-
"contentHash": "
|
|
547
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
540
548
|
"since": "2025-01-01"
|
|
541
549
|
},
|
|
542
550
|
"route-group:relationships": {
|
|
@@ -544,7 +552,7 @@
|
|
|
544
552
|
"type": "route-group",
|
|
545
553
|
"domain": "relationships",
|
|
546
554
|
"sourcePath": "src/server/routes.ts",
|
|
547
|
-
"contentHash": "
|
|
555
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
548
556
|
"since": "2025-01-01"
|
|
549
557
|
},
|
|
550
558
|
"route-group:feedback": {
|
|
@@ -552,7 +560,7 @@
|
|
|
552
560
|
"type": "route-group",
|
|
553
561
|
"domain": "feedback",
|
|
554
562
|
"sourcePath": "src/server/routes.ts",
|
|
555
|
-
"contentHash": "
|
|
563
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
556
564
|
"since": "2025-01-01"
|
|
557
565
|
},
|
|
558
566
|
"route-group:updates": {
|
|
@@ -560,7 +568,7 @@
|
|
|
560
568
|
"type": "route-group",
|
|
561
569
|
"domain": "updates",
|
|
562
570
|
"sourcePath": "src/server/routes.ts",
|
|
563
|
-
"contentHash": "
|
|
571
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
564
572
|
"since": "2025-01-01"
|
|
565
573
|
},
|
|
566
574
|
"route-group:dispatches": {
|
|
@@ -568,7 +576,7 @@
|
|
|
568
576
|
"type": "route-group",
|
|
569
577
|
"domain": "dispatches",
|
|
570
578
|
"sourcePath": "src/server/routes.ts",
|
|
571
|
-
"contentHash": "
|
|
579
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
572
580
|
"since": "2025-01-01"
|
|
573
581
|
},
|
|
574
582
|
"route-group:quota": {
|
|
@@ -576,7 +584,7 @@
|
|
|
576
584
|
"type": "route-group",
|
|
577
585
|
"domain": "monitoring",
|
|
578
586
|
"sourcePath": "src/server/routes.ts",
|
|
579
|
-
"contentHash": "
|
|
587
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
580
588
|
"since": "2025-01-01"
|
|
581
589
|
},
|
|
582
590
|
"route-group:publishing": {
|
|
@@ -584,7 +592,7 @@
|
|
|
584
592
|
"type": "route-group",
|
|
585
593
|
"domain": "publishing",
|
|
586
594
|
"sourcePath": "src/server/routes.ts",
|
|
587
|
-
"contentHash": "
|
|
595
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
588
596
|
"since": "2025-01-01"
|
|
589
597
|
},
|
|
590
598
|
"route-group:private-views": {
|
|
@@ -592,7 +600,7 @@
|
|
|
592
600
|
"type": "route-group",
|
|
593
601
|
"domain": "publishing",
|
|
594
602
|
"sourcePath": "src/server/routes.ts",
|
|
595
|
-
"contentHash": "
|
|
603
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
596
604
|
"since": "2025-01-01"
|
|
597
605
|
},
|
|
598
606
|
"route-group:tunnel": {
|
|
@@ -600,7 +608,7 @@
|
|
|
600
608
|
"type": "route-group",
|
|
601
609
|
"domain": "networking",
|
|
602
610
|
"sourcePath": "src/server/routes.ts",
|
|
603
|
-
"contentHash": "
|
|
611
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
604
612
|
"since": "2025-01-01"
|
|
605
613
|
},
|
|
606
614
|
"route-group:events": {
|
|
@@ -608,7 +616,7 @@
|
|
|
608
616
|
"type": "route-group",
|
|
609
617
|
"domain": "networking",
|
|
610
618
|
"sourcePath": "src/server/routes.ts",
|
|
611
|
-
"contentHash": "
|
|
619
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
612
620
|
"since": "2025-01-01"
|
|
613
621
|
},
|
|
614
622
|
"route-group:evolution": {
|
|
@@ -616,7 +624,7 @@
|
|
|
616
624
|
"type": "route-group",
|
|
617
625
|
"domain": "evolution",
|
|
618
626
|
"sourcePath": "src/server/routes.ts",
|
|
619
|
-
"contentHash": "
|
|
627
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
620
628
|
"since": "2025-01-01"
|
|
621
629
|
},
|
|
622
630
|
"route-group:watchdog": {
|
|
@@ -624,7 +632,7 @@
|
|
|
624
632
|
"type": "route-group",
|
|
625
633
|
"domain": "monitoring",
|
|
626
634
|
"sourcePath": "src/server/routes.ts",
|
|
627
|
-
"contentHash": "
|
|
635
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
628
636
|
"since": "2025-01-01"
|
|
629
637
|
},
|
|
630
638
|
"route-group:topic-memory": {
|
|
@@ -632,7 +640,7 @@
|
|
|
632
640
|
"type": "route-group",
|
|
633
641
|
"domain": "memory",
|
|
634
642
|
"sourcePath": "src/server/routes.ts",
|
|
635
|
-
"contentHash": "
|
|
643
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
636
644
|
"since": "2025-01-01"
|
|
637
645
|
},
|
|
638
646
|
"route-group:state-sync": {
|
|
@@ -640,7 +648,7 @@
|
|
|
640
648
|
"type": "route-group",
|
|
641
649
|
"domain": "coordination",
|
|
642
650
|
"sourcePath": "src/server/routes.ts",
|
|
643
|
-
"contentHash": "
|
|
651
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
644
652
|
"since": "2025-01-01"
|
|
645
653
|
},
|
|
646
654
|
"route-group:intent": {
|
|
@@ -648,7 +656,7 @@
|
|
|
648
656
|
"type": "route-group",
|
|
649
657
|
"domain": "intent",
|
|
650
658
|
"sourcePath": "src/server/routes.ts",
|
|
651
|
-
"contentHash": "
|
|
659
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
652
660
|
"since": "2025-01-01"
|
|
653
661
|
},
|
|
654
662
|
"route-group:triage": {
|
|
@@ -656,7 +664,7 @@
|
|
|
656
664
|
"type": "route-group",
|
|
657
665
|
"domain": "safety",
|
|
658
666
|
"sourcePath": "src/server/routes.ts",
|
|
659
|
-
"contentHash": "
|
|
667
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
660
668
|
"since": "2025-01-01"
|
|
661
669
|
},
|
|
662
670
|
"route-group:operations": {
|
|
@@ -664,7 +672,7 @@
|
|
|
664
672
|
"type": "route-group",
|
|
665
673
|
"domain": "safety",
|
|
666
674
|
"sourcePath": "src/server/routes.ts",
|
|
667
|
-
"contentHash": "
|
|
675
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
668
676
|
"since": "2025-01-01"
|
|
669
677
|
},
|
|
670
678
|
"route-group:sentinel": {
|
|
@@ -672,7 +680,7 @@
|
|
|
672
680
|
"type": "route-group",
|
|
673
681
|
"domain": "safety",
|
|
674
682
|
"sourcePath": "src/server/routes.ts",
|
|
675
|
-
"contentHash": "
|
|
683
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
676
684
|
"since": "2025-01-01"
|
|
677
685
|
},
|
|
678
686
|
"route-group:trust": {
|
|
@@ -680,7 +688,7 @@
|
|
|
680
688
|
"type": "route-group",
|
|
681
689
|
"domain": "safety",
|
|
682
690
|
"sourcePath": "src/server/routes.ts",
|
|
683
|
-
"contentHash": "
|
|
691
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
684
692
|
"since": "2025-01-01"
|
|
685
693
|
},
|
|
686
694
|
"route-group:monitoring": {
|
|
@@ -688,7 +696,7 @@
|
|
|
688
696
|
"type": "route-group",
|
|
689
697
|
"domain": "monitoring",
|
|
690
698
|
"sourcePath": "src/server/routes.ts",
|
|
691
|
-
"contentHash": "
|
|
699
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
692
700
|
"since": "2025-01-01"
|
|
693
701
|
},
|
|
694
702
|
"route-group:commitments": {
|
|
@@ -696,7 +704,7 @@
|
|
|
696
704
|
"type": "route-group",
|
|
697
705
|
"domain": "commitments",
|
|
698
706
|
"sourcePath": "src/server/routes.ts",
|
|
699
|
-
"contentHash": "
|
|
707
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
700
708
|
"since": "2025-01-01"
|
|
701
709
|
},
|
|
702
710
|
"route-group:episodes": {
|
|
@@ -704,7 +712,7 @@
|
|
|
704
712
|
"type": "route-group",
|
|
705
713
|
"domain": "memory",
|
|
706
714
|
"sourcePath": "src/server/routes.ts",
|
|
707
|
-
"contentHash": "
|
|
715
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
708
716
|
"since": "2025-01-01"
|
|
709
717
|
},
|
|
710
718
|
"route-group:messages": {
|
|
@@ -712,7 +720,7 @@
|
|
|
712
720
|
"type": "route-group",
|
|
713
721
|
"domain": "coordination",
|
|
714
722
|
"sourcePath": "src/server/routes.ts",
|
|
715
|
-
"contentHash": "
|
|
723
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
716
724
|
"since": "2025-01-01"
|
|
717
725
|
},
|
|
718
726
|
"route-group:system-reviews": {
|
|
@@ -720,7 +728,7 @@
|
|
|
720
728
|
"type": "route-group",
|
|
721
729
|
"domain": "monitoring",
|
|
722
730
|
"sourcePath": "src/server/routes.ts",
|
|
723
|
-
"contentHash": "
|
|
731
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
724
732
|
"since": "2025-01-01"
|
|
725
733
|
},
|
|
726
734
|
"route-group:machine-mesh": {
|
|
@@ -736,7 +744,7 @@
|
|
|
736
744
|
"type": "route-group",
|
|
737
745
|
"domain": "security",
|
|
738
746
|
"sourcePath": "src/server/routes.ts",
|
|
739
|
-
"contentHash": "
|
|
747
|
+
"contentHash": "e9c2393e01c9b17f79d294d514401e5be2c323d5f5ee307827e3247df45c5d95",
|
|
740
748
|
"since": "2025-01-01"
|
|
741
749
|
},
|
|
742
750
|
"cli:init": {
|
|
@@ -984,7 +992,7 @@
|
|
|
984
992
|
"type": "template",
|
|
985
993
|
"domain": "safety",
|
|
986
994
|
"sourcePath": "src/templates/hooks/compaction-recovery.sh",
|
|
987
|
-
"contentHash": "
|
|
995
|
+
"contentHash": "ca6a2a5c2ee03839654c9708912292bc03d81c61281dffbbb958d4877ee1dc91",
|
|
988
996
|
"since": "2025-01-01"
|
|
989
997
|
},
|
|
990
998
|
"template:dangerous-command-guard.sh": {
|
|
@@ -1024,7 +1032,7 @@
|
|
|
1024
1032
|
"type": "template",
|
|
1025
1033
|
"domain": "safety",
|
|
1026
1034
|
"sourcePath": "src/templates/hooks/session-start.sh",
|
|
1027
|
-
"contentHash": "
|
|
1035
|
+
"contentHash": "4d98736d3ee30fe8639f0851e5e492416ad05f4ae49f84e8695723faa4b9398e",
|
|
1028
1036
|
"since": "2025-01-01"
|
|
1029
1037
|
},
|
|
1030
1038
|
"template:settings-template.json": {
|
|
@@ -1408,7 +1416,7 @@
|
|
|
1408
1416
|
"type": "subsystem",
|
|
1409
1417
|
"domain": "server",
|
|
1410
1418
|
"sourcePath": "src/server/AgentServer.ts",
|
|
1411
|
-
"contentHash": "
|
|
1419
|
+
"contentHash": "3c3fcffe37bcee90e1d78c16799a5d6d0bcce2deabcef0eb1e6ec85cdae74da5",
|
|
1412
1420
|
"since": "2025-01-01"
|
|
1413
1421
|
},
|
|
1414
1422
|
"subsystem:session-manager": {
|
|
@@ -464,5 +464,55 @@ if [ -f "$CONFIG_FILE" ] && command -v tmux >/dev/null 2>&1; then
|
|
|
464
464
|
fi
|
|
465
465
|
fi
|
|
466
466
|
|
|
467
|
+
# Active projects digest — file-first, no HTTP (PROJECT-SCOPE-SPEC Phase 1.9).
|
|
468
|
+
# Re-injects the active-project orientation after compaction so the agent
|
|
469
|
+
# doesn't lose track of multi-spec work. Same cache as session-start.sh.
|
|
470
|
+
DIGEST_FILE="$INSTAR_DIR/projects-digest.cache"
|
|
471
|
+
echo ""
|
|
472
|
+
if [ -f "$DIGEST_FILE" ]; then
|
|
473
|
+
PROJ_DIGEST=$(python3 - "$DIGEST_FILE" <<'PYEOF' 2>/dev/null
|
|
474
|
+
import json, re, sys
|
|
475
|
+
path = sys.argv[1]
|
|
476
|
+
try:
|
|
477
|
+
with open(path, 'r', encoding='utf-8') as f:
|
|
478
|
+
d = json.load(f)
|
|
479
|
+
lines = d.get('digestLines') or []
|
|
480
|
+
if not isinstance(lines, list):
|
|
481
|
+
sys.exit(0)
|
|
482
|
+
ctrl = re.compile(r'[\x00-\x1F\x7F]')
|
|
483
|
+
cleaned = []
|
|
484
|
+
for ln in lines[:5]:
|
|
485
|
+
if not isinstance(ln, str):
|
|
486
|
+
continue
|
|
487
|
+
s = ctrl.sub(' ', ln)
|
|
488
|
+
s = re.sub(r'\s+', ' ', s).strip()
|
|
489
|
+
if not s:
|
|
490
|
+
continue
|
|
491
|
+
cleaned.append(s[:200])
|
|
492
|
+
if not cleaned:
|
|
493
|
+
print('Active projects: none')
|
|
494
|
+
else:
|
|
495
|
+
print('--- ACTIVE PROJECTS (post-compaction) ---')
|
|
496
|
+
for c in cleaned:
|
|
497
|
+
print(c)
|
|
498
|
+
truncated = bool(d.get('truncated'))
|
|
499
|
+
total = d.get('totalActiveProjects')
|
|
500
|
+
if truncated and isinstance(total, int) and total > len(cleaned):
|
|
501
|
+
more = total - len(cleaned)
|
|
502
|
+
print(f'+{more} more on dashboard.')
|
|
503
|
+
print('--- END ACTIVE PROJECTS ---')
|
|
504
|
+
except Exception:
|
|
505
|
+
sys.exit(0)
|
|
506
|
+
PYEOF
|
|
507
|
+
)
|
|
508
|
+
if [ -n "$PROJ_DIGEST" ]; then
|
|
509
|
+
echo "$PROJ_DIGEST"
|
|
510
|
+
else
|
|
511
|
+
echo "Active projects: state unavailable — run /project status when ready"
|
|
512
|
+
fi
|
|
513
|
+
else
|
|
514
|
+
echo "Active projects: state unavailable — run /project status when ready"
|
|
515
|
+
fi
|
|
516
|
+
|
|
467
517
|
echo ""
|
|
468
518
|
echo "=== RECOVERY COMPLETE — You are grounded. Continue your work. ==="
|
|
@@ -355,4 +355,54 @@ except Exception:
|
|
|
355
355
|
fi
|
|
356
356
|
fi
|
|
357
357
|
|
|
358
|
+
# Active projects digest — file-first, no HTTP (PROJECT-SCOPE-SPEC Phase 1.9).
|
|
359
|
+
# Reads .instar/projects-digest.cache, written by the server on every
|
|
360
|
+
# project mutation. Re-sanitizes each line on read for defense in depth.
|
|
361
|
+
DIGEST_FILE="$INSTAR_DIR/projects-digest.cache"
|
|
362
|
+
echo ""
|
|
363
|
+
if [ -f "$DIGEST_FILE" ]; then
|
|
364
|
+
PROJ_DIGEST=$(python3 - "$DIGEST_FILE" <<'PYEOF' 2>/dev/null
|
|
365
|
+
import json, re, sys
|
|
366
|
+
path = sys.argv[1]
|
|
367
|
+
try:
|
|
368
|
+
with open(path, 'r', encoding='utf-8') as f:
|
|
369
|
+
d = json.load(f)
|
|
370
|
+
lines = d.get('digestLines') or []
|
|
371
|
+
if not isinstance(lines, list):
|
|
372
|
+
sys.exit(0)
|
|
373
|
+
ctrl = re.compile(r'[\x00-\x1F\x7F]')
|
|
374
|
+
cleaned = []
|
|
375
|
+
for ln in lines[:5]:
|
|
376
|
+
if not isinstance(ln, str):
|
|
377
|
+
continue
|
|
378
|
+
s = ctrl.sub(' ', ln)
|
|
379
|
+
s = re.sub(r'\s+', ' ', s).strip()
|
|
380
|
+
if not s:
|
|
381
|
+
continue
|
|
382
|
+
cleaned.append(s[:200])
|
|
383
|
+
if not cleaned:
|
|
384
|
+
print('Active projects: none')
|
|
385
|
+
else:
|
|
386
|
+
print('--- ACTIVE PROJECTS ---')
|
|
387
|
+
for c in cleaned:
|
|
388
|
+
print(c)
|
|
389
|
+
truncated = bool(d.get('truncated'))
|
|
390
|
+
total = d.get('totalActiveProjects')
|
|
391
|
+
if truncated and isinstance(total, int) and total > len(cleaned):
|
|
392
|
+
more = total - len(cleaned)
|
|
393
|
+
print(f'+{more} more on dashboard.')
|
|
394
|
+
print('--- END ACTIVE PROJECTS ---')
|
|
395
|
+
except Exception:
|
|
396
|
+
sys.exit(0)
|
|
397
|
+
PYEOF
|
|
398
|
+
)
|
|
399
|
+
if [ -n "$PROJ_DIGEST" ]; then
|
|
400
|
+
echo "$PROJ_DIGEST"
|
|
401
|
+
else
|
|
402
|
+
echo "Active projects: state unavailable — run /project status when ready"
|
|
403
|
+
fi
|
|
404
|
+
else
|
|
405
|
+
echo "Active projects: state unavailable — run /project status when ready"
|
|
406
|
+
fi
|
|
407
|
+
|
|
358
408
|
exit 0
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
### Project-scope Phase 1a PR 3 — `/project` skill + session-start digest
|
|
12
|
+
|
|
13
|
+
Final of three PRs scaffolding the project-scope feature. PR 1 added
|
|
14
|
+
the type-level fields; PR 2 added the stage-transition validator and
|
|
15
|
+
HTTP surface; PR 3 ships the user-invocable surface and the
|
|
16
|
+
session-start orientation block so active projects stay visible across
|
|
17
|
+
new sessions.
|
|
18
|
+
|
|
19
|
+
Spec source: `docs/specs/PROJECT-SCOPE-SPEC.md` §§ Phase 1.7 (skill),
|
|
20
|
+
Phase 1.9 (session-start + compaction-recovery hooks).
|
|
21
|
+
|
|
22
|
+
**New files:**
|
|
23
|
+
- `src/core/ProjectDigestCache.ts` — synchronous writer that
|
|
24
|
+
snapshots active projects to `.instar/projects-digest.cache`. Top 5
|
|
25
|
+
by `lastTouchedAt`, sanitized strings (control-char strip + 80-char
|
|
26
|
+
per-field cap), atomic write.
|
|
27
|
+
- `.claude/skills/instar-project/SKILL.md` — slash-command skill. Phase
|
|
28
|
+
1a ships `/project create`, `/project status`, and `/project next`
|
|
29
|
+
(read-only + create). The mutating commands ship in Phase 1b along
|
|
30
|
+
with the round-runner.
|
|
31
|
+
|
|
32
|
+
**Wired-in behavior:**
|
|
33
|
+
- Server boot now constructs a `ProjectDigestCache` and registers it
|
|
34
|
+
as the digest invalidator on `InitiativeTracker`. Every successful
|
|
35
|
+
project mutation (create / update / status change) re-renders the
|
|
36
|
+
cache file atomically. First boot writes the cache unconditionally
|
|
37
|
+
so the hook scripts always have a well-formed file to read.
|
|
38
|
+
- `.instar/hooks/instar/session-start.sh` and
|
|
39
|
+
`.instar/hooks/instar/compaction-recovery.sh` append an
|
|
40
|
+
`--- ACTIVE PROJECTS ---` block at the end of their orientation
|
|
41
|
+
output. They read the cache file (no HTTP, ≤50ms budget), re-sanitize
|
|
42
|
+
each line on read (defense in depth), and fall back to
|
|
43
|
+
`Active projects: state unavailable — run /project status when ready`
|
|
44
|
+
on miss / parse error.
|
|
45
|
+
|
|
46
|
+
**Cache file shape (`.instar/projects-digest.cache`):**
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"generatedAt": "2026-05-11T...",
|
|
50
|
+
"digestLines": [
|
|
51
|
+
"Project [my-project]: 2 of 5 done. Next round: Round 3."
|
|
52
|
+
],
|
|
53
|
+
"totalActiveProjects": 1,
|
|
54
|
+
"truncated": false
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## What to Tell Your User
|
|
59
|
+
|
|
60
|
+
PR 3 closes the first slice of the project-tracking work. Your agent now has a built-in slash command for inspecting and registering projects, plus a session-start orientation line that keeps active projects visible at the top of every new conversation.
|
|
61
|
+
|
|
62
|
+
What you'll see at session start: a short Active Projects block with up to five projects, one line each — telling you the project name, how many rounds are done out of the total, and what the next round is. If you have more than five active projects, the block ends with a note saying how many more are on the dashboard. If your agent has no projects registered yet, the block is empty.
|
|
63
|
+
|
|
64
|
+
What this changes day-to-day: your agent won't lose track of multi-spec projects after a session restart or a context compaction. Before this, the first few features in a project would get attention and the rest would drift off the radar. Now the project roster is structurally visible at every new conversation. The same digest re-injects after context compression, so a long session that hits the compaction window still keeps the active-project orientation in context.
|
|
65
|
+
|
|
66
|
+
The project skill itself is this slice's read-only surface: you can register a project from a markdown plan doc, list all projects, fetch one with its children, or ask "what's next?" (which currently returns a placeholder — the next phase will wire the real answer). The mutating commands that actually drive a project forward — advancing rounds, halting, acknowledging, resuming, abandoning, running a round, drift-checking, accepting a partial round, and claiming ownership across machines — ship in the next phase once the round-runner lands.
|
|
67
|
+
|
|
68
|
+
Nothing existing changes shape. The initiatives routes still return what they always did. The new session-start block appears at the end of the orientation output and is plain text. If your agent doesn't register projects, you won't see any difference.
|
|
69
|
+
|
|
70
|
+
## Summary of New Capabilities
|
|
71
|
+
|
|
72
|
+
| Capability | How to Use |
|
|
73
|
+
|-----------|-----------|
|
|
74
|
+
| `/project create <plan-doc>` | Register a project from a markdown plan via `POST /projects` |
|
|
75
|
+
| `/project status [id]` | List all projects, or fetch one with its children, via `GET /projects[/:id]` |
|
|
76
|
+
| `/project next [id]` | Phase 1a placeholder; returns the spec's 501 response |
|
|
77
|
+
| Session-start project digest | Top 5 active projects rendered at every new session start (no extra config) |
|
|
78
|
+
| Compaction-recovery digest | Same digest re-injects after context compression |
|
|
79
|
+
| Cache file (read-only consumer) | `.instar/projects-digest.cache` — JSON snapshot, atomic writes, sanitized |
|
|
80
|
+
|
|
81
|
+
## Evidence
|
|
82
|
+
|
|
83
|
+
Spec: `docs/specs/PROJECT-SCOPE-SPEC.md` §§ 1.7, 1.9.
|
|
84
|
+
|
|
85
|
+
- `tests/unit/ProjectDigestCache.test.ts` — 19 new tests covering
|
|
86
|
+
empty case, 3-project + 7-project cases, sanitization (control char
|
|
87
|
+
strip + 80-char cap), atomic write, invalidator wiring.
|
|
88
|
+
- `tests/unit/project-digest-hooks.test.ts` — 7 new tests exercising
|
|
89
|
+
the bash hook scripts against present / missing / malformed /
|
|
90
|
+
poisoned cache files.
|
|
91
|
+
- Side-effects review: `upgrades/side-effects/project-scope-phase1a-pr3.md`.
|