@integrity-labs/agt-cli 0.28.1282 → 0.28.1284

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 (35) hide show
  1. package/dist/{api-client-5L5TDFEN.js → api-client-R6RJRYGB.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-KZ55FIP5.js → chunk-ENQZZU7H.js} +2 -2
  4. package/dist/{chunk-AG2YIBH2.js → chunk-MOEUK4YM.js} +13 -1
  5. package/dist/chunk-MOEUK4YM.js.map +1 -0
  6. package/dist/{chunk-EUD5VDGR.js → chunk-NTSHQA62.js} +2 -2
  7. package/dist/{chunk-PLL64X3Q.js → chunk-ORVKG3JD.js} +5 -5
  8. package/dist/{chunk-URE73ODK.js → chunk-UTJFYUFS.js} +62 -11
  9. package/dist/chunk-UTJFYUFS.js.map +1 -0
  10. package/dist/{chunk-FP4Z5C4N.js → chunk-VVLJQMAS.js} +3 -3
  11. package/dist/{claude-code-updater-C7BXV6S7.js → claude-code-updater-CHQOLPJQ.js} +3 -3
  12. package/dist/{claude-pair-runtime-7W5TM3MA.js → claude-pair-runtime-DULPA33Z.js} +3 -3
  13. package/dist/lib/manager-worker.js +74 -29
  14. package/dist/lib/manager-worker.js.map +1 -1
  15. package/dist/mcp/direct-chat-channel.js +15 -0
  16. package/dist/mcp/index.js +16 -1
  17. package/dist/mcp/origami.js +15 -0
  18. package/dist/mcp/slack-channel.js +15 -0
  19. package/dist/mcp/telegram-channel.js +15 -0
  20. package/dist/{persistent-session-C6G3R6BI.js → persistent-session-IAMIVRZ3.js} +6 -4
  21. package/dist/{responsiveness-probe-Q4GRRSHY.js → responsiveness-probe-CLRUQOE2.js} +4 -4
  22. package/dist/{session-auth-dead-MAJHZEHU.js → session-auth-dead-SH6ZJTOS.js} +3 -3
  23. package/package.json +1 -1
  24. package/dist/chunk-AG2YIBH2.js.map +0 -1
  25. package/dist/chunk-URE73ODK.js.map +0 -1
  26. /package/dist/{api-client-5L5TDFEN.js.map → api-client-R6RJRYGB.js.map} +0 -0
  27. /package/dist/{chunk-KZ55FIP5.js.map → chunk-ENQZZU7H.js.map} +0 -0
  28. /package/dist/{chunk-EUD5VDGR.js.map → chunk-NTSHQA62.js.map} +0 -0
  29. /package/dist/{chunk-PLL64X3Q.js.map → chunk-ORVKG3JD.js.map} +0 -0
  30. /package/dist/{chunk-FP4Z5C4N.js.map → chunk-VVLJQMAS.js.map} +0 -0
  31. /package/dist/{claude-code-updater-C7BXV6S7.js.map → claude-code-updater-CHQOLPJQ.js.map} +0 -0
  32. /package/dist/{claude-pair-runtime-7W5TM3MA.js.map → claude-pair-runtime-DULPA33Z.js.map} +0 -0
  33. /package/dist/{persistent-session-C6G3R6BI.js.map → persistent-session-IAMIVRZ3.js.map} +0 -0
  34. /package/dist/{responsiveness-probe-Q4GRRSHY.js.map → responsiveness-probe-CLRUQOE2.js.map} +0 -0
  35. /package/dist/{session-auth-dead-MAJHZEHU.js.map → session-auth-dead-SH6ZJTOS.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOST_ROTATE_KEY_CONFLICT
3
- } from "./chunk-AG2YIBH2.js";
3
+ } from "./chunk-MOEUK4YM.js";
4
4
 
5
5
  // src/lib/config.ts
6
6
  import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
103
103
  }
104
104
 
105
105
  // src/lib/api-client.ts
