@integrity-labs/agt-cli 0.28.1248 → 0.28.1249

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.
Files changed (28) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-73NMB6QK.js → chunk-CMCT3LOQ.js} +19 -1
  3. package/dist/{chunk-73NMB6QK.js.map → chunk-CMCT3LOQ.js.map} +1 -1
  4. package/dist/{chunk-VGL726BP.js → chunk-COCLODTH.js} +5 -5
  5. package/dist/{chunk-RSFDRIIC.js → chunk-G5CNX4XF.js} +3 -3
  6. package/dist/{chunk-OYLLSEI5.js → chunk-IQ6MCAEK.js} +2 -2
  7. package/dist/{chunk-EKFRF2GR.js → chunk-NNB7XNZA.js} +2 -2
  8. package/dist/{claude-code-updater-G4Y3CMTI.js → claude-code-updater-EWJ6B5HX.js} +3 -3
  9. package/dist/{claude-pair-runtime-ZGYYBH3G.js → claude-pair-runtime-BJLV7HMD.js} +3 -3
  10. package/dist/lib/manager-worker.js +19 -19
  11. package/dist/mcp/direct-chat-channel.js +18 -0
  12. package/dist/mcp/index.js +18 -0
  13. package/dist/mcp/origami.js +18 -0
  14. package/dist/mcp/slack-channel.js +18 -0
  15. package/dist/mcp/telegram-channel.js +205 -1
  16. package/dist/{persistent-session-R2RY5NJ3.js → persistent-session-ZTDFRERR.js} +4 -4
  17. package/dist/{responsiveness-probe-MU5WMZSZ.js → responsiveness-probe-SVSMKLYS.js} +4 -4
  18. package/dist/{session-auth-dead-B6JRV3QH.js → session-auth-dead-K63LMSKK.js} +3 -3
  19. package/package.json +1 -1
  20. /package/dist/{chunk-VGL726BP.js.map → chunk-COCLODTH.js.map} +0 -0
  21. /package/dist/{chunk-RSFDRIIC.js.map → chunk-G5CNX4XF.js.map} +0 -0
  22. /package/dist/{chunk-OYLLSEI5.js.map → chunk-IQ6MCAEK.js.map} +0 -0
  23. /package/dist/{chunk-EKFRF2GR.js.map → chunk-NNB7XNZA.js.map} +0 -0
  24. /package/dist/{claude-code-updater-G4Y3CMTI.js.map → claude-code-updater-EWJ6B5HX.js.map} +0 -0
  25. /package/dist/{claude-pair-runtime-ZGYYBH3G.js.map → claude-pair-runtime-BJLV7HMD.js.map} +0 -0
  26. /package/dist/{persistent-session-R2RY5NJ3.js.map → persistent-session-ZTDFRERR.js.map} +0 -0
  27. /package/dist/{responsiveness-probe-MU5WMZSZ.js.map → responsiveness-probe-SVSMKLYS.js.map} +0 -0
  28. /package/dist/{session-auth-dead-B6JRV3QH.js.map → session-auth-dead-K63LMSKK.js.map} +0 -0
