InfinitySDLC Engineering Guides · 08/12
Reference implementation guide, not a report of a completed client deployment. Code, configurations, metrics and policies are illustrative. Adapt and validate them before production use.
Security Prevention is a pre-merge agent that combines deterministic scanners with contextual reasoning. The LLM explains and prioritizes; scanners and policy engines remain the authoritative detectors for known classes of flaws.

security_finding:
id: SEC-AI-441
category: authorization
severity: high
evidence:
- code: api/admin/users.py:88-117@4bd91e
- policy: AUTHZ-STD-07
exploitability: authenticated_non_admin
deterministic_reproducer: tests/security/test_admin_delete_authz.py
proposed_fix_commit: 5c18aa
scanner_status_after_fix: cleanRepositories, issues, package metadata and MCP outputs can contain malicious natural-language instructions. Treat them as data, not authority. Keep task instructions and policy in higher-priority control messages, strip unneeded external text, mark provenance, and ensure high-impact tools are independently authorized. Sandbox coding agents and restrict outbound network access during security review.
Security teams often require source code and findings to remain inside the organization. A local coding/reasoning model can perform first-pass triage, CWE mapping and remediation explanation, while a frontier model is used only for code paths allowed by policy. Self-hosted safeguards/classifiers can also screen agent inputs/outputs, but they complement rather than replace IAM and sandboxing.
Finding(id, source, rule_id, cwe, severity, confidence, file, line_start, symbol,
reachable, introduced_by, evidence_ref, suppression_state)Normalize SAST, SCA, secret, container and IaC findings into one schema. The agent can deduplicate and prioritize with reachability/context while preserving the authoritative scanner evidence. It should never “override” a scanner finding by prose; it can recommend severity adjustment or suppression with an owner and expiration.
Adapted from the September 2026 Enterprise AI Agent Mesh handbook, Article 8 and Blueprint 8. The Enterprise Agent Platform Foundation guide provides the shared identity, MCP, retrieval, sandbox, audit and evaluation design, plus the source handbook’s further-reading list. Validate model, protocol and tool versions before production use.