aureon-os / aureon /evaluation /auris_node_eval.py
GaryLeckey's picture
Deploy Aureon OS (deploy/selfhost stack: nginx edge + fusion API x2 + console + HNC organ + redis + postgres; paper mode) (part 4)
b41bee3 verified
Raw History Blame Contribute Delete
1.16 kB
"""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)