Repository navigation
Releases
Release v0.2.0
This release upgrades dependencies github/codeql-action/analyze, taiki-e/install-action, actions/checkout, and more, and adds CodeQL static analysis.
Other Changes
- ci(security): add CodeQL static analysis by @Kirky-X in #1
- build(deps): bump github/codeql-action/analyze from 4.37.3 to 4.38.0 by @dependabot[bot] in #2
- build(deps): bump taiki-e/install-action from 2.87.12 to 2.87.14 by @dependabot[bot] in #3
- build(deps): bump actions/checkout from 4.2.2 to 7.0.1 by @dependabot[bot] in #4
- build(deps): bump num-bigint from 0.4.8 to 0.5.1 by @dependabot[bot] in #5
- build(deps): bump github/codeql-action/init from 4.37.3 to 4.38.1 by @dependabot[bot] in #6
- build(deps): bump github/codeql-action/autobuild from 4.37.3 to 4.38.1 by @dependabot[bot] in #7
- build(deps): bump github/codeql-action/init from cee97f86b972a3ded3c58d04148362b193ddc518 to 24c54180a607b1449ed407dd24f251e4e9147c8d by @dependabot[bot] in #24
- build(deps): bump github/codeql-action/autobuild from cee97f86b972a3ded3c58d04148362b193ddc518 to 24c54180a607b1449ed407dd24f251e4e9147c8d by @dependabot[bot] in #23
- build(deps): bump softprops/action-gh-release from e598afbe1493e6b1bafb1f389cabb956eab91231 to efb35369e0ad2afab669f228072c1b0d510eae64 by @dependabot[bot] in #22
- build(deps): bump github/codeql-action/analyze from cee97f86b972a3ded3c58d04148362b193ddc518 to 24c54180a607b1449ed407dd24f251e4e9147c8d by @dependabot[bot] in #21
- build(deps): bump taiki-e/install-action from 2.87.27 to 2.87.28 by @dependabot[bot] in #19
- build(deps): bump github/codeql-action/autobuild from 4.38.3 to 4.39.0 by @dependabot[bot] in #29
- build(deps): bump taiki-e/install-action from 2.87.28 to 2.87.29 by @dependabot[bot] in #30
- build(deps): bump gitleaks/gitleaks-action from 2 to 3 by @dependabot[bot] in #32
- build(deps): bump taiki-e/install-action from 2.87.29 to 2.90.3 by @dependabot[bot] in #38
- build(deps): bump softprops/action-gh-release from 3.0.3 to 3.0.4 by @dependabot[bot] in #44
- build(deps): bump github/codeql-action/autobuild from 8498dc4c2b27cdd99baf0f87955b29ebbf30c78d to 9b3254085494b55a0f7c4c2b3d2d52cc712ce370 by @dependabot[bot] in #43
- build(deps): bump Swatinem/rust-cache from 2.9.2 to 2.9.3 by @dependabot[bot] in #39
- build(deps): bump zizmorcore/zizmor-action from 0.7.1 to 0.8.1 by @dependabot[bot] in #37
- build(deps): bump github/codeql-action/init from 8498dc4c2b27cdd99baf0f87955b29ebbf30c78d to 9b3254085494b55a0f7c4c2b3d2d52cc712ce370 by @dependabot[bot] in #36
Related PRs / Issues
- #1 — add CodeQL static analysis
- #2 — bump github/codeql-action/analyze from 4.37.3 to 4.38.0
- #3 — bump taiki-e/install-action from 2.87.12 to 2.87.14
- #4 — bump actions/checkout from 4.2.2 to 7.0.1
- #5 — bump num-bigint from 0.4.8 to 0.5.1
- #6 — bump github/codeql-action/init from 4.37.3 to 4.38.1
- #7 — bump github/codeql-action/autobuild from 4.37.3 to 4.38.1
- #19 — bump taiki-e/install-action from 2.87.27 to 2.87.28
- #21 — bump github/codeql-action/analyze from cee97f86b972a3ded3c58…
- #22 — bump softprops/action-gh-release from e598afbe1493e6b1bafb1f…
- #23 — bump github/codeql-action/autobuild from cee97f86b972a3ded3c…
- #24 — bump github/codeql-action/init from cee97f86b972a3ded3c58d04…
- #29 — bump github/codeql-action/autobuild from 4.38.3 to 4.39.0
- #30 — bump taiki-e/install-action from 2.87.28 to 2.87.29
- #32 — bump gitleaks/gitleaks-action from 2 to 3
- #36 — bump github/codeql-action/init from 8498dc4c2b27cdd99baf0f87…
- #37 — bump zizmorcore/zizmor-action from 0.7.1 to 0.8.1
- #38 — bump taiki-e/install-action from 2.87.29 to 2.90.3
- #39 — bump Swatinem/rust-cache from 2.9.2 to 2.9.3
- #43 — bump github/codeql-action/autobuild from 8498dc4c2b27cdd99ba…
- #44 — bump softprops/action-gh-release from 3.0.3 to 3.0.4
Full changelog: v0.1.4...v0.2.0
Release v0.2.0-rc.4
This release upgrades dependencies github/codeql-action/autobuild, taiki-e/install-action, and gitleaks/gitleaks-action.
Other Changes
- build(deps): bump github/codeql-action/autobuild from 4.38.3 to 4.39.0 by @dependabot[bot] in #29
- build(deps): bump taiki-e/install-action from 2.87.28 to 2.87.29 by @dependabot[bot] in #30
- build(deps): bump gitleaks/gitleaks-action from 2 to 3 by @dependabot[bot] in #32
Related PRs / Issues
- #29 — bump github/codeql-action/autobuild from 4.38.3 to 4.39.0
- #30 — bump taiki-e/install-action from 2.87.28 to 2.87.29
- #31 — codeql-action init/analyze pinned to 4.39.1 SHA…
- #32 — bump gitleaks/gitleaks-action from 2 to 3
- #33 — codeql-action init/analyze pinned to 4.39.1 SHA…
Full changelog: v0.2.0-rc.3...v0.2.0-rc.4
Release v0.2.0-rc.3
This release upgrades dependencies github/codeql-action/init, github/codeql-action/autobuild, softprops/action-gh-release, and more.
Other Changes
- build(deps): bump github/codeql-action/init from cee97f86b972a3ded3c58d04148362b193ddc518 to 24c54180a607b1449ed407dd24f251e4e9147c8d by @dependabot[bot] in #24
- build(deps): bump github/codeql-action/autobuild from cee97f86b972a3ded3c58d04148362b193ddc518 to 24c54180a607b1449ed407dd24f251e4e9147c8d by @dependabot[bot] in #23
- build(deps): bump softprops/action-gh-release from e598afbe1493e6b1bafb1f389cabb956eab91231 to efb35369e0ad2afab669f228072c1b0d510eae64 by @dependabot[bot] in #22
- build(deps): bump github/codeql-action/analyze from cee97f86b972a3ded3c58d04148362b193ddc518 to 24c54180a607b1449ed407dd24f251e4e9147c8d by @dependabot[bot] in #21
- build(deps): bump taiki-e/install-action from 2.87.27 to 2.87.28 by @dependabot[bot] in #19
Related PRs / Issues
- #19 — bump taiki-e/install-action from 2.87.27 to 2.87.28
- #21 — bump github/codeql-action/analyze from cee97f86b972a3ded3c58…
- #22 — bump softprops/action-gh-release from e598afbe1493e6b1bafb1f…
- #23 — bump github/codeql-action/autobuild from cee97f86b972a3ded3c…
- #24 — bump github/codeql-action/init from cee97f86b972a3ded3c58d04…
Full changelog: v0.2.0-rc.2...v0.2.0-rc.3
Release v0.2.0-rc.2
This release upgrades dependencies github/codeql-action/analyze, taiki-e/install-action, actions/checkout, and more.
Other Changes
- build(deps): bump github/codeql-action/analyze from 4.37.3 to 4.38.0 by @dependabot[bot] in #2
- build(deps): bump taiki-e/install-action from 2.87.12 to 2.87.14 by @dependabot[bot] in #3
- build(deps): bump actions/checkout from 4.2.2 to 7.0.1 by @dependabot[bot] in #4
- build(deps): bump num-bigint from 0.4.8 to 0.5.1 by @dependabot[bot] in #5
- build(deps): bump github/codeql-action/init from 4.37.3 to 4.38.1 by @dependabot[bot] in #6
- build(deps): bump github/codeql-action/autobuild from 4.37.3 to 4.38.1 by @dependabot[bot] in #7
Related PRs / Issues
- #2 — bump github/codeql-action/analyze from 4.37.3 to 4.38.0
- #3 — bump taiki-e/install-action from 2.87.12 to 2.87.14
- #4 — bump actions/checkout from 4.2.2 to 7.0.1
- #5 — bump num-bigint from 0.4.8 to 0.5.1
- #6 — bump github/codeql-action/init from 4.37.3 to 4.38.1
- #7 — bump github/codeql-action/autobuild from 4.37.3 to 4.38.1
Full changelog: v0.2.0-rc.1...v0.2.0-rc.2
Release v0.2.0-rc.1
This release adds CodeQL static analysis.
Other Changes
Related PRs / Issues
- #1 — add CodeQL static analysis
Full changelog: v0.1.4...v0.2.0-rc.1
Release v0.1.4
This version has no substantive code changes; it is a maintenance release: after filtering out version-bump and CI/release automation commits between v0.1.3 and v0.1.4, only one .gitignore maintenance commit remains.
Bug Fixes
- Fix the fmt gate + close the release pipeline loop
Other Changes
- Add
.claude/to .gitignore - bump version to 0.1.4 + update CHANGELOG
- add .claude/ to .gitignore
Full changelog: v0.1.3...v0.1.4
Release v0.1.3
Adds three optional computation domains (time / unit / fx) and 8 vector operations; the core supports string literals and DateTime results; also completes README and documentation consistency cleanup.
Features
- Three optional domains (time / unit / fx features): TimeDomain, UnitDomain, and FxDomain implemented and integrated; Cargo description updated to "11 core domains + 4 optional domains"
- The fx domain injects
Box<dyn RateProvider>(constructor injection, default FrankfurterProvider); the README provides environment variables (CALNEXUS_FX_*) and a data-source disclaimer - Add 8 vector operations to the vector domain: cosine_similarity / project / reflect / euclidean / manhattan / outer / lerp / hadamard (guards for zero vectors / dimension mismatches, with 57 new tests)
- Add string literals to the core (
AstNode::Str, with\"escaping and an error for unclosed quotes) and anEvalResult::DateTimeresult (canonical / latex / steps / server JSON serialized as RFC3339) - Nondeterministic function cache bypass: DomainRouter skips L1 cache reads and writes when it detects a nondeterministic expression (precision mode unchanged)
- Add 10 cross-domain end-to-end integration tests; CI adds a --features cli,time,unit,fx test matrix and single-feature compile checks
- add 8 vector operations (cosine_similarity/project/reflect/euclidean/manhattan/outer/lerp/hadamard)
- integrate time/unit/fx domains, CI matrix, docs sync
- implement TimeDomain, UnitDomain, FxDomain
- add time/unit/fx domain stubs, features, and i18n keys
- string literals, DateTime result, nondeterministic cache bypass
Bug Fixes
- Declare the
--repl/--batchmutual conflict at parse time - Complete i18n coverage for all error paths in the time / fx domains (fx 8→14 sites, time 30→37 sites with_i18n)
- Switch README badges to div-centered rendering; fix 20+ documentation–code inconsistencies found in the pre-release audit
- complete i18n coverage + FxDomain constructor injection (T035-T037)
- declare --repl --batch mutual conflict at parse time
- use div instead of p for centered badges to render markdown
Other Changes
- Apply rustfmt formatting across the codebase
- Add a language switcher and back-to-top navigation to the README
- Tests: 1858 lib tests + 10 integration tests pass, 0 clippy warnings
- bump version to 0.1.3 and update CHANGELOG
- add README language switcher and back-to-top navigation
- install protoc compiler in all CI jobs
- apply rustfmt formatting across codebase
- center badges in README.md and README_EN.md
- fix 20+ doc-code inconsistencies from pre-release audit
Full changelog: v0.1.2...v0.1.3
Release v0.1.2
Full bug-fix release: exhaustively analyze and fix 1 CRITICAL, 11 HIGH, and 33+ MEDIUM/LOW defects, covering the cache, core, computation domains, output, and server.
Bug Fixes
- CRITICAL: mix ctx.vars into the evaluator cache key (BLAKE3 hash, sorted by key) and the timeout nanoseconds to prevent bypassing variable bindings via cache hits
- canonicalizer adds a whitelist for precision() and skips constant folding for the second argument to preserve the user-specified precision
- Prebind pi / e constants in polynomial domain evaluation; factorial(negative) returns Err instead of Ok(0)
- Symbolic domain eval_ln(non-positive) returns Ok(NaN) and eval_div(division by zero) returns Ok(Inf), consistent with mathematical semantics
- Complex domain complex() rejects complex values in the re/im arguments instead of silently discarding the imaginary part; arg(0+0i) returns Err instead of Ok(0.0)
- In steps output, the Complex / List / unbound-variable branches return Err instead of Ok(0.0/NaN/Inf)
- server validate() rejects empty expressions, lengths over 4096, and null bytes, and validates the vars key length (≤64)
- Use an i18n key for the poly_sub wrong-argument-count error, replacing dead code
- canonicalizer NaN comparison now uses f64::total_cmp (IEEE 754 totalOrder); unify the explicit 0^0 = 1.0
- Extend the parser's consecutive-operator check to ++ / ** / // / ^^
- Prebind pi / e constants in vector / precision domain evaluation; add NaN checks to polynomial and change the poly_eval_horner signature to Result
- Add is_finite checks via check_finite() in the symbolic domain taylor / simplify_pow / eval_symbolic
- steps output: remove floating-point noise, scientific notation for large numbers, and the -0.0 sign; the Matrix branch returns Err; limit large numbers to the f64 safe range; gcd / lcm validate integers
- LaTeX output: noise detection for scalars / complex numbers, simplification of zero imaginary / real parts, separators for negative polynomial terms, and a state machine changing ^N to ^{N}
- server: 30-second request timeout (spawn_blocking wrapper) and HTTP graceful shutdown (SIGINT/SIGTERM + graceful shutdown)
- i18n supports BCP-47 script subtags (zh-Hans / zh-Hant, etc.); setup_panic_hook provides a user-friendly error prefix
- resolve 33+ MEDIUM/LOW bugs from exhaustive analysis + 3 review issues
- resolve 1 CRITICAL + 11 HIGH bugs from exhaustive analysis
Other Changes
- cache.rs no longer silently swallows errors: it matches explicitly and degrades to a cache miss with eprintln! (3 expect() calls changed to log+degrade, keeping API compatibility)
- vector / precision conditionally clone EvalContext, skipping the clone when pi / e already exist
- Increase i18n keys from 199 to 248 (en/zh aligned at 248=248); 24 hardcoded error messages converted to i18n
- Add tokio/signal to the Cargo.toml http feature to support graceful shutdown
- Tests: 1856 passed / 0 failed (cli feature matrix); clippy 0 warnings (-D warnings); cargo audit 0 advisories (381 dependencies); semgrep 0 findings (51 rules)
- bump version to 0.1.2, move SKILL.md to skill/, release review clean
Full changelog: v0.1.1...v0.1.2
Release v0.1.1
calnexus's first official release: a multi-domain scientific computing CLI covering arithmetic, science, complex numbers, matrices, statistics, precision, number theory, combinatorics, vectors, polynomials, and symbolic computation, with HTTP/MCP server modes and a bilingual Chinese/English error system.
Features
- Computation domains: arithmetic, science, complex numbers, matrices, statistics, precision, plus number theory / combinatorics / vector / polynomial domains and the symbolic computing (Symbolic) domain
- REPL mode and batch processing; LaTeX, step-by-step (--steps), and canonical output
- Server mode:
--serve-http/--serve-mcpflags, HTTP evaluate endpoint and MCP evaluate tool - Add
--explain/--langflags to the CLI, with all errors routed through handle_error - ICU4X-based bilingual Chinese/English error messages and hints for common error paths; the preprocessing layer generates Span and locates the original input by character offset
- numerical feature module: lu / qr / eig / svd / solve numerical decompositions with end-to-end tests
EvalResult::Jsoncomposite return value, with serde_json promoted to a core dependency- SKILL.md (with dual installation methods), ARCHITECTURE.md, a Chinese README, and Mermaid architecture diagrams
- complete ICU internationalization with full error coverage
- reject precision() on f64 fns (T009)
- T008 router integration + MEDIUM-1 DoS protection
- implement lu/qr/eig/svd/solve decompositions
- scaffold numerical feature module
- add EvalResult::Json variant for composite returns
- migrate evaluate to sdforge #[forge] + unify ApiError contract
- migrate evaluate to sdforge #[forge]
- add --serve-http/--serve-mcp flags for server mode (T019-T020)
- implement MCP evaluate tool (T017-T018)
- implement HTTP evaluate handler (T015-T016)
- add server module skeleton + evaluator refactor (T013-T014)
- add sdforge 0.4 for http/mcp interface (T011-T012)
- add --explain/--lang flags, unified error handling
- add hints for common error paths
- generate Span in preprocessing layer
- implement ICU4X-based bilingual error messages
- LaTeX/steps/canonical output + comprehensive test suites
- add Symbolic domain, REPL mode, batch processing, fix v0.8 limitations
- add NumberTheory/Combinatorics/Vector/Polynomial domains
- end-to-end integration and acceptance
- precision domain
- statistics domain
- matrix domain
- complex domain
- ast and parser extension for complex/matrix/list
- end-to-end integration
- cli interface
- scientific domain
- arithmetic domain
- domain routing
- l1 cache
- ast canonicalization
- expression parsing
- cargo skeleton and shared types
Bug Fixes
- Fix the bug where sin(pi/2) evaluates to 0 in
--stepsmode - Security hardening: fix negative-exponent DoS bypass, precision DoS, cache key pollution, and error type leakage, and encapsulate internal modules
- Fix language validation, batch JSON escaping, and i18n matching issues
- Fix Span using byte offsets (change to character offsets) and make Span point to the original input when mathexpr fails
- Cover the Json variant in the format_result match; make the specmark merge logic handle the new capability domain
- resolve sin(pi/2)=0 bug in --steps mode + fix release CI
- handle new capability domain in merge_delta_spec
- cover Json variant in format_result match
- Phase 10 review fixes (priority test migration + ARCHITECTURE.md corrections + symbolic comment fix)
- patch negative exponent DoS bypass + constant dedup (T025-T033)
- patch precision DoS + cache key pollution + error type leak
- lang validation, batch json escape, i18n matching (T008-T010)
- Span points to original input on mathexpr failure (T005)
- use char offsets in Span instead of byte offsets (kueiku HIGH-1)
- extract hardcoded Chinese labels to i18n keys (diting HIGH-1)
- restore specmark docs removed by .gitignore
- fix DoS vectors, harden deps, encapsulate modules
Other Changes
- Migrate CalcError from an enum to a struct (~657 call sites), with unified error derivation
- Migrate evaluate to the sdforge
#[forge]macro and unify the ApiError contract for HTTP/MCP - Fine-grained feature gates (cli / icu / http / mcp / fx / numerical / server); break the circular dependency between core and domains
- Refactor to reduce cyclomatic complexity: split hot functions in evaluator, canonicalizer, symbolic, matrix, combinatorics, etc., and extract 10 long functions
- Upgrade dependencies to the latest stable versions and align with the x.x version format; introduce thiserror 2 and oxcache 0.3
- Raise line coverage to 99.54% (cargo-llvm-cov); align the tarpaulin fail-under threshold to 95
- Establish CI/CD and pre-commit hooks; add copyright headers and achieve zero clippy / fmt warnings
- bump version to 0.1.1 and add CHANGELOG.md
- route clap through sdforge::clap re-export
- add SKILL.md with dual install methods and reference links
- extract helpers to reduce cyclomatic complexity in 10 hot functions
- align all dependencies to minor-level format (x.x)
- add numerical linalg end-to-end tests + sync docs (P4 T010)
- promote serde_json to non-optional core dependency
- update ARCHITECTURE + CHANGELOG for #[forge] migration
- rewrite http/mcp integration for ApiError contract
- copy archive scripts for deterministic archiving
- enable sec_002b depth-limit test (depth enforcement already implemented)
- add ARCHITECTURE.md + P2 changelog entry
- extract eval_div/eval_ln from eval_symbolic (cyc=23→15)
- extract transform_inner per-variant methods (cyc=24→2)
- split evaluate into 4 single-responsibility functions (cyc=25→7)
- extract eval_binary dispatch methods (cyc=25→4)
- combinatorics eval_function dispatch table (P2 Phase 4)
- break circular dep + rule 25 compliance (P2 Phase 1-3)
- extract 10 long functions + fix security/architecture issues
- add P1 sdforge interface section to v0.2.0 (T024)
- add unit + integration tests for server module coverage (T022)
- fix clippy + fmt zero warnings (T023)
- add --serve-http/--serve-mcp flag conflict tests (T021)
- unify error handling via handle_error (T007)
- align fail-under threshold to 95 (T006)
- record P0 foundation changes
- fmt + clippy cleanup
- un-ignore SEC-007 timeout test
- add comprehensive unit tests for Span/ErrorKind/CalcError
- migrate CalcError from enum to struct (657 sites)
- fine-grained feature gates (cli/icu/http/mcp/fx/numerical/server)
- add thiserror 2 for error derivation
- upgrade all dependencies to latest stable
- upgrade oxcache 0.2 → 0.3
- add P0 foundation proposal, design, and tasks
- apply quality-fixes — dead code, tautological asserts, canonicalizer merge
- convert ASCII diagrams to mermaid + add repo URL to SKILL.md
- restructure docs, add CI/CD, pre-commit hook, Chinese README
- project governance — copyright headers, dep slimming, docs, clippy zero warnings
- improve coverage from 98.71% to 99.54%
- 98.66% line coverage with cargo-llvm-cov
- initialize git with .gitignore
Full changelog: https://github.com/Kirky-X/calnexus/commits/v0.1.1