@@ -18,11 +18,11 @@ import {
18
18
  requiresRemoteMcpToolGate,
19
19
  shellQuote,
20
20
  withheldRemoteMcpMessage
21
- } from "./chunk-RSFDRIIC.js";
21
+ } from "./chunk-G5CNX4XF.js";
22
22
  import {
23
23
  readDailySessionPin,
24
24
  sessionTranscriptDir
25
- } from "./chunk-OYLLSEI5.js";
25
+ } from "./chunk-IQ6MCAEK.js";
26
26
  import {
27
27
  classifyUnanswerablePane,
28
28
  isConsumerTermsDialogVisible,
@@ -95,7 +95,7 @@ import {
95
95
  scanConfigForLiteralSecrets,
96
96
  worseConnectivityOutcome,
97
97
  wrapScheduledTaskPrompt
98
- } from "./chunk-73NMB6QK.js";
98
+ } from "./chunk-CMCT3LOQ.js";
99
99
  import {
100
100
  claudeJsonPathFor,
101
101
  effectiveClaudeJsonPath,
@@ -8095,7 +8095,7 @@ function exchangeFailureKind(err) {
8095
8095
  }
8096
8096
 
8097
8097
  // src/lib/api-client.ts
8098
- var agtCliVersion = true ? "0.28.1248" : "dev";
8098
+ var agtCliVersion = true ? "0.28.1249" : "dev";
8099
8099
  var lastConfigHash = null;
8100
8100
  function setConfigHash(hash) {
8101
8101
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -13750,4 +13750,4 @@ export {
13750
13750
  managerInstallSystemUnitCommand,
13751
13751
  managerUninstallSystemUnitCommand
13752
13752
  };
13753
- //# sourceMappingURL=chunk-VGL726BP.js.map
13753
+ //# sourceMappingURL=chunk-COCLODTH.js.map
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-OYLLSEI5.js";
7
+ } from "./chunk-IQ6MCAEK.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  customApiKeyDialogKeys,
@@ -51,7 +51,7 @@ import {
51
51
  remoteMcpConnectionEnvInfix,
52
52
  remoteMcpConnectionLabel,
53
53
  remoteMcpConnectionScopedEnvVar
54
- } from "./chunk-73NMB6QK.js";
54
+ } from "./chunk-CMCT3LOQ.js";
55
55
  import {
56
56
  CLAUDE_CONFIG_DIR_ENV,
57
57
  approveApiKeyInClaudeConfig,
@@ -6196,4 +6196,4 @@ export {
6196
6196
  stopAllSessionsAndWait,
6197
6197
  getProjectDir
6198
6198
  };
6199
- //# sourceMappingURL=chunk-RSFDRIIC.js.map
6199
+ //# sourceMappingURL=chunk-G5CNX4XF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  encodeClaudeProjectPath
3
- } from "./chunk-73NMB6QK.js";
3
+ } from "./chunk-CMCT3LOQ.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-OYLLSEI5.js.map
247
+ //# sourceMappingURL=chunk-IQ6MCAEK.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-73NMB6QK.js";
7
+ } from "./chunk-CMCT3LOQ.js";
8
8
  import {
9
9
  effectiveClaudeJsonPath
10
10
  } from "./chunk-AIUIMEUS.js";
@@ -722,4 +722,4 @@ export {
722
722
  probeClaudeInstalls,
723
723
  maybeUpdateClaudeCode
724
724
  };
