Skip to content

feat(ingest): accept network_egress events from the agentmetry-guard sidecar - #508

Merged
blitzcrieg1 merged 2 commits into
masterfrom
feat/network-egress-ingest
Nov 27, 2026
Merged

blitzcrieg1 merged 2 commits into
masterfrom
feat/network-egress-ingest

Conversation

@blitzcrieg1

Copy link
Copy Markdown
Owner

The agentmetry-guard sidecar (separate repo, phase-1 spike done today) reports intercepted child-process egress as event_type=network_egress. Unmapped, the external ingest fallback stored those as tool_called, so the guard's own observations would have been counted by every tool-sequence rule.

Changes:

  • _ACTION_MAP gains network_egress -> ("network_egress", "success"); the guard's outcome (success tunneled / denied by denylist) passes through unchanged.
  • ExternalIngestBody.event_type description lists the new type.
  • 4 new tests in test_doctor_json_and_remediation.py: action mapping, correlation_id/session join, denied verdict, and 50 egress events firing zero sequence rules.

Verified against real guard output: events captured from a smoke-tested agentmetry-guard wrap run (plain HTTP, CONNECT tunnel, denied CONNECT) validate through ExternalIngestBody and canonicalize to action.type=network_egress, source.adapter=guard, correlation preserved.

Tests: pytest tests/test_doctor_json_and_remediation.py 18 passed. The 5 failures in test_external_ingest.py in this sandbox are identical on clean master (local 401/env issue, CI is green).

blitzcrieg1 and others added 2 commits November 27, 2026 16:48
…sidecar

The guard sidecar (separate agentmetry-guard repo) reports intercepted
child-process egress as event_type=network_egress. Unmapped, the external
fallback stored it as tool_called, so the guard's own observations would
have been counted by every tool-sequence rule. Map it to its own action
type; the outcome (success tunneled / denied by denylist) passes through.
Events keep correlation_id, so they join the agent session in the trail,
the session view and the SIEM forwarders. Four tests pin the mapping, the
correlation and the rule isolation.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
@blitzcrieg1
blitzcrieg1 merged commit 9f793a3 into master Nov 27, 2026
10 checks passed
@blitzcrieg1
blitzcrieg1 deleted the feat/network-egress-ingest branch November 27, 2026 14:57
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