Skip to content

Fix #217: [milestone Milestone 2 ] Promote classify_mcp_headers() from `crates/proxy-wasm-evidence/src/recorder.r... - #221

Merged
telleroutlook merged 1 commit into
mainfrom
claude/issue-217
Jul 21, 2026
Merged

Fix #217: [milestone Milestone 2 ] Promote classify_mcp_headers() from `crates/proxy-wasm-evidence/src/recorder.r...#221
telleroutlook merged 1 commit into
mainfrom
claude/issue-217

Conversation

@telleroutlook

Copy link
Copy Markdown
Contributor

Fixes #217

Generated by claude-bot-go worker.

…rom `crates/proxy-wasm-evidence/src/recorder.r...
@telleroutlook

Copy link
Copy Markdown
Contributor Author

Summary

Test removal changes with no production code modifications - appears safe but context from issue #221 would help confirm intent

Severity

none

Blocking findings

  1. crates/proxy-wasm-evidence/src/recorder.rs:156 Removes import use aep_core::classify_mcp_headers alongside test removal - suggests the function may no longer be tested in this module
  2. crates/proxy-wasm-evidence/src/recorder.rs:244 Removes test classify_mcp_headers_detects_credential_prefix - test coverage for credential leak detection removed without replacement
  3. crates/proxy-wasm-evidence/src/recorder.rs:260 Removes test classify_mcp_headers_detects_high_entropy - test coverage for high entropy value detection removed without replacement
  4. crates/proxy-wasm-evidence/src/recorder.rs:270 Removes test classify_mcp_headers_detects_pii_in_name - test coverage for PII leak detection removed without replacement
  5. crates/proxy-wasm-evidence/src/recorder.rs:279 Removes test classify_mcp_headers_clean_values_return_none - test coverage for clean value handling removed without replacement

Verdict

✅ Approved

Merge risk

low

Audit

  • model: opus
  • effort: high
  • tokens: input=0, output=0
{
  "approved": true,
  "severity": "none",
  "summary": "Test removal changes with no production code modifications - appears safe but context from issue #221 would help confirm intent",
  "findings": [
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 156,
      "issue": "Removes import use aep_core::classify_mcp_headers alongside test removal - suggests the function may no longer be tested in this module",
      "kind": "suggestion"
    },
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 244,
      "issue": "Removes test classify_mcp_headers_detects_credential_prefix - test coverage for credential leak detection removed without replacement",
      "kind": "suggestion"
    },
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 260,
      "issue": "Removes test classify_mcp_headers_detects_high_entropy - test coverage for high entropy value detection removed without replacement",
      "kind": "suggestion"
    },
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 270,
      "issue": "Removes test classify_mcp_headers_detects_pii_in_name - test coverage for PII leak detection removed without replacement",
      "kind": "suggestion"
    },
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 279,
      "issue": "Removes test classify_mcp_headers_clean_values_return_none - test coverage for clean value handling removed without replacement",
      "kind": "suggestion"
    }
  ],
  "merge_risk": "low",
  "Model": "opus",
  "model": "claude-cli",
  "effort": "high",
  "tokens": {
    "input_tokens": 0,
    "output_tokens": 0
  },
  "same_verdict_count": 1
}

@telleroutlook

Copy link
Copy Markdown
Contributor Author

Summary

Removes security-related test coverage for credential leak, PII, and high entropy detection without evidence of replacement coverage

Severity

medium

Blocking findings

  1. crates/proxy-wasm-evidence/src/recorder.rs:244 Removes test for credential prefix detection (ghp_, sk-, Bearer patterns) which are security-critical checks
  2. crates/proxy-wasm-evidence/src/recorder.rs:257 Removes test for high entropy value detection, weakening validation of security heuristics
  3. crates/proxy-wasm-evidence/src/recorder.rs:267 Removes test for PII leak detection (email patterns), reducing security test coverage

Verdict

❌ Rejected

Merge risk

medium

Audit

  • model: opus
  • effort: high
  • tokens: input=0, output=0
{
  "approved": false,
  "severity": "medium",
  "summary": "Removes security-related test coverage for credential leak, PII, and high entropy detection without evidence of replacement coverage",
  "findings": [
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 244,
      "issue": "Removes test for credential prefix detection (ghp_, sk-, Bearer patterns) which are security-critical checks",
      "kind": "blocker"
    },
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 257,
      "issue": "Removes test for high entropy value detection, weakening validation of security heuristics",
      "kind": "blocker"
    },
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 267,
      "issue": "Removes test for PII leak detection (email patterns), reducing security test coverage",
      "kind": "blocker"
    }
  ],
  "merge_risk": "medium",
  "Model": "opus",
  "model": "claude-cli",
  "effort": "high",
  "tokens": {
    "input_tokens": 0,
    "output_tokens": 0
  },
  "same_verdict_count": 1
}

@telleroutlook

Copy link
Copy Markdown
Contributor Author

Summary

Removes security-sensitive tests for classify_mcp_headers with no evidence of replacement coverage

Severity

high

Blocking findings

  1. crates/proxy-wasm-evidence/src/recorder.rs:154 Removes test classify_mcp_headers_detects_credential_prefix which verified security-critical credential leak detection (ghp_, sk-, Bearer prefixes)
  2. crates/proxy-wasm-evidence/src/recorder.rs:154 Removes test classify_mcp_headers_detects_high_entropy which verified detection of high-entropy values (potential credentials/secrets)
  3. crates/proxy-wasm-evidence/src/recorder.rs:154 Removes test classify_mcp_headers_detects_pii_in_name which verified PII leak detection in headers
  4. crates/proxy-wasm-evidence/src/recorder.rs:154 Removes test classify_mcp_headers_clean_values_return_none which verified that legitimate values are not flagged as risky
  5. crates/proxy-wasm-evidence/src/recorder.rs:245 Removes import use aep_core::classify_mcp_headers; which was only used by the deleted tests, leaving no evidence of test coverage for this security function

Verdict

❌ Rejected

Merge risk

high

Audit

  • model: opus
  • effort: high
  • tokens: input=0, output=0
{
  "approved": false,
  "severity": "high",
  "summary": "Removes security-sensitive tests for classify_mcp_headers with no evidence of replacement coverage",
  "findings": [
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 154,
      "issue": "Removes test classify_mcp_headers_detects_credential_prefix which verified security-critical credential leak detection (ghp_, sk-, Bearer prefixes)",
      "kind": "blocker"
    },
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 154,
      "issue": "Removes test classify_mcp_headers_detects_high_entropy which verified detection of high-entropy values (potential credentials/secrets)",
      "kind": "blocker"
    },
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 154,
      "issue": "Removes test classify_mcp_headers_detects_pii_in_name which verified PII leak detection in headers",
      "kind": "blocker"
    },
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 154,
      "issue": "Removes test classify_mcp_headers_clean_values_return_none which verified that legitimate values are not flagged as risky",
      "kind": "blocker"
    },
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 245,
      "issue": "Removes import use aep_core::classify_mcp_headers; which was only used by the deleted tests, leaving no evidence of test coverage for this security function",
      "kind": "blocker"
    }
  ],
  "merge_risk": "high",
  "Model": "opus",
  "model": "claude-cli",
  "effort": "high",
  "tokens": {
    "input_tokens": 0,
    "output_tokens": 0
  },
  "same_verdict_count": 2
}

@telleroutlook

Copy link
Copy Markdown
Contributor Author

Summary

Removes test coverage for classify_mcp_headers function from external dependency

Severity

low

Blocking findings

  1. crates/proxy-wasm-evidence/src/recorder.rs:155 Removes test coverage for security-sensitive classify_mcp_headers function (credential leak detection, PII detection, high entropy detection) without indication of where tests were moved

Verdict

✅ Approved

Merge risk

low

Audit

  • model: opus
  • effort: high
  • tokens: input=0, output=0
{
  "approved": true,
  "severity": "low",
  "summary": "Removes test coverage for classify_mcp_headers function from external dependency",
  "findings": [
    {
      "file": "crates/proxy-wasm-evidence/src/recorder.rs",
      "line": 155,
      "issue": "Removes test coverage for security-sensitive classify_mcp_headers function (credential leak detection, PII detection, high entropy detection) without indication of where tests were moved",
      "kind": "suggestion"
    }
  ],
  "merge_risk": "low",
  "Model": "opus",
  "model": "claude-cli",
  "effort": "high",
  "tokens": {
    "input_tokens": 0,
    "output_tokens": 0
  },
  "same_verdict_count": 1
}

@telleroutlook
telleroutlook merged commit b0f5bd2 into main Jul 21, 2026
3 checks passed
@telleroutlook
telleroutlook deleted the claude/issue-217 branch July 21, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[milestone Milestone 2 ] Promote classify_mcp_headers() from `crates/proxy-wasm-evidence/src/recorder.r...

1 participant