Guide/Evidence
The Audit-Ledger System
2 min readFrom the README
The five ledgers under docs/ are generated by scripts under scripts/, not written by hand. coverage.md is regenerated and compared on every DSR quality run (via scripts/verify_docs.py), so drift there fails the gate; the other four are regenerated on demand and can lag the code.
How a public symbol gets classified
scripts/generate_coverage_matrix.py launches an isolated python -I reference process, requires the pinned NetworkX 3.6.1, discovers the installed module tree, and enumerates each module from __all__ or Python's public wildcard namespace rule. It also adds public class members declared by NetworkX classes in their MRO. Each qualified path is compared with the corresponding FrankenNetworkX binding and classified as present, partial, missing, n/a, or excluded; partial signature/kind/value gaps and every exclusion reason are rendered verbatim.
The same generator retains a separate implementation-route appendix for the 843 names in franken_networkx.__all__: _fnx binding (RUST_NATIVE), Python wrapper (PY_WRAPPER), class, constant, and any _call_networkx_*_for_parity(...) route. It also cross-references the raw-vs-public and upstream-divergence ledgers.
The output is docs/coverage.md. If the pinned reference fingerprint, a qualified path, a classification, or a delegation route drifts, the regenerated file diverges from the committed file and the DSR quality run fails. A path whose shape is only declared through __signature__/__module__ metadata (a class override, a look-alike enum, or a function whose declared signature is not backed by its code or its named forwarding target) is classified partial, not present.
The five ledgers and what they catch
coverage.md: Did anyone add a public symbol without thinking about classification?raw_vs_public_audit.md: Did anyone introduce a parity wrapper without documenting the underlying gap?delegation_ledger.md: Did anyone start delegating to NetworkX without noting it?upstream_divergence_ledger.md: Are intentional divergences from NetworkX still owned?api_ergonomics_audit.md: Did a signature drift in parameter names, defaults, or keyword-only contracts?
Only the first of these is machine-enforced today; the rest are audits that are as current as their last regeneration.