codetether-agent 4.7.0-a-002.4

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

pub(crate) fn render(mode: GateMode, answer: &str, session_id: &str, missing: usize) -> String {
    let path = super::ledger_path::for_session(session_id);
    let prefix = match mode {
        GateMode::Strict => "Runtime scope gate STRICT",
        GateMode::Warn => "Runtime scope ledger",
        GateMode::Off => return answer.to_string(),
    };
    format!(
        "{answer}\n\n{prefix}: {missing} deliverable(s) were not explicitly classified as proven, pending, blocked, or not-run. Ledger: {}",
        path.display()
    )
}