725
- //# sourceMappingURL=chunk-EKFRF2GR.js.map
725
+ //# sourceMappingURL=chunk-NNB7XNZA.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-EKFRF2GR.js";
16
+ } from "./chunk-NNB7XNZA.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-73NMB6QK.js";
18
+ import "./chunk-CMCT3LOQ.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-G4Y3CMTI.js.map
37
+ //# sourceMappingURL=claude-code-updater-EWJ6B5HX.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-73NMB6QK.js";
11
+ } from "./chunk-CMCT3LOQ.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-R2RY5NJ3.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-ZTDFRERR.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-ZGYYBH3G.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-BJLV7HMD.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-VGL726BP.js";
88
+ } from "../chunk-COCLODTH.js";
89
89
  import {
90
90
  CLAUDE_CODE_SECURITY_FLOOR,
91
91
  SELF_UPDATE_TIMEOUTS,
@@ -99,7 +99,7 @@ import {
99
99
  runSafeCleanup,
100
100
  tightestDiskStat,
101
101
  withPackageCacheLock
102
- } from "../chunk-EKFRF2GR.js";
102
+ } from "../chunk-NNB7XNZA.js";
103
103
  import {
104
104
  rewriteSupervisorApiKey,
105
105
  supervisorChannelsRefusing
@@ -195,7 +195,7 @@ import {
195
195
  webFetchBaselineValue,
196
196
  webFetchRestartNeeded,
197
197
  writeEgressAllowlist
198
- } from "../chunk-RSFDRIIC.js";
198
+ } from "../chunk-G5CNX4XF.js";
199
199
  import {
200
200
  isAgentIdle,
201
201
  isStaleForToday,
@@ -206,7 +206,7 @@ import {
206
206
  subagentActivityAgeSeconds,
207
207
  subagentTranscriptDir,
208
208
  transcriptActivityAgeSeconds
209
- } from "../chunk-OYLLSEI5.js";
209
+ } from "../chunk-IQ6MCAEK.js";
210
210
  import {
211
211
  classifyUnanswerablePane,
212
212
  focusedConfirmDialogBlock,
@@ -337,7 +337,7 @@ import {
337
337
  stabiliseResetInstant,
338
338
  sumTranscriptUsageInWindow,
339
339
  summarizeTranscriptActivity
340
- } from "../chunk-73NMB6QK.js";
340
+ } from "../chunk-CMCT3LOQ.js";
341
341
  import {
342
342
  CLAUDE_CONFIG_DIR_ENV,
343
343
  claudeConfigDirFor,
@@ -15953,7 +15953,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15953
15953
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15954
15954
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15955
15955
  async function channelInboundActivityAgeSecondsFor(codeName) {
15956
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-MU5WMZSZ.js");
15956
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-SVSMKLYS.js");
15957
15957
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15958
15958
  if (newest === null) return null;
15959
15959
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16768,7 +16768,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16768
16768
  var lastVersionCheckAt = 0;
16769
16769
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16770
16770
  var lastResponsivenessProbeAt = 0;
16771
- var agtCliVersion = true ? "0.28.1248" : "dev";
16771
+ var agtCliVersion = true ? "0.28.1249" : "dev";
16772
16772
  function resolveBrewPath(execFileSync4) {
16773
16773
  try {
16774
16774
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18766,7 +18766,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18766
18766
  if (codeNames.length === 0) return;
18767
18767
  void (async () => {
18768
18768
  try {
18769
- const { collectDiagnostics } = await import("../persistent-session-R2RY5NJ3.js");
18769
+ const { collectDiagnostics } = await import("../persistent-session-ZTDFRERR.js");
18770
18770
  await api.post("/host/heartbeat", {
18771
18771
  host_id: hostId,
18772
18772
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18909,7 +18909,7 @@ async function pollCycleInner() {
18909
18909
  }
18910
18910
  try {
18911
18911
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18912
- const { collectDiagnostics } = await import("../persistent-session-R2RY5NJ3.js");
18912
+ const { collectDiagnostics } = await import("../persistent-session-ZTDFRERR.js");
18913
18913
  const diagCodeNames = [...agentState.persistentSessionAgents];
18914
18914
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18915
18915
  let tailscaleHostname;
@@ -19174,7 +19174,7 @@ async function pollCycleInner() {
19174
19174
  }
19175
19175
  try {
19176
19176
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
19177
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-G4Y3CMTI.js");
19177
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-EWJ6B5HX.js");
19178
19178
  const securityFloor = currentSecurityFloor();
19179
19179
  claudeUpdaterInFlight = true;
19180
19180
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -19209,7 +19209,7 @@ async function pollCycleInner() {
19209
19209
  collectPanelessActivityProbes,
19210
19210
  getResponsivenessIntervalMs,
19211
19211
  occupancyQualificationClassifications
19212
- } = await import("../responsiveness-probe-MU5WMZSZ.js");
19212
+ } = await import("../responsiveness-probe-SVSMKLYS.js");
19213
19213
  const probeIntervalMs = getResponsivenessIntervalMs();
19214
19214
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
19215
19215
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -19326,7 +19326,7 @@ async function pollCycleInner() {
19326
19326
  collectResponsivenessProbes,
19327
19327
  livePendingInboundOldestAgeSeconds,
19328
19328
  parkPendingInbound
19329
- } = await import("../responsiveness-probe-MU5WMZSZ.js");
19329
+ } = await import("../responsiveness-probe-SVSMKLYS.js");
19330
19330
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
19331
19331
  const wedgeNow = /* @__PURE__ */ new Date();
19332
19332
  const liveAgents = agentState.persistentSessionAgents;
@@ -19612,7 +19612,7 @@ async function pollCycleInner() {
19612
19612
  }
19613
19613
  }
19614
19614
  );
19615
- const { parkPendingInbound } = await import("../responsiveness-probe-MU5WMZSZ.js");
19615
+ const { parkPendingInbound } = await import("../responsiveness-probe-SVSMKLYS.js");
19616
19616
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19617
19617
  paneFatalStreak.delete(codeName);
19618
19618
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19643,7 +19643,7 @@ async function pollCycleInner() {
19643
19643
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19644
19644
  bindSourceEscalations
19645
19645
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19646
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-R2RY5NJ3.js");
19646
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-ZTDFRERR.js");
19647
19647
  const mountConfig = resolveTranscriptMountConfig();
19648
19648
  const liveAgents = agentState.persistentSessionAgents;
19649
19649
  for (const tracked of [
@@ -19808,7 +19808,7 @@ async function pollCycleInner() {
19808
19808
  }
19809
19809
  try {
19810
19810
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19811
- const { probeSessionAuth } = await import("../session-auth-dead-B6JRV3QH.js");
19811
+ const { probeSessionAuth } = await import("../session-auth-dead-K63LMSKK.js");
19812
19812
  const observations = [];
19813
19813
  const pendingCacheCommits = [];
19814
19814
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24619,7 +24619,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24619
24619
  if (!refreshData) return;
24620
24620
  const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
24621
24621
  const hostId = await getHostId();
24622
- const parkForRestart = await import("../responsiveness-probe-MU5WMZSZ.js").then(
24622
+ const parkForRestart = await import("../responsiveness-probe-SVSMKLYS.js").then(
24623
24623
  (m) => m.parkPendingInbound,
24624
24624
  (err) => err
24625
24625
  );
@@ -24692,7 +24692,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24692
24692
  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}`));
24693
24693
  void (async () => {
24694
24694
  try {
24695
- const { collectDiagnostics } = await import("../persistent-session-R2RY5NJ3.js");
24695
+ const { collectDiagnostics } = await import("../persistent-session-ZTDFRERR.js");
24696
24696
  await api.post("/host/heartbeat", {
24697
24697
  host_id: hostId,
24698
24698
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24743,7 +24743,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24743
24743
  }
24744
24744
  try {
24745
24745
  const hostId = await getHostId();
24746
- const { collectDiagnostics } = await import("../persistent-session-R2RY5NJ3.js");
24746
+ const { collectDiagnostics } = await import("../persistent-session-ZTDFRERR.js");
24747
24747
  await api.post("/host/heartbeat", {
24748
24748
  host_id: hostId,
24749
24749
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -25445,7 +25445,7 @@ async function processClaudePairSessions(agents) {
25445
25445
  snapshotPairConfig,
25446
25446
  // ENG-11659: result -> report body + the manager.log line that records it.
25447
25447
  planPairStartReport
25448
- } = await import("../claude-pair-runtime-ZGYYBH3G.js");
25448
+ } = await import("../claude-pair-runtime-BJLV7HMD.js");
25449
25449
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
25450
25450
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
25451
25451
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -46471,6 +46471,24 @@ var FLAG_REGISTRY = [
46471
46471
  // everywhere it matters.
46472
46472
  envVar: "AUGMENTED_CONNECTIVITY_RECONCILE_STATUS"
46473
46473
  },
46474
+ {
46475
+ key: "direct-chat-malware-scan",
46476
+ // CodeRabbit on #7501: read stage-wide only (empty scope), so a scoped
46477
+ // override would look armed and do nothing. Turning it off disarms the
46478
+ // upload and download scan, so a change needs explicit confirmation.
46479
+ stageWideOnly: true,
46480
+ sensitive: true,
46481
+ description: "Gate Direct Chat uploads on the GuardDuty Malware Protection for S3 verdict (ENG-11967). When on, verifyDirectChatUploads waits for the GuardDutyMalwareScanStatus tag on each uploaded object and FAILS CLOSED: only NO_THREATS_FOUND is linked to a message; THREATS_FOUND is deleted (it marks every row sharing the object) and raises an upload_malware_detected alert; UNSUPPORTED, ACCESS_DENIED and FAILED are refused but KEPT, because the content-addressed object may back messages already delivered and two of those are our faults, not the file; no tag within the wait budget is refused and kept, so a re-send can pass once the scan lands. ARMING ALSO GATES EVERY DOWNLOAD: the browser mint and the agent poll serve an object only if its GuardDutyMalwareScanStatus tag is NO_THREATS_FOUND, so an attachment stored before the plan existed is refused until a one-off rescan (triggered on first access) tags it clean. In the browser it becomes downloadable once that lands; the agent poll delivers each attachment once, so one untagged at that poll is NEVER delivered to the agent (only a warn line records it). ARM ONLY AFTER the DirectChatUploadsMalwareProtection plan is deployed (GUARDDUTY_MALWARE_SCAN=true): with the flag on and no plan, no object is ever tagged and every upload is refused. ALSO CONFIRM FIRST, on the test stage, that the legacy rescan works: self-copy one untagged object and check it gains a GuardDutyMalwareScanStatus tag within a minute. If it does not, do NOT arm: every attachment stored before the plan stays refused while armed and the rescan cannot restore it. GLOBAL ONLY: evaluated with an empty context, so scoped overrides have no effect.",
46482
+ flagType: "boolean",
46483
+ // Off is the pre-ENG-11967 behaviour: no scan wait, no tag read.
46484
+ // UNLIKE most flags here, a flag-store READ ERROR counts as ON on the SEND
46485
+ // path (see malwareScanArmed in api lib/direct-chat-uploads.ts): the send
46486
+ // is the gate, and an outage must not silently stop scanning. The read
46487
+ // paths (agent poll, download mint) treat a read error as OFF, so a blip
46488
+ // cannot strip a claimed, single-shot message of its files (Obi Wan
46489
+ // edec921a519f); THREATS_FOUND rows stay hidden either way.
46490
+ defaultValue: false
46491
+ },
46474
46492
  {
46475
46493
  key: "platform-held-key-central-probe",
46476
46494
  description: "Arm the scheduled CENTRAL connectivity probe lane for platform-held-key integrations (ENG-10086). These store no customer credential (auth_type none), so the host cannot probe them and reports unverified forever. When on, the hourly PlatformHeldKeyProbe cron runs each central probe that exists (today only ninjafy-notes: org entitlement + broker routing, never note contents) and writes the result through the monitor observation path, so consecutive_connectivity_failures / _ok_cycles move and integration_down alerts can open and close on it. Definitions with no central probe are skipped, never written as a failure. When off the cron reads nothing and writes nothing. Boolean gate; ships dark because a new writer of the escalation counters is a paging change. GLOBAL ONLY: the cron and the host connectivity route both evaluate this flag with an empty context, so an org-, team- or agent-scoped override is stored but has NO effect. Arm it by its global value, not as a staged per-org rollout (Obi Wan 63053d02035e).",
package/dist/mcp/index.js CHANGED
@@ -32153,6 +32153,24 @@ var FLAG_REGISTRY = [
32153
32153
  // everywhere it matters.
32154
32154
  envVar: "AUGMENTED_CONNECTIVITY_RECONCILE_STATUS"
32155
32155
  },
32156
+ {
32157
+ key: "direct-chat-malware-scan",
32158
+ // CodeRabbit on #7501: read stage-wide only (empty scope), so a scoped
32159
+ // override would look armed and do nothing. Turning it off disarms the
32160
+ // upload and download scan, so a change needs explicit confirmation.
32161
+ stageWideOnly: true,
32162
+ sensitive: true,
32163
+ description: "Gate Direct Chat uploads on the GuardDuty Malware Protection for S3 verdict (ENG-11967). When on, verifyDirectChatUploads waits for the GuardDutyMalwareScanStatus tag on each uploaded object and FAILS CLOSED: only NO_THREATS_FOUND is linked to a message; THREATS_FOUND is deleted (it marks every row sharing the object) and raises an upload_malware_detected alert; UNSUPPORTED, ACCESS_DENIED and FAILED are refused but KEPT, because the content-addressed object may back messages already delivered and two of those are our faults, not the file; no tag within the wait budget is refused and kept, so a re-send can pass once the scan lands. ARMING ALSO GATES EVERY DOWNLOAD: the browser mint and the agent poll serve an object only if its GuardDutyMalwareScanStatus tag is NO_THREATS_FOUND, so an attachment stored before the plan existed is refused until a one-off rescan (triggered on first access) tags it clean. In the browser it becomes downloadable once that lands; the agent poll delivers each attachment once, so one untagged at that poll is NEVER delivered to the agent (only a warn line records it). ARM ONLY AFTER the DirectChatUploadsMalwareProtection plan is deployed (GUARDDUTY_MALWARE_SCAN=true): with the flag on and no plan, no object is ever tagged and every upload is refused. ALSO CONFIRM FIRST, on the test stage, that the legacy rescan works: self-copy one untagged object and check it gains a GuardDutyMalwareScanStatus tag within a minute. If it does not, do NOT arm: every attachment stored before the plan stays refused while armed and the rescan cannot restore it. GLOBAL ONLY: evaluated with an empty context, so scoped overrides have no effect.",
32164
+ flagType: "boolean",
32165
+ // Off is the pre-ENG-11967 behaviour: no scan wait, no tag read.
32166
+ // UNLIKE most flags here, a flag-store READ ERROR counts as ON on the SEND
32167
+ // path (see malwareScanArmed in api lib/direct-chat-uploads.ts): the send
32168
+ // is the gate, and an outage must not silently stop scanning. The read
32169
+ // paths (agent poll, download mint) treat a read error as OFF, so a blip
32170
+ // cannot strip a claimed, single-shot message of its files (Obi Wan
32171
+ // edec921a519f); THREATS_FOUND rows stay hidden either way.
32172
+ defaultValue: false
32173
+ },
32156
32174
  {
32157
32175
  key: "platform-held-key-central-probe",
32158
32176
  description: "Arm the scheduled CENTRAL connectivity probe lane for platform-held-key integrations (ENG-10086). These store no customer credential (auth_type none), so the host cannot probe them and reports unverified forever. When on, the hourly PlatformHeldKeyProbe cron runs each central probe that exists (today only ninjafy-notes: org entitlement + broker routing, never note contents) and writes the result through the monitor observation path, so consecutive_connectivity_failures / _ok_cycles move and integration_down alerts can open and close on it. Definitions with no central probe are skipped, never written as a failure. When off the cron reads nothing and writes nothing. Boolean gate; ships dark because a new writer of the escalation counters is a paging change. GLOBAL ONLY: the cron and the host connectivity route both evaluate this flag with an empty context, so an org-, team- or agent-scoped override is stored but has NO effect. Arm it by its global value, not as a staged per-org rollout (Obi Wan 63053d02035e).",
@@ -45955,6 +45955,24 @@ var FLAG_REGISTRY = [
45955
45955
  // everywhere it matters.
45956
45956
  envVar: "AUGMENTED_CONNECTIVITY_RECONCILE_STATUS"
45957
45957
  },
45958
+ {
45959
+ key: "direct-chat-malware-scan",
45960
+ // CodeRabbit on #7501: read stage-wide only (empty scope), so a scoped
45961
+ // override would look armed and do nothing. Turning it off disarms the
45962
+ // upload and download scan, so a change needs explicit confirmation.
45963
+ stageWideOnly: true,
45964
+ sensitive: true,
45965
+ description: "Gate Direct Chat uploads on the GuardDuty Malware Protection for S3 verdict (ENG-11967). When on, verifyDirectChatUploads waits for the GuardDutyMalwareScanStatus tag on each uploaded object and FAILS CLOSED: only NO_THREATS_FOUND is linked to a message; THREATS_FOUND is deleted (it marks every row sharing the object) and raises an upload_malware_detected alert; UNSUPPORTED, ACCESS_DENIED and FAILED are refused but KEPT, because the content-addressed object may back messages already delivered and two of those are our faults, not the file; no tag within the wait budget is refused and kept, so a re-send can pass once the scan lands. ARMING ALSO GATES EVERY DOWNLOAD: the browser mint and the agent poll serve an object only if its GuardDutyMalwareScanStatus tag is NO_THREATS_FOUND, so an attachment stored before the plan existed is refused until a one-off rescan (triggered on first access) tags it clean. In the browser it becomes downloadable once that lands; the agent poll delivers each attachment once, so one untagged at that poll is NEVER delivered to the agent (only a warn line records it). ARM ONLY AFTER the DirectChatUploadsMalwareProtection plan is deployed (GUARDDUTY_MALWARE_SCAN=true): with the flag on and no plan, no object is ever tagged and every upload is refused. ALSO CONFIRM FIRST, on the test stage, that the legacy rescan works: self-copy one untagged object and check it gains a GuardDutyMalwareScanStatus tag within a minute. If it does not, do NOT arm: every attachment stored before the plan stays refused while armed and the rescan cannot restore it. GLOBAL ONLY: evaluated with an empty context, so scoped overrides have no effect.",
45966
+ flagType: "boolean",
45967
+ // Off is the pre-ENG-11967 behaviour: no scan wait, no tag read.
45968
+ // UNLIKE most flags here, a flag-store READ ERROR counts as ON on the SEND
45969
+ // path (see malwareScanArmed in api lib/direct-chat-uploads.ts): the send
45970
+ // is the gate, and an outage must not silently stop scanning. The read
45971
+ // paths (agent poll, download mint) treat a read error as OFF, so a blip
45972
+ // cannot strip a claimed, single-shot message of its files (Obi Wan
45973
+ // edec921a519f); THREATS_FOUND rows stay hidden either way.
45974
+ defaultValue: false
45975
+ },
45958
45976
  {
45959
45977
  key: "platform-held-key-central-probe",
45960
45978
  description: "Arm the scheduled CENTRAL connectivity probe lane for platform-held-key integrations (ENG-10086). These store no customer credential (auth_type none), so the host cannot probe them and reports unverified forever. When on, the hourly PlatformHeldKeyProbe cron runs each central probe that exists (today only ninjafy-notes: org entitlement + broker routing, never note contents) and writes the result through the monitor observation path, so consecutive_connectivity_failures / _ok_cycles move and integration_down alerts can open and close on it. Definitions with no central probe are skipped, never written as a failure. When off the cron reads nothing and writes nothing. Boolean gate; ships dark because a new writer of the escalation counters is a paging change. GLOBAL ONLY: the cron and the host connectivity route both evaluate this flag with an empty context, so an org-, team- or agent-scoped override is stored but has NO effect. Arm it by its global value, not as a staged per-org rollout (Obi Wan 63053d02035e).",
@@ -40810,6 +40810,24 @@ var FLAG_REGISTRY = [
40810
40810
  // everywhere it matters.
40811
40811
  envVar: "AUGMENTED_CONNECTIVITY_RECONCILE_STATUS"
40812
40812
  },
40813
+ {
40814
+ key: "direct-chat-malware-scan",
40815
+ // CodeRabbit on #7501: read stage-wide only (empty scope), so a scoped
40816
+ // override would look armed and do nothing. Turning it off disarms the
40817
+ // upload and download scan, so a change needs explicit confirmation.
40818
+ stageWideOnly: true,
40819
+ sensitive: true,
40820
+ description: "Gate Direct Chat uploads on the GuardDuty Malware Protection for S3 verdict (ENG-11967). When on, verifyDirectChatUploads waits for the GuardDutyMalwareScanStatus tag on each uploaded object and FAILS CLOSED: only NO_THREATS_FOUND is linked to a message; THREATS_FOUND is deleted (it marks every row sharing the object) and raises an upload_malware_detected alert; UNSUPPORTED, ACCESS_DENIED and FAILED are refused but KEPT, because the content-addressed object may back messages already delivered and two of those are our faults, not the file; no tag within the wait budget is refused and kept, so a re-send can pass once the scan lands. ARMING ALSO GATES EVERY DOWNLOAD: the browser mint and the agent poll serve an object only if its GuardDutyMalwareScanStatus tag is NO_THREATS_FOUND, so an attachment stored before the plan existed is refused until a one-off rescan (triggered on first access) tags it clean. In the browser it becomes downloadable once that lands; the agent poll delivers each attachment once, so one untagged at that poll is NEVER delivered to the agent (only a warn line records it). ARM ONLY AFTER the DirectChatUploadsMalwareProtection plan is deployed (GUARDDUTY_MALWARE_SCAN=true): with the flag on and no plan, no object is ever tagged and every upload is refused. ALSO CONFIRM FIRST, on the test stage, that the legacy rescan works: self-copy one untagged object and check it gains a GuardDutyMalwareScanStatus tag within a minute. If it does not, do NOT arm: every attachment stored before the plan stays refused while armed and the rescan cannot restore it. GLOBAL ONLY: evaluated with an empty context, so scoped overrides have no effect.",
40821
+ flagType: "boolean",
40822
+ // Off is the pre-ENG-11967 behaviour: no scan wait, no tag read.
40823
+ // UNLIKE most flags here, a flag-store READ ERROR counts as ON on the SEND
40824
+ // path (see malwareScanArmed in api lib/direct-chat-uploads.ts): the send
40825
+ // is the gate, and an outage must not silently stop scanning. The read
40826
+ // paths (agent poll, download mint) treat a read error as OFF, so a blip
40827
+ // cannot strip a claimed, single-shot message of its files (Obi Wan
40828
+ // edec921a519f); THREATS_FOUND rows stay hidden either way.
40829
+ defaultValue: false
40830
+ },
40813
40831
  {
40814
40832
  key: "platform-held-key-central-probe",
40815
40833
  description: "Arm the scheduled CENTRAL connectivity probe lane for platform-held-key integrations (ENG-10086). These store no customer credential (auth_type none), so the host cannot probe them and reports unverified forever. When on, the hourly PlatformHeldKeyProbe cron runs each central probe that exists (today only ninjafy-notes: org entitlement + broker routing, never note contents) and writes the result through the monitor observation path, so consecutive_connectivity_failures / _ok_cycles move and integration_down alerts can open and close on it. Definitions with no central probe are skipped, never written as a failure. When off the cron reads nothing and writes nothing. Boolean gate; ships dark because a new writer of the escalation counters is a paging change. GLOBAL ONLY: the cron and the host connectivity route both evaluate this flag with an empty context, so an org-, team- or agent-scoped override is stored but has NO effect. Arm it by its global value, not as a staged per-org rollout (Obi Wan 63053d02035e).",