COGANT Evaluation Report
Current version: v0.8.0
Numeric source of truth:
evaluation/METRICS.yaml, generated bytools/regenerate_metrics.py.
Executive Summary
COGANT provides a reproducible pipeline for turning supported Python code into GNN-style Active Inference artifacts, then synthesizing a Python package from that emitted GNN and measuring what survives a second forward pass.
The current evidence supports a scoped artifact-generation and role-preservation claim. No current native ledger row meets the strict structural contract. It does not support broad strict graph isomorphism, semantic equivalence for arbitrary programs, or calibrated behavioral modeling.
Current Headline Metrics
| Metric | Current value |
|---|---|
| Package version | 0.8.0 |
| Test count | testing.test_count_* in the linked METRICS.yaml |
| Coverage | testing.coverage_percent in METRICS.yaml |
| mypy strict errors | 0 |
| ruff violations | 0 |
| Runner stages | 10 |
| Translation rules | 22 |
| Roundtrip targets | 24 |
| ROLE_PRESERVED | 24 |
| DRIFT | 0 |
| FAILED | 0 |
| Strict structural isomorphism | 0 |
| Mean role-preservation score | 0.9819 |
Evidence Chain
The primary measured path is:
source repository
-> ingest/static/normalize/graph
-> semantic-role translation
-> state-space and GNN package generation
-> reverse package synthesis
-> second forward COGANT bundle
-> roundtrip metric comparison
The native ledger records per-target role counts, graph size, generated-code
status, role_preservation_score, and roundtrip_status. METRICS.yaml
aggregates that ledger into the headline numbers above.
What The Result Means
ROLE_PRESERVED means the semantic-role population survives the roundtrip at
the configured public threshold. It is a symmetric per-role multiset-overlap
measure, not a recall estimate: extra synthesized roles and dropped original
roles both reduce the score.
It does not imply:
- identical program graphs;
- identical A/B/C/D matrix values;
- identical emitted GNN sections;
- executable semantic equivalence between source and synthesized package; or
- probability calibration against runtime behavior.
Those stronger properties are tracked separately. The current strict structural-isomorphism count is 0/24. The current ledger does not demonstrate strict structural preservation.
Current Failure Modes
| Failure mode | Current status | Required improvement |
|---|---|---|
| Scaffold-introduced roles on degenerate inputs | Current ledger has 0 DRIFT rows | Keep zero-origin controls rejected by freshness checks and promote the held-out pilot into metrics/claim gates |
| Strict graph/matrix/section deltas | No strict successes in the current native ledger | Preserve node/edge counts, edge-kind distributions, GNN sections, and matrix values on ordinary fixtures |
| Dynamic enrichment workflow | Implemented but operator-dependent | Add a complete trace-collection tutorial and fixture |
| Held-out generalization | Not established | Freeze an unseen repository corpus and rerun the ledger |
| Probability calibration | Not established | Build a reviewed gold corpus and calibrate confidence/matrix defaults |
Release Claim
Use this wording:
COGANT maps supported Python repositories into GNN-style Active Inference artifacts and meets the configured role-preservation threshold on 24 of 24 native roundtrip fixtures in the current native ledger. No current fixture meets the strict structural-isomorphism contract.
Avoid wording that says or implies:
- "strictly isomorphic";
- "semantically equivalent";
- "validated on arbitrary real-world code";
- "calibrated generative model"; or
- "reference-quality runtime behavior."
Reproducibility Commands
uv run --directory cogant pytest tests/ -q
uv run --directory cogant ruff check py/cogant tests
uv run --directory cogant mypy py/cogant
uv run python tools/check_metrics_fresh.py
uv run python tools/audit_docs_constants.py
uv run python tools/claim_ledger.py --manuscript-dir manuscript --output-dir output/reports/claim_ledger --fail-on-literal-numbers
uv run --directory cogant python docs/verify_doc_links.py
uv run --directory cogant python docs/verify_manuscript_links.py
Next Evidence Needed
- The existing held-out pilot promoted into a frozen Python corpus with no rule tuning after selection.
- Native JS/TS roundtrip rows or a clearly separate cross-language claim.
- A strict-fidelity workstream that reduces graph, section, matrix, and generated-code deltas.
- A calibration dataset with reviewer labels for confidence thresholds and matrix defaults.
- End-to-end dynamic enrichment documentation with expected trace artifacts.