instar 1.3.26 → 1.3.28

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 (51) hide show
  1. package/dist/config/ConfigDefaults.d.ts.map +1 -1
  2. package/dist/config/ConfigDefaults.js +11 -0
  3. package/dist/config/ConfigDefaults.js.map +1 -1
  4. package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
  5. package/dist/core/PostUpdateMigrator.js +268 -196
  6. package/dist/core/PostUpdateMigrator.js.map +1 -1
  7. package/dist/core/types.d.ts +17 -0
  8. package/dist/core/types.d.ts.map +1 -1
  9. package/dist/core/types.js.map +1 -1
  10. package/dist/monitoring/FailureAnalyzer.d.ts +47 -0
  11. package/dist/monitoring/FailureAnalyzer.d.ts.map +1 -0
  12. package/dist/monitoring/FailureAnalyzer.js +77 -0
  13. package/dist/monitoring/FailureAnalyzer.js.map +1 -0
  14. package/dist/monitoring/FailureAttributionEngine.d.ts +89 -0
  15. package/dist/monitoring/FailureAttributionEngine.d.ts.map +1 -0
  16. package/dist/monitoring/FailureAttributionEngine.js +106 -0
  17. package/dist/monitoring/FailureAttributionEngine.js.map +1 -0
  18. package/dist/monitoring/FailureLedger.d.ts +207 -0
  19. package/dist/monitoring/FailureLedger.d.ts.map +1 -0
  20. package/dist/monitoring/FailureLedger.js +524 -0
  21. package/dist/monitoring/FailureLedger.js.map +1 -0
  22. package/dist/monitoring/FailureLoopDriver.d.ts +92 -0
  23. package/dist/monitoring/FailureLoopDriver.d.ts.map +1 -0
  24. package/dist/monitoring/FailureLoopDriver.js +101 -0
  25. package/dist/monitoring/FailureLoopDriver.js.map +1 -0
  26. package/dist/scaffold/templates.d.ts.map +1 -1
  27. package/dist/scaffold/templates.js +7 -0
  28. package/dist/scaffold/templates.js.map +1 -1
  29. package/dist/scheduler/AgentMdJobLoader.d.ts.map +1 -1
  30. package/dist/scheduler/AgentMdJobLoader.js +33 -4
  31. package/dist/scheduler/AgentMdJobLoader.js.map +1 -1
  32. package/dist/server/AgentServer.d.ts +2 -0
  33. package/dist/server/AgentServer.d.ts.map +1 -1
  34. package/dist/server/AgentServer.js +53 -0
  35. package/dist/server/AgentServer.js.map +1 -1
  36. package/dist/server/CapabilityIndex.d.ts.map +1 -1
  37. package/dist/server/CapabilityIndex.js +16 -0
  38. package/dist/server/CapabilityIndex.js.map +1 -1
  39. package/dist/server/routes.d.ts +4 -0
  40. package/dist/server/routes.d.ts.map +1 -1
  41. package/dist/server/routes.js +149 -0
  42. package/dist/server/routes.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/data/builtin-manifest.json +63 -63
  45. package/src/scaffold/templates/jobs/instar/failure-analyzer.md +32 -0
  46. package/src/scaffold/templates.ts +7 -0
  47. package/upgrades/1.3.27.md +45 -0
  48. package/upgrades/1.3.28.md +30 -0
  49. package/upgrades/side-effects/agentmd-frontmatter-scheduling-vocabulary.md +66 -0
  50. package/upgrades/side-effects/esm-safe-instar-hooks.md +33 -0
  51. package/upgrades/side-effects/failure-learning-loop.md +131 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instar",
3
- "version": "1.3.26",
3
+ "version": "1.3.28",
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",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "./builtin-manifest.schema.json",
3
3
  "schemaVersion": 1,
4
- "generatedAt": "2026-05-27T16:22:05.020Z",
5
- "instarVersion": "1.3.26",
4
+ "generatedAt": "2026-05-27T21:23:16.473Z",
5
+ "instarVersion": "1.3.28",
6
6
  "entryCount": 192,
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
14
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
23
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
32
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
41
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
50
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
59
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
68
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
77
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
86
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
95
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
104
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
113
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
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": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
122
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
123
123
  "since": "2025-01-01"
124
124
  },
