Skip to main content

assess_session

Function assess_session 

Source
pub fn assess_session(
    input: &SessionInput,
    profile: &dyn ControlProfile,
) -> AssessmentReport
Expand description

Assess an agent session against AI-ops controls.

Returns findings from the 4 AI-ops controls (agent-spec-conformance, privileged-operation-audit, mcp-scope-check, network-egress-audit).

Use with an OPA profile for gate decisions:

let report = assess_session(&input, &profile);