You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Zero-dependency mode: networkx metrics that were never computed read as 0.0 outside the DB (false 'Containment' insight, 0.0 macro table, HITL never fires) #3027
In zero-dependency mode, networkx-derived metrics that were never computed read as 0 / 0.0 in every output except the SQLite DB. There they are NULL (record_keeper.py, if session_meta.get("zero_dependency_mode")). A 0.0 PageRank or blast radius looks like a real measurement of a leaf file. Several consumers then draw conclusions from it:
Sorts AI files by an all-zero pagerank, then appends "Containment (Low Risk): The AI components are safely isolated at the edge of the network…" because pr < 0.2. That is a false claim.
llm_recorder.py §3.5 macro table (~L375-395)
if net_macro: is truthy (the keys exist with None values), and each cell renders or 0.0. So the brief prints Modularity 0.0, Cyclic Density 0.0%, Articulation Pts 0. This undoes #473's None convention one hop downstream, which is exactly what network_risk_sensor.py's #473 comment warns against.
llm_recorder.py per-file topology (~L1039-1057)
Blast radius, betweenness and closeness print as 0.0.
All scores are 0, so brief §13.8 is dropped with no note saying why.
dev_agent_firewall.py L42/L67
requires_hitl is keyed on blast radius, so it can never fire. The DB column requires_hitl reads 0.
archetype_classifier.py L71-72, L108/L117
log_pagerank, log_blast_radius and pagerank_gini go into nearest-centroid as zeros, so the file/repo composition archetype can differ from full precision. The module docstring acknowledges this.
supply_chain_firewall.py ~L232-238
The blast-radius/betweenness multiplier stays 1.0.
(--max-systemic-threat had the same problem. It now warns and is skipped without networkx, as of the #3024 PR.)
Ask
Carry "not computed" through as None, not 0.0: in the sensor fallback, and in every consumer listed. Each consumer then renders "n/a (requires networkx)", skips the insight, or excludes the feature. Watch the golden-master fixtures: the zero-dependency audit JSON does not emit pagerank or centrality today, but the composition archetype it does emit may move.
Documented as current behaviour in docs/zero_dependency_mode.md (added with #3024); update that page when this lands.
Activity
Zero-dependency mode: exact degree counts + document what the mode co…
Run the native PageRank in full-precision mode too (#3027)
Uncomputed graph metrics are None, and zero-dependency mode computes …
Native graph engine: shared CSR graph index + parity/benchmark harness (