125
125
  "hook:stop-gate-router": {
@@ -128,7 +128,7 @@
128
128
  "domain": "safety",
129
129
  "sourcePath": "src/core/PostUpdateMigrator.ts",
130
130
  "installedPath": ".instar/hooks/instar/stop-gate-router.js",
131
- "contentHash": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
131
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
132
132
  "since": "2025-01-01"
133
133
  },
134
134
  "hook:auto-approve-permissions": {
@@ -137,7 +137,7 @@
137
137
  "domain": "safety",
138
138
  "sourcePath": "src/core/PostUpdateMigrator.ts",
139
139
  "installedPath": ".instar/hooks/instar/auto-approve-permissions.js",
140
- "contentHash": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
140
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
141
141
  "since": "2025-01-01"
142
142
  },
143
143
  "job:health-check": {
@@ -401,7 +401,7 @@
401
401
  "type": "route-group",
402
402
  "domain": "monitoring",
403
403
  "sourcePath": "src/server/routes.ts",
404
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
404
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
405
405
  "since": "2025-01-01"
406
406
  },
407
407
  "route-group:agents": {
@@ -409,7 +409,7 @@
409
409
  "type": "route-group",
410
410
  "domain": "sessions",
411
411
  "sourcePath": "src/server/routes.ts",
412
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
412
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
413
413
  "since": "2025-01-01"
414
414
  },
415
415
  "route-group:backups": {
@@ -417,7 +417,7 @@
417
417
  "type": "route-group",
418
418
  "domain": "operations",
419
419
  "sourcePath": "src/server/routes.ts",
420
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
420
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
421
421
  "since": "2025-01-01"
422
422
  },
423
423
  "route-group:git": {
@@ -425,7 +425,7 @@
425
425
  "type": "route-group",
426
426
  "domain": "coordination",
427
427
  "sourcePath": "src/server/routes.ts",
428
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
428
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
429
429
  "since": "2025-01-01"
430
430
  },
431
431
  "route-group:memory": {
@@ -433,7 +433,7 @@
433
433
  "type": "route-group",
434
434
  "domain": "memory",
435
435
  "sourcePath": "src/server/routes.ts",
436
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
436
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
437
437
  "since": "2025-01-01"
438
438
  },
439
439
  "route-group:semantic": {
@@ -441,7 +441,7 @@
441
441
  "type": "route-group",
442
442
  "domain": "memory",
443
443
  "sourcePath": "src/server/routes.ts",
444
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
444
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
445
445
  "since": "2025-01-01"
446
446
  },
447
447
  "route-group:status": {
@@ -449,7 +449,7 @@
449
449
  "type": "route-group",
450
450
  "domain": "monitoring",
451
451
  "sourcePath": "src/server/routes.ts",
452
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
452
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
453
453
  "since": "2025-01-01"
454
454
  },
455
455
  "route-group:capabilities": {
@@ -457,7 +457,7 @@
457
457
  "type": "route-group",
458
458
  "domain": "mapping",
459
459
  "sourcePath": "src/server/routes.ts",
460
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
460
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
461
461
  "since": "2025-01-01"
462
462
  },
463
463
  "route-group:project-map": {
@@ -465,7 +465,7 @@
465
465
  "type": "route-group",
466
466
  "domain": "mapping",
467
467
  "sourcePath": "src/server/routes.ts",
468
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
468
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
469
469
  "since": "2025-01-01"
470
470
  },
471
471
  "route-group:coherence": {
@@ -473,7 +473,7 @@
473
473
  "type": "route-group",
474
474
  "domain": "coherence",
475
475
  "sourcePath": "src/server/routes.ts",
476
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
476
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
477
477
  "since": "2025-01-01"
478
478
  },
479
479
  "route-group:topic-bindings": {
@@ -481,7 +481,7 @@
481
481
  "type": "route-group",
482
482
  "domain": "sessions",
483
483
  "sourcePath": "src/server/routes.ts",
484
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
484
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
485
485
  "since": "2025-01-01"
486
486
  },
487
487
  "route-group:context": {
@@ -489,7 +489,7 @@
489
489
  "type": "route-group",
490
490
  "domain": "context",
491
491
  "sourcePath": "src/server/routes.ts",
492
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
492
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
493
493
  "since": "2025-01-01"
494
494
  },
495
495
  "route-group:scope-coherence": {
@@ -497,7 +497,7 @@
497
497
  "type": "route-group",
498
498
  "domain": "coherence",
499
499
  "sourcePath": "src/server/routes.ts",
500
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
500
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
501
501
  "since": "2025-01-01"
502
502
  },
