@integrity-labs/agt-cli 0.28.1256 → 0.28.1257
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/{api-client-U52DMNUZ.js → api-client-6W27Z5SN.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-3DOSUOHP.js → chunk-AMZ5XSTY.js} +2 -2
- package/dist/{chunk-SR36GVLZ.js → chunk-GSNAPMCA.js} +3 -3
- package/dist/{chunk-5MAK4D4P.js → chunk-HXM2V3VK.js} +3 -3
- package/dist/{chunk-47XHFW55.js → chunk-MXDVYW5G.js} +2 -2
- package/dist/{chunk-47XHFW55.js.map → chunk-MXDVYW5G.js.map} +1 -1
- package/dist/{chunk-KYA2WIES.js → chunk-W6NQLEKG.js} +5 -5
- package/dist/{chunk-4RTRYTAS.js → chunk-ZRQWRXGK.js} +2 -2
- package/dist/{claude-code-updater-VKTFAUV3.js → claude-code-updater-3YFSB22P.js} +3 -3
- package/dist/{claude-pair-runtime-WMP5O3JG.js → claude-pair-runtime-W4XS6BR2.js} +3 -3
- package/dist/lib/manager-worker.js +21 -21
- package/dist/mcp/direct-chat-channel.js +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/origami.js +1 -1
- package/dist/mcp/slack-channel.js +3 -2
- package/dist/mcp/telegram-channel.js +3 -2
- package/dist/{persistent-session-UXXRNZ74.js → persistent-session-BBEOA3TR.js} +4 -4
- package/dist/{responsiveness-probe-X4QJKKRR.js → responsiveness-probe-X32GL24W.js} +4 -4
- package/dist/{session-auth-dead-T4FSSZWG.js → session-auth-dead-5F3NEK57.js} +3 -3
- package/package.json +1 -1
- /package/dist/{api-client-U52DMNUZ.js.map → api-client-6W27Z5SN.js.map} +0 -0
- /package/dist/{chunk-3DOSUOHP.js.map → chunk-AMZ5XSTY.js.map} +0 -0
- /package/dist/{chunk-SR36GVLZ.js.map → chunk-GSNAPMCA.js.map} +0 -0
- /package/dist/{chunk-5MAK4D4P.js.map → chunk-HXM2V3VK.js.map} +0 -0
- /package/dist/{chunk-KYA2WIES.js.map → chunk-W6NQLEKG.js.map} +0 -0
- /package/dist/{chunk-4RTRYTAS.js.map → chunk-ZRQWRXGK.js.map} +0 -0
- /package/dist/{claude-code-updater-VKTFAUV3.js.map → claude-code-updater-3YFSB22P.js.map} +0 -0
- /package/dist/{claude-pair-runtime-WMP5O3JG.js.map → claude-pair-runtime-W4XS6BR2.js.map} +0 -0
- /package/dist/{persistent-session-UXXRNZ74.js.map → persistent-session-BBEOA3TR.js.map} +0 -0
- /package/dist/{responsiveness-probe-X4QJKKRR.js.map → responsiveness-probe-X32GL24W.js.map} +0 -0
- /package/dist/{session-auth-dead-T4FSSZWG.js.map → session-auth-dead-5F3NEK57.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HXM2V3VK.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
shellQuote,
|
|
26
26
|
withheldRemoteMcpMessage,
|
|
27
27
|
withheldRemoteMcpReasonFor
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GSNAPMCA.js";
|
|
29
29
|
import {
|
|
30
30
|
readDailySessionPin,
|
|
31
31
|
sessionTranscriptDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ZRQWRXGK.js";
|
|
33
33
|
import {
|
|
34
34
|
classifyUnanswerablePane,
|
|
35
35
|
isConsumerTermsDialogVisible,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
scanConfigForLiteralSecrets,
|
|
102
102
|
worseConnectivityOutcome,
|
|
103
103
|
wrapScheduledTaskPrompt
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-MXDVYW5G.js";
|
|
105
105
|
import {
|
|
106
106
|
claudeJsonPathFor,
|
|
107
107
|
effectiveClaudeJsonPath,
|
|
@@ -13534,4 +13534,4 @@ export {
|
|
|
13534
13534
|
managerInstallSystemUnitCommand,
|
|
13535
13535
|
managerUninstallSystemUnitCommand
|
|
13536
13536
|
};
|
|
13537
|
-
//# sourceMappingURL=chunk-
|
|
13537
|
+
//# sourceMappingURL=chunk-W6NQLEKG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MXDVYW5G.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/daily-session.ts
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
@@ -244,4 +244,4 @@ export {
|
|
|
244
244
|
peekPreviousSession,
|
|
245
245
|
readDailySessionPin
|
|
246
246
|
};
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-ZRQWRXGK.js.map
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AMZ5XSTY.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-MXDVYW5G.js";
|
|
19
19
|
import "./chunk-AIUIMEUS.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
@@ -34,4 +34,4 @@ export {
|
|
|
34
34
|
readsAsNativeInstall,
|
|
35
35
|
shouldRunClaudeCodeUpdater
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=claude-code-updater-
|
|
37
|
+
//# sourceMappingURL=claude-code-updater-3YFSB22P.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
redactPaneFrame,
|
|
10
10
|
sanitizeTerminalFrame
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MXDVYW5G.js";
|
|
12
12
|
import {
|
|
13
13
|
CLAUDE_CONFIG_DIR_ENV,
|
|
14
14
|
claudeConfigDirFor,
|
|
@@ -321,7 +321,7 @@ async function spawnPairSession(session) {
|
|
|
321
321
|
return { ok: true };
|
|
322
322
|
} catch {
|
|
323
323
|
}
|
|
324
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
324
|
+
const { resolveClaudeBinary } = await import("./persistent-session-BBEOA3TR.js");
|
|
325
325
|
const claudeBin = resolveClaudeBinary();
|
|
326
326
|
const pairEnv = {
|
|
327
327
|
...process.env,
|
|
@@ -836,4 +836,4 @@ export {
|
|
|
836
836
|
startClaudePair,
|
|
837
837
|
submitClaudePairCode
|
|
838
838
|
};
|
|
839
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
839
|
+
//# sourceMappingURL=claude-pair-runtime-W4XS6BR2.js.map
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
tripClass,
|
|
70
70
|
writeEtcEnvironment,
|
|
71
71
|
writeProfileDScript
|
|
72
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-W6NQLEKG.js";
|
|
73
73
|
import {
|
|
74
74
|
ApiError,
|
|
75
75
|
adoptHostKeyInProcess,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
probeHostKey,
|
|
88
88
|
requireHost,
|
|
89
89
|
setConfigHash
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-HXM2V3VK.js";
|
|
91
91
|
import {
|
|
92
92
|
BLOCKED_ON_PROMPT_DECISION,
|
|
93
93
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
webFetchBaselineValue,
|
|
172
172
|
webFetchRestartNeeded,
|
|
173
173
|
writeEgressAllowlist
|
|
174
|
-
} from "../chunk-
|
|
174
|
+
} from "../chunk-GSNAPMCA.js";
|
|
175
175
|
import {
|
|
176
176
|
isAgentIdle,
|
|
177
177
|
isStaleForToday,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
subagentActivityAgeSeconds,
|
|
183
183
|
subagentTranscriptDir,
|
|
184
184
|
transcriptActivityAgeSeconds
|
|
185
|
-
} from "../chunk-
|
|
185
|
+
} from "../chunk-ZRQWRXGK.js";
|
|
186
186
|
import {
|
|
187
187
|
classifyUnanswerablePane,
|
|
188
188
|
focusedConfirmDialogBlock,
|
|
@@ -206,7 +206,7 @@ import {
|
|
|
206
206
|
runSafeCleanup,
|
|
207
207
|
tightestDiskStat,
|
|
208
208
|
withPackageCacheLock
|
|
209
|
-
} from "../chunk-
|
|
209
|
+
} from "../chunk-AMZ5XSTY.js";
|
|
210
210
|
import {
|
|
211
211
|
parsePsRows,
|
|
212
212
|
reapOrphanChannelMcps
|
|
@@ -334,7 +334,7 @@ import {
|
|
|
334
334
|
stabiliseResetInstant,
|
|
335
335
|
sumTranscriptUsageInWindow,
|
|
336
336
|
summarizeTranscriptActivity
|
|
337
|
-
} from "../chunk-
|
|
337
|
+
} from "../chunk-MXDVYW5G.js";
|
|
338
338
|
import {
|
|
339
339
|
CLAUDE_CONFIG_DIR_ENV,
|
|
340
340
|
claudeConfigDirFor,
|
|
@@ -14157,7 +14157,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
14157
14157
|
};
|
|
14158
14158
|
}
|
|
14159
14159
|
var managerHostPost = async (path, body) => {
|
|
14160
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
14160
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-6W27Z5SN.js");
|
|
14161
14161
|
try {
|
|
14162
14162
|
const json = await api2.post(path, body);
|
|
14163
14163
|
return { status: 200, json };
|
|
@@ -16196,7 +16196,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
16196
16196
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
16197
16197
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
16198
16198
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
16199
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
16199
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-X32GL24W.js");
|
|
16200
16200
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
16201
16201
|
if (newest === null) return null;
|
|
16202
16202
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -17012,7 +17012,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
17012
17012
|
var lastVersionCheckAt = 0;
|
|
17013
17013
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
17014
17014
|
var lastResponsivenessProbeAt = 0;
|
|
17015
|
-
var agtCliVersion = true ? "0.28.
|
|
17015
|
+
var agtCliVersion = true ? "0.28.1257" : "dev";
|
|
17016
17016
|
function resolveBrewPath(execFileSync4) {
|
|
17017
17017
|
try {
|
|
17018
17018
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -19011,7 +19011,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
19011
19011
|
if (codeNames.length === 0) return;
|
|
19012
19012
|
void (async () => {
|
|
19013
19013
|
try {
|
|
19014
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19014
|
+
const { collectDiagnostics } = await import("../persistent-session-BBEOA3TR.js");
|
|
19015
19015
|
await api.post("/host/heartbeat", {
|
|
19016
19016
|
host_id: hostId,
|
|
19017
19017
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -19154,7 +19154,7 @@ async function pollCycleInner() {
|
|
|
19154
19154
|
}
|
|
19155
19155
|
try {
|
|
19156
19156
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
19157
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19157
|
+
const { collectDiagnostics } = await import("../persistent-session-BBEOA3TR.js");
|
|
19158
19158
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
19159
19159
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
19160
19160
|
let tailscaleHostname;
|
|
@@ -19419,7 +19419,7 @@ async function pollCycleInner() {
|
|
|
19419
19419
|
}
|
|
19420
19420
|
try {
|
|
19421
19421
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
19422
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
19422
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-3YFSB22P.js");
|
|
19423
19423
|
const securityFloor = currentSecurityFloor();
|
|
19424
19424
|
claudeUpdaterInFlight = true;
|
|
19425
19425
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -19454,7 +19454,7 @@ async function pollCycleInner() {
|
|
|
19454
19454
|
collectPanelessActivityProbes,
|
|
19455
19455
|
getResponsivenessIntervalMs,
|
|
19456
19456
|
occupancyQualificationClassifications
|
|
19457
|
-
} = await import("../responsiveness-probe-
|
|
19457
|
+
} = await import("../responsiveness-probe-X32GL24W.js");
|
|
19458
19458
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
19459
19459
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
19460
19460
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -19571,7 +19571,7 @@ async function pollCycleInner() {
|
|
|
19571
19571
|
collectResponsivenessProbes,
|
|
19572
19572
|
livePendingInboundOldestAgeSeconds,
|
|
19573
19573
|
parkPendingInbound
|
|
19574
|
-
} = await import("../responsiveness-probe-
|
|
19574
|
+
} = await import("../responsiveness-probe-X32GL24W.js");
|
|
19575
19575
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
|
|
19576
19576
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
19577
19577
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -19857,7 +19857,7 @@ async function pollCycleInner() {
|
|
|
19857
19857
|
}
|
|
19858
19858
|
}
|
|
19859
19859
|
);
|
|
19860
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
19860
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-X32GL24W.js");
|
|
19861
19861
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
19862
19862
|
paneFatalStreak.delete(codeName);
|
|
19863
19863
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -19888,7 +19888,7 @@ async function pollCycleInner() {
|
|
|
19888
19888
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
19889
19889
|
bindSourceEscalations
|
|
19890
19890
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
19891
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
19891
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-BBEOA3TR.js");
|
|
19892
19892
|
const mountConfig = resolveTranscriptMountConfig();
|
|
19893
19893
|
const liveAgents = agentState.persistentSessionAgents;
|
|
19894
19894
|
for (const tracked of [
|
|
@@ -20053,7 +20053,7 @@ async function pollCycleInner() {
|
|
|
20053
20053
|
}
|
|
20054
20054
|
try {
|
|
20055
20055
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
20056
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
20056
|
+
const { probeSessionAuth } = await import("../session-auth-dead-5F3NEK57.js");
|
|
20057
20057
|
const observations = [];
|
|
20058
20058
|
const pendingCacheCommits = [];
|
|
20059
20059
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -24981,7 +24981,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24981
24981
|
if (!refreshData) return;
|
|
24982
24982
|
const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
|
|
24983
24983
|
const hostId = await getHostId();
|
|
24984
|
-
const parkForRestart = await import("../responsiveness-probe-
|
|
24984
|
+
const parkForRestart = await import("../responsiveness-probe-X32GL24W.js").then(
|
|
24985
24985
|
(m) => m.parkPendingInbound,
|
|
24986
24986
|
(err) => err
|
|
24987
24987
|
);
|
|
@@ -25054,7 +25054,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25054
25054
|
void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
|
|
25055
25055
|
void (async () => {
|
|
25056
25056
|
try {
|
|
25057
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
25057
|
+
const { collectDiagnostics } = await import("../persistent-session-BBEOA3TR.js");
|
|
25058
25058
|
await api.post("/host/heartbeat", {
|
|
25059
25059
|
host_id: hostId,
|
|
25060
25060
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25105,7 +25105,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
25105
25105
|
}
|
|
25106
25106
|
try {
|
|
25107
25107
|
const hostId = await getHostId();
|
|
25108
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
25108
|
+
const { collectDiagnostics } = await import("../persistent-session-BBEOA3TR.js");
|
|
25109
25109
|
await api.post("/host/heartbeat", {
|
|
25110
25110
|
host_id: hostId,
|
|
25111
25111
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25807,7 +25807,7 @@ async function processClaudePairSessions(agents) {
|
|
|
25807
25807
|
snapshotPairConfig,
|
|
25808
25808
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
25809
25809
|
planPairStartReport
|
|
25810
|
-
} = await import("../claude-pair-runtime-
|
|
25810
|
+
} = await import("../claude-pair-runtime-W4XS6BR2.js");
|
|
25811
25811
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
25812
25812
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
25813
25813
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
@@ -44754,7 +44754,7 @@ var FLAG_REGISTRY = [
|
|
|
44754
44754
|
},
|
|
44755
44755
|
{
|
|
44756
44756
|
key: "at-rest-scheme-k-writes",
|
|
44757
|
-
description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2)
|
|
44757
|
+
description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
|
|
44758
44758
|
flagType: "boolean",
|
|
44759
44759
|
// Declared safe value is `false` = scheme a. A flag-read error must never arm
|
|
44760
44760
|
// scheme k on its own: an unintended `a` row is re-sealable, an unintended
|
package/dist/mcp/index.js
CHANGED
|
@@ -30436,7 +30436,7 @@ var FLAG_REGISTRY = [
|
|
|
30436
30436
|
},
|
|
30437
30437
|
{
|
|
30438
30438
|
key: "at-rest-scheme-k-writes",
|
|
30439
|
-
description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2)
|
|
30439
|
+
description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
|
|
30440
30440
|
flagType: "boolean",
|
|
30441
30441
|
// Declared safe value is `false` = scheme a. A flag-read error must never arm
|
|
30442
30442
|
// scheme k on its own: an unintended `a` row is re-sealable, an unintended
|
package/dist/mcp/origami.js
CHANGED
|
@@ -44238,7 +44238,7 @@ var FLAG_REGISTRY = [
|
|
|
44238
44238
|
},
|
|
44239
44239
|
{
|
|
44240
44240
|
key: "at-rest-scheme-k-writes",
|
|
44241
|
-
description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2)
|
|
44241
|
+
description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
|
|
44242
44242
|
flagType: "boolean",
|
|
44243
44243
|
// Declared safe value is `false` = scheme a. A flag-read error must never arm
|
|
44244
44244
|
// scheme k on its own: an unintended `a` row is re-sealable, an unintended
|
|
@@ -39093,7 +39093,7 @@ var FLAG_REGISTRY = [
|
|
|
39093
39093
|
},
|
|
39094
39094
|
{
|
|
39095
39095
|
key: "at-rest-scheme-k-writes",
|
|
39096
|
-
description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2)
|
|
39096
|
+
description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
|
|
39097
39097
|
flagType: "boolean",
|
|
39098
39098
|
// Declared safe value is `false` = scheme a. A flag-read error must never arm
|
|
39099
39099
|
// scheme k on its own: an unintended `a` row is re-sealable, an unintended
|
|
@@ -42928,7 +42928,8 @@ async function capturePaneSnapshot(opts) {
|
|
|
42928
42928
|
try {
|
|
42929
42929
|
const { stdout } = await execFileAsync(
|
|
42930
42930
|
"tmux",
|
|
42931
|
-
|
|
42931
|
+
// ENG-12101: the exact session's current pane, never a prefix match.
|
|
42932
|
+
["capture-pane", "-p", "-t", `=${agentTmuxSessionName(opts.codeName)}:`, "-S", `-${scrollback}`],
|
|
42932
42933
|
{ timeout: TMUX_CAPTURE_TIMEOUT_MS, maxBuffer: 4 * 1024 * 1024 }
|
|
42933
42934
|
);
|
|
42934
42935
|
return { source: "tmux", text: stdout };
|
|
@@ -39539,7 +39539,7 @@ var FLAG_REGISTRY = [
|
|
|
39539
39539
|
},
|
|
39540
39540
|
{
|
|
39541
39541
|
key: "at-rest-scheme-k-writes",
|
|
39542
|
-
description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2)
|
|
39542
|
+
description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
|
|
39543
39543
|
flagType: "boolean",
|
|
39544
39544
|
// Declared safe value is `false` = scheme a. A flag-read error must never arm
|
|
39545
39545
|
// scheme k on its own: an unintended `a` row is re-sealable, an unintended
|
|
@@ -43500,7 +43500,8 @@ async function capturePaneSnapshot(opts) {
|
|
|
43500
43500
|
try {
|
|
43501
43501
|
const { stdout } = await execFileAsync(
|
|
43502
43502
|
"tmux",
|
|
43503
|
-
|
|
43503
|
+
// ENG-12101: the exact session's current pane, never a prefix match.
|
|
43504
|
+
["capture-pane", "-p", "-t", `=${agentTmuxSessionName(opts.codeName)}:`, "-S", `-${scrollback}`],
|
|
43504
43505
|
{ timeout: TMUX_CAPTURE_TIMEOUT_MS, maxBuffer: 4 * 1024 * 1024 }
|
|
43505
43506
|
);
|
|
43506
43507
|
return { source: "tmux", text: stdout };
|
|
@@ -68,12 +68,12 @@ import {
|
|
|
68
68
|
writeDirectChatSessionState,
|
|
69
69
|
writeEgressAllowlist,
|
|
70
70
|
writePersistentClaudeWrapper
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import "./chunk-
|
|
71
|
+
} from "./chunk-GSNAPMCA.js";
|
|
72
|
+
import "./chunk-ZRQWRXGK.js";
|
|
73
73
|
import "./chunk-HYQ7VOC3.js";
|
|
74
74
|
import "./chunk-6HBXEJHO.js";
|
|
75
75
|
import "./chunk-XWVM4KPK.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-MXDVYW5G.js";
|
|
77
77
|
import "./chunk-AIUIMEUS.js";
|
|
78
78
|
import "./chunk-DGUM43GV.js";
|
|
79
79
|
export {
|
|
@@ -147,4 +147,4 @@ export {
|
|
|
147
147
|
writeEgressAllowlist,
|
|
148
148
|
writePersistentClaudeWrapper
|
|
149
149
|
};
|
|
150
|
-
//# sourceMappingURL=persistent-session-
|
|
150
|
+
//# sourceMappingURL=persistent-session-BBEOA3TR.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GSNAPMCA.js";
|
|
4
|
+
import "./chunk-ZRQWRXGK.js";
|
|
5
5
|
import "./chunk-HYQ7VOC3.js";
|
|
6
6
|
import "./chunk-6HBXEJHO.js";
|
|
7
7
|
import "./chunk-XWVM4KPK.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-MXDVYW5G.js";
|
|
9
9
|
import "./chunk-AIUIMEUS.js";
|
|
10
10
|
import "./chunk-DGUM43GV.js";
|
|
11
11
|
|
|
@@ -804,4 +804,4 @@ export {
|
|
|
804
804
|
readAndResetSlackReplyBindingClassifications,
|
|
805
805
|
readAndResetSlackReplyTargetClassifications
|
|
806
806
|
};
|
|
807
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
807
|
+
//# sourceMappingURL=responsiveness-probe-X32GL24W.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZRQWRXGK.js";
|
|
4
|
+
import "./chunk-MXDVYW5G.js";
|
|
5
5
|
import "./chunk-DGUM43GV.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/session-auth-dead.ts
|
|
@@ -205,4 +205,4 @@ export {
|
|
|
205
205
|
decideSessionAuthState,
|
|
206
206
|
probeSessionAuth
|
|
207
207
|
};
|
|
208
|
-
//# sourceMappingURL=session-auth-dead-
|
|
208
|
+
//# sourceMappingURL=session-auth-dead-5F3NEK57.js.map
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|