instar 1.3.729 → 1.3.730
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 +174 -1
- package/dist/commands/server.js.map +1 -1
- package/dist/core/ModelSwapService.d.ts +13 -0
- package/dist/core/ModelSwapService.d.ts.map +1 -1
- package/dist/core/ModelSwapService.js +11 -0
- package/dist/core/ModelSwapService.js.map +1 -1
- package/dist/core/ModelTierEscalation.d.ts +10 -0
- package/dist/core/ModelTierEscalation.d.ts.map +1 -1
- package/dist/core/ModelTierEscalation.js +4 -0
- package/dist/core/ModelTierEscalation.js.map +1 -1
- package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
- package/dist/core/PostUpdateMigrator.js +18 -0
- package/dist/core/PostUpdateMigrator.js.map +1 -1
- package/dist/core/ProactiveSwapMonitor.d.ts +74 -20
- package/dist/core/ProactiveSwapMonitor.d.ts.map +1 -1
- package/dist/core/ProactiveSwapMonitor.js +349 -28
- package/dist/core/ProactiveSwapMonitor.js.map +1 -1
- package/dist/core/QuotaAwareScheduler.d.ts +70 -3
- package/dist/core/QuotaAwareScheduler.d.ts.map +1 -1
- package/dist/core/QuotaAwareScheduler.js +100 -16
- package/dist/core/QuotaAwareScheduler.js.map +1 -1
- package/dist/core/SessionManager.d.ts +28 -0
- package/dist/core/SessionManager.d.ts.map +1 -1
- package/dist/core/SessionManager.js +102 -0
- package/dist/core/SessionManager.js.map +1 -1
- package/dist/core/SessionRefresh.d.ts +116 -1
- package/dist/core/SessionRefresh.d.ts.map +1 -1
- package/dist/core/SessionRefresh.js +280 -17
- package/dist/core/SessionRefresh.js.map +1 -1
- package/dist/core/SwapAntiThrash.d.ts +329 -0
- package/dist/core/SwapAntiThrash.d.ts.map +1 -0
- package/dist/core/SwapAntiThrash.js +1025 -0
- package/dist/core/SwapAntiThrash.js.map +1 -0
- package/dist/core/SwapLedger.d.ts +168 -0
- package/dist/core/SwapLedger.d.ts.map +1 -0
- package/dist/core/SwapLedger.js +275 -0
- package/dist/core/SwapLedger.js.map +1 -0
- package/dist/core/SwapWorkGate.d.ts +100 -0
- package/dist/core/SwapWorkGate.d.ts.map +1 -0
- package/dist/core/SwapWorkGate.js +175 -0
- package/dist/core/SwapWorkGate.js.map +1 -0
- package/dist/core/devGatedFeatures.d.ts.map +1 -1
- package/dist/core/devGatedFeatures.js +6 -0
- package/dist/core/devGatedFeatures.js.map +1 -1
- package/dist/core/types.d.ts +63 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/monitoring/guardManifest.d.ts.map +1 -1
- package/dist/monitoring/guardManifest.js +40 -1
- package/dist/monitoring/guardManifest.js.map +1 -1
- package/dist/scaffold/templates.d.ts.map +1 -1
- package/dist/scaffold/templates.js +1 -0
- package/dist/scaffold/templates.js.map +1 -1
- package/dist/server/AgentServer.d.ts.map +1 -1
- package/dist/server/AgentServer.js +19 -0
- package/dist/server/AgentServer.js.map +1 -1
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +36 -3
- package/dist/server/routes.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +65 -65
- package/src/scaffold/templates.ts +1 -0
- package/upgrades/1.3.730.md +112 -0
- package/upgrades/side-effects/swap-continuity-antithrash.md +118 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SwapWorkGate — Piece 2 of swap-continuity-antithrash: the in-flight work
|
|
3
|
+
* gate for every session-killing mutation
|
|
4
|
+
* (docs/specs/swap-continuity-antithrash.md §4).
|
|
5
|
+
*
|
|
6
|
+
* A STATELESS predicate (§4.2 ownership: the gate is `busy()` and nothing
|
|
7
|
+
* else — ProactiveSwapMonitor owns proactive deferral state; SessionRefresh
|
|
8
|
+
* owns the reactive grace loop). It answers one question at the chokepoint:
|
|
9
|
+
* does this session have in-flight work right now?
|
|
10
|
+
*
|
|
11
|
+
* The probe composes two legs (§4.1):
|
|
12
|
+
* - turn leg: SessionManager.checkSessionWorkState (a NEW tri-state async
|
|
13
|
+
* probe — 'working' | 'idle' | 'indeterminate'; never the synchronous
|
|
14
|
+
* execFileSync path, mandatory event-loop safety).
|
|
15
|
+
* - subagent leg: SubagentTracker.hasActiveSubagents keyed on the state
|
|
16
|
+
* session's claudeSessionId; a MISSING id is 'absent' — the leg is
|
|
17
|
+
* STRUCTURALLY unavailable, distinct from a failed probe but resolving
|
|
18
|
+
* identically (R5-M1: absent behaves like indeterminate for EVERY caller
|
|
19
|
+
* class — an id-less session can be running background subagents behind
|
|
20
|
+
* an idle prompt, the exact F3 blind spot this feature exists to close).
|
|
21
|
+
*
|
|
22
|
+
* Uncertainty direction (I7): a session is idle ONLY when every leg
|
|
23
|
+
* affirmatively reports idle; 'working' / 'indeterminate' / 'absent' on ANY
|
|
24
|
+
* leg resolves BUSY (fail toward not killing work). Reactive callers resolve
|
|
25
|
+
* the same busy verdict as busy-for-grace (bounded by reactiveGraceMs — the
|
|
26
|
+
* grace deadline always proceeds, so stranding is impossible).
|
|
27
|
+
*
|
|
28
|
+
* This file also owns the §4.3 mitigation-payload builder: the quoted-data
|
|
29
|
+
* envelope (delimiter neutralization + length clamps over EVERY non-fixed
|
|
30
|
+
* byte, R2-M1/R3-m4) attached to every forced kill.
|
|
31
|
+
*/
|
|
32
|
+
export type SwapWorkGateCallerClass = 'proactive-swap' | 'reactive-swap' | 'interactive-refresh' | 'recovery';
|
|
33
|
+
export type WorkLegState = 'working' | 'idle' | 'indeterminate';
|
|
34
|
+
export interface SubagentSnapshot {
|
|
35
|
+
agentType: string;
|
|
36
|
+
ageMinutes: number;
|
|
37
|
+
transcriptPath?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface WorkProbeResult {
|
|
40
|
+
/** The I7 optimization-caller resolution: idle only when EVERY leg is affirmatively idle. */
|
|
41
|
+
busy: boolean;
|
|
42
|
+
turnLeg: WorkLegState;
|
|
43
|
+
subagentLeg: 'ok' | 'absent' | 'indeterminate';
|
|
44
|
+
/** The pane/process leg observed a live turn. */
|
|
45
|
+
turnInFlight: boolean;
|
|
46
|
+
/** Live subagents (empty when none; null when the leg is absent/indeterminate — unreadable ≠ zero, R5-M1). */
|
|
47
|
+
subagents: SubagentSnapshot[] | null;
|
|
48
|
+
/** The ledger reason for a busy verdict (null when idle). Priority: busy-turn > busy-subagents > busy-indeterminate. */
|
|
49
|
+
reason: 'busy-turn' | 'busy-subagents' | 'busy-indeterminate' | null;
|
|
50
|
+
}
|
|
51
|
+
export interface SwapWorkGateDeps {
|
|
52
|
+
/** SessionManager.checkSessionWorkState — the async tri-state probe (§4.1). */
|
|
53
|
+
checkSessionWorkState: (tmuxSession: string) => Promise<WorkLegState>;
|
|
54
|
+
/** The state session's claudeSessionId (null when missing — leg 'absent'). */
|
|
55
|
+
getClaudeSessionId: (tmuxSession: string) => string | null;
|
|
56
|
+
/** SubagentTracker.hasActiveSubagents (O(1), in-memory, cannot block). */
|
|
57
|
+
hasActiveSubagents: (claudeSessionId: string) => boolean;
|
|
58
|
+
/** SubagentTracker.getActiveSubagents — enumeration for mitigation payloads. */
|
|
59
|
+
getActiveSubagents: (claudeSessionId: string) => Array<{
|
|
60
|
+
agentType: string;
|
|
61
|
+
startedAt: string;
|
|
62
|
+
transcriptPath?: string;
|
|
63
|
+
}>;
|
|
64
|
+
now?: () => number;
|
|
65
|
+
}
|
|
66
|
+
export declare class SwapWorkGate {
|
|
67
|
+
private readonly deps;
|
|
68
|
+
private readonly now;
|
|
69
|
+
constructor(deps: SwapWorkGateDeps);
|
|
70
|
+
/** Probe the session's in-flight work state. Never throws — an internal
|
|
71
|
+
* failure resolves to indeterminate (I7: uncertainty is busy). */
|
|
72
|
+
probe(tmuxSession: string): Promise<WorkProbeResult>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Delimiter-neutralize + length-clamp one non-fixed field (§4.3(3) — the rule
|
|
76
|
+
* is structural, never trust-by-provenance: EVERY byte that is not part of
|
|
77
|
+
* the fixed template passes through here).
|
|
78
|
+
*/
|
|
79
|
+
export declare function neutralizeField(value: string, maxChars: number): string;
|
|
80
|
+
export interface MitigationInbound {
|
|
81
|
+
body: string;
|
|
82
|
+
/** Sender attribution — SAME trust class as the body (R2-M1): neutralized + clamped. */
|
|
83
|
+
from: string;
|
|
84
|
+
at?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface MitigationPayloadInput {
|
|
87
|
+
/** Enumerated killed subagents; null = the enumeration was BLIND (id absent
|
|
88
|
+
* at kill time, R5-M1) — rendered as the honesty line, never an empty list. */
|
|
89
|
+
killedSubagents: SubagentSnapshot[] | null;
|
|
90
|
+
/** Unanswered inbound at kill time: the message, 'none', or 'unknown' (Q4 tri-state). */
|
|
91
|
+
inbound: MitigationInbound | 'none' | 'unknown';
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Build the plain-language mitigation block appended to the respawned
|
|
95
|
+
* session's followUpPrompt (§4.3). All non-fixed bytes are neutralized and
|
|
96
|
+
* clamped; the only text outside the quoted-data region is the fixed template
|
|
97
|
+
* (zero sender-derived bytes).
|
|
98
|
+
*/
|
|
99
|
+
export declare function buildMitigationPayload(input: MitigationPayloadInput): string;
|
|
100
|
+
//# sourceMappingURL=SwapWorkGate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwapWorkGate.d.ts","sourceRoot":"","sources":["../../src/core/SwapWorkGate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,MAAM,MAAM,uBAAuB,GAC/B,gBAAgB,GAChB,eAAe,GACf,qBAAqB,GACrB,UAAU,CAAC;AAEf,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,eAAe,CAAC;AAEhE,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,E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M,CAQvE;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,wFAAwF;IACxF,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;oFACgF;IAChF,eAAe,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;IAC3C,yFAAyF;IACzF,OAAO,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;CACjD;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CA0C5E"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SwapWorkGate — Piece 2 of swap-continuity-antithrash: the in-flight work
|
|
3
|
+
* gate for every session-killing mutation
|
|
4
|
+
* (docs/specs/swap-continuity-antithrash.md §4).
|
|
5
|
+
*
|
|
6
|
+
* A STATELESS predicate (§4.2 ownership: the gate is `busy()` and nothing
|
|
7
|
+
* else — ProactiveSwapMonitor owns proactive deferral state; SessionRefresh
|
|
8
|
+
* owns the reactive grace loop). It answers one question at the chokepoint:
|
|
9
|
+
* does this session have in-flight work right now?
|
|
10
|
+
*
|
|
11
|
+
* The probe composes two legs (§4.1):
|
|
12
|
+
* - turn leg: SessionManager.checkSessionWorkState (a NEW tri-state async
|
|
13
|
+
* probe — 'working' | 'idle' | 'indeterminate'; never the synchronous
|
|
14
|
+
* execFileSync path, mandatory event-loop safety).
|
|
15
|
+
* - subagent leg: SubagentTracker.hasActiveSubagents keyed on the state
|
|
16
|
+
* session's claudeSessionId; a MISSING id is 'absent' — the leg is
|
|
17
|
+
* STRUCTURALLY unavailable, distinct from a failed probe but resolving
|
|
18
|
+
* identically (R5-M1: absent behaves like indeterminate for EVERY caller
|
|
19
|
+
* class — an id-less session can be running background subagents behind
|
|
20
|
+
* an idle prompt, the exact F3 blind spot this feature exists to close).
|
|
21
|
+
*
|
|
22
|
+
* Uncertainty direction (I7): a session is idle ONLY when every leg
|
|
23
|
+
* affirmatively reports idle; 'working' / 'indeterminate' / 'absent' on ANY
|
|
24
|
+
* leg resolves BUSY (fail toward not killing work). Reactive callers resolve
|
|
25
|
+
* the same busy verdict as busy-for-grace (bounded by reactiveGraceMs — the
|
|
26
|
+
* grace deadline always proceeds, so stranding is impossible).
|
|
27
|
+
*
|
|
28
|
+
* This file also owns the §4.3 mitigation-payload builder: the quoted-data
|
|
29
|
+
* envelope (delimiter neutralization + length clamps over EVERY non-fixed
|
|
30
|
+
* byte, R2-M1/R3-m4) attached to every forced kill.
|
|
31
|
+
*/
|
|
32
|
+
export class SwapWorkGate {
|
|
33
|
+
deps;
|
|
34
|
+
now;
|
|
35
|
+
constructor(deps) {
|
|
36
|
+
this.deps = deps;
|
|
37
|
+
this.now = deps.now ?? (() => Date.now());
|
|
38
|
+
}
|
|
39
|
+
/** Probe the session's in-flight work state. Never throws — an internal
|
|
40
|
+
* failure resolves to indeterminate (I7: uncertainty is busy). */
|
|
41
|
+
async probe(tmuxSession) {
|
|
42
|
+
let turnLeg;
|
|
43
|
+
try {
|
|
44
|
+
turnLeg = await this.deps.checkSessionWorkState(tmuxSession);
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
// @silent-fallback-ok: leg-probe failure resolves to indeterminate,
|
|
48
|
+
// which the gate reads as BUSY (I7) — the safe direction (defer, never
|
|
49
|
+
// a wrong kill); the busy-indeterminate reason surfaces on the refusal.
|
|
50
|
+
turnLeg = 'indeterminate';
|
|
51
|
+
}
|
|
52
|
+
let subagentLeg;
|
|
53
|
+
let subagents = null;
|
|
54
|
+
let subagentsActive = false;
|
|
55
|
+
let claudeSessionId = null;
|
|
56
|
+
try {
|
|
57
|
+
claudeSessionId = this.deps.getClaudeSessionId(tmuxSession);
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
// @silent-fallback-ok: no resolvable claude session id → the subagent
|
|
61
|
+
// leg reads STRUCTURALLY absent (R3-L1 pin) — same as the null return.
|
|
62
|
+
claudeSessionId = null;
|
|
63
|
+
}
|
|
64
|
+
if (claudeSessionId === null) {
|
|
65
|
+
// STRUCTURALLY unavailable — no id to probe against (R3-L1 pin).
|
|
66
|
+
subagentLeg = 'absent';
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
try {
|
|
70
|
+
subagentsActive = this.deps.hasActiveSubagents(claudeSessionId);
|
|
71
|
+
subagentLeg = 'ok';
|
|
72
|
+
if (subagentsActive) {
|
|
73
|
+
const nowMs = this.now();
|
|
74
|
+
subagents = this.deps.getActiveSubagents(claudeSessionId).map((r) => ({
|
|
75
|
+
agentType: r.agentType,
|
|
76
|
+
ageMinutes: Math.max(0, Math.round((nowMs - Date.parse(r.startedAt)) / 60000)),
|
|
77
|
+
...(r.transcriptPath ? { transcriptPath: r.transcriptPath } : {}),
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
subagents = [];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
catch {
|
|
85
|
+
subagentLeg = 'indeterminate';
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// I7 resolution (R4-m3 as corrected by R5-M1): busy iff any leg is
|
|
89
|
+
// non-affirmatively-idle; idle iff EVERY leg affirmatively reports idle.
|
|
90
|
+
const turnBusy = turnLeg === 'working';
|
|
91
|
+
const turnUnknown = turnLeg === 'indeterminate';
|
|
92
|
+
const subBusy = subagentLeg === 'ok' && subagentsActive;
|
|
93
|
+
const subUnknown = subagentLeg === 'absent' || subagentLeg === 'indeterminate';
|
|
94
|
+
const busy = turnBusy || turnUnknown || subBusy || subUnknown;
|
|
95
|
+
let reason = null;
|
|
96
|
+
if (turnBusy)
|
|
97
|
+
reason = 'busy-turn';
|
|
98
|
+
else if (subBusy)
|
|
99
|
+
reason = 'busy-subagents';
|
|
100
|
+
else if (turnUnknown || subUnknown)
|
|
101
|
+
reason = 'busy-indeterminate';
|
|
102
|
+
return {
|
|
103
|
+
busy,
|
|
104
|
+
turnLeg,
|
|
105
|
+
subagentLeg,
|
|
106
|
+
turnInFlight: turnBusy,
|
|
107
|
+
subagents,
|
|
108
|
+
reason,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
// ── §4.3 mitigation payload (quoted-data envelope) ──────────────────────────
|
|
113
|
+
const ENVELOPE_OPEN = '<<<quoted-data>>>';
|
|
114
|
+
const ENVELOPE_CLOSE = '<<</quoted-data>>>';
|
|
115
|
+
const MAX_BLOCK_CHARS = 2000;
|
|
116
|
+
const MAX_INBOUND_CHARS = 1000;
|
|
117
|
+
const MAX_SUBAGENT_ENTRIES = 10;
|
|
118
|
+
const MAX_FIELD_CHARS = 64;
|
|
119
|
+
/**
|
|
120
|
+
* Delimiter-neutralize + length-clamp one non-fixed field (§4.3(3) — the rule
|
|
121
|
+
* is structural, never trust-by-provenance: EVERY byte that is not part of
|
|
122
|
+
* the fixed template passes through here).
|
|
123
|
+
*/
|
|
124
|
+
export function neutralizeField(value, maxChars) {
|
|
125
|
+
let v = value;
|
|
126
|
+
// Any occurrence of the envelope's own delimiter sequences inside the body
|
|
127
|
+
// is broken (zero-width-space injected) so the quoted region cannot be
|
|
128
|
+
// closed early by content.
|
|
129
|
+
v = v.split('<<<').join('<\u200b<<').split('>>>').join('>\u200b>>');
|
|
130
|
+
if (v.length > maxChars)
|
|
131
|
+
v = v.slice(0, maxChars - 1) + '…';
|
|
132
|
+
return v;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Build the plain-language mitigation block appended to the respawned
|
|
136
|
+
* session's followUpPrompt (§4.3). All non-fixed bytes are neutralized and
|
|
137
|
+
* clamped; the only text outside the quoted-data region is the fixed template
|
|
138
|
+
* (zero sender-derived bytes).
|
|
139
|
+
*/
|
|
140
|
+
export function buildMitigationPayload(input) {
|
|
141
|
+
const parts = [];
|
|
142
|
+
if (input.killedSubagents === null) {
|
|
143
|
+
parts.push('This respawn interrupted this session while its subagent state was unreadable at kill time (no session id); ' +
|
|
144
|
+
'background subagents may have been interrupted without enumeration — check for half-finished work.');
|
|
145
|
+
}
|
|
146
|
+
else if (input.killedSubagents.length > 0) {
|
|
147
|
+
const shown = input.killedSubagents.slice(0, MAX_SUBAGENT_ENTRIES);
|
|
148
|
+
const extra = input.killedSubagents.length - shown.length;
|
|
149
|
+
const list = shown
|
|
150
|
+
.map((s) => `${neutralizeField(s.agentType, MAX_FIELD_CHARS)}, running for ${Math.round(s.ageMinutes)} min`)
|
|
151
|
+
.join('; ');
|
|
152
|
+
parts.push(`This respawn interrupted ${input.killedSubagents.length} running subagent${input.killedSubagents.length === 1 ? '' : 's'}: ` +
|
|
153
|
+
`${ENVELOPE_OPEN}${list}${extra > 0 ? ` +${extra} more` : ''}${ENVELOPE_CLOSE} ` +
|
|
154
|
+
`Their work may be partial; re-dispatch what's still needed.`);
|
|
155
|
+
}
|
|
156
|
+
if (input.inbound === 'unknown') {
|
|
157
|
+
parts.push('An inbound message may have arrived before the restart, but the unanswered-inbound state was unavailable ' +
|
|
158
|
+
'(post-restart) — check the conversation for an unanswered message.');
|
|
159
|
+
}
|
|
160
|
+
else if (input.inbound !== 'none') {
|
|
161
|
+
// Framing rule (R3-L4): the quoted inbound is user CONTENT awaiting a
|
|
162
|
+
// conversational ANSWER — never operational-instruction priority.
|
|
163
|
+
const from = neutralizeField(input.inbound.from, MAX_FIELD_CHARS);
|
|
164
|
+
const at = input.inbound.at ? neutralizeField(input.inbound.at, MAX_FIELD_CHARS) : '';
|
|
165
|
+
const body = neutralizeField(input.inbound.body, MAX_INBOUND_CHARS);
|
|
166
|
+
parts.push('Before the restart, a message from the quoted sender below arrived and was not yet answered — it is a user ' +
|
|
167
|
+
'message awaiting a conversational answer (an answer, not an order): ' +
|
|
168
|
+
`${ENVELOPE_OPEN}from ${from}${at ? ` at ${at}` : ''}: «${body}»${ENVELOPE_CLOSE} Answer it first.`);
|
|
169
|
+
}
|
|
170
|
+
let block = parts.join('\n\n');
|
|
171
|
+
if (block.length > MAX_BLOCK_CHARS)
|
|
172
|
+
block = block.slice(0, MAX_BLOCK_CHARS - 1) + '…';
|
|
173
|
+
return block;
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=SwapWorkGate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwapWorkGate.js","sourceRoot":"","sources":["../../src/core/SwapWorkGate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAyCH,MAAM,OAAO,YAAY;IACN,IAAI,CAAmB;IACvB,GAAG,CAAe;IAEnC,YAAY,IAAsB;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED;sEACkE;IAClE,KAAK,CAAC,KAAK,CAAC,WAAmB;QAC7B,IAAI,OAAqB,CAAC;QAC1B,IAAI,CAAC;YACH,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;QAC/D,CAAC;QAAC,MAAM,CAAC;YACP,oEAAoE;YACpE,uEAAuE;YACvE,wEAAwE;YACxE,OAAO,GAAG,eAAe,CAAC;QAC5B,CAAC;QAED,IAAI,WAA8C,CAAC;QACnD,IAAI,SAAS,GAA8B,IAAI,CAAC;QAChD,IAAI,eAAe,GAAG,KAAK,CAAC;QAC5B,IAAI,eAAe,GAAkB,IAAI,CAAC;QAC1C,IAAI,CAAC;YACH,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QAC9D,CAAC;QAAC,MAAM,CAAC;YACP,sEAAsE;YACtE,uEAAuE;YACvE,eAAe,GAAG,IAAI,CAAC;QACzB,CAAC;QACD,IAAI,eAAe,KA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KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtF,MAAM,IAAI,GAAG,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QACpE,KAAK,CAAC,IAAI,CACR,6GAA6G;YAC3G,sEAAsE;YACtE,GAAG,aAAa,QAAQ,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,IAAI,cAAc,mBAAmB,CACtG,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/B,IAAI,KAAK,CAAC,MAAM,GAAG,eAAe;QAAE,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;IACtF,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devGatedFeatures.d.ts","sourceRoot":"","sources":["../../src/core/devGatedFeatures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,oEAAoE;AACpE,MAAM,WAAW,eAAe;IAC9B,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,kBAAkB,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"devGatedFeatures.d.ts","sourceRoot":"","sources":["../../src/core/devGatedFeatures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,oEAAoE;AACpE,MAAM,WAAW,eAAe;IAC9B,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,kBAAkB,EAAE,eAAe,EA0c/C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,sBAAsB,GACtB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,iBAAiB;IAChC,uEAAuE;IACvE,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,mFAAmF;IACnF,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,EAsJnD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAO5E"}
|
|
@@ -457,6 +457,12 @@ export const DEV_GATED_FEATURES = [
|
|
|
457
457
|
description: 'tmux Event-Loop Resilience (C) — the DegradedTmuxGuard: a signal-only watcher that raises ONE deduped agent-health Attention item when the shared tmux server is degraded (slow sync calls / event-loop stalls). NEVER kills the shared socket.',
|
|
458
458
|
justification: 'Observe-and-escalate only. Bounded by construction — a fixed-capacity O(1) modulo-write ring (never an unbounded array), load-gated (suppressed above a 1-min-load-per-core threshold so a busy multi-agent box does not false-fire) and N-cycle corroborated before any escalation. Signal vs Authority: the ONLY automated action is ONE deduped, NORMAL-priority agent-health Attention item; any actual tmux refresh is an explicit operator Y/N, never auto-performed. Registered in GUARD_MANIFEST with a pure in-memory getter (no I/O on the guard-status read). No spend, no egress beyond the operator-facing dedup line, no destructive action.',
|
|
459
459
|
},
|
|
460
|
+
{
|
|
461
|
+
name: 'swapContinuity',
|
|
462
|
+
configPath: 'subscriptionPool.swapContinuity.enabled',
|
|
463
|
+
description: 'Swap-continuity in-flight work gate (swap-continuity-antithrash §4) — every session-killing mutation (proactive/reactive account swap, agent/API refresh) consults the SwapWorkGate at the SessionRefresh funnel: a proactive swap DEFERS over in-flight work (ceiling-dropped, never forced), a reactive swap gets a bounded ≤120s grace then proceeds WITH the F3 mitigations (enumerated killed subagents + re-injected unanswered inbound), an interactive refresh gets a structured session-busy refusal + force.',
|
|
464
|
+
justification: 'Ships dryRun:true (the dry-run canary): on a dev agent the gate probes and LOGS every would-defer/would-refuse/would-mitigate verdict but changes NOTHING — every refresh kills exactly as today until a deliberate dryRun:false. The gate itself is deterministic structural-state math (pane footer / child process / subagent registry — Tier 0, no LLM), bounded on every edge (30-min deferral ceiling, 120-s reactive grace, force override, recovery-class exemption), and its uncertainty direction only ever DELAYS an optimization — it can never kill work, spend, or egress. Same dogfooding posture as topicProfiles / agentOwnedFollowthrough.',
|
|
465
|
+
},
|
|
460
466
|
];
|
|
461
467
|
export const DARK_GATE_EXCLUSIONS = [
|
|
462
468
|
// ── destructive — kills/deletes on a heuristic; off + dry-run for EVERYONE ──
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devGatedFeatures.js","sourceRoot":"","sources":["../../src/core/devGatedFeatures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAoBH,MAAM,CAAC,MAAM,kBAAkB,GAAsB;IACnD;QACE,IAAI,EAAE,yBAAyB;QAC/B,UAAU,EAAE,6CAA6C;QACzD,WAAW,EAAE,+MAA+M;QAC5N,aAAa,EAAE,ikBAAikB;KACjlB;IACD;QACE,IAAI,EAAE,cAAc;QACpB,UAAU,EAAE,iCAAiC;QAC7C,WAAW,EAAE,sPAAsP;QACnQ,aAAa,EAAE,uhBAAuhB;KACviB;IACD;QACE,IAA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;AACb,CAAC"}
|
|
1
|
+
{"version":3,"file":"devGatedFeatures.js","sourceRoot":"","sources":["../../src/core/devGatedFeatures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAoBH,MAAM,CAAC,MAAM,kBAAkB,GAAsB;IACnD;QACE,IAAI,EAAE,yBAAyB;QAC/B,UAAU,EAAE,6CAA6C;QACzD,WAAW,EAAE,+MAA+M;QAC5N,aAAa,EAAE,ikBAAikB;KACjlB;IACD;QACE,IAAI,EAAE,cAAc;QACpB,UAAU,EAAE,iCAAiC;QAC7C,WAAW,EAAE,sPAAsP;QACnQ,aAAa,EAAE,uhBAAuhB;KACviB;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,wCAAwC;QACpD,WAAW,EAAE,gNAAgN;QAC7N,aAAa,EAAE,wSAAwS;KACxT;IACD;QACE,IAAI,EAAE,eAAe;QACrB,UAAU,EAAE,kCAAkC;QAC9C,WAAW,EAAE,mDAAmD;QAChE,aAAa,EAAE,uGAAuG;KACvH;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE,uCAAuC;QACnD,WAAW,EAAE,kCAAkC;QAC/C,aAAa,EAAE,yGAAyG;KACzH;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,UAAU,EAAE,iDAAiD;QAC7D,WAAW,EAAE,qVAAqV;QAClW,aAAa,EAAE,0sBAA0sB;KAC1tB;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE,+BAA+B;QAC3C,WAAW,EAAE,8UAA8U;QAC3V,aAAa,EAAE,24BAA24B;KAC35B;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE,mCAAmC;QAC/C,WAAW,EAAE,gDAAgD;QAC7D,aAAa,EAAE,sGAAsG;KACtH;IACD;QACE,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,iCAAiC;QAC7C,WAAW,EAAE,2CAA2C;QACxD,aAAa,EAAE,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AChF,uFAAuF;IACvF;QACE,UAAU,EAAE,gBAAgB;QAC5B,QAAQ,EAAE,sBAAsB;QAChC,MAAM,EAAE,8NAA8N;KACvO;IACD;QACE,UAAU,EAAE,gBAAgB;QAC5B,QAAQ,EAAE,sBAAsB;QAChC,MAAM,EAAE,gQAAgQ;KACzQ;CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,MAAe,EAAE,UAAkB;IACjE,IAAI,GAAG,GAAY,MAAM,CAAC;IAC1B,KAAK,MAAM,GAAG,IAAI,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACxC,IAAI,GAAG,IAAI,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ;YAAE,OAAO,SAAS,CAAC;QAC7D,GAAG,GAAI,GAA+B,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/core/types.d.ts
CHANGED
|
@@ -3408,10 +3408,72 @@ export interface InstarConfig {
|
|
|
3408
3408
|
watchMarginPct?: number;
|
|
3409
3409
|
/** Max sessions swapped per evaluation cycle (storm guard). Default 3. */
|
|
3410
3410
|
maxSwapsPerCycle?: number;
|
|
3411
|
-
/** Per-session cooldown (ms) after a successful swap. Default 600000 (10m).
|
|
3411
|
+
/** Per-session cooldown (ms) after a successful swap. Default 600000 (10m).
|
|
3412
|
+
* SUBSUMED by antiThrash.dwellMs when the brakes are live (kept working
|
|
3413
|
+
* for back-compat while antiThrash is dark/dry-run — spec §9). */
|
|
3412
3414
|
cooldownMs?: number;
|
|
3413
3415
|
/** Monitor tick cadence (ms). Default 180000 (3m). */
|
|
3414
3416
|
tickMs?: number;
|
|
3417
|
+
/**
|
|
3418
|
+
* swap-continuity-antithrash §3/§7 — anti-thrash brakes on the proactive
|
|
3419
|
+
* swap. An ABSENT block resolves `enabled:true, dryRun:true` (dry-run
|
|
3420
|
+
* ledger rows, zero decision change) on any install that opted into
|
|
3421
|
+
* proactiveSwap — the soak is the default, never a silent skip. All
|
|
3422
|
+
* knobs read LIVE per tick (§7.1). All numeric reads use `??` (zero is
|
|
3423
|
+
* a legal disable for several).
|
|
3424
|
+
*/
|
|
3425
|
+
antiThrash?: {
|
|
3426
|
+
/** Brakes bind decisions when true AND dryRun false. Default true. */
|
|
3427
|
+
enabled?: boolean;
|
|
3428
|
+
/** Log would-refuse/would-defer rows, change nothing. Default true. */
|
|
3429
|
+
dryRun?: boolean;
|
|
3430
|
+
/** Target ceiling = thresholdPct − this (default 15 → ceiling 65%). */
|
|
3431
|
+
targetHeadroomPct?: number;
|
|
3432
|
+
/** source − target must be ≥ this many points (default 15). */
|
|
3433
|
+
minImprovementPct?: number;
|
|
3434
|
+
/** Per-session dwell after ANY account swap (default 2700000 = 45m). */
|
|
3435
|
+
dwellMs?: number;
|
|
3436
|
+
/** Reversal-detection window (default 1800000 = 30m). */
|
|
3437
|
+
reversalWindowMs?: number;
|
|
3438
|
+
/** T1: inversion-class increments within reversalWindowMs (default 2). */
|
|
3439
|
+
thrashBreakerThreshold?: number;
|
|
3440
|
+
/** Breaker suppression backoff (default 3600000 = 1h). */
|
|
3441
|
+
thrashBreakerBackoffMs?: number;
|
|
3442
|
+
/** T2 rotation detector: N proactive executions of one session… (default 3) */
|
|
3443
|
+
swapFrequencyThreshold?: number;
|
|
3444
|
+
/** …within this window (default 10800000 = 3h) opens the breaker. */
|
|
3445
|
+
swapFrequencyWindowMs?: number;
|
|
3446
|
+
/** all-hot / breaker heartbeat-row cadence (default 1800000 = 30m). */
|
|
3447
|
+
allHotHeartbeatMs?: number;
|
|
3448
|
+
/** Reactive hops per session per reversalWindowMs → ONE alert (default 2). */
|
|
3449
|
+
reactiveHopAlertThreshold?: number;
|
|
3450
|
+
/** §3.3 bound 0: a reading older than this is not a measurement
|
|
3451
|
+
* (default 1800000 = 30m — 2× the quota poller's 15-min cadence). */
|
|
3452
|
+
quotaFreshnessMs?: number;
|
|
3453
|
+
};
|
|
3454
|
+
};
|
|
3455
|
+
/**
|
|
3456
|
+
* swap-continuity-antithrash §4/§7 — Piece 2 (the in-flight work gate for
|
|
3457
|
+
* every session-killing mutation). The `enabled` KEY IS OMITTED from the
|
|
3458
|
+
* shipped config ON PURPOSE — omission routes it through the dev-agent
|
|
3459
|
+
* gate (live on a development agent, dark on the fleet); an explicit
|
|
3460
|
+
* `enabled: false` would pin it dark EVERYWHERE including dev (the #1001
|
|
3461
|
+
* anti-mechanism). `enabled` is restart-required (§7.1 — the gate wiring
|
|
3462
|
+
* into SessionRefresh is constructor-injected); dryRun + numeric knobs
|
|
3463
|
+
* are read live per evaluation.
|
|
3464
|
+
*/
|
|
3465
|
+
swapContinuity?: {
|
|
3466
|
+
enabled?: boolean;
|
|
3467
|
+
/** Log would-defer/would-mitigate, change nothing. Default true. */
|
|
3468
|
+
dryRun?: boolean;
|
|
3469
|
+
/** Proactive deferral ceiling (default 1800000 = 30m) — at the ceiling
|
|
3470
|
+
* the intent is DROPPED (the wall wins; the reactive floor exists). */
|
|
3471
|
+
deferralCeilingMs?: number;
|
|
3472
|
+
/** Reactive grace bound (default 120000 = 2m) — the swap proceeds at
|
|
3473
|
+
* the FIRST not-busy observation, and always at the deadline. */
|
|
3474
|
+
reactiveGraceMs?: number;
|
|
3475
|
+
/** Busy re-check cadence inside a grace window (default 10000). */
|
|
3476
|
+
recheckMs?: number;
|
|
3415
3477
|
};
|
|
3416
3478
|
/** P2.1 enrollment wizard knobs (all optional). */
|
|
3417
3479
|
enrollment?: {
|