instar 1.3.1203 → 1.3.1205
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 +42 -2
- package/dist/commands/server.js.map +1 -1
- package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
- package/dist/core/PostUpdateMigrator.js +11 -0
- package/dist/core/PostUpdateMigrator.js.map +1 -1
- package/dist/data/standards-guard-index.json +1 -1
- package/dist/data/standards-guard-index.meta.json +2 -2
- package/dist/data/standards-registry.meta.json +1 -1
- package/dist/monitoring/AutonomousLivenessReconciler.d.ts +12 -1
- package/dist/monitoring/AutonomousLivenessReconciler.d.ts.map +1 -1
- package/dist/monitoring/AutonomousLivenessReconciler.js +79 -3
- package/dist/monitoring/AutonomousLivenessReconciler.js.map +1 -1
- package/dist/monitoring/AutonomousThroughputFloor.d.ts +8 -0
- package/dist/monitoring/AutonomousThroughputFloor.d.ts.map +1 -1
- package/dist/monitoring/AutonomousThroughputFloor.js +17 -3
- package/dist/monitoring/AutonomousThroughputFloor.js.map +1 -1
- package/dist/monitoring/SessionWatchdog.d.ts +18 -0
- package/dist/monitoring/SessionWatchdog.d.ts.map +1 -1
- package/dist/monitoring/SessionWatchdog.js +78 -6
- package/dist/monitoring/SessionWatchdog.js.map +1 -1
- package/dist/scaffold/templates.d.ts.map +1 -1
- package/dist/scaffold/templates.js +4 -1
- package/dist/scaffold/templates.js.map +1 -1
- package/package.json +1 -1
- package/skills/spec-converge/scripts/cross-model-review.mjs +9 -1
- package/src/data/builtin-manifest.json +19 -19
- package/src/data/standards-guard-index.json +1 -1
- package/src/data/standards-guard-index.meta.json +2 -2
- package/src/data/standards-registry.meta.json +1 -1
- package/src/scaffold/templates.ts +4 -1
- package/upgrades/1.3.1204.md +43 -0
- package/upgrades/1.3.1205.md +37 -0
- package/upgrades/eli16/watchdog-wait-attribution.md +41 -0
- package/upgrades/side-effects/stall-sentinel-recovery.md +121 -0
- package/upgrades/side-effects/watchdog-wait-attribution.md +84 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoFH,OAAO,EAAE,cAAc,EAAwD,MAAM,2BAA2B,CAAC;AAUjH,OAAO,EAAE,eAAe,EAAiC,MAAM,iCAAiC,CAAC;AA4BjG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAgI7D,OAAO,KAAK,EAAW,oBAAoB,EAAe,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAgFtD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC1C,OAAO,CAUT;AAuID,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAouDD;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,YAAY,EACpB,YAAY,EAAE,oBAAoB,GAAG,IAAI,GACxC;IACD,YAAY,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;CAClB,CAqBA;AAED,wBA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EAAE,kBAAkB,GAAG,IAAI,EAKhG,mBAAmB,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,EAQrD,oBAAoB,CAAC,EAAE,MAAM;IAC3B,YAAY,EAAE,OAAO,kBAAkB,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrE,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,GACP,IAAI,CAyuBN;AAgmBD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAwzsBtE;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
|
@@ -9477,6 +9477,18 @@ export async function startServer(options) {
|
|
|
9477
9477
|
}
|
|
9478
9478
|
return set;
|
|
9479
9479
|
},
|
|
9480
|
+
idleTopicSnapshot: () => {
|
|
9481
|
+
const idle = new Map();
|
|
9482
|
+
for (const s of sessionManager.listRunningSessions()) {
|
|
9483
|
+
const topicId = resolveTopicForTmux(s.tmuxSession);
|
|
9484
|
+
if (topicId == null)
|
|
9485
|
+
continue;
|
|
9486
|
+
const frame = sessionManager.captureOutput(s.tmuxSession, 60);
|
|
9487
|
+
if (frame && SessionReaper.isPositivelyIdle(s.framework, frame))
|
|
9488
|
+
idle.set(topicId, s.tmuxSession);
|
|
9489
|
+
}
|
|
9490
|
+
return idle;
|
|
9491
|
+
},
|
|
9480
9492
|
queuePaused: () => rq.isPaused(),
|
|
9481
9493
|
topicInResumeQueue: (topicId) => rq.list().some((e) => e.topicId === topicId && (e.status === 'queued' || e.status === 'starting')),
|
|
9482
9494
|
operatorStoppedSince: sharedOperatorStopSince,
|
|
@@ -9575,6 +9587,16 @@ export async function startServer(options) {
|
|
|
9575
9587
|
// CAS / owned-by-peer race withholds — never undoes the live spawn).
|
|
9576
9588
|
_claimOwnershipForAutonomousSpawn?.(topicId);
|
|
9577
9589
|
},
|
|
9590
|
+
recoverIdle: async ({ sessionName }) => {
|
|
9591
|
+
if (!_sessionRefresh)
|
|
9592
|
+
return false;
|
|
9593
|
+
const result = await _sessionRefresh.refreshSession({
|
|
9594
|
+
sessionName,
|
|
9595
|
+
fresh: true,
|
|
9596
|
+
reason: 'autonomous-completed-turn-continuation',
|
|
9597
|
+
});
|
|
9598
|
+
return result.ok;
|
|
9599
|
+
},
|
|
9578
9600
|
claimInflight: (topicId) => {
|
|
9579
9601
|
if (livenessInflight.has(topicId))
|
|
9580
9602
|
return false; // CAS: someone holds it
|
|
@@ -24598,8 +24620,26 @@ export async function startServer(options) {
|
|
|
24598
24620
|
return { merged, open, digest: createHash('sha256').update(JSON.stringify({ merged, open })).digest('hex') };
|
|
24599
24621
|
};
|
|
24600
24622
|
autonomousThroughputFloor = new AutonomousThroughputFloor({
|
|
24601
|
-
listRuns: () => activeAutonomousJobs(config.stateDir).flatMap(job => {
|
|
24602
|
-
|
|
24623
|
+
listRuns: () => activeAutonomousJobs(config.stateDir).flatMap(job => {
|
|
24624
|
+
const topicId = Number(job.topic);
|
|
24625
|
+
const startedAt = Date.parse(job.startedAt ?? '');
|
|
24626
|
+
if (!Number.isSafeInteger(topicId) || topicId <= 0 || !Number.isFinite(startedAt))
|
|
24627
|
+
return [];
|
|
24628
|
+
const markers = readAutonomousRunMarkers(config.stateDir, topicId);
|
|
24629
|
+
const ownershipRecord = sessionOwnershipRegistry?.read(String(topicId)) ?? null;
|
|
24630
|
+
const ownership = ownershipRecord?.status === 'active'
|
|
24631
|
+
? (ownershipRecord.ownerMachineId === _meshSelfId ? 'local-active' : 'remote-active')
|
|
24632
|
+
: 'unknown';
|
|
24633
|
+
return [{
|
|
24634
|
+
signalRunId: `topic:${topicId}:${job.startedAt}`,
|
|
24635
|
+
topicId,
|
|
24636
|
+
startedAt,
|
|
24637
|
+
telegramBacked: Boolean(telegram),
|
|
24638
|
+
registeredMachineCount: _listPoolMachines?.().length || 1,
|
|
24639
|
+
ownership,
|
|
24640
|
+
midMove: !markers || Boolean(markers.movedTo || markers.moveSuspended),
|
|
24641
|
+
}];
|
|
24642
|
+
}),
|
|
24603
24643
|
sweep: async (_run, previous) => { try {
|
|
24604
24644
|
const next = await snapshot(previous);
|
|
24605
24645
|
return { status: 'ok', snapshot: next, meaningfulDelta: previous ? hasMeaningfulDeliverableDelta(previous, next) : false };
|