Skip to content

application_agents_auditor

GitHub Action edited this page Oct 1, 2026 · 1 revision

iso_doc_type: "Specification" iso_viewpoint: "ComponentView" type: "module" title: "factory-application::agents::auditor β€” AuditorAgent" source_path: "crates/factory-application/src/agents/auditor.rs" description: "ISO 42010 ComponentView / ISO 15289 Specification documentation for factory-application::agents::auditor β€” AuditorAgent." tags: ['iso42010', 'okf', 'component_view', 'rust', 'ast'] timestamp: "2026-10-01T14:00:00Z" generated: "agent:okf-professional-documenter" verified: "true" last_verified_commit: "fbdc5848"

factory-application::agents::auditor β€” AuditorAgent

Source: crates/factory-application/src/agents/auditor.rs Layer: Application


Security Review Flow

sequenceDiagram
    participant AUD as AuditorAgent
    participant Hatchet as Hatchet API
    participant LLM as LiteLLM
    participant Agent as Target Agent

    AUD->>Hatchet: GET /api/v1/workflows/{id}/runs
    Hatchet-->>AUD: Failed DAG run logs
    AUD->>AUD: Filter status == "FAILED"
    AUD->>LLM: Analyze failures + recommend fixes
    LLM-->>AUD: JSON array of recommendations
    Note right of AUD: type: prompt_adjustment | tool_modification<br/>target_agent / target_tool<br/>recommendation text
    AUD->>AUD: evaluate_prompts(targets, recommendations)
    AUD->>LLM: Propose optimized system prompt
    LLM-->>AUD: New system prompt string
    AUD-->>Agent: Apply prompt adjustment
Loading

SAST Gate Integration

The AuditorAgent coordinates with SastScanResult to enforce the security gate:

Check Gate Threshold
SAST Score >= 8.0 / 10.0
Critical Vulnerabilities Must be 0
Hardcoded Secrets Must be 0

Related: FinOpsAgent Β· Security Architecture

🏠 Navigation

πŸ“Š Architecture (ISO 42010)

πŸ”’ Security & Governance

πŸ“– Operations & Quality

πŸ“¦ Crate Modules (1:1 Mirror)

factory-core (Domain)

factory-application

factory-infrastructure

factory-mcp-server

factory-cli

Clone this wiki locally