Skip to content

COGANT v1.0 Readiness Assessment

Current version: v0.8.0

Numeric source of truth: evaluation/METRICS.yaml, generated by tools/regenerate_metrics.py.

Verdict

COGANT is ready for a scoped v1.0 artifact-generator claim:

COGANT maps supported Python repositories into GNN-style Active Inference artifacts, can synthesize a Python package from the emitted GNN, and preserves semantic-role populations for all shipped native roundtrip fixtures.

The claim must remain scoped to the shipped fixtures and supported Python front-end. It should not be described as arbitrary-program semantic equivalence, broad strict graph isomorphism, calibrated behavioral modeling, or held-out generalization.

Current Evidence

Area Current status Evidence
Forward pipeline Done 10-stage runner in pipeline.runner_stages; shipped fixtures run end-to-end
Reverse pipeline Done with caveat GNN -> synthesized Python package -> forward bundle
Roundtrip role preservation Done with caveat Current native ledger counts in METRICS.yaml
Strict structural isomorphism No current matches Strict invariant count in METRICS.yaml
Test suite Done 10,019 passing, 0 failing, 49 skipped
Coverage Done 94.59% line coverage, above the 89% configured gate
Type checking Done mypy strict errors: 0
Lint Done ruff violations: 0
CI Done GitHub Actions cover ruff, mypy, pytest matrix, Rust build, and pre-commit
Runtime demonstration Scoped Fixture-level perception-action loops complete with finite free-energy traces
Authored finite models Scoped Total table admission, coefficient checks, independent toggle/counter oracles, and runtime handoff; separate from repository translation
JavaScript / TypeScript parsing Supported tree-sitter path covers supported syntax forms
Dynamic enrichment Implemented but operator-dependent Requires target tests or traces to be collected under the COGANT tracer
Rust backend Partial Selected graph routines use PyO3; full backend parity is not claimed

Roundtrip Interpretation

The current native ledger reports:

  • targets: 24
  • role-preserved rows: 24
  • drift rows: 0
  • failed rows: 0
  • strict structural-isomorphism rows: 0
  • mean role-preservation score: 0.9819
  • score source: current_native

ROLE_PRESERVED means the semantic-role overlap score meets the public threshold in the forward -> reverse -> forward loop. Role counts can still differ. It does not mean the original graph, matrices, emitted GNN sections, or generated code are identical. No current ledger row meets the strict structural-isomorphism contract.

The previous DRIFT targets, cli_tool and notebook_module, now begin with source roles and roundtrip as ROLE_PRESERVED. They remain useful controls because the freshness gate rejects zero-origin control-positive rows before they can be counted as role-preserved evidence.

Release Boundaries

Do claim:

  • artifact generation for supported Python repositories;
  • reproducible fixture-level roundtrip measurement;
  • current test, coverage, lint, and type-check status from METRICS.yaml;
  • role-population preservation on the native 24-target ledger; and
  • explicit separation between role preservation and strict structural fidelity.

Do not claim:

  • semantic equivalence for arbitrary source repositories;
  • reference-device validation for runtime behavior;
  • calibrated probabilities for emitted A/B/C/D matrices;
  • full Rust backend parity; or
  • held-out generalization beyond the measured fixture families.

Remaining Work

Gap Why it matters Required evidence
Held-out repositories Current fixtures were visible during rule design Locked corpus, rerun ledger, report role and structural scores
Strict structural roundtrip No current ledger row meets the strict contract Reduce node/edge, matrix, section, and generated-code deltas on ordinary fixtures
Dynamic enrichment documentation Users need a repeatable trace-collection workflow End-to-end tutorial with trace fixture and expected outputs
Rust backend parity Current Rust path accelerates selected routines only Stage-by-stage parity matrix and tests
Probability calibration Matrix defaults are structurally valid but not empirical estimates Gold corpus, reviewer labels, calibration report
Cross-language roundtrip ledger JS/TS evidence is separate from the Python native ledger Native multi-language rows or clearly separate claims

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/audit_manuscript_numbers.py --output /tmp/cogant_number_audit.md

See Also