@agent-inspect/mcp-server 6.17.2 → 6.17.4

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/README.md CHANGED
@@ -42,6 +42,12 @@ npx @agent-inspect/mcp-server --dir .agent-inspect
42
42
  | `compare_runs` | Structural diff |
43
43
  | `create_share_checked_evidence` | Share-gated Evidence package |
44
44
 
45
+ ### First causal failure ambiguity
46
+
47
+ Unlinked failures remain unrelated. `get_first_causal_failure` does not infer
48
+ causal parents from event adjacency or timing alone, so ambiguous relationships
49
+ remain explicit rather than being fabricated.
50
+
45
51
  Results are redacted (share profile by default), bounded, and deterministic for the same inputs.
46
52
 
47
53
  ## Privacy
@@ -2622,8 +2622,11 @@ function formatProgrammaticDiagnostic(code, detail) {
2622
2622
  }
2623
2623
 
2624
2624
  // packages/core/src/safety/sensitive-key.ts
2625
+ function keyHasExplicitSeparator(value) {
2626
+ return /[_\-.]/.test(value);
2627
+ }
2625
2628
  function normalizeSensitiveKey(value) {
2626
- return value.toLowerCase().replace(/[^a-z0-9_]/g, "");
2629
+ return value.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
2627
2630
  }
2628
2631
  var NON_CREDENTIAL_TOKEN_CONFIG_KEYS = new Set(
2629
2632
  [
@@ -2675,6 +2678,7 @@ function isCredentialSensitiveKey(key, sensitiveKeys = DEFAULT_CREDENTIAL_SENSIT
2675
2678
  const normalized = normalizeSensitiveKey(key);
2676
2679
  if (!normalized) return false;
2677
2680
  if (NON_CREDENTIAL_TOKEN_CONFIG_KEYS.has(normalized)) return false;
2681
+ const allowPrefixCompound = keyHasExplicitSeparator(key);
2678
2682
  for (const sensitive of sensitiveKeys) {
2679
2683
  const s = normalizeSensitiveKey(sensitive);
2680
2684
  if (!s) continue;
@@ -2683,7 +2687,8 @@ function isCredentialSensitiveKey(key, sensitiveKeys = DEFAULT_CREDENTIAL_SENSIT
2683
2687
  continue;
2684
2688
  }
2685
2689
  if (normalized === s) return true;
2686
- if (normalized.endsWith(`_${s}`) || normalized.startsWith(`${s}_`)) return true;
2690
+ if (normalized.endsWith(`_${s}`)) return true;
2691
+ if (allowPrefixCompound && normalized.startsWith(`${s}_`)) return true;
2687
2692
  }
2688
2693
  return false;
2689
2694
  }
@@ -6634,8 +6639,11 @@ function exportRunTree(tree, options) {
6634
6639
  }
6635
6640
 
6636
6641
  // packages/redact/src/sensitive-key.ts
6642
+ function keyHasExplicitSeparator2(value) {
6643
+ return /[_\-.]/.test(value);
6644
+ }
6637
6645
  function normalizeSensitiveKey2(value) {
6638
- return value.toLowerCase().replace(/[^a-z0-9_]/g, "");
6646
+ return value.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
6639
6647
  }
6640
6648
  var NON_CREDENTIAL_TOKEN_CONFIG_KEYS2 = new Set(
6641
6649
  [
@@ -6665,6 +6673,7 @@ function isCredentialSensitiveKey2(key, sensitiveKeys) {
6665
6673
  const normalized = normalizeSensitiveKey2(key);
6666
6674
  if (!normalized) return false;
6667
6675
  if (NON_CREDENTIAL_TOKEN_CONFIG_KEYS2.has(normalized)) return false;
6676
+ const allowPrefixCompound = keyHasExplicitSeparator2(key);
6668
6677
  for (const sensitive of sensitiveKeys) {
6669
6678
  const s = normalizeSensitiveKey2(sensitive);
6670
6679
  if (!s) continue;
@@ -6673,7 +6682,8 @@ function isCredentialSensitiveKey2(key, sensitiveKeys) {
6673
6682
  continue;
6674
6683
  }
6675
6684
  if (normalized === s) return true;
6676
- if (normalized.endsWith(`_${s}`) || normalized.startsWith(`${s}_`)) return true;
6685
+ if (normalized.endsWith(`_${s}`)) return true;
6686
+ if (allowPrefixCompound && normalized.startsWith(`${s}_`)) return true;
6677
6687
  }
6678
6688
  return false;
6679
6689
  }
@@ -7949,5 +7959,5 @@ async function runReadOnlyMcpServer(options = {}) {
7949
7959
  }
7950
7960
 
7951
7961
  export { MCP_MAX_REQUEST_BYTES, MCP_PROTOCOL_VERSION, READ_ONLY_TOOLS, callReadOnlyTool, createMcpServerContext, handleMcpProtocolLine, runReadOnlyMcpServer };
7952
- //# sourceMappingURL=chunk-RAYFTVFK.mjs.map
7953
- //# sourceMappingURL=chunk-RAYFTVFK.mjs.map
7962
+ //# sourceMappingURL=chunk-PPA3VJQG.mjs.map
7963
+ //# sourceMappingURL=chunk-PPA3VJQG.mjs.map