codetether-agent 4.7.0-a-002.2

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::types::GuardReport;

pub fn prompt(report: &GuardReport) -> String {
    let mut out = String::from(
        "Refactor guard rejected this change. Do not finish yet. Continue the work and satisfy the configured encapsulation and line-budget rules.\n\n",
    );
    for violation in &report.violations {
        out.push_str("- ");
        out.push_str(&violation.path);
        out.push_str(": ");
        out.push_str(&violation.message);
        out.push('\n');
    }
    out.trim_end().to_string()
}