instar 1.3.919 → 1.3.921

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instar",
3
- "version": "1.3.919",
3
+ "version": "1.3.921",
4
4
  "description": "Coherence infrastructure for self-evolving AI agents — on the Claude Code or Codex subscription you already have.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -58,6 +58,14 @@ export const MODEL_ID_NORMALIZATION: Readonly<Record<string, string>> = {
58
58
  'claude-haiku-4-5-20251001': 'claude-haiku-4-5-20251001',
59
59
  'gpt-5.5': 'gpt-5.5',
60
60
  'gpt-5.5-codex': 'gpt-5.5-codex',
61
+ // The model actually serving `messaging-tone-gate` in production (verified
62
+ // 2026-07-23 on the live meter: attribution.models = ['gpt-5.4-mini'] via
63
+ // codex-cli). Its absence made the highest-volume enrolled pair report
64
+ // `no-benched-baseline (unmapped)` — i.e. the one pair with real traffic was
65
+ // structurally unmeasurable. An identity mapping, like the rest: the battery
66
+ // reports runs under the same immutable public id production records.
67
+ 'gpt-5.4-mini': 'gpt-5.4-mini',
68
+ 'gemini-2.5-flash': 'gemini-2.5-flash',
61
69
  'gemini-2.5-pro': 'gemini-2.5-pro',
62
70
  'gemini-3.1-pro': 'gemini-3.1-pro',
63
71
  };
@@ -0,0 +1,33 @@
1
+ {
2
+ "_doc": "Content-free INSTAR-Bench predictions mirror (benchmark-divergence-detector FD1). Counts, not just rates, so the prediction carries its own sampling uncertainty. Regenerate by re-running the battery against the CURRENT prompt templates and re-stamping benchedPromptHash.",
3
+ "capturedAt": "2026-07-23T22:30:00.000Z",
4
+ "tasks": {
5
+ "tone-gate": {
6
+ "perModel": {
7
+ "gpt-5.4-mini": {
8
+ "passRate": 1,
9
+ "passes": 14,
10
+ "deterministic": 14
11
+ },
12
+ "gpt-5.5": {
13
+ "passRate": 0.9643,
14
+ "passes": 27,
15
+ "deterministic": 28
16
+ },
17
+ "gemini-2.5-flash": {
18
+ "passRate": 1,
19
+ "passes": 14,
20
+ "deterministic": 14
21
+ },
22
+ "claude-haiku-4-5-20251001": {
23
+ "passRate": 0.9286,
24
+ "passes": 13,
25
+ "deterministic": 14
26
+ }
27
+ },
28
+ "benchedPromptSource": "src/core/MessagingToneGate.ts:TONE_GATE_PROMPT_TEMPLATE",
29
+ "benchedPromptHash": "4ae0cf6b02663c21a695393727bd05662334f0d8f1a9d3e45d8d9b2141208d54",
30
+ "capturedAt": "2026-07-23T22:30:00.000Z"
31
+ }
32
+ }
33
+ }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "./builtin-manifest.schema.json",
3
3
  "schemaVersion": 1,
4
- "generatedAt": "2026-07-23T21:53:49.579Z",
5
- "instarVersion": "1.3.919",
4
+ "generatedAt": "2026-07-23T23:04:10.011Z",
5
+ "instarVersion": "1.3.921",
6
6
  "entryCount": 202,