503
503
  "route-group:canonical-state": {
@@ -505,7 +505,7 @@
505
505
  "type": "route-group",
506
506
  "domain": "state",
507
507
  "sourcePath": "src/server/routes.ts",
508
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
508
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
509
509
  "since": "2025-01-01"
510
510
  },
511
511
  "route-group:ci": {
@@ -513,7 +513,7 @@
513
513
  "type": "route-group",
514
514
  "domain": "monitoring",
515
515
  "sourcePath": "src/server/routes.ts",
516
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
516
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
517
517
  "since": "2025-01-01"
518
518
  },
519
519
  "route-group:sessions": {
@@ -521,7 +521,7 @@
521
521
  "type": "route-group",
522
522
  "domain": "sessions",
523
523
  "sourcePath": "src/server/routes.ts",
524
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
524
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
525
525
  "since": "2025-01-01"
526
526
  },
527
527
  "route-group:jobs": {
@@ -529,7 +529,7 @@
529
529
  "type": "route-group",
530
530
  "domain": "scheduling",
531
531
  "sourcePath": "src/server/routes.ts",
532
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
532
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
533
533
  "since": "2025-01-01"
534
534
  },
535
535
  "route-group:skip-ledger": {
@@ -537,7 +537,7 @@
537
537
  "type": "route-group",
538
538
  "domain": "scheduling",
539
539
  "sourcePath": "src/server/routes.ts",
540
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
540
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
541
541
  "since": "2025-01-01"
542
542
  },
543
543
  "route-group:telegram": {
@@ -545,7 +545,7 @@
545
545
  "type": "route-group",
546
546
  "domain": "communication",
547
547
  "sourcePath": "src/server/routes.ts",
548
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
548
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
549
549
  "since": "2025-01-01"
550
550
  },
551
551
  "route-group:attention": {
@@ -553,7 +553,7 @@
553
553
  "type": "route-group",
554
554
  "domain": "communication",
555
555
  "sourcePath": "src/server/routes.ts",
556
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
556
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
557
557
  "since": "2025-01-01"
558
558
  },
559
559
  "route-group:relationships": {
@@ -561,7 +561,7 @@
561
561
  "type": "route-group",
562
562
  "domain": "relationships",
563
563
  "sourcePath": "src/server/routes.ts",
564
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
564
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
565
565
  "since": "2025-01-01"
566
566
  },
567
567
  "route-group:feedback": {
@@ -569,7 +569,7 @@
569
569
  "type": "route-group",
570
570
  "domain": "feedback",
571
571
  "sourcePath": "src/server/routes.ts",
572
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
572
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
573
573
  "since": "2025-01-01"
574
574
  },
575
575
  "route-group:updates": {
@@ -577,7 +577,7 @@
577
577
  "type": "route-group",
578
578
  "domain": "updates",
579
579
  "sourcePath": "src/server/routes.ts",
580
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
580
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
581
581
  "since": "2025-01-01"
582
582
  },
583
583
  "route-group:dispatches": {
@@ -585,7 +585,7 @@
585
585
  "type": "route-group",
586
586
  "domain": "dispatches",
587
587
  "sourcePath": "src/server/routes.ts",
588
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
588
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
589
589
  "since": "2025-01-01"
590
590
  },
591
591
  "route-group:quota": {
@@ -593,7 +593,7 @@
593
593
  "type": "route-group",
594
594
  "domain": "monitoring",
595
595
  "sourcePath": "src/server/routes.ts",
596
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
596
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
597
597
  "since": "2025-01-01"
598
598
  },
599
599
  "route-group:publishing": {
@@ -601,7 +601,7 @@
601
601
  "type": "route-group",
602
602
  "domain": "publishing",
603
603
  "sourcePath": "src/server/routes.ts",
604
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
604
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
605
605
  "since": "2025-01-01"
606
606
  },
607
607
  "route-group:private-views": {
@@ -609,7 +609,7 @@
609
609
  "type": "route-group",
610
610
  "domain": "publishing",
611
611
  "sourcePath": "src/server/routes.ts",
612
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
612
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
613
613
  "since": "2025-01-01"
614
614
  },
615
615
  "route-group:tunnel": {
@@ -617,7 +617,7 @@
617
617
  "type": "route-group",
618
618
  "domain": "networking",
619
619
  "sourcePath": "src/server/routes.ts",
620
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
620
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
621
621
  "since": "2025-01-01"
622
622
  },
