COGANT Roadmap Overview
Current release: v0.6 hardening snapshot (May 2026). The project is in active development; breaking changes remain possible until v1.0.0 stabilizes the public API.
Ground truth: What is implemented in the Python package is tracked in
CHANGELOG.mdandevaluation/METRICS.yaml. Sections below are forward-looking. Calendar quarters are directional, not commitments.
Where We Are (v0.6 Hardening Snapshot)
COGANT translates software repositories into AII-spec GNN bundles for Active Inference.
The core pipeline is exercised end-to-end against the checked-in fixture and corpus
configuration; current counts and role-preservation metrics live in
evaluation/METRICS.yaml and the latest run_all.py outputs.
Shipped capability at a glance:
| Area | Status |
|---|---|
| Python parser (full AST) | ✅ Production |
| JS/TS parser (tree-sitter) | ✅ Production |
| 22 translation rules (5+5+3+4+5 families) | ✅ Production |
| Markov blanket partition (5 seed strategies, O(V+E)) | ✅ Production |
| State space compiler (A/B/C/D matrices) | ✅ Production |
| GNN bundle emission (AII-spec compliant) | ✅ Production |
Roundtrip role preservation (code → GNN → code → GNN): current corpus metrics in evaluation/METRICS.yaml; strict structural isomorphism tracked separately |
✅ Production |
| Active Inference agent runtime (multi-episode Bayesian) | ✅ Production |
| Incremental analysis (unchanged-snapshot cache reuse) | ✅ Production |
| Static analysis (complexity, coupling, dead code, Halstead) | ✅ Production |
| Network/graph analysis (centrality, community, SCC) | ✅ Production |
| Visualization suite (PDF, PNG, Mermaid, SVG) | ✅ Production |
| Export: 9 formats (JSON, GraphML, Parquet, SVG, PNG, PDF, Mermaid, DOT, JSONLINES) | ✅ Production |
| Packaged FastAPI demo server + WebSocket streaming; auth/reverse-proxy hardening is caller-owned | ✅ Packaged/demo |
| CLI: 26 top-level commands, 29 leaf commands including sub-typers | ✅ Production |
| Type system: 14 Protocols, 15 TypedDicts, 231 .pyi stubs | ✅ Production |
Test suite and coverage: see evaluation/METRICS.yaml, pyproject.toml, and live uv run pytest tests/ -q --cov=py/cogant output |
✅ Production |
| Rust PyO3 acceleration (optional) | ✅ Beta |
| Java parser | ⬜ Planned (v0.6.x) |
| Rust parser | ⬜ Planned (v0.6.x) |
| Dynamic analysis / trace integration | ⬜ Planned (v0.7.x) |
| Cross-repository analysis | ⬜ Planned (v0.7.x) |
| Public API freeze / v1.0 | ⬜ Planned (v1.0) |
Near-Term Plan: v0.6.x
Theme: Language breadth and streaming scale
The core pipeline is solid. v0.6.x extends the language surface and addresses production-scale constraints discovered during real-world use.
Priority items: 1. Java parser (tree-sitter + Spring/JPA rules) 2. Rust parser (tree-sitter + ownership → CONSTRAINT heuristics) 3. Streaming export for graphs >100k nodes (Parquet, GraphML, JSONLINES) 4. Intra-procedural type inference engine 5. Alias analysis to prune redundant READS/WRITES edges
Medium-Term Plan: v0.7.x–v0.8.x
Theme: Dynamic analysis and cross-system modeling
- Dynamic analysis integration: coverage traces → rule refinement →
STATIC_PLUS_RUNTIMEtier - Cross-repository analysis: multi-root
ProgramGraph+INTER_REPOedge kind - Interprocedural dataflow (taint/reach across callgraph)
- VSCode extension (inline role annotations)
- Interactive web dashboard (Cytoscape.js / D3-force)
- Plugin / rule registry for third-party rule families
Long-Term Plan: v1.0.0
Theme: Public API freeze and production hardening
- Stable public API freeze (semver-guaranteed stability)
- Keep the template render location normalized at
projects/working/cogant/ - Stubgen-based .pyi auto-generation with CI drift check
- Current schema contract validation across CLI, Python API, and generated bundles
- Distributed / parallel file processing (Ray or ProcessPoolExecutor)
- Native PyG/DGL adapters and a pre-trained node encoder from Parquet bundles
Known Limitations (current)
| Limitation | Workaround | Target Fix |
|---|---|---|
| Java, Rust, C/C++ parsers missing | Manual annotation or JS/TS fallback | v0.6.x |
| Static analysis only (no runtime traces) | Use incremental mode with coverage data as proxy | v0.7.x |
| Single-repo analysis only | Run separately per repo, merge Parquet exports | v0.7.x |
| Dulwich edge-density regression risk at ~1.8 e/n ratio | Keep Dulwich-class benchmark in perf gates; use incremental mode for repeated local runs | Ongoing |
.git/index.lock immutable in some sandbox environments |
Use GIT_INDEX_FILE env var plumbing workaround |
Infrastructure |
mypy --strict possible drift on new modules |
Run make type-check before every commit |
Ongoing |
Quality Bar
| Metric | Current | v0.6.x Target | v1.0 Target |
|---|---|---|---|
| Tests passing | see evaluation/METRICS.yaml and live uv run pytest tests/ -q output |
grow fixture/corpus coverage | comprehensive release suite |
| Coverage | see pyproject.toml, evaluation/METRICS.yaml, and live uv run pytest tests/ -q --cov=py/cogant output |
meet or raise the package gate | stable release gate |
| mypy errors | see evaluation/METRICS.yaml (mypy_strict_errors) |
0 | 0 |
| Ruff violations | see evaluation/METRICS.yaml (ruff_violations) |
0 | 0 |
| Native roundtrip role preservation | Current native ledger: 24/24 ROLE_PRESERVED, 0/24 DRIFT, 0 non-native rows; strict structural isomorphism 0/24 | Add held-out fixtures and Java corpus | 1.0 on refreshed all-language corpus |
| AII validator score | 100/100 (all fixtures) | 100/100 | 100/100 |
| Real-world repos passing | see latest run_all.py summary |
expand pinned corpus | broad release corpus |