stockflow.verification.checks¶
Stock-flow verification checks (SF-001..SF-005).
SF-001: Every stock has at least one flow with it as source or target.
Source code in packages/gds-stockflow/stockflow/verification/checks.py
SF-002: Flow source/target are declared stocks.
This is also enforced at model construction time, but the check provides a formal Finding for verification reports.
Source code in packages/gds-stockflow/stockflow/verification/checks.py
SF-003: No cycles in auxiliary dependency graph.
Builds a directed graph of auxiliary → auxiliary dependencies and checks for cycles via DFS.
Source code in packages/gds-stockflow/stockflow/verification/checks.py
SF-004: Every converter is referenced by at least one auxiliary.
Source code in packages/gds-stockflow/stockflow/verification/checks.py
SF-005: Every flow has at least one of source or target.
This is enforced at model construction, but provides a formal Finding.