623
623
  "route-group:events": {
@@ -625,7 +625,7 @@
625
625
  "type": "route-group",
626
626
  "domain": "networking",
627
627
  "sourcePath": "src/server/routes.ts",
628
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
628
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
629
629
  "since": "2025-01-01"
630
630
  },
631
631
  "route-group:evolution": {
@@ -633,7 +633,7 @@
633
633
  "type": "route-group",
634
634
  "domain": "evolution",
635
635
  "sourcePath": "src/server/routes.ts",
636
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
636
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
637
637
  "since": "2025-01-01"
638
638
  },
639
639
  "route-group:watchdog": {
@@ -641,7 +641,7 @@
641
641
  "type": "route-group",
642
642
  "domain": "monitoring",
643
643
  "sourcePath": "src/server/routes.ts",
644
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
644
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
645
645
  "since": "2025-01-01"
646
646
  },
647
647
  "route-group:topic-memory": {
@@ -649,7 +649,7 @@
649
649
  "type": "route-group",
650
650
  "domain": "memory",
651
651
  "sourcePath": "src/server/routes.ts",
652
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
652
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
653
653
  "since": "2025-01-01"
654
654
  },
655
655
  "route-group:state-sync": {
@@ -657,7 +657,7 @@
657
657
  "type": "route-group",
658
658
  "domain": "coordination",
659
659
  "sourcePath": "src/server/routes.ts",
660
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
660
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
661
661
  "since": "2025-01-01"
662
662
  },
663
663
  "route-group:intent": {
@@ -665,7 +665,7 @@
665
665
  "type": "route-group",
666
666
  "domain": "intent",
667
667
  "sourcePath": "src/server/routes.ts",
668
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
668
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
669
669
  "since": "2025-01-01"
670
670
  },
671
671
  "route-group:triage": {
@@ -673,7 +673,7 @@
673
673
  "type": "route-group",
674
674
  "domain": "safety",
675
675
  "sourcePath": "src/server/routes.ts",
676
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
676
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
677
677
  "since": "2025-01-01"
678
678
  },
679
679
  "route-group:operations": {
@@ -681,7 +681,7 @@
681
681
  "type": "route-group",
682
682
  "domain": "safety",
683
683
  "sourcePath": "src/server/routes.ts",
684
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
684
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
685
685
  "since": "2025-01-01"
686
686
  },
687
687
  "route-group:sentinel": {
@@ -689,7 +689,7 @@
689
689
  "type": "route-group",
690
690
  "domain": "safety",
691
691
  "sourcePath": "src/server/routes.ts",
692
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
692
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
693
693
  "since": "2025-01-01"
694
694
  },
695
695
  "route-group:trust": {
@@ -697,7 +697,7 @@
697
697
  "type": "route-group",
698
698
  "domain": "safety",
699
699
  "sourcePath": "src/server/routes.ts",
700
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
700
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
701
701
  "since": "2025-01-01"
702
702
  },
703
703
  "route-group:monitoring": {
@@ -705,7 +705,7 @@
705
705
  "type": "route-group",
706
706
  "domain": "monitoring",
707
707
  "sourcePath": "src/server/routes.ts",
708
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
708
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
709
709
  "since": "2025-01-01"
710
710
  },
711
711
  "route-group:commitments": {
@@ -713,7 +713,7 @@
713
713
  "type": "route-group",
714
714
  "domain": "commitments",
715
715
  "sourcePath": "src/server/routes.ts",
716
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
716
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
717
717
  "since": "2025-01-01"
718
718
  },
719
719
  "route-group:episodes": {
@@ -721,7 +721,7 @@
721
721
  "type": "route-group",
722
722
  "domain": "memory",
723
723
  "sourcePath": "src/server/routes.ts",
724
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
724
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
725
725
  "since": "2025-01-01"
726
726
  },
727
727
  "route-group:messages": {
@@ -729,7 +729,7 @@
729
729
  "type": "route-group",
730
730
  "domain": "coordination",
731
731
  "sourcePath": "src/server/routes.ts",
732
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
732
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
733
733
  "since": "2025-01-01"
734
734
  },
