CHANGELOG
All notable changes to COGANT are documented in this file. Format follows Keep a Changelog.
[Unreleased]
Changed
- The optional GNN integration now pins the exact published v5.0.3 source commit
(
8f293d9ba810e6eda5c09842d9c7ed9ffa5f92c1) instead of the v5.0.1 commit, anduv.lockmirrors the new revision. Installed-source identity, the bridge version, and the upstream single-file validators were re-established against the new pin;docs/evaluation/gnn_v5_0_3_compatibility.jsonrecords the collected identity, validator and per-step results for it, and the earlier v5.0.1 receipt and the 4.1.0 results remain dated history.
[0.8.0] - 2026-10-27
Added
- Analytic fixed-policy log-preference sensitivity in the shared categorical kernel, parsed GNN matrix interface, and generated standalone Python, checked against central differences and independent numerical controls.
- A primary-source DiffProg review separating operation graphs, discrete control, and model-objective derivatives, with bounded further research proposals.
- Source-bound
cogant inferexecution, immutable traces, canonical replay admission, batch inference, and native posterior/prediction/policy/VFE figures. - Explicit finite generative-model declarations, immutable A/B/C/D compilation,
coefficient and source-identity verification, and a runtime handoff that copies
the compiled matrices.
cogant finite compileandcogant finite verifyexpose the interface with total-kernel validation and a dense-allocation budget. - Toggle and partially observed counter examples, independent Python reference traces, normalization-preserving corruption controls, and public typing checks.
- A source-pinned Handwired review and manuscript discussion distinguishing explicit construction, executor agreement, and application-level evidence.
Changed
- Align the aggregate gate's full-suite timeout with the metrics collector so a real suite run can complete on a shared workstation.
- Refresh the locked certifi trust bundle to a patched release for GHSA-6q48-6c7w-9gw2; retain before/after dependency-scan evidence.
- The optional GNN integration now pins the exact published v5.0.1 source commit
(
e54813b4197df36f7ae0054d5e79f3ad2d5db0ff) instead of a 4.1.0 development commit. A fresh compatibility receipt retains standard/strict validation, selected-step outcomes, and the unscanned supply-chain lane separately. - Installed-upstream tests compare source identity and metadata to the lock, rather than assuming a fixed supported major release.
Corrected
- A/C matrix rows follow the compiled observation channels and their order, preserving multi-node mappings and deduplication instead of counting mappings as channels. A real Click export exposed the previous dimension disagreement.
- SQLite coverage ingestion closes connections and cursors on successful reads, schema refusals, and database errors, preserving its empty-result contract.
- Shared categorical filtering and risk-plus-ambiguity policy scoring across runtime, simulation, package runner, and generated standalone matrix modules. Filtering VFE uses the incoming prior; complete matrix fences preserve exported coefficients and axes without projection.
-
The runner requires real complete GNN matrices and reports executed records and measured total profiling time. Empty-model proxies and fabricated rewards are retired.
-
Current incremental documentation now describes unchanged-snapshot cache reuse and full-snapshot analysis after source changes. Historical timing records remain separate from current performance claims.
- Manuscript state axes distinguish declared complete states from graph-derived variable nodes; unmeasured end-to-end Rust timing predictions are withdrawn.
- New package tests and examples are visible to Git while generated output remains ignored. CLI routing and current strict-type-checking guidance are synchronized.
Removed
- Root review logs, flat configuration migration adapters, parser registry aliases, renderer aliases, and the fixed-matrix inference demonstration interface.
[0.7.0] - 2026-10-14
Changed — upstream Generalized_Notation_Notation 4.1.0
- Optional
upstreamextra pinned to GNN 4.1.0 (main@46459949, 13 commits past thev4.1.0tag9255e19f; previously v2.0.011a89f06). GNN >= 4.0 ships the top-levelgnnpackage; the bridge imports it directly, gates on distribution version >= 4.0 and ongnnbeing owned bygeneralized-notation-notation, and routes the renamed validators (validate_gnn_syntax,validate_gnn_source,check_gnn_file_structure). - 25-step pass drives one
python -m gnn.main --only-steps …invocation (GNN 4.x binds selection, source identity and output ownership to one run) and reads per-step outcomes from00_pipeline_summary/pipeline_execution_summary.json. Requested steps upstream never reached areNOT_RUN, stale summaries are ignored, timeouts/crashes are reported per step, the skip set is passed explicitly (--skip-steps) so skipped steps cannot be auto-included as prerequisites, and prerequisites upstream does add are reported inUpstreamPipelineResult.auto_included. Only GNN markdown is staged as the upstream corpus. - Default skip set is now
{1, 2, 11, 12}(was{11, 12}): from an installed wheel, upstream1_setupcreated a stray.venvin the caller's environment and itsuv syncrepair uninstalled the extra;2_testsneeds the upstream checkout. All call sites shareDEFAULT_SKIP_STEPS;skip_llmalso skips step 13. - Emitted
model.gnn.mdis upstream-valid under GNN 4.1.0 (standardandstrict; upstream steps 3/5/6 and the default 20-step selection succeed): grouped multi-source connections(A_m0, s_f0)>o_m0, row-layout A/B literals, column-stochastic A (no all-zero likelihood columns), and a declaredGnode whenever connections route into it. tools/gnn_v2_audit_surface.py→tools/gnn_upstream_audit_surface.py: expectations come from the pyproject pin anduv.lock;--collectbuilds a reproducible audit directory (version probe, translation, single-file validation, default upstream selection, pip-audit). Recorded 2026-10-14: all lanes PASS (docs/evaluation/GNN_UPSTREAM_AUDIT_SURFACE.md).
Changed — dependencies, toolchain and CI
- Python lock refreshed (
uv lock --upgrade, ~95 packages: mypy 2.4, ruff 0.17, rich 15, pyarrow 26, typer 0.27, pydantic 2.14, fastapi 0.143, starlette 1.8, tree-sitter 0.26, matplotlib 3.11, …); dependency floors track the tested versions. - ruff uses an explicit
selectlist: ruff 0.17 broadened its default rule set (171 → 446 rules), which would otherwise silently change the lint contract. httpxmoved from core runtime dependencies (no package module imports it) to the test extras alongsidehttpx2(Starlette's preferredTestClientbackend); placeholderpytest-anyioremoved. Newserverextra (uvicorn[standard]) used by the Docker image.- Python 3.14 supported (classifier, CI matrix, badge); the full suite passes on 3.14.6.
- Rust workspace: PyO3 0.22 → 0.29, petgraph 0.8, thiserror 2, uuid 1.28, edition 2024;
unused workspace dependencies removed;
cogant._rustAPI unchanged. - GitHub Actions on current majors (checkout v7, setup-python v7, setup-uv v10.3.0, cache v6,
upload-artifact v7, Pages actions), least-privilege
permissions, job timeouts; pre-commit hooks ruff-pre-commit v0.17.0 / pre-commit-hooks v6.0.0; themetrics-freshnesshook now actually fires (root-anchored path) and CI skips it (the lint job enforces the gate). - Docker: official pinned uv binary, frozen
--no-dev --extra serversync (the former|| uv syncfallback could ship an image matching no committed lockfile, and the image lacked uvicorn for its ownCMD); new.dockerignore.
Fixed
COGANT_DISABLE_UPSTREAM_GNNwas documented as a kill switch but never read; it now beatsCOGANT_ENABLE_UPSTREAM_GNN(never an explicit caller choice).cogant validate --no-upstream-gnnhelp no longer claims upstream validation runs by default, and--upstream-gnn-skip-steps ""now means "skip nothing" as intranslate/analyze.- Two typing errors surfaced by mypy 2.4 with numpy 2.5 / matplotlib 3.11 stubs.
Changed — compatibility cleanup (since 0.6.0)
- Compatibility cleanup: removed
cogant.viz.png_exportshim; canonical PNG API iscogant.viz.pngwith direct submodule imports inviz/png/orchestrator.py. ProgramGraphexports only fromcogant.schemas.graph(no import fallback chain).- Drift analyzer reads top-level
graph/state_space/mappingsonly (dropped nestedstage_resultsbundle layouts). - Config docs distinguish composable
pipeline.PipelineConfigfrom YAMLschema.PipelineConfig.
Removed
scripts/split_png_export.pyandscripts/split_cli_main.py(wave-3 mechanical split debris); CI guardtests/unit/test_no_mechanical_split_scripts.py.
Added
tests/unit/test_viz_png_degraded_paths.py(renamed fromtest_viz_png_export_fallbacks).
[0.6.0] - 2026-05-18
Changed
- Version bumped to 0.6.0 (
cogant.__version__);manuscript/config.yamlaligned to 0.6.0.
Fixed (audit-driven fidelity pass, 2026-05-18)
- Canonical metrics regenerated from a clean full
uv run pytest tests/ --cov=py/cogantrun: line coverage 94.98% (28016/29498 statements). The previously advertised 97.14% was carried from an out-of-synccoverage.jsonwhose statement denominator (26986) predated codebase growth; it was above the 89% CI gate so no build broke, but the advertised figure was inaccurate. Test counts re-verified unchanged: 9561 passing / 0 failing / 52 skipped (9613 collected). GNNBundlede-duplicated incogant.__all__.- Documentation accuracy corrections:
py/cogant/graph/AGENTS.md(finalize()/queries.py),py/cogant/gnn/AGENTS.md(formatter/package; 16 required files),py/cogant/viz/AGENTS.md(21 viz modules incl.ablation_view.py),py/cogant/README.mdusage imports,cogant-storechecksum doc-comment (SipHash viaDefaultHasher, not SHA256), and the manuscript's27 on-disk filesclaim corrected to the 16 requiredgnn_package/files plus generated assets. - Manuscript factual corrections: PyO3/GIL statement (calls are synchronous and hold
the GIL; no GIL release is implemented), and the matrix-mass defaults attributed to
the real module-level
_DEFAULT_DIRECT_MASS/_normalize_rowsymbols. - Out-of-date
projects_in_progress/cogantpath references corrected toprojects/working/cogantacross active docs, scripts, and tooling. - Generated the missing
output/claim_ledger.mdsnapshot referenced bymanuscript/S06_appendix_source_references.md(manuscript link checker now clean).
[0.5.1] - 2026-05-09
Added (wave-21, 2026-05-09)
- 242 new tests across 4 new test files (wave-21 sweep) targeting thin
coverage in
viz/export_view.py,viz/network_view.py,viz/flow.py,viz/matrix_view.py,observability/logging.py,ingest/manifest.py,config/loaders.py,cli/main.py,viz/pdf_export.py, andgnn/upstream_bridge; overall coverage rises from 95.11% to 96.22% (9,222 passing, 9,253 total). - Comprehensive calibration guide at
docs/reference/calibration_guide.mddocumenting the four-tier confidence model, threshold registry across alltranslate/andstatespace/source files, calibration methodology, and all 36TODO(calibration)markers. - Expanded
translate/confidence.pymodule docstring (~215 lines) covering the full public API surface, threshold tables, and an end-to-end walk-through ofcompute_confidence_score().
Added (wave-20 + wave-20b, 2026-05-09)
- ~1150 new tests across 44 new test files (wave-20 + wave-20b sweep)
targeting previously thin coverage in
process/,statespace/,normalize/,validate/,gnn/,config/,viz/,markov/, andobservability/; overall coverage rises from 90% to 95.1%. __all__export list oncogant.metricsfor predictablefrom cogant.metrics import *behaviour and clearer public API.- Honoured
set_entry_stage()override onProcessExtractor— the value is now stored on_forced_entry_stage_idand consumed by_find_entry_stage()on the nextextract()call. Previously the setter logged but never altered the resultingProcessModel.
Fixed
find_cyclesdirected-graph correctness ingraph/builder.py: cycle detection now walks the directed adjacency (out-edges only) instead of the undirected neighbour set, eliminating spurious "cycles" reported for every single directed edge.AttributeErrorinstatespace/temporal.py: callers that asked forcompute_critical_pathnow resolve to the canonicalget_critical_path(the older method was renamed and the one remaining call site was missed).process/extractor.py_find_entry_stage/_find_exit_stages: the two helpers were operating on swapped sets — entry was returning exit stages and vice versa. Both now use the correcttarget_stage_id(incoming) /source_stage_id(outgoing) sets matching their docstrings.process/policies.py_extract_branches_for_nodenow restricts the branch table to control-flow edge kinds (CALLS/TRIGGERS) and drops self-loops, so incidentalCONTAINS/READSedges no longer pollute the branching policy output.- Broken doc link in
docs/playground.md.
Changed
- Performance of
validate/integrity.pylifted from O(V³) to O(V+E) by replacing the per-node scan with a precomputed adjacency view. process/extractor.py::_infer_triggernow takes a typedEdgeparameter instead ofAny;Anyimport dropped from the module.normalize/canonical.py::_extract_python_metadatano longer re-copies thedecoratorsfield; the common-field pass already handles it (purely cosmetic — values were identical, just clarifies intent).statespace/variables.py::compute_dimensionalitydocstring now documents the heuristic2**kcontinuous-variable contribution as a coarse two-bin discretization rather than implying it is exact.
Internal
- Narrowed bare
except Exceptionclauses inconfig/loaders.py(nowexcept (OSError, ValueError, yaml.YAMLError)) and ingnn/matrices.py(nowexcept (ValueError, IndexError, TypeError)). gnn/json_export.py:datetime.utcnow()→datetime.now(UTC)(deprecation fix).- Test isolation fix in
TestMarkovBlanketExceptionPath: patchGNNJSONExporter._export_markov_blanket.__globals__["MarkovBlanketExtractor"]directly so the monkeypatch survives any prior-test module-reload ordering. - Coverage lifted from 90.0% to 95.1% on
py/cogant/.
[Unreleased]
Added
- Measured-ablation visualization (
cogant.viz.ablation_view.render_ablation_png). New deterministic two-panel figure (rule-family net deltas + fixpoint convergence) rendered from theablationblock ofevaluation/METRICS.yaml. Exported fromcogant.viz(with.pyiparity), wired intotools/manuscript_figures.pyascogant_rule_family_ablation.png(curated copy + synthesized.figure.jsonsidecar; strict figure-copy passes at 14 figures, 0 missing, 0 metadata failures), and referenced frommanuscript/09_ablation.mdas@fig:cogant-rule-family-ablation. No-mocks tests intests/unit/test_viz_ablation.py(valid-PNG, byte-determinism, real shipped METRICS.yaml). Closes the gap where iteration-2 produced measured ablation data but no figure visualized it.
Fixed
manuscript/09_ablation.mdrequests_libmatrix-fallback A-rows was a wrong hardcoded literal. The cell read30 / 36whileablation.matrix_fallback.requests_lib.a_rows_uniforminMETRICS.yamlis32.requests_libwas the only matrix-fallback row left fully hand-maintained; it is now tokenized ({{ABLATION_REQUESTS_LIB_A_ROWS_UNIFORM/_TOTAL}}registered intools/manuscript_vars.py, alongside the pre-existing C-entries tokens) so it can no longer drift.manuscript/98_notation_supplement.mdundercountedMappingKind. It called the formal \(\mathcal{K}_M\) list "Full ... (11 kinds)" while the codeMappingKindenum incogant.schemas.semantichas 14 members. Reworded to distinguish the 11-kind formal alphabet from the 14-member code enum, explicitly naming the three non-formal implementation kinds (CONTROL_FLOW,RETRY_PATTERN,FEATURE_FLAG).cogant.yamlpipeline.stagesused invalid stage names. It listedsemantic_mapping,state_space,process_modeland omittedstaticanddynamic; the pipeline runner dispatch table only recognizesingest, static, normalize, graph, dynamic, translate, statespace, process, export, validate. A realcogant translate --config cogant.yamlwould have silently skipped translate/statespace/process with "Unknown stage" errors and exited 0. Stage list and the explanatory comment block corrected to the real keys/order.
Added (iteration 2)
- Ablation regeneration harness (
tools/regenerate_ablation.py). Runs the live ingest→…→translate pipeline on the 6 packaged fixtures and re-runsTranslationEngine.translate(graph, rule_filter=…)with each of the 5 rule families withheld, plus a fixpoint-cap axis (K∈{1,2,5,10}) and a matrix-fallback axis (uniform-A / identity-B / zero-C / uniform-D counts). Merges a measuredablation:block intoevaluation/METRICS.yaml(additive; canonical header and all existing keys preserved) and is wired as a step inregenerate_metrics.py. Deterministic; no-mocks test (tests/test_regenerate_ablation.py) including a positive control that provesrule_filtergenuinely restricts the rule set. Rule-family, fixpoint, and matrix-fallback tables inmanuscript/09_ablation.mdnow resolve from{{ABLATION_*}}placeholders — closes the open ablation-regeneration backlog item (manuscript ablation numbers are no longer hand-edited).
Erratum
manuscript/09_ablation.mdrule-family ablation numbers were hand-reconstructed and materially inaccurate. Replacing them with measured values from the new harness corrected, on theflask_appfixture: control family −5 CONTEXT → measured net Δ 0; behavioural family ≈−2 POLICY/−1 CONSTRAINT → measured net Δ 0; and oncalculatorthe semantic family −9 → measured Δ 10. Root cause: the prior text estimated each family's standalone role count instead of the net mapping delta under the conflict resolver (a node whose top rule is withheld is re-won by a retained rule, so an emitting family can show zero net delta). Impact assessed: no abstract/introduction/conclusion or other section depended on the corrected figures (verified by cross-section grep), so this is a numeric/finding correction local to §9. The §9 table and prose were rewritten to be measurement-driven;S02_appendix_ablation.md(still hand-reconstructed forzoo/01) is now explicitly flagged as containing unverified estimates pending harness extension.
Fixed
- Graph stage emitted zero IMPORTS edges for Python modules. In
api/orchestration.py::run_graphthe IMPORTS block readimp.module/imp.name, which do not exist onstatic.parser.ImportDef(real fields:module_name,is_relative,names). The expression was alwaysNone, so the loop alwayscontinued and no IMPORTS edge was ever added despite the docstring promising them. Now readsmodule_namewith anames[0]fallback and strips leading dots sofrom . import xrelative imports resolve. Added two no-mocks tests intests/unit/test_api_orchestration_stage_functions.pycovering plain, dotted,from … import, relative, external (no edge), and self-import (no edge) shapes. (TODO §5 — graph normalization, imports.) run_all.pyexited 0 even when every target failed.main()ended with an unconditionalreturn 0; without--fail-fast, a fully-failed sweep was indistinguishable from success by exit code, so CI/run.shcallers could not detect a failed batch.failuresis now hoisted above thetryandmain()returns1 if failures else 0. Regression guarded bytests/test_run_all_exit_code.py(no-mocks: real dry-run subprocess + source-AST invariant). (TODO §7 — promotion/CI readiness.)- Manuscript module references corrected to match the code.
02_04statespace/matrices.py→gnn/matrices.pyandvalidate/validator.py→gnn/validator.py;S04attributed the VFE/EFE loop to a non-existentcogant.process.evaluate_policies— now points atvariational_free_energy/expected_free_energyincogant.simulate.free_energyandGNNModelRunner._evaluate_policies(cogant.gnn.runner), consistent with the conclusion. GNN canonical section count corrected18→19in03and06_03to matchgnn.validator.GNNValidator.CANONICAL_SECTIONS(19 entries).
Changed
- Remote
run_alltargets pinned to immutable release tags for reproducible shallow clones (TODO §3, §7).remote_itsdangerous(2.2.0) andremote_markupsafe(2.1.5) no longer clone a moving default branch;remote_click(8.1.7, ~10 KLOC BSD-3 — a genuine medium real repository) promoted from the example block to an active target. Theextra_remote_targets_exampleentries now model the pinned-git_refpattern instead of the non-reproduciblenulldefault.
Added
- Batch dashboard for
run_allsweeps — newcogant.viz.batch_dashboard.BatchDashboardGeneratorconsolidates the per-target outputs of a staging-rootrun_allsweep into a singleoutput/dashboard/directory with:summary.csv,metrics_per_target.json, three Mermaid charts (node_count_bar.mmd,edge_count_bar.mmd,score_distribution.mmd), a Mermaid Gantt of recorded command timings (run_gantt.mmd), and a cross-linked Markdown report (dashboard.md). Pure-stdlib; works under the minimal install profile. Exposed via the staging-rootscripts/batch_dashboard.pyorchestrator and wired intorun_all.pyas thesteps.batch_dashboardpost-batch step (on by default).BatchDashboardGenerator,TargetMetrics, andwrite_batch_dashboardare re-exported fromcogant.viz. Covered bytests/unit/test_batch_dashboard.py(25 tests, strict no-mocks). - Configurable upstream GNN 25-step pipeline pass — new
cogant.gnn.upstream_bridge.pipelinemodule drivessrc.main.execute_pipeline_stepover the producedgnn_package/. Surfaces:UPSTREAM_STEP_SCRIPTS(canonical ordering of0_template.py…24_intelligent_analysis.py),DEFAULT_SKIP_STEPS = {11, 12},resolve_steps(),UpstreamPipelineConfig/UpstreamStepResult/UpstreamPipelineResultdataclasses, andrun_upstream_pipeline(). Wired throughPipelineConfig.upstream_gnn_pipelineand exposed onanalyze,translate,validatevia--upstream-gnn-pipelineplus--upstream-gnn-only-steps,--upstream-gnn-skip-steps,--upstream-gnn-frameworks,--upstream-gnn-llm-model, and--upstream-gnn-output-dir. New top-levelcogant upstream-gnn <package_dir>command re-runs the pass against an existing bundle. Render (step 11) and Execute (step 12) are skipped by default — those are framework-specific PyMDP/RxInfer/JAX/DisCoPy code-gen and simulation steps; opt in by clearing--upstream-gnn-skip-steps ""or by listing them in--upstream-gnn-only-steps. Per-step results are recorded underbundle.artifacts['upstream_pipeline_steps']/['upstream_pipeline_summary']and serialized to<output_dir>/upstream_pipeline/upstream_pipeline_summary.json. Failures are advisory — they append warnings to the validate stage but never fail it. Includes 14 unit tests (tests/unit/test_upstream_pipeline_resolution.py) and 5 integration tests (tests/integration/test_upstream_gnn_pipeline.py), with a slow full-pass test gated byCOGANT_RUN_UPSTREAM_PIPELINE=1. - 3 new translation rules (19 → 22 total):
ParameterRule(control family — detects learnable parameters/hyperparameters → CONTEXT),StateMachineRule(behavioral family — detects FSM patterns → POLICY),RateLimiterRule(resilience family — detects rate-limiting patterns → POLICY). Rule breakdown: 5 structural + 5 semantic + 3 control + 4 behavioral + 5 resilience. - Static analysis module (
cogant.static):ComplexityAnalyzer(cyclomatic + cognitive complexity),CouplingAnalyzer(Martin metrics: Ca/Ce/instability/distance-from-main-sequence),DeadCodeDetector(unused imports/functions/unreachable code with confidence scores),MetricsAnalyzer(LOC, Halstead metrics). - Network/graph analysis (
cogant.graph.analysis):GraphAnalyzerwith centrality (betweenness, PageRank, closeness, degree), community detection (Louvain/component fallback), Tarjan SCC cycle detection, hotspot/source/sink identification.GraphDifffor incremental diffing. - Visualization suite (
cogant.viz):PDFExporter(8-page analysis reports),MatrixVisualizer(A/B/C/D heatmaps),PipelineVisualizer(10-stage timing + Mermaid),FlowDiagrammer(CFG/call graph/dependency graph → PNG/PDF/Mermaid),StaticAnalysisView,NetworkView,ExportView. - Export formats (
cogant.export):SVGExporter(graphviz DOT),JSONSchemaExporter(draft-7 schemas for all output types),MultiFormatExporterwithExportFormatenum (9 formats: JSON, GRAPHML, PARQUET, SVG, PNG, PDF, MERMAID, DOT, JSONLINES). - Type infrastructure: 14
@runtime_checkableProtocol classes (Translatable,Analyzable,Serializable,Visualizable,Validatable,Exportable,PipelineStage,TranslationRule,GraphBackend,Exportable2,DiagramRenderer,NetworkAnalyzer,ReportGenerator,StaticAnalyzer), 15TypedDicts,SemanticRole/RuleFamily/FixpointStatusLiteral types. 231.pyistubs covering all public modules. - API improvements (
cogant.server,cogant.api): 5 new REST endpoints (GET /api/v1/rules,POST /api/v1/analyze,POST /api/v1/roundtrip,POST /api/v1/visualize,GET /api/v1/metrics), WebSocket streaming (WS /ws/translate),PipelineResultdataclass,SessionManager,translate_batch(). - Translation engine enhancements:
TranslationEngine.explain(),validate(),get_convergence_info();RuleExplanation.confidence: floatandcontradictions: list[str]; improved heuristics for all 5 rule families;to_gnn_role()on semantic rules. - Round-trip enhancements:
PackagePlan.validate(),diff(),to_json()/from_json();synthesize_with_validation()withast.parsecheck;IdempotencyReportdataclass;MatrixSet.validate(). - Runtime/statespace/markov enhancements:
AgentRuntime.run_episode_with_logging(),benchmark(),reset(),get_free_energy(), serialization;DegradedOutputnamedtuple;MarkovBlanket.validate(),to_mermaid(),merge(),get_sensory_states(),get_active_states(). - 4 new CLI entry points (preview stubs):
cogant analyze-static,cogant analyze-graph,cogant visualize,cogant export— registered in Typer but currently print guidance to use the Python API (cogant.static,cogant.graph.analysis,cogant.viz,cogant.export); full orchestration wiring is tracked on the roadmap. - Comprehensive test suite expansion: 14 new test files (10 unit + 4 integration), ~6,600 lines covering all new modules. Property tests for rule determinism, roundtrip stability, matrix dimension consistency.
cogant.metricspublic API:get_metrics()/get_metric(key)backed byevaluation/METRICS.yaml(41f96de).pyitype stubs for all public API modules +py.typedmarker (58c5fe1)- Complete JS/TS tree-sitter parser: arrow functions, async, generics, interfaces, decorators (25640ae)
- Rust PyO3
connected_componentsFFI;COGANT_USE_RUST=1feature flag (598945d)
Fixed
- Viz
cogant.viz.pngtests guarded behindpytest.importorskip(matplotlib); addnumpyandpytest-covas dev deps (905c2da) - Relax JS hidden-state assertion in cross-language differential test (4aa2710)
- Ruff UP038 autofix: union-type annotations; remove unsupported
xfailmark (cea55d9)
Changed
evaluation/METRICS.yamlpromoted to canonical source of truth for test count, coverage, and roundtrip metrics (41f96de)- All public API modules receive Google-style docstrings and explicit
__all__exports (a621b0a)
Tests
- Comprehensive CLI subcommand coverage tests for
cogant/cli/main.py(98f7798)
Internal
- Scaffolding stubs filled in
docs/,examples/,tests/, andevaluation/subdirectories (c6a5b7b) - Manuscript variable registry, inject and audit scripts; number audit report (c8c4749)
[0.5.0] - 2026-04-10
Added
- Incremental analysis mode:
cogant translate --incremental <git-ref>/PipelineConfig.incremental_since— 19.6× no-change speedup, 5.6× single-file speedup on Flask benchmark - Multi-episode Bayesian learning:
AgentRuntime.run_multi_episode,run_episode,update_D_from_posterior,update_A_from_counts - Production FastAPI server:
cogant.server.appwith/healthand/translateendpoints, integration test suite - Dockerfile (python:3.12-slim + uv,
EXPOSE 8080, curl healthcheck) and docker-compose.yml cogant doctorextended: tree-sitter grammar checks, uv lockfile parity, optional-dep auditcogant init <path>: scaffold helpers forcogant.yaml, source stub,pyproject.toml- Tutorial notebooks 07–12: Flask walkthrough, constraints, plugins, YAML DSL, multi-episode learning, cross-language roundtrip
- Cross-language roundtrip claim: JS Observer (
examples/zoo/13_js_observer) → GNN → AI cycle,role_preservation_score=1.0 - POLICY/CONTEXT stub emission in synthesizer:
decide_*/get_context_*stubs proportional to origin GNN role counts - Scaling regression tests: guards for B-tensor, BFS, AST cache, INHERITS edge deduplification at dulwich edge density
- Benchmark dashboard:
evaluation/dashboards/benchmarks.html(Chart.js, self-contained) - Comprehensive docstring pass + mkdocs nav update + getting started guide
- Manuscript appendices A–E: Galois proofs, GNN compliance audit, ε derivation, scaling analysis, cross-language extension; 40+ new citations
Fixed
- tree-sitter JS grammar fallback for
.tsfiles prevents hard parse failure on mixed JS/TS repos (10c87ea) - Loosen
parse_ts_filetest assertion to accommodate JS grammar fallback path (bf386b5)
Changed
pyproject.tomldep updates + uv.lock sync (fbd8d39)
Roundtrip role preservation
- Current release evidence uses the native v0.6 ledger: 24 targets, 22
role-preserved, 2 drift, 0 failed, and 0 strict structural isomorphism. Each
row carries
role_preservation_scoreand invariant status fields.
[0.4.0] - 2026-04-10
Added
- CONSTRAINT synthesizer: proportional
check_*stubs — variable-count assertion scaffolding matching origin GNN role counts (was fixed 3-4 stubs) - Empirical claim extended: full 10-step Active Inference cycles on zoo/02_observer, zoo/04_pomdp_minimal, zoo/06_hierarchical
- mypy strict: 0 errors across 177 source files (was 163 at v0.3.0 start)
- Coverage: 81% total (was 76% at v0.3.0)
- tree-sitter multi-language parser: JS/TS + Python fallback
- Tutorial notebooks: 6 Jupyter notebooks (01-06)
- Interactive playground: single-file HTML with cytoscape.js + CodeMirror
- mkdocs-material docs site + GitHub Pages workflow
- ROUNDTRIP_EVAL.md: 23-target roundtrip ε evaluation — now 19/23 ISOMORPHIC (83%) after CONSTRAINT fix
Fixed
- CONSTRAINT role collapse:
cnst_prefix not detected by forward pipeline's PreferenceRule → now emitscheck_prefix proportional to origin count - model_name default lowercased:
CogantModel→cogant_model(law7 property enforcement) - MatrixFunctions public/private split: AgentRuntime now reads A/B/C/D correctly
- Parser ontology fallback: non-standard variable names (s_hidden, o_sensor) now classified via ActInfOntologyAnnotation
Improved
- Roundtrip ε: 14/23 ISOMORPHIC (61%) → 19/23 ISOMORPHIC (83%) after CONSTRAINT fix
- Real-world eval: 8/8 repos pass forward pipeline
- Type annotations: 50+ modules updated to modern Python typing (Counter[str], list[T])
Performance
- Dulwich scaling cliff documented: 1.80 e/n ratio → 380s / 8.5 GB (known issue, wave 15 target)
[0.2.0] - 2026-04-09
Added
Reverse Pipeline (GNN to Code)
- cogant.reverse subpackage: GNN markdown parser, package planner, Python synthesizer, idempotency checker
- Runtime-callable matrix functions (likelihood, transition, EFE, best_action) without exec
- ISOMORPHISM_THEOREM.md: Galois connection proof + epsilon-bounded roundtrip error formalization
Active Inference Runtime - Active Inference agent loop with step/convergence/VFE metrics - 12-repo Active Inference example zoo with hand-written GNN models for repos 04, 06, 12
Pipeline and Infrastructure
- DAG execution engine with topological sort and cycle detection
- Content-addressed result cache keyed on repo sha256
- Entry-point plugin registry + cogant plugin list/info CLI
- Schema versioning + cogant migrate CLI subcommand
- YAML rule DSL compiled to Python matchers for custom role rules without code
- Structured logging + in-process metrics (Counter, Histogram, span) observability layer
CLI and Ergonomics
- cogant doctor environment check subcommand
- cogant init project scaffolding subcommand
- cogant explain rule-level attribution for AI role assignments
- Progress bars, better error messages, rich --help
- Composable pydantic config system
Documentation - 16 mkdocs-material documentation sections with tutorials and API reference - 6 deep concept explainers (GNN, Active Inference, Markov blankets, roles, roundtrip, program graphs) - 20 cookbook recipes (scan, reverse, CI, custom rules, dataset export) - 35 honest Q&A FAQ covering accuracy, limitations, and roadmap - 83+ annotated bibliography entries across 14 themes - 6 Jupyter tutorial notebooks - FastAPI demo server - BENCHMARK_VS_PRIOR.md comparing COGANT vs tree-sitter, pyan, LLM-only, and manual approaches - CALIBRATION.md with per-rule confidence scores and inline justifications
Testing and Quality - Hypothesis property tests for 7 COGANT correctness laws - Mutation testing report + targeted hardening tests - End-to-end pipeline, CLI, and roundtrip integration tests - ML dataset v0.1: 6 fixtures with node-level role labels (HuggingFace-style card) - Reproducible 6-fixture benchmark harness with stage timing + memory + GNN stats
Multi-Language - Tree-sitter multi-language substrate with JS/TS parsers - Git-diff incremental analysis mode
Theory and Rigor - Qualitative AI role validation tests + ACTIVE_INFERENCE_MAPPING.md - GNN spec compliance: 3 AII non-conformances found and fixed - Real-world evaluation on 8 open-source Python repositories
Changed
- Complete README rewrite for current feature set
- Docstring audit and type annotation hygiene across all modules
- Test suite: 1300+ tests, 0 failures (skips for optional deps only)
- py.typed marker added (PEP 561 compliance)
- RuleExplanation model + per-rule
.explain()with calibration docstrings - GitHub Actions matrix CI + perf smoke + CODEOWNERS + PR template
Fixed
- Resolved 6 reverse-module test failures
- ActionRule: extended with encode/decode/dump/load keywords + >=2 WRITES edge fallback
- SemanticMapping export:
mapping.kind.value(was incorrect attribute access) - PNG tests: matplotlib-dependent tests properly skipped when
cogant[viz]not installed - GNN upstream formatter: DiscreteTime token split, bare variable names in connections
- CI workflows: moved
.github/to git root so GitHub Actions discovers workflows - Event pipeline roundtrip xfail documented (47.6% role match -- known synthesizer limitation)
[0.1.0] - 2026-04-08
Initial R&D release: forward pipeline (ingest -> static -> normalize -> graph -> translate -> export), 12 translation rules, 7 semantic roles, Markov blanket partition.