7
7
  "entries": {
8
8
  "hook:session-start": {
@@ -418,7 +418,7 @@
418
418
  "type": "route-group",
419
419
  "domain": "monitoring",
420
420
  "sourcePath": "src/server/routes.ts",
421
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
421
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
422
422
  "since": "2025-01-01"
423
423
  },
424
424
  "route-group:agents": {
@@ -426,7 +426,7 @@
426
426
  "type": "route-group",
427
427
  "domain": "sessions",
428
428
  "sourcePath": "src/server/routes.ts",
429
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
429
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
430
430
  "since": "2025-01-01"
431
431
  },
432
432
  "route-group:backups": {
@@ -434,7 +434,7 @@
434
434
  "type": "route-group",
435
435
  "domain": "operations",
436
436
  "sourcePath": "src/server/routes.ts",
437
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
437
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
438
438
  "since": "2025-01-01"
439
439
  },
440
440
  "route-group:git": {
@@ -442,7 +442,7 @@
442
442
  "type": "route-group",
443
443
  "domain": "coordination",
444
444
  "sourcePath": "src/server/routes.ts",
445
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
445
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
446
446
  "since": "2025-01-01"
447
447
  },
448
448
  "route-group:memory": {
@@ -450,7 +450,7 @@
450
450
  "type": "route-group",
451
451
  "domain": "memory",
452
452
  "sourcePath": "src/server/routes.ts",
453
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
453
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
454
454
  "since": "2025-01-01"
455
455
  },
456
456
  "route-group:semantic": {
@@ -458,7 +458,7 @@
458
458
  "type": "route-group",
459
459
  "domain": "memory",
460
460
  "sourcePath": "src/server/routes.ts",
461
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
461
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
462
462
  "since": "2025-01-01"
463
463
  },
464
464
  "route-group:status": {
@@ -466,7 +466,7 @@
466
466
  "type": "route-group",
467
467
  "domain": "monitoring",
468
468
  "sourcePath": "src/server/routes.ts",
469
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
469
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
470
470
  "since": "2025-01-01"
471
471
  },
472
472
  "route-group:capabilities": {
@@ -474,7 +474,7 @@
474
474
  "type": "route-group",
475
475
  "domain": "mapping",
476
476
  "sourcePath": "src/server/routes.ts",
477
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
477
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
478
478
  "since": "2025-01-01"
479
479
  },
480
480
  "route-group:project-map": {
@@ -482,7 +482,7 @@
482
482
  "type": "route-group",
483
483
  "domain": "mapping",
484
484
  "sourcePath": "src/server/routes.ts",
485
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
485
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
486
486
  "since": "2025-01-01"
487
487
  },
488
488
  "route-group:coherence": {
@@ -490,7 +490,7 @@
490
490
  "type": "route-group",
491
491
  "domain": "coherence",
492
492
  "sourcePath": "src/server/routes.ts",
493
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
493
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
494
494
  "since": "2025-01-01"
495
495
  },
496
496
  "route-group:topic-bindings": {
@@ -498,7 +498,7 @@
498
498
  "type": "route-group",
499
499
  "domain": "sessions",
500
500
  "sourcePath": "src/server/routes.ts",
501
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
501
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
502
502
  "since": "2025-01-01"
503
503
  },
504
504
  "route-group:context": {
@@ -506,7 +506,7 @@
506
506
  "type": "route-group",
507
507
  "domain": "context",
508
508
  "sourcePath": "src/server/routes.ts",
509
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
509
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
510
510
  "since": "2025-01-01"
511
511
  },
512
512
  "route-group:scope-coherence": {
@@ -514,7 +514,7 @@
514
514
  "type": "route-group",
515
515
  "domain": "coherence",
516
516
  "sourcePath": "src/server/routes.ts",
517
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
517
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
518
518
  "since": "2025-01-01"
519
519
  },
520
520
  "route-group:canonical-state": {
@@ -522,7 +522,7 @@
522
522
  "type": "route-group",
523
523
  "domain": "state",
524
524
  "sourcePath": "src/server/routes.ts",
525
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
525
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
526
526
  "since": "2025-01-01"
527
527
  },
528
528
  "route-group:ci": {
@@ -530,7 +530,7 @@
530
530
  "type": "route-group",
531
531
  "domain": "monitoring",
532
532
  "sourcePath": "src/server/routes.ts",
533
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
533
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
534
534
  "since": "2025-01-01"
535
535
  },
536
536
  "route-group:sessions": {
@@ -538,7 +538,7 @@
538
538
  "type": "route-group",
539
539
  "domain": "sessions",
540
540
  "sourcePath": "src/server/routes.ts",
541
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
541
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
542
542
  "since": "2025-01-01"
543
543
  },
544
544
  "route-group:jobs": {
@@ -546,7 +546,7 @@
546
546
  "type": "route-group",
547
547
  "domain": "scheduling",
548
548
  "sourcePath": "src/server/routes.ts",
549
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
549
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
550
550
  "since": "2025-01-01"
551
551
  },
552
552
  "route-group:skip-ledger": {
@@ -554,7 +554,7 @@
554
554
  "type": "route-group",
555
555
  "domain": "scheduling",
556
556
  "sourcePath": "src/server/routes.ts",
557
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
557
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
558
558
  "since": "2025-01-01"
559
559
  },
560
560
  "route-group:telegram": {
@@ -562,7 +562,7 @@
562
562
  "type": "route-group",
563
563
  "domain": "communication",
564
564
  "sourcePath": "src/server/routes.ts",
565
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
565
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
566
566
  "since": "2025-01-01"
567
567
  },
568
568
  "route-group:attention": {
@@ -570,7 +570,7 @@
570
570
  "type": "route-group",
571
571
  "domain": "communication",
572
572
  "sourcePath": "src/server/routes.ts",
573
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
573
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
574
574
  "since": "2025-01-01"
575
575
  },
576
576
  "route-group:relationships": {
@@ -578,7 +578,7 @@
578
578
  "type": "route-group",
579
579
  "domain": "relationships",
580
580
  "sourcePath": "src/server/routes.ts",
581
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
581
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
582
582
  "since": "2025-01-01"
583
583
  },
584
584
  "route-group:feedback": {
@@ -586,7 +586,7 @@
586
586
  "type": "route-group",
587
587
  "domain": "feedback",
588
588
  "sourcePath": "src/server/routes.ts",
589
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
589
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
590
590
  "since": "2025-01-01"
591
591
  },
592
592
  "route-group:updates": {
@@ -594,7 +594,7 @@
594
594
  "type": "route-group",
595
595
  "domain": "updates",
596
596
  "sourcePath": "src/server/routes.ts",
597
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
597
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
598
598
  "since": "2025-01-01"
599
599
  },
600
600
  "route-group:dispatches": {
@@ -602,7 +602,7 @@
602
602
  "type": "route-group",
603
603
  "domain": "dispatches",
604
604
  "sourcePath": "src/server/routes.ts",
605
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
605
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
606
606
  "since": "2025-01-01"
607
607
  },
608
608
  "route-group:quota": {
@@ -610,7 +610,7 @@
610
610
  "type": "route-group",
611
611
  "domain": "monitoring",
612
612
  "sourcePath": "src/server/routes.ts",
613
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
613
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
614
614
  "since": "2025-01-01"
615
615
  },
616
616
  "route-group:publishing": {
@@ -618,7 +618,7 @@
618
618
  "type": "route-group",
619
619
  "domain": "publishing",
620
620
  "sourcePath": "src/server/routes.ts",
621
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
621
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
622
622
  "since": "2025-01-01"
623
623
  },
624
624
  "route-group:private-views": {
@@ -626,7 +626,7 @@
626
626
  "type": "route-group",
627
627
  "domain": "publishing",
628
628
  "sourcePath": "src/server/routes.ts",
629
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
629
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
630
630
  "since": "2025-01-01"
631
631
  },
632
632
  "route-group:tunnel": {
@@ -634,7 +634,7 @@
634
634
  "type": "route-group",
635
635
  "domain": "networking",
636
636
  "sourcePath": "src/server/routes.ts",
637
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
637
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
638
638
  "since": "2025-01-01"
639
639
  },
640
640
  "route-group:events": {
@@ -642,7 +642,7 @@
642
642
  "type": "route-group",
643
643
  "domain": "networking",
644
644
  "sourcePath": "src/server/routes.ts",
645
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
645
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
646
646
  "since": "2025-01-01"
647
647
  },
648
648
  "route-group:evolution": {
@@ -650,7 +650,7 @@
650
650
  "type": "route-group",
651
651
  "domain": "evolution",
652
652
  "sourcePath": "src/server/routes.ts",
653
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
653
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
654
654
  "since": "2025-01-01"
655
655
  },
656
656
  "route-group:watchdog": {
@@ -658,7 +658,7 @@
658
658
  "type": "route-group",
659
659
  "domain": "monitoring",
660
660
  "sourcePath": "src/server/routes.ts",
661
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
661
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
662
662
  "since": "2025-01-01"
663
663
  },
664
664
  "route-group:topic-memory": {
@@ -666,7 +666,7 @@
666
666
  "type": "route-group",
667
667
  "domain": "memory",
668
668
  "sourcePath": "src/server/routes.ts",
669
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
669
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
670
670
  "since": "2025-01-01"
671
671
  },
672
672
  "route-group:state-sync": {
@@ -674,7 +674,7 @@
674
674
  "type": "route-group",
675
675
  "domain": "coordination",
676
676
  "sourcePath": "src/server/routes.ts",
677
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
677
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
678
678
  "since": "2025-01-01"
679
679
  },
680
680
  "route-group:intent": {
@@ -682,7 +682,7 @@
682
682
  "type": "route-group",
683
683
  "domain": "intent",
684
684
  "sourcePath": "src/server/routes.ts",
685
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
685
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
686
686
  "since": "2025-01-01"
687
687
  },
688
688
  "route-group:triage": {
@@ -690,7 +690,7 @@
690
690
  "type": "route-group",
691
691
  "domain": "safety",
692
692
  "sourcePath": "src/server/routes.ts",
693
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
693
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
694
694
  "since": "2025-01-01"
695
695
  },
696
696
  "route-group:operations": {
@@ -698,7 +698,7 @@
698
698
  "type": "route-group",
699
699
  "domain": "safety",
700
700
  "sourcePath": "src/server/routes.ts",
701
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
701
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
702
702
  "since": "2025-01-01"
703
703
  },
704
704
  "route-group:sentinel": {
@@ -706,7 +706,7 @@
706
706
  "type": "route-group",
707
707
  "domain": "safety",
708
708
  "sourcePath": "src/server/routes.ts",
709
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
709
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
710
710
  "since": "2025-01-01"
711
711
  },
712
712
  "route-group:trust": {
@@ -714,7 +714,7 @@
714
714
  "type": "route-group",
715
715
  "domain": "safety",
716
716
  "sourcePath": "src/server/routes.ts",
717
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
717
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
718
718
  "since": "2025-01-01"
719
719
  },
720
720
  "route-group:monitoring": {
@@ -722,7 +722,7 @@
722
722
  "type": "route-group",
723
723
  "domain": "monitoring",
724
724
  "sourcePath": "src/server/routes.ts",
725
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
725
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
726
726
  "since": "2025-01-01"
727
727
  },
728
728
  "route-group:commitments": {
@@ -730,7 +730,7 @@
730
730
  "type": "route-group",
731
731
  "domain": "commitments",
732
732
  "sourcePath": "src/server/routes.ts",
733
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
733
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
734
734
  "since": "2025-01-01"
735
735
  },
736
736
  "route-group:episodes": {
@@ -738,7 +738,7 @@
738
738
  "type": "route-group",
739
739
  "domain": "memory",
740
740
  "sourcePath": "src/server/routes.ts",
741
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
741
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
742
742
  "since": "2025-01-01"
743
743
  },
744
744
  "route-group:messages": {
@@ -746,7 +746,7 @@
746
746
  "type": "route-group",
747
747
  "domain": "coordination",
748
748
  "sourcePath": "src/server/routes.ts",
749
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
749
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
750
750
  "since": "2025-01-01"
751
751
  },
752
752
  "route-group:system-reviews": {
@@ -754,7 +754,7 @@
754
754
  "type": "route-group",
755
755
  "domain": "monitoring",
756
756
  "sourcePath": "src/server/routes.ts",
757
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
757
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
758
758
  "since": "2025-01-01"
759
759
  },
760
760
  "route-group:machine-mesh": {
@@ -770,7 +770,7 @@
770
770
  "type": "route-group",
771
771
  "domain": "security",
772
772
  "sourcePath": "src/server/routes.ts",
773
- "contentHash": "0ce8b400cb92f71370dc90e4cce3f5ce2c301b6bd07718a7f54cfebc01d675e0",
773
+ "contentHash": "d513840a029b00aff6c0a1143122d04d18a3b0d57c58c1d98827c8e54f6abe61",
774
774
  "since": "2025-01-01"
775
775
  },
776
776
  "cli:init": {
@@ -0,0 +1,85 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ The Benchmark-Divergence Detector now ships with its first captured predictions baseline (`src/data/benchmarkPredictions.json`), so `GET /benchmark-divergence` reports `mirror.present: true` instead of degrading every finding to `precondition-failed`.
9
+
10
+ Two model ids were added to the fail-closed normalization table, including `gpt-5.4-mini` — the model actually serving `messaging-tone-gate` in production. Its absence meant the one enrolled pair with real traffic resolved as unmapped indefinitely, so the comparator was quietly measuring nothing there.
11
+
12
+ The baseline was produced by re-running the battery against the CURRENT prompt templates rather than reusing July's numbers: the tone-gate prompt had grown from ~35,500 to ~39,900 characters since that run, so the old results would have been stale-on-arrival and correctly suppressed by the template-hash precondition.
13
+
14
+ Unfinished sign-ins regain a live backing process after server restart. Codes
15
+ submitted to a dead or vanished flow now receive an honest expired response,
16
+ with a fresh replacement created when the account still needs sign-in.
17
+
18
+ ## What to Tell Your User
19
+
20
+ Nothing to do. The model-quality benchmark now has a current baseline captured against the instructions actually running today, rather than a version from three weeks ago. One honest caveat: this is half of a two-part loop — the comparison also needs real-world outcome grades, which don't exist for this scenario yet, so the drift check stays quiet until that lands.
21
+
22
+ If a restart interrupts sign-in, the dashboard restores a fresh flow instead of
23
+ showing a technical submission failure.
24
+
25
+ ## Summary of New Capabilities
26
+
27
+ - `GET /benchmark-divergence` has a real baseline to compare against, with per-model counts (not just rates) so prediction-side sampling uncertainty is weighable.
28
+
29
+ - Restores unfinished login flows during server boot.
30
+ - Replaces dead flows without ever typing their stale code.
31
+ - Shows explicit expired and fresh-ready states in the dashboard.
32
+
33
+ ## Evidence
34
+
35
+ **Before** — `GET /benchmark-divergence` on the serving machine (2026-07-23, v1.3.914):
36
+
37
+ ```
38
+ {"mirror":{"present":false,"capturedAt":null,"staleDays":null,"stale":true},
39
+ "summary":{"byVerdict":{},"unmappedModels":[],"missingModelShare":0.02},"findings":[]}
40
+ ```
41
+
42
+ Every comparison degraded to `precondition-failed`; nothing could be measured.
43
+
44
+ **The unmapped-model defect** — the live meter reports the enrolled pair's
45
+ production model:
46
+
47
+ ```
48
+ messaging-tone-gate → attribution.models: ["gpt-5.4-mini"], frameworks: ["codex-cli"]
49
+ ```
50
+
51
+ `gpt-5.4-mini` was absent from `MODEL_ID_NORMALIZATION`, and FD5 is fail-closed
52
+ exact-match, so that pair resolved `no-benched-baseline (unmapped)` indefinitely.
53
+
54
+ **The staleness that made a back-fill useless** — benched vs live template size for
55
+ the two enrolled tasks:
56
+
57
+ | task | benched | live | match? |
58
+ |---|---|---|---|
59
+ | tone-gate | 35,499 chars | 39,886 chars | no |
60
+ | zombie-classify | 2,029 chars | 1,373 chars | no |
61
+
62
+ Building a mirror from July's numbers would have carried a benched-prompt hash that
63
+ never matches the live template, so the Q0 precondition would have suppressed every
64
+ finding — a captured-looking baseline that measures nothing.
65
+
66
+ **After** — the battery re-run against the regenerated template (14 deterministic
67
+ cases per route, subscription doors), loaded back through the real
68
+ `loadBenchmarkMirror`:
69
+
70
+ ```
71
+ present=true capturedAt=2026-07-23T22:30:00.000Z
72
+ tasks=tone-gate
73
+ perModel=gpt-5.4-mini,gpt-5.5,gemini-2.5-flash,claude-haiku-4-5-20251001
74
+ benchedPromptHash=4ae0cf6b02663c21… (= sha256 of the LIVE template)
75
+ normalize(gpt-5.4-mini)=gpt-5.4-mini
76
+ ```
77
+
78
+ Pass rates against the current prompt: `gpt-5.4-mini` 14/14, `gemini-2.5-flash`
79
+ 14/14, `gpt-5.5` 27/28, `claude-haiku-4-5` 13/14. Notably `gpt-5.4-mini` scored
80
+ 6/14 against the OLD template in July — the prompt improved substantially, which is
81
+ the opposite of the decay the staleness concern assumed.
82
+
83
+ **Honest limit:** the drift comparison still cannot fire, because the real-world
84
+ side of it (`messaging-tone-gate` outcome grades) is all-`unknown`. This change
85
+ makes the prediction side current and measurable; it does not close the loop.
@@ -0,0 +1,89 @@
1
+ # Side-effects review — first benchmark predictions baseline
2
+
3
+ **Change:** ships `src/data/benchmarkPredictions.json` (the first captured
4
+ INSTAR-Bench predictions mirror) and adds two rows to `MODEL_ID_NORMALIZATION`.
5
+
6
+ ## What actually changed
7
+
8
+ 1. `src/data/benchmarkPredictions.json` — new, content-free: per (task, model)
9
+ `passRate`/`passes`/`deterministic`, the benched prompt source, and the benched
10
+ prompt hash. No prompts, no case text, no outputs.
11
+ 2. `MODEL_ID_NORMALIZATION` — adds `gpt-5.4-mini` and `gemini-2.5-flash`, both
12
+ identity mappings.
13
+ 3. `tests/unit/benchmarkDivergenceRegistry.test.ts` — the pin that asserted the
14
+ mirror is ABSENT now asserts it is PRESENT and well-formed.
15
+
16
+ ## Why (two real defects, not just "capture a baseline")
17
+
18
+ **(a) The comparator had no baseline at all.** `GET /benchmark-divergence`
19
+ reported `mirror.present: false`, so every finding degraded to
20
+ `precondition-failed`. Measured on the serving machine 2026-07-23.
21
+
22
+ **(b) The production model was unmapped — the one pair with traffic was
23
+ structurally unmeasurable.** The live meter reports `messaging-tone-gate` running
24
+ on `gpt-5.4-mini` via codex-cli. That id was absent from the normalization table,
25
+ and FD5 is (correctly) fail-closed exact-match, so the pair resolved
26
+ `no-benched-baseline (unmapped)` — indefinitely, and quietly. A comparator that
27
+ reports "nothing to compare" forever looks identical to one reporting health.
28
+
29
+ **(c) The pre-existing bench results were stale against a drifted prompt.** The
30
+ July battery scored a tone-gate prompt of 35,499 chars; the live template is
31
+ 39,886. Building a mirror from those numbers would have been stale-on-arrival —
32
+ the Q0 template-hash precondition would have (correctly) suppressed every finding.
33
+ So the battery was **re-run against the current template**, not back-filled.
34
+
35
+ ## How the numbers were produced
36
+
37
+ The bench task's template file was regenerated from the live
38
+ `TONE_GATE_PROMPT_TEMPLATE` export: verbatim rules body + the harness's single
39
+ per-case slot, which is exactly the declared `promptFidelity` for this task. The
40
+ battery then ran 14 deterministic cases per route.
41
+
42
+ `benchedPromptHash` is the sha256 of the LIVE exported template, so the detector's
43
+ Q0 precondition passes only while the prompt genuinely matches — and starts failing
44
+ the moment it drifts again, which is the intended tripwire.
45
+
46
+ ## Blast radius
47
+
48
+ - **Surface:** one read-only observability route (`GET /benchmark-divergence`).
49
+ - **Authority:** none. Findings are `advisory: true` by construction; nothing gates.
50
+ - **Data:** a static JSON file read through existing FD9 clamps. A malformed mirror
51
+ is already a first-class `present: false` state, never a throw.
52
+ - **Fail direction unchanged:** an unmapped model still resolves fail-closed.
53
+
54
+ ## Risk analysis
55
+
56
+ **Could this manufacture a false finding?** Only if the real-world side had a rate
57
+ to compare — it does not. `messaging-tone-gate` currently settles every decision
58
+ `unknown`, so the detector has no real grade-rate and every comparison stays
59
+ non-actionable. **This ships one half of a two-halves loop, and that is stated
60
+ rather than implied**: the mirror makes the benchmark current; it does not make the
61
+ drift comparison useful until outcome grading lands.
62
+
63
+ **Sample size honesty.** 14 deterministic cases per model is a small battery. FD3's
64
+ Wilson half-width term already accounts for that on the prediction side (a 14-case
65
+ battery carries roughly ±0.25 at p=0.5), so a small battery *widens* the flag
66
+ threshold rather than manufacturing divergence. The counts — not just the rates —
67
+ are recorded precisely so that math can run.
68
+
69
+ **Cost.** The run was intended to use subscription doors only. One metered
70
+ OpenRouter route matched the inclusion filter by substring (`claude-haiku` matched
71
+ `or-claude-haiku-45`) and billed **$0.87** against a key with a $25 daily / $60
72
+ lifetime cap. Disclosed rather than absorbed; that route's result is EXCLUDED from
73
+ the mirror, which carries subscription-door results only.
74
+
75
+ ## Migration parity
76
+
77
+ None required. A shipped data file and a source constant; existing agents pick both
78
+ up with the normal version bump. No installed-file, config, hook, or template
79
+ surface.
80
+
81
+ ## Testing
82
+
83
+ Registry suite (14), core (unchanged), analyzer, routes, E2E alive, migration and
84
+ job-template suites — 97 green. `tsc --noEmit` clean.
85
+
86
+ ## Rollback
87
+
88
+ Delete the JSON (the loader returns to `present: false`, today's behaviour) or
89
+ revert the commit. Nothing persists; no state to unwind.
@@ -0,0 +1,38 @@
1
+ # Login Flow Restart Recovery — Side Effects
2
+
3
+ ## Runtime
4
+
5
+ - Startup re-drives each durable, non-terminal pending login before serving
6
+ dashboard traffic.
7
+ - A dead-pane submit may create a fresh provider login process and public
8
+ verification artifact.
9
+ - Missing flows auto-mint only when the matching pool account is explicitly
10
+ `needs-reauth` or in an owner-login-required drift episode.
11
+
12
+ ## External
13
+
14
+ Provider login commands may run once per unfinished flow after server restart.
15
+ Background restoration never opens a browser. No stale submitted code is typed,
16
+ stored, returned, or logged.
17
+
18
+ ## 6b. Operator-surface quality
19
+
20
+ The affected dashboard cell continues to lead with its primary sign-in action.
21
+ The new states use plain language (“expired” and “a fresh sign-in is ready”),
22
+ with no status codes, process names, paths, or internal identifiers as primary
23
+ content. No destructive action is added or promoted. The copy is short enough
24
+ to read at phone width and directs the operator to the fresh flow already shown
25
+ in the same account cell.
26
+
27
+ ## Rollback
28
+
29
+ Reverting the wizard, boot wiring, route, and dashboard changes restores the
30
+ prior behavior. The pending-login file schema is unchanged.
31
+
32
+ ## Class-Closure Declaration
33
+
34
+ - Defect class: `unbounded-self-action`
35
+ - Closure: `n/a`
36
+ - Reason: boot recovery is a one-shot pass over the finite durable pending-login
37
+ set, with at most one re-drive per incomplete record and no self-rescheduling
38
+ path. Dead-flow refresh is user-triggered and bounded to one flow.