735
735
  "route-group:system-reviews": {
@@ -737,7 +737,7 @@
737
737
  "type": "route-group",
738
738
  "domain": "monitoring",
739
739
  "sourcePath": "src/server/routes.ts",
740
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
740
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
741
741
  "since": "2025-01-01"
742
742
  },
743
743
  "route-group:machine-mesh": {
@@ -753,7 +753,7 @@
753
753
  "type": "route-group",
754
754
  "domain": "security",
755
755
  "sourcePath": "src/server/routes.ts",
756
- "contentHash": "c81e7535459969d930c59d73269316d8f6b2f84c1dacb2e2ea2f83969ec768b5",
756
+ "contentHash": "8acca5f08e7a2fab53ca75a730c1a88e41f9c43fbaae8e6a96417a7e7124acc2",
757
757
  "since": "2025-01-01"
758
758
  },
759
759
  "cli:init": {
@@ -1449,7 +1449,7 @@
1449
1449
  "type": "subsystem",
1450
1450
  "domain": "server",
1451
1451
  "sourcePath": "src/server/AgentServer.ts",
1452
- "contentHash": "d6d5166ae7e59805087dda14472dae74aa96827082c1d5fd4f4c3bc84b358965",
1452
+ "contentHash": "1ea8e7160275776b2e410635588d2db3cc56083324dff60488cc5e3a41cf2025",
1453
1453
  "since": "2025-01-01"
1454
1454
  },
1455
1455
  "subsystem:session-manager": {
@@ -1481,7 +1481,7 @@
1481
1481
  "type": "subsystem",
1482
1482
  "domain": "updates",
1483
1483
  "sourcePath": "src/core/PostUpdateMigrator.ts",
1484
- "contentHash": "1cea001e2fbc317fe9baf73e9e41dce13fa1dd2821744e81f37c5c6710bbb7b9",
1484
+ "contentHash": "e51fcc55877de0644608728645efc33b586179ac568b85ce190e5b74b1eb4a6d",
1485
1485
  "since": "2025-01-01"
1486
1486
  },
