Sync from GitHub: 30c5708e27932c87aea32d9d6fc845c55c02d352
Browse files
app.py
CHANGED
|
@@ -1181,6 +1181,17 @@ def on_interleaved_benchmark(
|
|
| 1181 |
_start_stats = nw_organism.get_stats()
|
| 1182 |
_start_nodes = _start_stats.get('nodes', 0)
|
| 1183 |
_start_synapses = _start_stats.get('synapses', 0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1184 |
|
| 1185 |
nw_kiss_inst = KISSFilter()
|
| 1186 |
bl_msgs: list = []
|
|
@@ -1478,6 +1489,16 @@ def on_interleaved_benchmark(
|
|
| 1478 |
"success_signal": success_signal,
|
| 1479 |
"pith_same_cat_ratio": _same_cat_ratio,
|
| 1480 |
"pith_self_retrievals": _self_retrievals,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1481 |
})
|
| 1482 |
|
| 1483 |
# ββ Heatmap A: ignition-set Jaccard overlap (symmetric) ββ
|
|
@@ -1634,6 +1655,19 @@ def on_interleaved_benchmark(
|
|
| 1634 |
"substrate_nodes_end": _end_stats.get('nodes', 0),
|
| 1635 |
"substrate_synapses_start": _start_synapses,
|
| 1636 |
"substrate_synapses_end": _end_stats.get('synapses', 0),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1637 |
"baseline_total_tokens": sum(r["baseline"]["tokens"] for r in results),
|
| 1638 |
"nuwave_total_tokens": sum(r["nuwave"]["tokens"] for r in results),
|
| 1639 |
"tokens_saved": sum(max(0, r["baseline"]["tokens"] - r["nuwave"]["tokens"]) for r in results),
|
|
|
|
| 1181 |
_start_stats = nw_organism.get_stats()
|
| 1182 |
_start_nodes = _start_stats.get('nodes', 0)
|
| 1183 |
_start_synapses = _start_stats.get('synapses', 0)
|
| 1184 |
+
# Run 41+ predictive-coding diagnostic β capture cumulative prediction
|
| 1185 |
+
# counters at run start so we can compute delta per run. If predictions
|
| 1186 |
+
# never generate, all per-turn predictions_confirmed/surprised are 0
|
| 1187 |
+
# AND total_predictions_made delta = 0 β confirms prediction_threshold
|
| 1188 |
+
# gating diagnosis. Reads canonical Graph counters directly.
|
| 1189 |
+
_start_total_predictions_made = int(getattr(
|
| 1190 |
+
getattr(nw_organism, "_graph", None), "_total_predictions_made", 0,
|
| 1191 |
+
) or 0)
|
| 1192 |
+
_start_total_surprised = int(getattr(
|
| 1193 |
+
getattr(nw_organism, "_graph", None), "_total_surprised", 0,
|
| 1194 |
+
) or 0)
|
| 1195 |
|
| 1196 |
nw_kiss_inst = KISSFilter()
|
| 1197 |
bl_msgs: list = []
|
|
|
|
| 1489 |
"success_signal": success_signal,
|
| 1490 |
"pith_same_cat_ratio": _same_cat_ratio,
|
| 1491 |
"pith_self_retrievals": _self_retrievals,
|
| 1492 |
+
# Run 41+ predictive-coding telemetry β surface what step_result
|
| 1493 |
+
# already carries about predictions plus a snapshot of active
|
| 1494 |
+
# predictions on the graph. If all 0/0/0 across all turns, the
|
| 1495 |
+
# canonical predictive-coding loop is dormant (gated by
|
| 1496 |
+
# prediction_threshold per audit task #12).
|
| 1497 |
+
"predictions_confirmed": int(step_result.get("predictions_confirmed", 0) or 0),
|
| 1498 |
+
"predictions_surprised": int(step_result.get("predictions_surprised", 0) or 0),
|
| 1499 |
+
"active_predictions_count": len(getattr(
|
| 1500 |
+
getattr(nw_organism, "_graph", None), "active_predictions", {}
|
| 1501 |
+
) or {}),
|
| 1502 |
})
|
| 1503 |
|
| 1504 |
# ββ Heatmap A: ignition-set Jaccard overlap (symmetric) ββ
|
|
|
|
| 1655 |
"substrate_nodes_end": _end_stats.get('nodes', 0),
|
| 1656 |
"substrate_synapses_start": _start_synapses,
|
| 1657 |
"substrate_synapses_end": _end_stats.get('synapses', 0),
|
| 1658 |
+
# Run 41+ predictive-coding diagnostic β cumulative counters from the
|
| 1659 |
+
# canonical Graph. If `predictions_made_during_run = 0` even at
|
| 1660 |
+
# benchmark scale, the predictive-coding loop is dormant (gated by
|
| 1661 |
+
# prediction_threshold per audit task #12) and the surprise-driven
|
| 1662 |
+
# intrinsic reward broadcast (canonical neuro_foundation:2549) never
|
| 1663 |
+
# fires. This is the empirical confirmation gate before any config
|
| 1664 |
+
# graduation work.
|
| 1665 |
+
"predictions_made_during_run": int(getattr(
|
| 1666 |
+
getattr(nw_organism, "_graph", None), "_total_predictions_made", 0,
|
| 1667 |
+
) or 0) - _start_total_predictions_made,
|
| 1668 |
+
"predictions_surprised_during_run": int(getattr(
|
| 1669 |
+
getattr(nw_organism, "_graph", None), "_total_surprised", 0,
|
| 1670 |
+
) or 0) - _start_total_surprised,
|
| 1671 |
"baseline_total_tokens": sum(r["baseline"]["tokens"] for r in results),
|
| 1672 |
"nuwave_total_tokens": sum(r["nuwave"]["tokens"] for r in results),
|
| 1673 |
"tokens_saved": sum(max(0, r["baseline"]["tokens"] - r["nuwave"]["tokens"]) for r in results),
|