COGANT Scope and Readiness Report
Current package version: v0.8.0
Primary numeric source: cogant/evaluation/METRICS.yaml
Roundtrip ledger: cogant/evaluation/dataset/roundtrip_results.jsonl
This report states the current scope of the project and the release evidence
that is checked into the repository. It intentionally avoids release
archaeology; use git log for provenance.
Current Scope
COGANT translates software repositories into Active Inference-oriented GNN artifacts through a reproducible static-analysis pipeline:
- ingest source files;
- parse and normalize a typed program graph;
- apply 22 declarative translation rules to produce semantic mappings;
- compile state-space variables and A/B/C/D matrices;
- export GNN, JSON, GraphML, Parquet, HTML, and dashboard artifacts;
- validate generated artifacts and expose provenance.
A separate finite-model interface compiles authored transition and observation tables into checked A/B/C/D matrices. Its coefficient checks and independent toggle/counter reference tests concern the declared model; they do not increase the repository roundtrip success counts.
The project is strongest for Python static analysis and GNN export. JavaScript and TypeScript support exist as forward parsers and cross-language fixtures, but the native v0.6 release ledger is Python-centered.
Current Evidence Snapshot
| Evidence area | Current checked-in status | Source |
|---|---|---|
| Collected tests | 10068 | METRICS.yaml |
| Passing tests | 10019 | METRICS.yaml |
| Failing tests | 0 | METRICS.yaml |
| Line coverage | 94.59% | METRICS.yaml / coverage.json |
| mypy strict errors | 0 | METRICS.yaml |
| ruff violations | 0 | METRICS.yaml |
| Python source files | 251 | METRICS.yaml |
| Roundtrip targets | 24 | METRICS.yaml |
| Role-preserved targets | 24 | METRICS.yaml |
| Drift targets | 0 | METRICS.yaml |
| Failed targets | 0 | METRICS.yaml |
| Strict structural isomorphism | 0 | METRICS.yaml |
Supported Claims
- The package has a deterministic Python pipeline from repository input to validated GNN bundle output.
- The default translation engine registers 22 concrete rules across structural, semantic, control, behavioral, and resilience families.
- The native v0.7 roundtrip ledger in
METRICS.yamlreports the current role-preserved, drift, and failed target counts. - No current native ledger row meets the strict structural-isomorphism contract; all measured fixtures meet the public role-preservation threshold.
- The forward external-repository fixture completes on eight Python libraries, but its dulwich row remains a scaling caveat until that fixture is rerun.
Out of Scope for Current Claims
- Whole-program semantic soundness.
- General claims about all Python repositories or all programming languages.
- Learned confidence calibration against a human-labeled corpus.
- Strict PutGet/GetPut lens laws.
- Production security for the packaged demo server; it requires deployment behind the user's own TLS, authentication, and reverse proxy.
Release Gaps
| Gap | Why it matters | Needed evidence |
|---|---|---|
| No strict structural matches in the current ledger | Broad strict roundtrip wording remains unsupported | Structural-invariant preservation on ordinary fixtures or narrower published claim |
| External-repository fixture needs refresh | The checked-in fixture predates the post-fix dulwich scaling target | Rerun REAL_WORLD_EVAL.md fixture and commit updated JSON |
| Confidence calibration remains unlearned | Rule scores are principled defaults, not empirical precision estimates | Human-labeled corpus and calibration report |
| JS/TS release evidence is incomplete | Cross-language docs should not imply parity with Python | Native JS/TS roundtrip ledger and CI gate |
Validation Commands
uv run python tools/check_metrics_fresh.py
uv run python tools/audit_docs_constants.py
uv run python tools/audit_manuscript_numbers.py
uv run python tools/audit_manuscript_crossrefs.py
uv run python tools/audit_manuscript_citations.py
uv run --directory cogant python docs/verify_doc_links.py
uv run --directory cogant python docs/verify_manuscript_links.py
uv run python tools/claim_ledger.py --manuscript-dir manuscript --output-dir output/reports/claim_ledger --fail-on-literal-numbers