instar 1.3.639 → 1.3.640
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 +35 -0
- package/dist/commands/server.js.map +1 -1
- package/dist/core/IntelligenceRouter.d.ts +9 -0
- package/dist/core/IntelligenceRouter.d.ts.map +1 -1
- package/dist/core/IntelligenceRouter.js +17 -4
- package/dist/core/IntelligenceRouter.js.map +1 -1
- package/dist/core/devGatedFeatures.d.ts.map +1 -1
- package/dist/core/devGatedFeatures.js +7 -1
- package/dist/core/devGatedFeatures.js.map +1 -1
- package/dist/monitoring/DegradationReporter.d.ts +42 -0
- package/dist/monitoring/DegradationReporter.d.ts.map +1 -1
- package/dist/monitoring/DegradationReporter.js +117 -1
- package/dist/monitoring/DegradationReporter.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +3 -3
- package/upgrades/1.3.640.md +46 -0
- package/upgrades/side-effects/resilient-degradation-ladder-increment-2.md +97 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoCH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAS3D,OAAO,EAAE,eAAe,EAAiC,MAAM,iCAAiC,CAAC;AAwBjG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAsH7D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AA+EtD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC1C,OAAO,CAUT;AAyID,UAAU,YAAY;IACpB,UAA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ID,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAy4CD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,eAAe,EACzB,cAAc,EAAE,cAAc,EAC9B,YAAY,CAAC,EAAE,YAAY,EAC3B,WAAW,CAAC,EAAE,WAAW,EACzB,WAAW,CAAC,EAAE,WAAW,EACzB,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,EAGvE,UAAU,CAAC,EAAE,MAAM,OAAO,8BAA8B,EAAE,WAAW,GAAG,IAAI,EAK5E,qBAAqB,CAAC,EAAE,MAAM,OAAO,gCAAgC,EAAE,kBAAkB,GAAG,IAAI,EAKhG,mBAAmB,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,GACpD,IAAI,CA8eN;AA2lBD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAwnftE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
|
package/dist/commands/server.js
CHANGED
|
@@ -4701,6 +4701,21 @@ export async function startServer(options) {
|
|
|
4701
4701
|
}
|
|
4702
4702
|
catch { /* never break the LLM path on a degradation report */ }
|
|
4703
4703
|
},
|
|
4704
|
+
// Never-silent tracking (Resilient Degradation Ladder §4): a non-gating call that
|
|
4705
|
+
// exhausts the ladder (→ caller heuristic) opens a tracked degradation; a successful
|
|
4706
|
+
// real-LLM answer auto-resolves it. No-ops downstream when neverSilent is disabled.
|
|
4707
|
+
onHeuristicFallthrough: (component, framework) => {
|
|
4708
|
+
try {
|
|
4709
|
+
DegradationReporter.getInstance().openDegradation(component, framework);
|
|
4710
|
+
}
|
|
4711
|
+
catch { /* @silent-fallback-ok: a never-silent tracking hook must NEVER throw into the LLM call path; a failed open just skips this tracking tick (the next fallthrough re-opens). */ }
|
|
4712
|
+
},
|
|
4713
|
+
onResolved: (component, framework) => {
|
|
4714
|
+
try {
|
|
4715
|
+
DegradationReporter.getInstance().resolveDegradation(component, framework);
|
|
4716
|
+
}
|
|
4717
|
+
catch { /* @silent-fallback-ok: a never-silent tracking hook must NEVER throw into the LLM call path; a failed resolve just leaves the open degradation for the next success/sweep. */ }
|
|
4718
|
+
},
|
|
4704
4719
|
});
|
|
4705
4720
|
}
|
|
4706
4721
|
catch (err) {
|
|
@@ -17704,6 +17719,26 @@ export async function startServer(options) {
|
|
|
17704
17719
|
// ops-pager output. See upgrades/side-effects/agent-health-alert-authority-routing.md.
|
|
17705
17720
|
toneGate: messagingToneGate ?? null,
|
|
17706
17721
|
});
|
|
17722
|
+
// Never-silent degradation tracking (Resilient Degradation Ladder §4): dev-gated
|
|
17723
|
+
// (live-on-dev / dark-on-fleet via resolveDevAgentGate). When enabled, a timer drives the
|
|
17724
|
+
// level-triggered sweep that escalates a genuinely-stuck heuristic-fallback and TTL-closes an
|
|
17725
|
+
// idle one. The sweep NEVER calls report() — reentrancy-safe (the 2026-06-21 wedge).
|
|
17726
|
+
const nsCfg = config.intelligence?.degradationLadder?.neverSilent;
|
|
17727
|
+
const nsEnabled = resolveDevAgentGate(nsCfg?.enabled, config);
|
|
17728
|
+
degradationReporter.configureNeverSilent({
|
|
17729
|
+
enabled: nsEnabled,
|
|
17730
|
+
escalateMs: nsCfg?.escalateMs,
|
|
17731
|
+
maxOpen: nsCfg?.maxOpen,
|
|
17732
|
+
});
|
|
17733
|
+
if (nsEnabled) {
|
|
17734
|
+
const nsSweepTimer = setInterval(() => {
|
|
17735
|
+
try {
|
|
17736
|
+
degradationReporter.sweepOpenDegradations();
|
|
17737
|
+
}
|
|
17738
|
+
catch { /* @silent-fallback-ok: the never-silent sweep is best-effort level-triggered housekeeping; a single failed tick must not stall the timer (the next tick re-sweeps the same open map). */ }
|
|
17739
|
+
}, 60_000);
|
|
17740
|
+
nsSweepTimer.unref?.();
|
|
17741
|
+
}
|
|
17707
17742
|
}
|
|
17708
17743
|
// Tier-2 live-mode wire-up (SELF-HEALING-REMEDIATOR-V2-SPEC §A57).
|
|
17709
17744
|
//
|