instar 1.3.1202 → 1.3.1204
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 +55 -9
- package/dist/commands/server.js.map +1 -1
- package/dist/core/CredentialLocationLedger.d.ts.map +1 -1
- package/dist/core/CredentialLocationLedger.js +3 -2
- package/dist/core/CredentialLocationLedger.js.map +1 -1
- package/dist/core/InUseAccountResolver.d.ts +84 -2
- package/dist/core/InUseAccountResolver.d.ts.map +1 -1
- package/dist/core/InUseAccountResolver.js +85 -12
- package/dist/core/InUseAccountResolver.js.map +1 -1
- package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
- package/dist/core/PostUpdateMigrator.js +7 -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/scaffold/templates.d.ts.map +1 -1
- package/dist/scaffold/templates.js +3 -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 +3 -1
- package/upgrades/1.3.1203.md +103 -0
- package/upgrades/1.3.1204.md +43 -0
- package/upgrades/side-effects/credential-identity-dual-subscription-email.md +220 -0
- package/upgrades/side-effects/stall-sentinel-recovery.md +121 -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,C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AAG,IAAI,EAK5E,qBAAqB,CAAC,EAAE,MAAM,OAAO,gCAAgC,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
|
|
@@ -12789,15 +12811,21 @@ export async function startServer(options) {
|
|
|
12789
12811
|
});
|
|
12790
12812
|
// Compose the host identity resolver: REAL oracle (slot blob → email) → pool (email → accountId).
|
|
12791
12813
|
const { CredentialIdentityOracle: CredSwapOracle } = await import('../core/CredentialIdentityOracle.js');
|
|
12814
|
+
const { resolveClaudeSlotAccountId } = await import('../core/InUseAccountResolver.js');
|
|
12792
12815
|
const credSwapOracle = new CredSwapOracle();
|
|
12793
12816
|
const credResolveIdentity = async (slot) => {
|
|
12794
|
-
|
|
12795
|
-
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
12799
|
-
|
|
12800
|
-
|
|
12817
|
+
// The oracle probed Anthropic's OAuth profile endpoint, so its email denotes a CLAUDE
|
|
12818
|
+
// login and nothing else. The pool mapping lives in `resolveClaudeSlotAccountId` — one
|
|
12819
|
+
// shared, tested definition — because this lookup previously searched the WHOLE pool:
|
|
12820
|
+
// an operator who backs a Claude subscription AND a Codex subscription with the same
|
|
12821
|
+
// Google account has two rows carrying one email, and the unscoped lookup read that as
|
|
12822
|
+
// a genuine 2-way collision -> `unavailable` -> `missing-local-login`, asking the
|
|
12823
|
+
// operator to re-authenticate a login that was present, unexpired and valid. Verified
|
|
12824
|
+
// 2026-08-26: both of this machine's flagged accounts were exactly the dual-subscription
|
|
12825
|
+
// pair, and both resolved cleanly through the oracle. A collision WITHIN claude-code is
|
|
12826
|
+
// still genuine ambiguity and still fails closed — this resolver gates credential MOVES,
|
|
12827
|
+
// so it must never guess which of two homes a blob belongs to.
|
|
12828
|
+
return resolveClaudeSlotAccountId(subscriptionPool.list(), await credSwapOracle.resolveSlotTenant(slot));
|
|
12801
12829
|
};
|
|
12802
12830
|
let quotaPollerRef = null;
|
|
12803
12831
|
const credentialSwapExecutor = new CredentialSwapExecutor({
|
|
@@ -24592,8 +24620,26 @@ export async function startServer(options) {
|
|
|
24592
24620
|
return { merged, open, digest: createHash('sha256').update(JSON.stringify({ merged, open })).digest('hex') };
|
|
24593
24621
|
};
|
|
24594
24622
|
autonomousThroughputFloor = new AutonomousThroughputFloor({
|
|
24595
|
-
listRuns: () => activeAutonomousJobs(config.stateDir).flatMap(job => {
|
|
24596
|
-
|
|
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
|
+
}),
|
|
24597
24643
|
sweep: async (_run, previous) => { try {
|
|
24598
24644
|
const next = await snapshot(previous);
|
|
24599
24645
|
return { status: 'ok', snapshot: next, meaningfulDelta: previous ? hasMeaningfulDeliverableDelta(previous, next) : false };
|