Paired 0.3.2 release candidate
This candidate requires aiogram-nav==0.3.2 when used with the SDK.
It is unpublished. See the monorepo paired-release readiness report for exact
artifacts, compatibility checks and publication gates. Historical findings below
remain provenance; they do not describe the current candidate qualification.
aiogram-nav-native
Optional deterministic Rust acceleration for aiogram-nav 0.3.1, built with
Maturin and CPython's abi3-py310 stable ABI. The distribution has no dependency
on the base library. Install it explicitly and select engine="rust" in the base
library; missing or incompatible native APIs must fail before state mutation.
Rust owns graph validation/cached targets, strict JSON parsing, bounded history and scalar transition calculations, token provenance comparison, and exact-byte SHA256. Typed Python model construction, application validators, I/O, locking, clocks, random generations and presenter/business effects stay in Python. The coarse canonicalizer owns traversal, immutable JSON freezing and exact-byte fingerprints while retaining Python scalar formatting and arbitrary integer receipt identities. Its bounded derived cache belongs to one backend.
Build: uvx maturin build --release --manifest-path native/Cargo.toml.
Run Rust tests: cargo test --manifest-path native/Cargo.toml.
Run Criterion: cargo bench --manifest-path native/Cargo.toml --bench core.
Install the wheel in a clean environment, then run pytest -c native/pytest.ini native/tests.
Release the companion using its own aiogram-nav-native-v0.3.1 tag and an explicitly scoped
native publishing workflow. It must not be published by the base Python-only
workflow. Wheels require platform CI and per-platform smoke tests; an sdist
requires Cargo/Rust when installed. Cargo.lock is committed for reproducibility.
The importable extension is aiogram_nav_native._aiogram_nav_native; the public
aiogram_nav_native package re-exports its API. Both expose API_VERSION == 1
and ENGINE_VERSION == "0.3.1" for compatibility checks before mutation.
strict_loads preserves object insertion order, arbitrary Python integers,
finite floats and negative zero. Parsing rejects duplicate decoded object keys,
non-finite floating values and unpaired Unicode surrogates. max_depth counts raw
JSON containers; typed codec callers use 512 so their own 64-level tagged-model
policy remains authoritative. A configured raw depth above 512 is rejected.
transition_history receives plain JSON arrays and an optional current entry;
push_current must reflect the already-validated node/parameter change.
transition_state takes the old state's scalar fields as JSON and returns the
new revision/time fields. Its timestamp and token_matches' actor/time arguments
are decimal strings, preserving arbitrary Python integer domains without an i64
conversion. The library wrapper retains model and session validation.
Native presence alone is not evidence of a speedup. Benchmark the selected engine against the optimized Python engine on the intended workload before choosing it.
Publication is gated on the approved end-to-end benchmark threshold against the optimized Python engine. Primitive SHA/JSON microbenchmarks are diagnostic only: a native boundary can add conversion overhead even when the underlying Rust algorithm is fast. No base dependency extra or native release should be enabled from correctness tests alone.
The 18 November qualification follow-up retains all repeated-run outcomes, rejected experiments and current release blockers. No companion is published by the qualification workflow.
The development strict_loads boundary builds Python values directly while
checking strict JSON grammar, duplicate decoded keys, finite numbers and bounds.
It preserves integer -0, floating -0.0, configured integer digit limits and
object insertion order. This replaces the intermediate Rust JSON tree for reads;
validate_json continues to use the independent Rust-only parser.
Canonicalizer and InvalidJson are exposed by both the extension and public
package, with matching typed declarations. The companion remains unpublished
until full installed-artifact performance and platform qualification pass.
Metadata
Release files for aiogram-nav-native 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiogram_nav_native-0.3.2.tar.gz | 30.2 kB | With provenance | Details for aiogram_nav_native-0.3.2.tar.gz |
Built distributions (wheels)
Total release size: 3.3 MB
Security for aiogram-nav-native 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 8 files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.