Skip to main content

operator_fix

Function operator_fix 

Source
pub fn operator_fix(
    instruction: &str,
    findings: &[Finding],
    reason: &str,
    stale: &[(String, String)],
    current_head: &str,
    language: &str,
) -> String
Expand description

Prompt for a targeted, operator-triggered fix: specific, already-recorded findings routed to a fixer outside the normal review round sequence.

Reuses fix for the findings block and the output contract — the JSON shape a fixer answers with is identical either way — and wraps it with the operator’s own reasoning and an explicit scope rule, because the fixer’s session may still remember other findings from earlier rounds of this same conversation that must not be touched here.