@integrity-labs/agt-cli 0.28.630 → 0.28.632

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.
@@ -16,7 +16,7 @@ import {
16
16
  rotateDailySession,
17
17
  sessionFileExists,
18
18
  todayLocalIso
19
- } from "./chunk-XQ7BNYC4.js";
19
+ } from "./chunk-FKG7DIE2.js";
20
20
  import {
21
21
  reapOrphanChannelMcps
22
22
  } from "./chunk-XWVM4KPK.js";
@@ -4167,4 +4167,4 @@ export {
4167
4167
  stopAllSessionsAndWait,
4168
4168
  getProjectDir
4169
4169
  };
4170
- //# sourceMappingURL=chunk-7QNQRV3A.js.map
4170
+ //# sourceMappingURL=chunk-IT2WYXBM.js.map
@@ -7,7 +7,7 @@ import {
7
7
  expandTemplateVars,
8
8
  isolationMode,
9
9
  parseEnvIntegrations
10
- } from "./chunk-7QNQRV3A.js";
10
+ } from "./chunk-IT2WYXBM.js";
11
11
  import {
12
12
  BIND_FAILURE_QUARANTINE_THRESHOLD,
13
13
  INTEGRATIONS_SECTION_END,
@@ -51,7 +51,7 @@ import {
51
51
  resolveConnectivityProbe,
52
52
  worseConnectivityOutcome,
53
53
  wrapScheduledTaskPrompt
54
- } from "./chunk-XQ7BNYC4.js";
54
+ } from "./chunk-FKG7DIE2.js";
55
55
  import {
56
56
  parsePsRows
57
57
  } from "./chunk-XWVM4KPK.js";
@@ -6069,7 +6069,7 @@ function exchangeFailureKind(err) {
6069
6069
  }
6070
6070
 
6071
6071
  // src/lib/api-client.ts
6072
- var agtCliVersion = true ? "0.28.630" : "dev";
6072
+ var agtCliVersion = true ? "0.28.632" : "dev";
6073
6073
  var lastConfigHash = null;
6074
6074
  function setConfigHash(hash) {
6075
6075
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8106,6 +8106,44 @@ var DID_NOT_RUN_SIGNATURES = [
8106
8106
  {
8107
8107
  re: /the real \S+ binary is not on PATH|only the Augmented shim is/i,
8108
8108
  reason: "the Augmented credential shim ran but could not find the real binary, so nothing was probed"
8109
+ },
8110
+ {
8111
+ // ENG-8902: the PROBER's own child process is missing AGT_AGENT_ID, so the
8112
+ // credential shim cannot identify which agent to mint for. It never reaches
8113
+ // GitHub, and it never can — this is a defect in how the probe is spawned
8114
+ // (ENG-9005), not a statement about the integration.
8115
+ //
8116
+ // Measured live on 2026-08-18T07:16:30Z, gordon / my-second-host:
8117
+ // "gh probe inconclusive — our credential broker could not supply a
8118
+ // token: augmented: GitHub credential fetch failed: AGT_AGENT_ID is not
8119
+ // set in this process environment"
8120
+ //
8121
+ // It was landing in the TRANSIENT branch, so every occurrence incremented
8122
+ // consecutive_connectivity_failures. That is how gordon reached 85 and ada
8123
+ // 234 against credentials that mint on demand — the streak counts prober
8124
+ // failures and calls them connectivity failures. The probe's own message
8125
+ // already said "inconclusive"; the grading disagreed with the wording.
8126
+ //
8127
+ // DELIBERATELY NARROW. A broker failure is NOT automatically did-not-run:
8128
+ // an HTTP 500 from the credential endpoint is a real transient that should
8129
+ // keep its transient grading (I hit one tonight mid-session; it recovered
8130
+ // on retry). Only the missing-env case is unambiguously unrunnable, so only
8131
+ // that signature is matched here.
8132
+ // ENG-9122: matched on `AGT_AGENT_ID is not set` rather than the full
8133
+ // "…in this process environment" sentence, because there is a SECOND
8134
+ // emitter that does not use that wording: `packages/mcp/src/index.ts:4035`
8135
+ // throws `Cannot forward tool call: AGT_AGENT_ID is not set`. Under the
8136
+ // longer pattern that one graded `transient_error` and climbed the failure
8137
+ // counter — the exact defect this entry exists to stop, reached by a
8138
+ // different door.
8139
+ //
8140
+ // Still narrow on purpose, and the narrowness is the point: a broker HTTP
8141
+ // 500 ("host key exchange failed … returned HTTP 500") does not contain
8142
+ // this phrase and therefore stays `transient_error`. That is correct — it
8143
+ // is a real intermittent our broker genuinely has, and grading it neutral
8144
+ // would hide a fault worth seeing.
8145
+ re: /AGT_AGENT_ID is not set/i,
8146
+ reason: "the probe process was spawned without AGT_AGENT_ID, so the credential shim could not identify the agent and nothing was probed (ENG-9005)"
8109
8147
  }
8110
8148
  ];
8111
8149
  function didNotRunReasonFor(text) {
@@ -8461,7 +8499,7 @@ function deriveMcpServerKey(input) {
8461
8499
  if (isDefaultRemoteMcpConnection(input.connectionKey)) return base;
8462
8500
  return remoteMcpServerKey(input.definitionId, input.connectionKey);
8463
8501
  }
8464
- function buildProbeEnv(projectDir) {
8502
+ function buildProbeEnv(projectDir, agentId) {
8465
8503
  const probeEnv = { ...process.env };
8466
8504
  try {
8467
8505
  const envIntPath = join5(projectDir, ".env.integrations");
@@ -8470,6 +8508,9 @@ function buildProbeEnv(projectDir) {
8470
8508
  }
8471
8509
  } catch {
8472
8510
  }
8511
+ if (typeof agentId === "string" && agentId.trim().length > 0) {
8512
+ probeEnv.AGT_AGENT_ID = agentId.trim();
8513
+ }
8473
8514
  try {
8474
8515
  const agentBinDir = join5(projectDir, ".claude", "agt-bin");
8475
8516
  if (existsSync6(agentBinDir)) {
@@ -8640,7 +8681,7 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
8640
8681
  } catch {
8641
8682
  if (hasDeclaredStdio) return null;
8642
8683
  }
8643
- const probeEnv = buildProbeEnv(projectDir);
8684
+ const probeEnv = buildProbeEnv(projectDir, agent.agent_id);
8644
8685
  const probeDeps = buildConnectivityProbeDeps(projectDir, probeEnv);
8645
8686
  const probeHttp = async (serverKey) => {
8646
8687
  if (!probeDeps.mcpProbe) return void 0;
@@ -9589,4 +9630,4 @@ export {
9589
9630
  managerInstallSystemUnitCommand,
9590
9631
  managerUninstallSystemUnitCommand
9591
9632
  };
9592
- //# sourceMappingURL=chunk-A2HB4OMY.js.map
9633
+ //# sourceMappingURL=chunk-QDIF33SF.js.map