1487
1487
  "subsystem:scheduler": {
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: Failure-Learning Analyzer
3
+ description: "Weekly scan of the failure ledger for dev-process patterns. Discovers support-and-diversity-thresholded insights, opens human-approved tracked improvements (never auto-implements), and runs the verify step on past fixes. Off by default; turns on with monitoring.failureLearning.enabled. Tier-1 supervised (this haiku job wraps the deterministic /failures/analyze endpoint and validates each surfaced insight against its evidence before posting). Spec docs/specs/FAILURE-LEARNING-LOOP-SPEC.md sections 4.4 and 4.6.1."
4
+ schedule: "0 9 * * 3"
5
+ priority: medium
6
+ expectedDurationMinutes: 2
7
+ model: haiku
8
+ enabled: false
9
+ tags:
10
+ - cat:learning
11
+ - failure-learning
12
+ - audit
13
+ toolAllowlist: "*"
14
+ unrestrictedTools: true
15
+ ---
16
+ Run the weekly Failure-Learning analysis. This job exists because individual failures get fixed and forgotten — this turns the accumulated, attributed record into process-level insight, and closes the loop all the way to a human-approved fix and a verification that the fix worked.
17
+
18
+ The job:
19
+
20
+ 1. Confirm the feature is on. If `monitoring.failureLearning.enabled` is not true, exit silently — there is nothing to do.
21
+
22
+ 2. Call the analyzer + closed-loop tick:
23
+ `curl -s -X POST -H "Authorization: Bearer $AUTH" http://localhost:$PORT/failures/analyze`
24
+ The response is `{ analysis: { insightsDiscovered, clustersConsidered, clustersBelowThreshold }, actedOn, verified }`. The endpoint does the deterministic work: it only surfaces a pattern that crosses the support + source-diversity gate (so a single noisy session or a flaky test can never manufacture one), opens a tracked Evolution Action + a draft Initiative for each genuinely-new insight (it can NEVER change the process itself — a human approves), and runs the verify step on past fixes whose window has elapsed.
25
+
26
+ 3. **Tier-1 supervision (your job).** For each insight in `analysis.insightsDiscovered`, sanity-check it against its own evidence before you surface it: does the recommendation actually match the category and the supporting-failure count? If an insight looks malformed or unsupported, do NOT surface it — note it and move on. You are the validation wrapper around the deterministic core.
27
+
28
+ 4. Surface ONLY genuinely-new, decision-bearing insights, and ONLY when `monitoring.failureLearning.insightTelegramEscalation` is true. Post ONE consolidated, plain-English message to the existing system topic — never a new per-feature topic, never a ping per failure. Lead with the pattern and the recommended process change: "We've now seen 5 concurrency failures across 4 different changes — they cluster in work that skipped a concurrency review. Recommend adding a concurrency checklist to the adversarial pass. I've opened a draft for your approval." If `insightTelegramEscalation` is false (the default), stay silent — the Process Health view is the pull surface; do not push.
29
+
30
+ 5. If `verified` > 0, the verify step concluded on one or more past fixes. These update the Process Health board silently (effective / ineffective / inconclusive). Mention a verified-effective result only if you're already surfacing other insights this run — "and the convergence-checklist change from last month looks like it worked: that failure class dropped." Never claim causation — it's correlational.
31
+
32
+ IMPORTANT: This is a guardian job, not a doer. It surfaces patterns and opens human-approved drafts. It NEVER changes a skill, a spec, or the process on its own — that's a deliberate human decision after reading the evidence. Plain English, under 600 characters, write like you're texting a teammate about a pattern you noticed in the data.
@@ -462,6 +462,12 @@ This routes feedback to the Instar maintainers automatically. Valid types: \`bug
462
462
  - The PromiseBeacon fires cadenced heartbeats on open commitments so you actually follow through (and surfaces atRisk items), and the commitment-check job surfaces overdue ones.
463
463
  - **When to use** (PROACTIVE — this is the trigger): the moment you promise the user a future action, open a commitment. NEVER improvise the follow-through with a raw \`sleep\`/background timer or by "remembering" — those do not survive a session ending, a restart, or compaction, so the promise is silently dropped. A registered commitment is the ONLY durable path. (This is distinct from the Evolution Action Queue / \`/commit-action\`, which tracks self-improvement items, not promises to the user.)
464
464
 
465
+ **Failure-Learning Loop** — Dev-process failure forensics (instar self-hosting). When something you built breaks later, it's captured and traced back to the spec/initiative/project AND the dev toolchain that produced it; the analyzer surfaces process-gap patterns and opens human-approved tracked fixes, then verifies whether each fix actually reduced that failure class. Ships OFF (\`monitoring.failureLearning.enabled\`); registers itself on the initiative board.
466
+ - Why features break / failure rate by tool / are our fixes working: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/failures/analysis\` — answer from here, never from memory.
467
+ - List / inspect failures: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/failures\` · \`GET /failures/:id\` · discovered insights: \`GET /failures/insights\`
468
+ - File a diagnosis (one-tap): \`curl -X POST -H "Authorization: Bearer $AUTH" -H "X-Instar-Request: 1" http://localhost:${port}/failures -H 'Content-Type: application/json' -d '{"summary":"<what broke>","initiativeId":"<board id it traces to>","severity":"medium"}'\`
469
+ - **When to use** (PROACTIVE): when you diagnose a bug that traces to past work, file it so the pattern can be learned. The loop NEVER changes the process on its own — it opens a draft for your approval. It can never auto-implement (it never creates the record type the autonomous approver acts on). Distinct from the Evolution Action Queue (this produces the evidence + diagnosis that justify an action).
470
+
465
471
  **Cloudflare Tunnel** — Expose the local server to the internet via Cloudflare. Enables remote access to private views, the API, and file serving.
466
472
  - Status: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/tunnel\`
467
473
  - Configure in \`.instar/config.json\`: \`{"tunnel": {"enabled": true, "type": "quick"}}\`
@@ -678,6 +684,7 @@ I maintain registries that are the source of truth for specific categories. Thes
678
684
  |----------|-------------|
679
685
  | What can I do? | \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/capabilities\` |
680
686
  | What are we working on? / status of a project or initiative? | \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/initiatives\` + \`/projects\` (and \`/initiatives/digest\` for what needs a decision) — NEVER answer this from memory |
687
+ | Why do features keep breaking? / our failure rate by build skill? / are our process fixes working? | \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/failures/analysis\` + \`/failures\` (Failure-Learning Loop — instar dev-process forensics) — NEVER answer this from memory |
681
688
  | Who do I work with? | \`.instar/USER.md\` |
682
689
  | What have I learned? | \`.instar/MEMORY.md\` |
683
690
  | What jobs do I have? | \`.instar/jobs.json\` or \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/jobs\` |