106
- var agtCliVersion = true ? "0.28.1282" : "dev";
106
+ var agtCliVersion = true ? "0.28.1284" : "dev";
107
107
  var lastConfigHash = null;
108
108
  function setConfigHash(hash) {
109
109
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -468,4 +468,4 @@ export {
468
468
  api,
469
469
  getHostId
470
470
  };
471
- //# sourceMappingURL=chunk-FP4Z5C4N.js.map
471
+ //# sourceMappingURL=chunk-VVLJQMAS.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-KZ55FIP5.js";
16
+ } from "./chunk-ENQZZU7H.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-AG2YIBH2.js";
18
+ import "./chunk-MOEUK4YM.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-C7BXV6S7.js.map
37
+ //# sourceMappingURL=claude-code-updater-CHQOLPJQ.js.map
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  redactPaneFrame,
12
12
  sanitizeTerminalFrame
13
- } from "./chunk-AG2YIBH2.js";
13
+ } from "./chunk-MOEUK4YM.js";
14
14
  import {
15
15
  CLAUDE_CONFIG_DIR_ENV,
16
16
  claudeConfigDirFor,
@@ -323,7 +323,7 @@ async function spawnPairSession(session) {
323
323
  return { ok: true };
324
324
  } catch {
325
325
  }
326
- const { resolveClaudeBinary } = await import("./persistent-session-C6G3R6BI.js");
326
+ const { resolveClaudeBinary } = await import("./persistent-session-IAMIVRZ3.js");
327
327
  const claudeBin = resolveClaudeBinary();
328
328
  const pairEnv = {
329
329
  ...process.env,
@@ -838,4 +838,4 @@ export {
838
838
  startClaudePair,
839
839
  submitClaudePairCode
840
840
  };
841
- //# sourceMappingURL=claude-pair-runtime-7W5TM3MA.js.map
841
+ //# sourceMappingURL=claude-pair-runtime-DULPA33Z.js.map
@@ -70,7 +70,7 @@ import {
70
70
  tripClass,
71
71
  writeEtcEnvironment,
72
72
  writeProfileDScript
73
- } from "../chunk-PLL64X3Q.js";
73
+ } from "../chunk-ORVKG3JD.js";
74
74
  import {
75
75
  ApiError,
76
76
  adoptHostKeyInProcess,
@@ -88,7 +88,7 @@ import {
88
88
  probeHostKey,
89
89
  requireHost,
90
90
  setConfigHash
91
- } from "../chunk-FP4Z5C4N.js";
91
+ } from "../chunk-VVLJQMAS.js";
92
92
  import {
93
93
  BLOCKED_ON_PROMPT_DECISION,
94
94
  CHANNEL_SECRET_ENV_KEYS,
@@ -180,7 +180,7 @@ import {
180
180
  webFetchBaselineValue,
181
181
  webFetchRestartNeeded,
182
182
  writeEgressAllowlist
183
- } from "../chunk-URE73ODK.js";
183
+ } from "../chunk-UTJFYUFS.js";
184
184
  import {
185
185
  isAgentIdle,
186
186
  isStaleForToday,
@@ -191,7 +191,7 @@ import {
191
191
  subagentActivityAgeSeconds,
192
192
  subagentTranscriptDir,
193
193
  transcriptActivityAgeSeconds
194
- } from "../chunk-EUD5VDGR.js";
194
+ } from "../chunk-NTSHQA62.js";
195
195
  import {
196
196
  classifyUnanswerablePane,
197
197
  focusedConfirmDialogBlock,
@@ -217,7 +217,7 @@ import {
217
217
  runSafeCleanup,
218
218
  tightestDiskStat,
219
219
  withPackageCacheLock
220
- } from "../chunk-KZ55FIP5.js";
220
+ } from "../chunk-ENQZZU7H.js";
221
221
  import {
222
222
  parsePsRows,
223
223
  reapOrphanChannelMcps
@@ -346,7 +346,7 @@ import {
346
346
  stabiliseResetInstant,
347
347
  sumTranscriptUsageInWindow,
348
348
  summarizeTranscriptActivity
349
- } from "../chunk-AG2YIBH2.js";
349
+ } from "../chunk-MOEUK4YM.js";
350
350
  import {
351
351
  CLAUDE_CONFIG_DIR_ENV,
352
352
  claudeConfigDirFor,
@@ -10877,6 +10877,14 @@ var HYBRID_ACTIONABLE_STATUSES = new Set(KANBAN_NUDGE_ACTIONABLE_STATUSES);
10877
10877
  function isHybridActionable(item) {
10878
10878
  return HYBRID_ACTIONABLE_STATUSES.has(item.status) && item.source_type !== "scheduled_task" && item.assignee_type !== "human" && item.owed_reply_on_own_card !== false;
10879
10879
  }
10880
+ function selectHybridNudgeSet(items) {
10881
+ const actionable = items.filter(isHybridActionable);
10882
+ if (actionable.length > 0) return { items: actionable, backlogOnly: false };
10883
+ const backlog = items.filter(
10884
+ (item) => item.status === "backlog" && item.source_type !== "scheduled_task" && item.assignee_type !== "human" && item.owed_reply_on_own_card !== false
10885
+ );
10886
+ return { items: backlog, backlogOnly: backlog.length > 0 };
10887
+ }
10880
10888
  function resolveHybridNudgeAction(stale, allowedCount, suppressedCount) {
10881
10889
  if (stale) return "skip-stale";
10882
10890
  if (allowedCount > 0) return "nudge";
@@ -15436,7 +15444,7 @@ function createFileMigrationReportIO(codeName, log2) {
15436
15444
  };
15437
15445
  }
15438
15446
  var managerHostPost = async (path, body) => {
15439
- const { api: api2, ApiError: ApiError3 } = await import("../api-client-5L5TDFEN.js");
15447
+ const { api: api2, ApiError: ApiError3 } = await import("../api-client-R6RJRYGB.js");
15440
15448
  try {
15441
15449
  const json = await api2.post(path, body);
15442
15450
  return { status: 200, json };
@@ -17491,7 +17499,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
17491
17499
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
17492
17500
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
17493
17501
  async function channelInboundActivityAgeSecondsFor(codeName) {
17494
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-Q4GRRSHY.js");
17502
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-CLRUQOE2.js");
17495
17503
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
17496
17504
  if (newest === null) return null;
17497
17505
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -18372,7 +18380,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
18372
18380
  var lastVersionCheckAt = 0;
18373
18381
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
18374
18382
  var lastResponsivenessProbeAt = 0;
18375
- var agtCliVersion = true ? "0.28.1282" : "dev";
18383
+ var agtCliVersion = true ? "0.28.1284" : "dev";
18376
18384
  function resolveBrewPath(execFileSync5) {
18377
18385
  try {
18378
18386
  const out = execFileSync5("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -20483,7 +20491,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
20483
20491
  if (codeNames.length === 0) return;
20484
20492
  void (async () => {
20485
20493
  try {
20486
- const { collectDiagnostics } = await import("../persistent-session-C6G3R6BI.js");
20494
+ const { collectDiagnostics } = await import("../persistent-session-IAMIVRZ3.js");
20487
20495
  await api.post("/host/heartbeat", {
20488
20496
  host_id: hostId,
20489
20497
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -20626,7 +20634,7 @@ async function pollCycleInner() {
20626
20634
  }
20627
20635
  try {
20628
20636
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
20629
- const { collectDiagnostics } = await import("../persistent-session-C6G3R6BI.js");
20637
+ const { collectDiagnostics } = await import("../persistent-session-IAMIVRZ3.js");
20630
20638
  const diagCodeNames = [...agentState.persistentSessionAgents];
20631
20639
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
20632
20640
  let tailscaleHostname;
@@ -20925,7 +20933,7 @@ async function pollCycleInner() {
20925
20933
  }
20926
20934
  try {
20927
20935
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
20928
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-C7BXV6S7.js");
20936
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-CHQOLPJQ.js");
20929
20937
  const securityFloor = currentSecurityFloor();
20930
20938
  claudeUpdaterInFlight = true;
20931
20939
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -20960,7 +20968,7 @@ async function pollCycleInner() {
20960
20968
  collectPanelessActivityProbes,
20961
20969
  getResponsivenessIntervalMs,
20962
20970
  occupancyQualificationClassifications
20963
- } = await import("../responsiveness-probe-Q4GRRSHY.js");
20971
+ } = await import("../responsiveness-probe-CLRUQOE2.js");
20964
20972
  const probeIntervalMs = getResponsivenessIntervalMs();
20965
20973
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
20966
20974
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -21077,7 +21085,7 @@ async function pollCycleInner() {
21077
21085
  collectResponsivenessProbes,
21078
21086
  livePendingInboundOldestAgeSeconds,
21079
21087
  parkPendingInbound
21080
- } = await import("../responsiveness-probe-Q4GRRSHY.js");
21088
+ } = await import("../responsiveness-probe-CLRUQOE2.js");
21081
21089
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
21082
21090
  const wedgeNow = /* @__PURE__ */ new Date();
21083
21091
  const liveAgents = agentState.persistentSessionAgents;
@@ -21363,7 +21371,7 @@ async function pollCycleInner() {
21363
21371
  }
21364
21372
  }
21365
21373
  );
21366
- const { parkPendingInbound } = await import("../responsiveness-probe-Q4GRRSHY.js");
21374
+ const { parkPendingInbound } = await import("../responsiveness-probe-CLRUQOE2.js");
21367
21375
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
21368
21376
  paneFatalStreak.delete(codeName);
21369
21377
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -21394,7 +21402,7 @@ async function pollCycleInner() {
21394
21402
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
21395
21403
  bindSourceEscalations
21396
21404
  } = await import("../transcript-mount-health-OHE6IVJV.js");
21397
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-C6G3R6BI.js");
21405
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-IAMIVRZ3.js");
21398
21406
  const mountConfig = resolveTranscriptMountConfig();
21399
21407
  const liveAgents = agentState.persistentSessionAgents;
21400
21408
  for (const tracked of [
@@ -21559,7 +21567,7 @@ async function pollCycleInner() {
21559
21567
  }
21560
21568
  try {
21561
21569
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
21562
- const { probeSessionAuth } = await import("../session-auth-dead-MAJHZEHU.js");
21570
+ const { probeSessionAuth } = await import("../session-auth-dead-SH6ZJTOS.js");
21563
21571
  const observations = [];
21564
21572
  const pendingCacheCommits = [];
21565
21573
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24686,7 +24694,7 @@ async function processAgent(agent, agentStates, managedToolkits) {
24686
24694
  else wedgeRestartsByCard.delete(agent.code_name);
24687
24695
  }
24688
24696
  const cardStates = wedgeRestartsByCard.get(agent.code_name);
24689
- const actionable = hybridBoard.filter(isHybridActionable);
24697
+ const { items: actionable, backlogOnly } = selectHybridNudgeSet(hybridBoard);
24690
24698
  const { allowed, suppressed } = cardStates ? partitionActionableByPoison(actionable, cardStates, poisonCfg) : { allowed: actionable, suppressed: [] };
24691
24699
  const nudgeAction = resolveHybridNudgeAction(
24692
24700
  hybridBoardStale,
@@ -24715,7 +24723,8 @@ async function processAgent(agent, agentStates, managedToolkits) {
24715
24723
  agent.code_name,
24716
24724
  agent.agent_id,
24717
24725
  allowed.length,
24718
- kanbanActionableSignature(allowed)
24726
+ kanbanActionableSignature(allowed),
24727
+ backlogOnly
24719
24728
  );
24720
24729
  }
24721
24730
  } else if (nudgeAction === "close-suppressed") {
@@ -25998,7 +26007,32 @@ async function ensurePersistentSessionUnchecked(agent, tasks, boardItems, refres
25998
26007
  log(`[persistent-session] Failed to provision review poster for '${codeName}': ${err.message}`);
25999
26008
  }
26000
26009
  if (!isSessionHealthy(codeName)) {
26001
- if (agentState.persistentSessionAgents.has(codeName)) {
26010
+ const zombie = takeZombieDetection(codeName);
26011
+ if (zombie?.kind === "migrated") {
26012
+ log(
26013
+ `[persistent-session] MIGRATED '${codeName}' host -> container: a live session started on the host path by an earlier manager was found on an isolated host; ended it so the respawn starts it in its container. Not a crash; pending inbound is kept and replays into the new session.`
26014
+ );
26015
+ lastRestartWasExternal.set(codeName, true);
26016
+ getHostId().then((hostId) => {
26017
+ if (!hostId) return;
26018
+ return api.post("/host/events", {
26019
+ host_id: hostId,
26020
+ agent_code_name: codeName,
26021
+ event_type: "manager.agent_migrated_to_container",
26022
+ payload: {
26023
+ agent_code_name: codeName,
26024
+ agent_id: agent.agent_id,
26025
+ tmux_session: zombie.tmuxSession,
26026
+ detected_at: new Date(zombie.detectedAt).toISOString(),
26027
+ from: "host",
26028
+ to: "container"
26029
+ },
26030
+ timestamp: new Date(zombie.detectedAt).toISOString()
26031
+ });
26032
+ }).catch((err) => {
26033
+ log(`[persistent-session] Failed to forward migration audit event for '${codeName}': ${err.message}`);
26034
+ });
26035
+ } else if (agentState.persistentSessionAgents.has(codeName)) {
26002
26036
  const ctx = getLastFailureContext(codeName);
26003
26037
  const recovery = prepareForRespawn(codeName);
26004
26038
  const tailSummary = !ctx.tail ? "" : KNOWN_SAFE_TAIL_SIGNATURES.has(ctx.signature) ? `; last pane output (${PANE_TAIL_PREVIEW_LINES} of ~20 lines):
@@ -26009,8 +26043,7 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash21("sha256")
26009
26043
  `[persistent-session] Session for '${codeName}' is unhealthy (restart #${ctx.restartCount}${sigSummary}${recoverySummary}), will restart${tailSummary}`
26010
26044
  );
26011
26045
  }
26012
- const zombie = takeZombieDetection(codeName);
26013
- if (zombie) {
26046
+ if (zombie?.kind === "zombie") {
26014
26047
  log(
26015
26048
  `[persistent-session] ZOMBIE DETECTED for '${codeName}' \u2014 tmux session ${zombie.tmuxSession} alive but no claude process inside; killed shell, will respawn`
26016
26049
  );
@@ -26645,7 +26678,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
26645
26678
  if (!refreshData) return;
26646
26679
  const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
26647
26680
  const hostId = await getHostId();
26648
- const parkForRestart = await import("../responsiveness-probe-Q4GRRSHY.js").then(
26681
+ const parkForRestart = await import("../responsiveness-probe-CLRUQOE2.js").then(
26649
26682
  (m) => m.parkPendingInbound,
26650
26683
  (err) => err
26651
26684
  );
@@ -26722,7 +26755,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
26722
26755
  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}`));
26723
26756
  void (async () => {
26724
26757
  try {
26725
- const { collectDiagnostics } = await import("../persistent-session-C6G3R6BI.js");
26758
+ const { collectDiagnostics } = await import("../persistent-session-IAMIVRZ3.js");
26726
26759
  await api.post("/host/heartbeat", {
26727
26760
  host_id: hostId,
26728
26761
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -26775,7 +26808,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
26775
26808
  }
26776
26809
  try {
26777
26810
  const hostId = await getHostId();
26778
- const { collectDiagnostics } = await import("../persistent-session-C6G3R6BI.js");
26811
+ const { collectDiagnostics } = await import("../persistent-session-IAMIVRZ3.js");
26779
26812
  await api.post("/host/heartbeat", {
26780
26813
  host_id: hostId,
26781
26814
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -27317,6 +27350,18 @@ var KANBAN_HYBRID_MAX_CADENCE_MS = (() => {
27317
27350
  if (Number.isFinite(parsed) && parsed > 0) return Math.max(parsed * 1e3, KANBAN_HYBRID_FULL_CADENCE_MS);
27318
27351
  return Math.max(60 * 6e4, KANBAN_HYBRID_FULL_CADENCE_MS);
27319
27352
  })();
27353
+ var KANBAN_HYBRID_BACKLOG_FULL_CADENCE_MS = (() => {
27354
+ const raw = process.env["AGT_KANBAN_HYBRID_BACKLOG_FULL_CADENCE_SECONDS"];
27355
+ const parsed = raw ? parseInt(raw, 10) : NaN;
27356
+ if (Number.isFinite(parsed) && parsed > 0) return Math.max(parsed * 1e3, KANBAN_HYBRID_MAX_CADENCE_MS);
27357
+ return Math.max(60 * 6e4, KANBAN_HYBRID_MAX_CADENCE_MS);
27358
+ })();
27359
+ var KANBAN_HYBRID_BACKLOG_MAX_CADENCE_MS = (() => {
27360
+ const raw = process.env["AGT_KANBAN_HYBRID_BACKLOG_MAX_CADENCE_SECONDS"];
27361
+ const parsed = raw ? parseInt(raw, 10) : NaN;
27362
+ if (Number.isFinite(parsed) && parsed > 0) return Math.max(parsed * 1e3, KANBAN_HYBRID_BACKLOG_FULL_CADENCE_MS);
27363
+ return Math.max(24 * 60 * 6e4, KANBAN_HYBRID_BACKLOG_FULL_CADENCE_MS);
27364
+ })();
27320
27365
  async function injectKanbanCheckViaDirectChat(codeName, agentId, actionableCount) {
27321
27366
  if (isKanbanHybridDryRun()) {
27322
27367
  log(
@@ -27351,7 +27396,7 @@ ${formatRunMarker(run_id)}` : KANBAN_CHECK_COMMAND;
27351
27396
  );
27352
27397
  return true;
27353
27398
  }
27354
- async function maybeInjectKanbanCheck(codeName, agentId, actionableCount, signature) {
27399
+ async function maybeInjectKanbanCheck(codeName, agentId, actionableCount, signature, backlogOnly = false) {
27355
27400
  const failureGate = shouldAttemptNoticeEnqueue(
27356
27401
  getKanbanNudgeState(codeName),
27357
27402
  Date.now(),
@@ -27363,8 +27408,8 @@ async function maybeInjectKanbanCheck(codeName, agentId, actionableCount, signat
27363
27408
  signature,
27364
27409
  getKanbanNudgeState(codeName),
27365
27410
  Date.now(),
27366
- KANBAN_HYBRID_FULL_CADENCE_MS,
27367
- KANBAN_HYBRID_MAX_CADENCE_MS
27411
+ backlogOnly ? KANBAN_HYBRID_BACKLOG_FULL_CADENCE_MS : KANBAN_HYBRID_FULL_CADENCE_MS,
27412
+ backlogOnly ? KANBAN_HYBRID_BACKLOG_MAX_CADENCE_MS : KANBAN_HYBRID_MAX_CADENCE_MS
27368
27413
  )) {
27369
27414
  return;
27370
27415
  }
@@ -27502,7 +27547,7 @@ async function processClaudePairSessions(agents) {
27502
27547
  snapshotPairConfig,
27503
27548
  // ENG-11659: result -> report body + the manager.log line that records it.
27504
27549
  planPairStartReport
27505
- } = await import("../claude-pair-runtime-7W5TM3MA.js");
27550
+ } = await import("../claude-pair-runtime-DULPA33Z.js");
27506
27551
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
27507
27552
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
27508
27553
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);