The Thinking Network (Installment 11): AI Trust Layers & Explainable Networking
Installment 11 of The Thinking Network. We define a Trust Index Formula based on accuracy, reliability, and explainability to govern autonomous network AI.
Architecture Overview: Phase 8 (Trust Monitoring)Objective: Establish a programmatic safety threshold for autonomous AI operations in a carrier context.Core Technologies: Explainable AI (XAI), Python, Prometheus telemetry correlation, and Loki log analysis.The Goal: Define a mathematical trust score that forces the network to fall back to a reactive routing state if the predictive model's accuracy, reliability, or explainability drops below a 0.85 threshold.
Every installment in this series has shown real output from a running system. Commands typed, logs captured, data verified against what the network actually did.
This installment is different. And being honest about why is exactly the point.
In enterprise network automation, the biggest hurdle isn't building the AI; it is proving you can trust it. What we are building here is a localized Explainable AI (XAI) framework that continuously audits its own telemetry pipeline. It is the layer that holds the intelligence accountable.
What Just Ran
python3 toolkit/trust_monitor.py
--- Phase 8 Trust Monitoring Active ---
[TRUST] Current AI Reliability Index: 0.92
That is the complete output. One line. The script ran, calculated a score of 0.92, and exited.
The score came from hardcoded values. Not from Phase 7's predictions. Not from Phase 5's actual measurements. Not from anything that happened in this lab today.
accuracy = 0.92 # placeholder
reliability = 0.88 # placeholder
explainability = 1.0 # placeholder
This is a stub. It implements the correct formula with the correct structure. It does not yet read live data.
That gap is worth examining carefully - because understanding why it exists, and what closing it actually requires, is the most technically substantive part of this series.
The Formula
The trust score is calculated using what this project calls the 2026 Trust Index Formula:
Score = (Accuracy × 0.4) + (Reliability × 0.4) + (Explainability × 0.2)
Three components. Weighted. Summed.
Accuracy measures how close Phase 7's predictions were to Phase 5's actual measurements. If the model forecast 4.8ms and the measured value was 4.7ms, accuracy is high. If the model forecast 3.1ms and the measured value was 10.8ms, accuracy is low. Accuracy carries 40% of the score because it is the most direct measure of whether the predictive brain is doing its job.
Reliability measures the consistency of the telemetry pipeline. If Phase 5 is delivering samples on schedule - every ten seconds, no gaps - reliability is high. If samples are arriving late or missing entirely, reliability drops. A network intelligence system that makes decisions based on stale or incomplete data is less reliable than one with a continuous, consistent signal. Reliability carries 40% because no amount of model sophistication compensates for bad input data.
Explainability measures whether the system's behavior can be reconstructed after the fact. Are the logs present in Loki? Are the model coefficients within sensible bounds? Does the regression output make sense given the input data? Explainability carries 20% because transparency is necessary but not sufficient - a system can be transparent and still be wrong.
The threshold is 0.85. Below that score, the trust monitor fires an alert and the system is expected to fall back to Phase 6 - the reactive actuator - rather than continuing to act on Phase 7's predictions.
Why 0.85
The threshold is not arbitrary. It is the score at which the model's error rate becomes consequential in a carrier context.
A trust score of 0.85 means the weighted combination of prediction accuracy, telemetry consistency, and decision transparency is high enough to justify autonomous action. Below 0.85, the risk of acting on a bad prediction - and committing an incorrect BGP change that degrades rather than improves the network - is high enough that human oversight or fallback to the simpler reactive system is warranted.
This is also why the formula is additive rather than multiplicative. A multiplicative formula - Score = Accuracy × Reliability × Explainability - would collapse to zero if any single component goes to zero. If Loki goes down and explainability drops to 0, the multiplicative score becomes 0 regardless of how accurate and reliable the model is. The additive formula allows a degraded component to reduce the score without immediately disabling the system.
Both formulas are worth comparing under stress conditions. That comparison is a named deliverable for a future installment.
What Live Wiring Requires
Connecting the trust monitor to real data is not a configuration change. It requires solving three distinct problems.
Wiring Accuracy means comparing Phase 7's prediction at time T to Phase 5's actual measurement at time T+30. Phase 7 runs every ten seconds and produces a prediction. That prediction needs to be stored - labeled with the timestamp it was made and the future timestamp it applies to. Thirty seconds later, the actual measurement is available. The accuracy calculation compares the two.
Prometheus does not store Phase 7's predictions by default. The trust monitor needs Phase 7 to export its predictions as a Prometheus metric, or to write them to a log file that the trust monitor can read and correlate with Phase 5's measurements.
Wiring Reliability means detecting gaps in the sensing stream. If Phase 5 is supposed to produce a sample every ten seconds and the last sample arrived twenty-five seconds ago, reliability is degraded. This requires querying Prometheus for the timestamp of the most recent nokia_latency_l3_ms sample and comparing it to the current time. If the gap exceeds a threshold, reliability drops.
Wiring Explainability means checking whether Phase 7's model outputs are sane. A linear regression model that produces predictions outside a reasonable range - negative latency, latency above 100ms in a nominal lab environment - indicates something has gone wrong with the model itself. The trust monitor needs to read the model's coefficients or output range and flag anomalies.
The architecture for a fully wired trust monitor:
def calculate_accuracy():
# Query Prometheus for Phase 7 predictions (requires Phase 7 to export them)
predictions = query_prometheus("nokia_ai_prediction_ms", lookback=300)
actuals = query_prometheus("nokia_latency_l3_ms", lookback=300)
# Correlate by timestamp: prediction at T vs actual at T+30s
deltas = correlate_predictions_to_actuals(predictions, actuals)
# Accuracy = 1 - mean_absolute_error / SLA_threshold
mae = sum(abs(d) for d in deltas) / len(deltas)
return max(0.0, 1.0 - (mae / SLA_THRESHOLD_MS))
def calculate_reliability():
# Check gap between now and last Prometheus sample
last_sample_age = time.time() - get_last_sample_timestamp("nokia_latency_l3_ms")
if last_sample_age > CHECK_INTERVAL_S * 2:
return 0.0 # complete data gap
return max(0.0, 1.0 - (last_sample_age / (CHECK_INTERVAL_S * 3)))
def calculate_explainability():
# Check Phase 7 model output is within reasonable bounds
latest_prediction = get_latest_prediction()
if latest_prediction < 0 or latest_prediction > 100:
return 0.0 # prediction outside valid range
return 1.0
This is not hypothetical. This is the code the trust monitor needs. It is on the backlog. It will be the subject of a future installment when it runs against live data.
Why the Stub Matters
There is a temptation when building systems like this to paper over gaps. To run the stub, show the passing score, and move on as if the trust layer is working.
This series has been honest throughout about what is real and what is not. The IS-IS adjacencies were real. The BGP reroute was real. Phase 7's predictive breach was real - timestamped, captured, verified against the actual measured values.
The trust score of 0.92 is not real. It is the right architecture running on the wrong data.
That distinction matters because the trust layer is not a cosmetic addition. It is the mechanism that determines whether an autonomous system is allowed to keep acting autonomously. A stub trust monitor that always returns a passing score is worse than no trust monitor at all - it provides false assurance that a safety mechanism is in place when it is not.
The stub runs. The formula is correct. The threshold is correctly implemented. What is missing is the data. And documenting that absence honestly is the most useful thing this installment can do.
The Broader Principle
The question the trust layer is designed to answer - how do you know when to trust an autonomous system - is not specific to this lab. It is the central design problem of any system that makes consequential decisions without human intervention.
The answer this project gives is: you evaluate the system's track record continuously and automatically, using the same data the system itself uses. You do not trust it based on how it was designed. You trust it based on how it has performed.
A trust score derived from real prediction accuracy, real telemetry reliability, and real decision transparency is a living assessment of whether the system deserves the authority it has been given. When that score drops below the threshold, authority is reduced. When it recovers, authority is restored.
No human needs to make that judgment. The system makes it about itself.
That is accountability without self-abasement. The same standard applied to the AI that this series has applied to everything else: not what was intended, but what actually happened.
Build Record
July 5, 2026 - Dell Precision 3571 - Garuda Linux rolling - SR Linux v26.3.2