COGANT: Deterministic Codebase-to-GNN Translation
Daniel Ari Friedman (2026) · Computational
Context
This work addresses topics in Computational: program analysis, Generalized Notation Notation, GNN, intermediate representation.
Methods
Primary methods and techniques applied in this work:
- Program-graph IR with confidence and provenance on nodes and edges — Repositories are parsed (primarily via Python's standard-library ast) into a program graph IR whose nodes and edges carry confidence and provenance.
- Fixpoint translation engine with 22 declarative rules in five families — Rules (structural, semantic, control, behavioural, resilience) map nodes to 7 Active Inference mapping kinds, with priority-and-score conflict resolution.
- A/B/C/D matrix derivation and GNN (Generalized Notation Notation) export — Derives likelihood, transition, preference and prior matrices from the compiled state space and program-graph edges, normalized for the upstream GNN validator.
- Forward-reverse-forward roundtrip over a 25-target regression corpus — A reverse synthesizer rebuilds a Python package from each GNN bundle; role_preservation_score and strict isomorphism are recorded per target.
- Rule-family and fixpoint-iteration ablations on packaged fixtures — Removes each rule family and varies the iteration cap K in {1, 2, 5, 10}, recording changes in SemanticMapping counts on the shipped fixtures.
Key Findings
Core contributions and results:
- On the v0.6.0 roundtrip ledger, all 25 targets are role-preserved, but only 1 of 25 meets strict structural isomorphism.
- The author cautions that fixtures are in-sample, with no held-out split or confidence intervals, so scores upper-bound rather than estimate out-of-sample performance.
- The fixpoint ablation shows a single pass suffices on every shipped fixture, with the K=10 cap serving as a safety valve.
- Rule-family ablation indicates structural rules drive HIDDEN_STATE while semantic rules drive OBSERVATION/ACTION/POLICY/PREFERENCE roles.
- The author states the passing test suite, coverage and type-check gates support reliability and reproducibility but do not by themselves establish semantic adequacy.
Methods and findings are summarized from the full text; each item is backed by a verbatim quote recorded in metadata.json (evidence, key_findings_evidence).
Related Works
Validation
Verification points for this work:
- Canonical DOI: 10.5281/zenodo.20705350
- PDF SHA-256: See zenodo_record
- Pairing confidence: strong
- Last checked: 2026-09-24T18:29:55Z
- Artifact DOI: 10.5281/zenodo.20705351
Prerequisites
- Familiarity with program analysis, Generalized Notation Notation, GNN
- Background in Computational fundamentals
- Access to source repository: ActiveInferenceInstitute/COGANT
Instructions
When working with this paper:
- Reference the DOI for citation:
10.5281/zenodo.20705350
- Apply methods listed in the Methods section for related analysis.
- Validate findings against the original PDF and metadata.
1---2# docxology:generated-document SKILL.md; ownership=explicit-manifest3name: cogant-deterministic-codebase-to-gnn-translation4description: "COGANT (Codebase-to-GNN Translation) deterministically converts software repositories into structured Active Inference artifacts expressed in the Active Inference Institute's Generalized Notation Notation (GNN). It is an evidence compiler: it propaga..."5tags: ["program-analysis", "generalized-notation-notation", "gnn", "intermediate-representation", "code-property-graph", "active-inference", "reproducible-research", "codebase-to-model-translation", "cognitive-ecosystem-modeling"]6domain: "Computational"7citation: "Daniel Ari Friedman (2026). *COGANT: Deterministic Codebase-to-GNN Translation*. Zenodo."8doi: "10.5281/zenodo.20705350"9artifact_doi: "10.5281/zenodo.20705351"10metadata:11 source: https://skillmd.com/skills/docxology/cogant-deterministic-codebase-to-gnn-translation12---1314# COGANT: Deterministic Codebase-to-GNN Translation1516**Daniel Ari Friedman** (2026) · Computational1718## Context1920This work addresses topics in **Computational**: program analysis, Generalized Notation Notation, GNN, intermediate representation.2122## Methods2324Primary methods and techniques applied in this work:2526- **Program-graph IR with confidence and provenance on nodes and edges** — Repositories are parsed (primarily via Python's standard-library ast) into a program graph IR whose nodes and edges carry confidence and provenance.27- **Fixpoint translation engine with 22 declarative rules in five families** — Rules (structural, semantic, control, behavioural, resilience) map nodes to 7 Active Inference mapping kinds, with priority-and-score conflict resolution.28- **A/B/C/D matrix derivation and GNN (Generalized Notation Notation) export** — Derives likelihood, transition, preference and prior matrices from the compiled state space and program-graph edges, normalized for the upstream GNN validator.29- **Forward-reverse-forward roundtrip over a 25-target regression corpus** — A reverse synthesizer rebuilds a Python package from each GNN bundle; role_preservation_score and strict isomorphism are recorded per target.30- **Rule-family and fixpoint-iteration ablations on packaged fixtures** — Removes each rule family and varies the iteration cap K in {1, 2, 5, 10}, recording changes in SemanticMapping counts on the shipped fixtures.3132## Key Findings3334Core contributions and results:3536- On the v0.6.0 roundtrip ledger, all 25 targets are role-preserved, but only 1 of 25 meets strict structural isomorphism.37- The author cautions that fixtures are in-sample, with no held-out split or confidence intervals, so scores upper-bound rather than estimate out-of-sample performance.38- The fixpoint ablation shows a single pass suffices on every shipped fixture, with the K=10 cap serving as a safety valve.39- Rule-family ablation indicates structural rules drive HIDDEN_STATE while semantic rules drive OBSERVATION/ACTION/POLICY/PREFERENCE roles.40- The author states the passing test suite, coverage and type-check gates support reliability and reproducibility but do not by themselves establish semantic adequacy.4142Methods and findings are summarized from the full text; each item is backed by a verbatim quote recorded in `metadata.json` (`evidence`, `key_findings_evidence`).4344## Related Works4546- [2023_NSFReporting](../2023_NSFReporting/)47- [2023_NaturalAIBased](../2023_NaturalAIBased/)48- [2025_AuBI](../2025_AuBI/)4950## Validation5152Verification points for this work:5354- Canonical DOI: 10.5281/zenodo.2070535055- PDF SHA-256: See zenodo_record56- Pairing confidence: strong57- Last checked: 2026-09-24T18:29:55Z58- Artifact DOI: 10.5281/zenodo.207053515960## Prerequisites6162- Familiarity with program analysis, Generalized Notation Notation, GNN63- Background in Computational fundamentals64- Access to source repository: ActiveInferenceInstitute/COGANT6566## Instructions6768When working with this paper:69701. Reference the DOI for citation: `10.5281/zenodo.20705350`712. Apply methods listed in the Methods section for related analysis.723. Validate findings against the original PDF and metadata.