Skip to content

fix(audit): guard evidence contract hardening + self-config classification alignment - #516

Merged
blitzcrieg1 merged 1 commit into
masterfrom
fix/execution-evidence-and-guard-contract
Nov 27, 2026
Merged

blitzcrieg1 merged 1 commit into
masterfrom
fix/execution-evidence-and-guard-contract

Conversation

@blitzcrieg1

Copy link
Copy Markdown
Owner

Recorder side of the paired guard change (agentmetry-guard PR #1): network_egress keeps only validated destination metadata (host/port/method/scheme/policy/connection_established), drops the request path, and a missing verdict records outcome=error so a failed attempt is never an established connection. Self-config classification aligned across patch/write/shell surfaces. Benchmark 119 cases, 63/63, 0 FP; 3111 tests; full suite green apart from the known local-env failures. Pairs with agentmetry-guard fix/proxy-evidence-and-policy.

…ation alignment

Recorder side of the paired guard change (agentmetry-guard
fix/proxy-evidence-and-policy):

- network_egress events from source_app=agentmetry/adapter=guard now
  keep only validated destination metadata: host (bounded charset),
  port range, method, scheme, optional policy, optional
  connection_established. The request path is dropped. A missing
  verdict is recorded as outcome=error, so a failed or denied attempt
  is never read as an established connection.
- tool.command for guard events becomes METHOD host:port.

Self-config classification alignment: Codex patches classified from file
headers, structured writes from destination fields, shell writes from
write operands; trait and MITRE T1562 share the same checks.

Corpus: 2 new benign cases (unverified guard egress, script written but
not run); 119 cases, 21 rules, 63/63 firings, 0 missed, 0 FP.
README 3111 tests. Full suite: 3032 passed, 8 skipped; the 71 failures
are the known pre-existing local-env set (identical on clean master).
Ruff clean, diff --check clean.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
@blitzcrieg1
blitzcrieg1 merged commit 681ba0b into master Nov 27, 2026
10 checks passed
@blitzcrieg1
blitzcrieg1 deleted the fix/execution-evidence-and-guard-contract branch November 27, 2026 20:41
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.

1 participant