"""Auris coherence from the brain proof. The earlier labelled hit-rate draw used thresholds that are not in ``read_auris_nodes``. That draw is not the measurement. """ from __future__ import annotations from pathlib import Path from typing import Any def evaluate_auris_nodes(root: Path | None = None) -> dict[str, Any]: from aureon.evaluation.brain_proof import evaluate_brain return evaluate_brain(root)["auris"] def render_auris_markdown(report: dict[str, Any]) -> str: held = ", ".join(report.get("hold_nodes") or []) or "none" trade = report.get("trade_readiness") or {} lines = [ "# Auris coherence", "", f"Source `{report.get('source')}`. {report.get('market_data_note', '')}", f"Coherence `{report.get('coherence')}`. Status `{report.get('coherence_status')}`.", f"Nodes without a reading when the four market fields are present as 0: {held}.", f"Trade readiness: **{trade.get('verdict')}**. {trade.get('reason', '')}", "This is the method's coherence, not a hit rate and not a trade result.", "", ] return "\n".join(lines)