Changelog
Canontra follows Keep a Changelog and the Haskell Package Versioning Policy (PVP).
[0.4.0.0] (2026-12-01)
Section titled “[0.4.0.0] (2026-12-01)”Ultra-Low Latency Pipeline, Hardened Accuracy & Stateless AI Harness (canontra snap, Alpha)
Section titled “Ultra-Low Latency Pipeline, Hardened Accuracy & Stateless AI Harness (canontra snap, Alpha)”- Stateless AI Harness Sub-Versioning (
Canontra.Harness.{Store,SubVersion,Guard},canontra snap, Alpha):- Added
schema_version: "0.1-alpha"(stability: "alpha") subcommandsinit,mark,diff,guard,rewind,log,gcbacked by.canontra/snaps/(HEAD,ledger.jsonl,objects/,manifests/, auto-created.canontra/.gitignore) with zero daemons, zero IPC, and zero.gitmutation. - Added 4 turn-level classifications (
no_change,semantic_noop,internal_logic,contract_change),--forbid/--allow-pathsguard rules, and preflight SHA-256 (readVerifiedBlob) + path-containment (isSafeSnapId,isSafeRelativeFilePath,canonicalizeSafePath) rollback safety.
- Added
CNTR\x07Incremental Binary Slab Cache (Canontra.Cache.SlabV7):- Stores 9-tier
FingerprintBundledigests and compact binaryFileGraphSummaryrecords inside 4KB CRC-32C protected slab pages (with multi-page spanning), enabling summary-backedbuildWholeRepoCallGraphFromSummaries(112.9 us) andbuildWholeRepoDataFlowFromSummaries(65.6 us) without re-parsing unchanged source files. - Added transparent read support for
CNTR\x06andCNTR\x05caches (readAnySlabCacheForV7).
- Stores 9-tier
- Single-Pass Pipeline Fusion & Algorithmic Speedups:
- Added
CanonicalProgram/toCanonicalProgram(Canontra.Normalize.Normalize) and fused single-pass hashing (Canontra.Fingerprint.Bundle). - Replaced quadratic
Data.List.nubhotspots inWholeRepoGraphandTypeContractwithSet/IntMapstructures, upgradedChaseLevDeque(Canontra.Repository.Parallel) to mutableMV.IOVectorcircular buffers, and upgraded polyglot lexers (Python,FastPython,JS,Go,Rust) to ByteString/SIMD scanning.
- Added
- Semantic & Type-Contract Accuracy Hardening:
- Added exact ABI scalar widths,
Mutability, and orderedTypeTupletoF_T. - Added
containsFloatOperandIEEE-754 non-associativity guards andisNonTrappingPureExprtrapping/short-circuit guards toCanontra.Normalize.Algebraic. - Added language-specific scoping (
canonicalizeAlphaModuleForLang) for Rust sequentialletshadowing, Go:=redeclaration, JSvarhoisting, and Python LEGB + walrus bindings. - Added Lengauer-Tarjan
computeDominators/computeDominanceFrontiers(CFGCanonical), Go directory package merging and TS/JS barrel resolution (WholeRepoGraph), and compositeF4folding intoF_R.
- Added exact ABI scalar widths,
- Benchmarks & Verification:
- Extended
bench/Bench.hsto159strictNFDatamicrobenchmarks (RQ1toRQ19). - Live 15-repo evaluation (
1,026,521LOC) achieved 4.07× aggregate cold speedup (135.20 sto33.18 s), 9.07× aggregate warm speedup (129.10 sto14.23 s), peak68,030 LOC/s(jinja), and 9.7× to 205.1× speedup vs. CodeQL; expanded automated test suite to795passing tests understack test --pedantic.
- Extended
[0.3.0.0] (2026-10-28)
Section titled “[0.3.0.0] (2026-10-28)”Deep Algebraic Equivalence, -Invariance & CSR-Native CIA 2.0
Section titled “Deep Algebraic Equivalence, α\alphaα-Invariance & CSR-Native CIA 2.0”- Scope-Aware Bound Lexical -Canonicalization (
Canontra.Normalize.Alpha): Rewrote bound local variables, loop binders, comprehension iterators, lambda arguments,try/except, andwithbindings to@v<depth>.<ordinal>inF1andF_DFwhile keeping exported API symbols strict inF2andF3. - Commutative & Associative Algebraic Normal Form (
Canontra.Normalize.Algebraic): Purity-guarded (isProvablyPureExpr) associative flattening and hash sorting for+,*,&,|,^,==,!=; relational dual canonicalization (>/>=to</<=); unordered set/dict sorting; double-negation elimination. - CFG Dominator-Tree & RPO Canonicalization (
Canontra.Analysis.CFGCanonical): Branch condition inversion normal form, guard-clause lifting, dead post-terminator pruning, and RPO0..k-1basic block relabeling. - Structural Type Contract (
F_T) Lattice Deepening (Canontra.Analysis.TypeContract): Recursive ANF flattening/sorting of unions and intersections, positional de Bruijn generic params (α0,α1), and structuralTypeRecordfield sorting. - CSR-Native PR Batch Change Impact (
Canontra.Analysis.BatchImpact): Multi-filecanontra impact --pr-base <ref>overCSRGraph.backwardReachabilityConeemitting runnablepytest,jest,go test, andcargo testcommands. - Verification: Expanded automated test suite to over
750passing tests with0warnings understack test --pedantic; added RQ16 and RQ17 benchmarks.
[0.2.0.0] (2026-10-09)
Section titled “[0.2.0.0] (2026-10-09)”Hardened Performance, Precision & Soundness Milestone
Section titled “Hardened Performance, Precision & Soundness Milestone”- Unboxed CSR Graph Engine (
Canontra.Analysis.CSRGraph): ContiguousVector Word32/Word16graph representation reducing memory footprint by >70%, with Tarjan SCC condensation and edge lookup. CNTR\x06Zero-Copy Slab Cache (Canontra.Cache.SlabV6): 64-byte cache-line records, 256-way L1 radix jump table, <500 ns mmap hits, binary CSR persistence, and 4KB CRC-32C page salvage.- 256-Bit SIMD FastScan & Chase-Lev Work-Stealing: Zero-FFI 32 bytes/cycle SWAR scanning and lock-free multi-core work-stealing scheduler (
>= 100,000LOC/s). - Polyglot Grammar Conformance: Python 3.12 (PEP 701, PEP 695, PEP 572), TS 5.2 (
using/await using, regex lookahead), Go 1.21+ (min/max/clear,~T, cyclic structs), Rust 2021 (GAT lifetimes,r#raw idents). - Platform Hardening:
atomicSwapWithRetryfor Windows file locks,FileNodeIdentitysymlink/junction cycle breaking, case-folded path collation, 50 MB / 64-level ceilings, and 618 passing tests.
[0.1.0.0] (2026-09-22)
Section titled “[0.1.0.0] (2026-09-22)”Production Release
Section titled “Production Release”- Unified 9-tier single-file (
F0..F4) and 4-tier whole-repo (F_R,F_WCG,F_WDF,F_W4) manifests. - Full production CLI (
fp,compare,diff,graph,impact,slice,repo,watch,cache,export,verify,completions). - Stdin
-streaming, SARIF v2.1.0 / DOT / JSON outputs, strict POSIX exit codes0to4, and 450+ tests.
[0.0.1-alpha] to [0.0.9-alpha] (2026-08-08 to 2026-09-18)
Section titled “[0.0.1-alpha] to [0.0.9-alpha] (2026-08-08 to 2026-09-18)”0.0.9-alpha: Whole-repo synthesis (F_WCG,F_WDF), CIA slicing,CNTR\x054KB paged cache,watchdaemon,F_T.0.0.8-alpha:HybridIndentStack, Pythonmatch/case, JS/TS ASI, Go generics, Rust trait bounds.0.0.7-alpha: EytzingerCNTR\x03,LinearAST,SwissTable, incremental Merkle DAG.0.0.6-alpha: SWAR 64-bit scanner, fused streaming SHA-256,CNTR\x02.0.0.5-alpha: Direct-to-IR recursive descent parsers withflatparse(-85% parsing latency).0.0.4-alpha: Single-pass traversal fusion and unboxed vectors.0.0.3-alpha: JS/TS, Go, Rust frontends; CFG/DFG; IEEE-754 & Unicode NFC; Tarjan SCC.0.0.2-alpha: Zero-span AST, Python 3.8+, lexical scope & call graph.0.0.1-alpha: Initial pure-Haskell proof of concept (F0..F4,F_R, Python 3).