codetether-agent 4.7.0-a-002.4

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
//! Audit helper for `context_reset`.

use serde_json::json;

/// Record an accepted context reset summary.
pub async fn log(bytes: usize) {
    tracing::info!(bytes, "context_reset: agent-authored summary accepted");
    if let Some(audit) = crate::audit::try_audit_log() {
        audit
            .log(
                crate::audit::AuditCategory::ToolExecution,
                "tool:context_reset",
                crate::audit::AuditOutcome::Success,
                None,
                Some(json!({ "bytes": bytes })),
            )
            .await;
    }
}