Repository navigation
Conversation
… (#1893) * diffusion: add optional path for url image generation response format * rename save_path to save_file
…x compatibility (#1898)
…#1901) * fix(cuda): account for tensor storage offset in moe kernel launches * Format
* added gguf_metadata architecture for Mistral3 * mistral3 piggybacking off of llama3 gguf configuration * copied llama3 for mistral3 gguf—unfinished, but working * removed unnecessary duplicate code for mistral3 * fmt * removed redundant architecture check * improved error response for unknown dtype * error now returns valid quantization types * fixed error and fmt * simplified get gguf type * logging and verification update * added verify_arch_any
…up, restructure examples (#1904) * Restructure docs, a few new apis * Dedup * Rename * Fix compile * Remove generate function * Add convenience auto isq * Add modelbuilder auto loader api * Docs tweaks * Refactor a bit * Polish a bit * Docs tweaks * Docs tweaks * Even more docs * Add more tweaks * Cleaner * Format * Clippy * Fix doctest compile
…(#1905) * Add voxtral support * More fixes * Interactive support temp 0 * Handle special tokens better * fix handling of trie special tokens for tekken * Cleanup and fix isq * Update docs * Update docs * Update docs * Update docs
… (#1908) * fix(device_map): pre-allocate masks per device to reduce OOM pressure * Format * Tweak ci * Format
…Python SDK (#1909) * feat(pyo3): release GIL around blocking Runner operations to improve Python responsiveness * Format
Resolve conflicts keeping Hanzo Engine branding (README, binary names, local hanzo-ml deps) while incorporating upstream's new model loaders (GLM4MoE, Qwen3Next, Voxtral), responses refactor, CLI improvements, and mdbook documentation system.
- Create site/index.html — monochrome landing page with 9 sections - Create site/CNAME for engine.hanzo.ai custom domain - Create site/install.sh — hardware-aware installer (CUDA, Metal, MKL) - Update docs.yml workflow to deploy site/ via GitHub Pages
- Rewrite landing page: 10 sections, Zen models, benchmarks, K8s deploy - Rewrite README: full architecture docs, API reference, deployment guide - All Zen models, monochrome, no upstream refs
…e submodules - Replace all actions-rs/toolchain@v1 with dtolnay/rust-toolchain - Replace all actions-rs/cargo@v1 with direct cargo commands - Fix check-metal job: add ml repo checkout (was missing, causing workspace dependency resolution failure) - Remove unnecessary toolchain install from typos job - Use components parameter for rustfmt/clippy installation
- Add --locked to all cargo commands to catch dependency drift - Add --no-default-features to avoid cuda/metal feature issues on CI - Keep --features metal only for the macOS metal-specific check - Correct MSRV from 1.90 to 1.88 (matches rust-version in Cargo.toml) - Add CARGO_INCREMENTAL=0 and CARGO_TERM_COLOR=always env vars - Regenerate Cargo.lock with updated ml workspace deps
- Add missing BertEmbeddingLoader to pipeline re-exports (E0432) - Add missing kv_cache_layout field in BERT model_config (E0063) - Run cargo fmt on all workspace members - Fix README env var names (MISTRALRS -> HANZO_ENGINE)
…(#1943) * fix(server-core): terminate SSE streams when response channel closes (#1940) Map Poll::Ready(None) to stream termination instead of Poll::Pending, preventing indefinite hangs when all senders are dropped before a terminal response is sent. * docs: never include test plan in PR descriptions
Default branch was renamed from master to main. Update push and pull_request triggers in ci.yml and docs.yml to match.
…examples, and SDK docs - Add CI, Rust, license, GHCR, crates.io, PyPI, and Discord badges - Expand Zen models table to all 14 production models including zen-agent - Add detailed Docker section with tag table, multi-GPU, env vars, health checks - Add Kubernetes manifests: Deployment with probes, HPA, multi-GPU StatefulSet - Add consolidated performance features table (attention, batching, quantization, parallelism) - Expand API endpoints table with load/unload, embeddings, image generation examples - Add Python SDK examples: streaming, vision, embeddings, tool calling, native bindings - Link to docs.hanzo.ai/docs/services/engine as canonical documentation - Expand related projects with edge, gateway, ingress, LLM gateway - Fix license from Apache-2.0 to MIT (matches actual LICENSE file)
Replace all upstream project references (EricLBuehler/mistral.rs) with hanzoai/engine across 99 files. Changes are metadata, docs, and branding only — no code changes. - Cargo.toml: homepage/repository URLs -> github.com/hanzoai/engine - Cargo.toml: add Hanzo AI as primary author, keep original for attribution - Dockerfiles: WORKDIR /mistralrs -> /engine - docs/book.toml: title, authors, URLs updated - docs/*.md: all GitHub links repointed, product name -> Hanzo Engine - crate README.md files: rebranded to Hanzo Engine - hanzo-engine-dso/Cargo.toml: candle deps -> hanzo-ml workspace paths - .github/workflows/release.yml: remove upstream reference in changelog - Remove broken upstream GitHub asset link from ANYMOE.md - Replace ericlbuehler.github.io docs URLs with docs.hanzo.ai - Replace upstream Docker image refs with ghcr.io/hanzoai/engine - Replace raw.githubusercontent.com URLs with hanzoai/engine/main - Replace master branch refs with main in docs links Preserved: - LICENSE file (legally required original copyright) - Cargo crate names (mistralrs-*) — renaming would break builds - Rust/Python module names in code examples - Environment variable names (MISTRALRS_*) from source code - pyproject.toml package name (tied to pyo3 module name)
- Replace text H favicon with proper Hanzo H mark SVG - Add Hanzo logo to nav brand - Replace upstream model names with architecture-generic terms
Engine serves all major model families — users need to know exactly which architectures are supported. Zen listed first.
**Description** This PR fixes an issue where the `docs` GitHub Actions workflow fails on forks because GitHub Pages is not configured or enabled by default. By adding the `if: github.repository == 'EricLBuehler/mistral.rs'` condition to the `deploy` job, we ensure that the documentation is only built and deployed on the main repository, preventing unnecessary CI failures for contributors. **Fixes** Resolves the `Get Pages site failed` error occurring in forks during the `actions/configure-pages` step.
`try_for_each` requires ALL architectures to match, causing GGUF models with `llama` architecture to fail when the loader accepts both `llama` and `mistral3`. Replace with `any()` check so that matching any one of the expected architectures is sufficient. Co-authored-by: Olivier ESTEVE <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
flashinfer candle_core->hanzo_ml; collapse candle-* dep aliases to hanzo-*; MistralRs*->Hanzo*, MISTRALRS_*->HANZO_*, mistralrs->hanzo idents. Keep Mistral model names + hanzoai/mistralrs_tests HF fixture IDs. cargo check clean.
The candle/mistralrs env vars were de-branded to HANZO_*; drop the prefix entirely to bare functional names (CUDA_GRAPHS, ROCM_ARCH, ...) per no-branding convention. Pre-existing product HANZO_* vars left untouched.
Unbrand the pre-existing HANZO_* env vars (multinode MN_*, SANDBOX, VK_*, NO_MMAP/NO_MLA/NO_NCCL, IGPU_MEMORY_FRACTION, ...) to bare functional names, keeping their meaning. No HANZO_ env var branding remains.
Cover the new hanzo-ml GgmlDType::TQ2_0 in the gguf type-id map and the ISQ conversion (TQ2_0 is not an ISQ target, joins the bail arm).
…used kernels + Metal fixes ROCm PagedAttention backend (paged_attention.hip.cpp/reshape_and_cache, device-side seqlen); rocm_graph.rs decode-graph machinery; fused rmsnorm/rope/softmax/silu_mul (decode 8.5->24.5); numeric+perf gates. Metal build fixes (engine Cargo.toml hanzo-metal-kernels dep, chat_template EOS). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Native-stack campaign: ROCm PagedAttention + decode graphs + Metal fixes
…p gate
Add the security gate that makes the proprietary engine refuse to run unless
it is handed a valid, unexpired, correctly-scoped Hanzo-issued license token,
per SECURE-ENGINE-DISTRIBUTION-DESIGN.md.
- hanzo-engine/src/license.rs: offline Ed25519 verify core (ed25519-dalek).
Token = base64url(JSON claims) "." base64url(sig[64]); the sig is over the
encoded-payload bytes so verify never re-canonicalizes JSON. Claims:
{v, app_id, holder, iat, exp, features, nonce}. verify_license() returns
distinct errors (Malformed/BadSig/Expired/WrongApp/NotYetValid); load_and_verify()
reads HANZO_ENGINE_LICENSE_TOKEN (or *_FILE) and checks the embedded pubkey +
build's expected_app + now. Embedded HANZO_LICENSE_PUBKEY is a DEV key (marked
for KMS swap at release). expected_app fixed per build via cargo features
license-app-{hanzo,lux,zoo} (default "hanzo-dev").
- Gate (cargo feature license-enforce, OFF by default): top of run_server
(hanzo-cli serve.rs) hard-exits on failure; HanzoForServerBuilder::build()
(hanzo-server-core) returns Err so every embedder (node/CLI/pyo3-via-server)
is gated. Dev builds skip with a one-line note.
- hanzo-engine/examples/license_issuer.rs: mints signed per-app tokens; private
key from --signing-key-file / HANZO_LICENSE_SIGNING_KEY, never hardcoded.
- Unit tests (9): valid, tampered-sig, tampered-payload, expired, wrong-app,
malformed, future-dated, wrong-version, dev-key==embedded-pubkey.
cargo test -p hanzo-engine --no-default-features license -> 9/9 pass.
- DEV private seed lives only in gitignored license-dev-key/; the public key
artifacts + regeneration README are committed.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Member
|
Superseded by #21: the Ed25519 license-verification core + startup gate was extracted from this branch onto current main as a focused 14-file PR (#21, 9/9 tests pass, both gate sites build). This branch is a 430k-line fork-sync blob (2024 merge-base). Closing in favor of the clean recovery — nothing lost. |
zooqueen
added a commit
that referenced
this pull request
Jun 17, 2026
…ver engine#19) (#21) Engine-side license verification: the proprietary engine refuses to serve unless handed a valid, unexpired, correctly-scoped Hanzo-issued Ed25519 token for the right app. Recovers the actual feature from #19 (a 430k-line fork-sync blob) onto current main as a focused ~5-file change. No fork-sync noise (route renames, ROCM defaults) is dragged in. - hanzo-engine/src/license.rs: Ed25519 verify core via ed25519-dalek. Token = base64url(JSON claims)"."base64url(ed25519 sig[64]); sig is over the encoded payload bytes so verify never re-canonicalizes JSON. Claims {v,app_id,holder,iat,exp,features,nonce}. verify_license / load_and_verify with distinct errors Missing/Malformed/BadSig/Expired/NotYetValid/WrongApp. Embedded HANZO_LICENSE_PUBKEY is a DEV key (clearly marked; prod pubkey from KMS swapped in at release). expected_app fixed per build via cargo features license-app-hanzo/lux/zoo (default "hanzo-dev"). 9 unit tests. - hanzo-engine/examples/license_issuer.rs: mints signed per-app tokens; private key from --signing-key-file / HANZO_LICENSE_SIGNING_KEY, never hardcoded; self-checks the freshly minted token. - Gate (cargo feature license-enforce, OFF by default): hanzo-cli/src/commands/serve.rs top of run_server (exit 78 on failure) and hanzo-server-core/src/hanzo_for_server_builder.rs top of build() (returns Err). No-op note when the feature is off. - workspace + engine dep: ed25519-dalek 2.1.1. license-dev-key/ holds the committed public key + README; the private seed is gitignored. Verified: - cargo test -p hanzo-engine --no-default-features license -> 9 passed. - cargo check -p hanzo-cli --no-default-features --features license-enforce,license-app-hanzo -> clean. - cargo build -p hanzo-engine --example license_issuer -> builds; mints a token that decodes to the exact claim schema and self-verifies. Co-authored-by: Antje Worring <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
hanzo-dev
pushed a commit
that referenced
this pull request
Jul 16, 2026
…ver engine#19) (#21) Engine-side license verification: the proprietary engine refuses to serve unless handed a valid, unexpired, correctly-scoped Hanzo-issued Ed25519 token for the right app. Recovers the actual feature from #19 (a 430k-line fork-sync blob) onto current main as a focused ~5-file change. No fork-sync noise (route renames, ROCM defaults) is dragged in. - hanzo-engine/src/license.rs: Ed25519 verify core via ed25519-dalek. Token = base64url(JSON claims)"."base64url(ed25519 sig[64]); sig is over the encoded payload bytes so verify never re-canonicalizes JSON. Claims {v,app_id,holder,iat,exp,features,nonce}. verify_license / load_and_verify with distinct errors Missing/Malformed/BadSig/Expired/NotYetValid/WrongApp. Embedded HANZO_LICENSE_PUBKEY is a DEV key (clearly marked; prod pubkey from KMS swapped in at release). expected_app fixed per build via cargo features license-app-hanzo/lux/zoo (default "hanzo-dev"). 9 unit tests. - hanzo-engine/examples/license_issuer.rs: mints signed per-app tokens; private key from --signing-key-file / HANZO_LICENSE_SIGNING_KEY, never hardcoded; self-checks the freshly minted token. - Gate (cargo feature license-enforce, OFF by default): hanzo-cli/src/commands/serve.rs top of run_server (exit 78 on failure) and hanzo-server-core/src/hanzo_for_server_builder.rs top of build() (returns Err). No-op note when the feature is off. - workspace + engine dep: ed25519-dalek 2.1.1. license-dev-key/ holds the committed public key + README; the private seed is gitignored. Verified: - cargo test -p hanzo-engine --no-default-features license -> 9 passed. - cargo check -p hanzo-cli --no-default-features --features license-enforce,license-app-hanzo -> clean. - cargo build -p hanzo-engine --example license_issuer -> builds; mints a token that decodes to the exact claim schema and self-verifies. Co-authored-by: Antje Worring <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
zeekay
pushed a commit
that referenced
this pull request
Jul 26, 2026
…ver engine#19) (#21) Engine-side license verification: the proprietary engine refuses to serve unless handed a valid, unexpired, correctly-scoped Hanzo-issued Ed25519 token for the right app. Recovers the actual feature from #19 (a 430k-line fork-sync blob) onto current main as a focused ~5-file change. No fork-sync noise (route renames, ROCM defaults) is dragged in. - hanzo-engine/src/license.rs: Ed25519 verify core via ed25519-dalek. Token = base64url(JSON claims)"."base64url(ed25519 sig[64]); sig is over the encoded payload bytes so verify never re-canonicalizes JSON. Claims {v,app_id,holder,iat,exp,features,nonce}. verify_license / load_and_verify with distinct errors Missing/Malformed/BadSig/Expired/NotYetValid/WrongApp. Embedded HANZO_LICENSE_PUBKEY is a DEV key (clearly marked; prod pubkey from KMS swapped in at release). expected_app fixed per build via cargo features license-app-hanzo/lux/zoo (default "hanzo-dev"). 9 unit tests. - hanzo-engine/examples/license_issuer.rs: mints signed per-app tokens; private key from --signing-key-file / HANZO_LICENSE_SIGNING_KEY, never hardcoded; self-checks the freshly minted token. - Gate (cargo feature license-enforce, OFF by default): hanzo-cli/src/commands/serve.rs top of run_server (exit 78 on failure) and hanzo-server-core/src/hanzo_for_server_builder.rs top of build() (returns Err). No-op note when the feature is off. - workspace + engine dep: ed25519-dalek 2.1.1. license-dev-key/ holds the committed public key + README; the private seed is gitignored. Verified: - cargo test -p hanzo-engine --no-default-features license -> 9 passed. - cargo check -p hanzo-cli --no-default-features --features license-enforce,license-app-hanzo -> clean. - cargo build -p hanzo-engine --example license_issuer -> builds; mints a token that decodes to the exact claim schema and self-verifies. Co-authored-by: Antje Worring <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
zeekay
pushed a commit
that referenced
this pull request
Jul 26, 2026
…ver engine#19) (#21) Engine-side license verification: the proprietary engine refuses to serve unless handed a valid, unexpired, correctly-scoped Hanzo-issued Ed25519 token for the right app. Recovers the actual feature from #19 (a 430k-line fork-sync blob) onto current main as a focused ~5-file change. No fork-sync noise (route renames, ROCM defaults) is dragged in. - hanzo-engine/src/license.rs: Ed25519 verify core via ed25519-dalek. Token = base64url(JSON claims)"."base64url(ed25519 sig[64]); sig is over the encoded payload bytes so verify never re-canonicalizes JSON. Claims {v,app_id,holder,iat,exp,features,nonce}. verify_license / load_and_verify with distinct errors Missing/Malformed/BadSig/Expired/NotYetValid/WrongApp. Embedded HANZO_LICENSE_PUBKEY is a DEV key (clearly marked; prod pubkey from KMS swapped in at release). expected_app fixed per build via cargo features license-app-hanzo/lux/zoo (default "hanzo-dev"). 9 unit tests. - hanzo-engine/examples/license_issuer.rs: mints signed per-app tokens; private key from --signing-key-file / HANZO_LICENSE_SIGNING_KEY, never hardcoded; self-checks the freshly minted token. - Gate (cargo feature license-enforce, OFF by default): hanzo-cli/src/commands/serve.rs top of run_server (exit 78 on failure) and hanzo-server-core/src/hanzo_for_server_builder.rs top of build() (returns Err). No-op note when the feature is off. - workspace + engine dep: ed25519-dalek 2.1.1. license-dev-key/ holds the committed public key + README; the private seed is gitignored. Verified: - cargo test -p hanzo-engine --no-default-features license -> 9 passed. - cargo check -p hanzo-cli --no-default-features --features license-enforce,license-app-hanzo -> clean. - cargo build -p hanzo-engine --example license_issuer -> builds; mints a token that decodes to the exact claim schema and self-verifies. Co-authored-by: Antje Worring <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
hanzo-dev
pushed a commit
that referenced
this pull request
Jul 27, 2026
…ver engine#19) (#21) Engine-side license verification: the proprietary engine refuses to serve unless handed a valid, unexpired, correctly-scoped Hanzo-issued Ed25519 token for the right app. Recovers the actual feature from #19 (a 430k-line fork-sync blob) onto current main as a focused ~5-file change. No fork-sync noise (route renames, ROCM defaults) is dragged in. - hanzo-engine/src/license.rs: Ed25519 verify core via ed25519-dalek. Token = base64url(JSON claims)"."base64url(ed25519 sig[64]); sig is over the encoded payload bytes so verify never re-canonicalizes JSON. Claims {v,app_id,holder,iat,exp,features,nonce}. verify_license / load_and_verify with distinct errors Missing/Malformed/BadSig/Expired/NotYetValid/WrongApp. Embedded HANZO_LICENSE_PUBKEY is a DEV key (clearly marked; prod pubkey from KMS swapped in at release). expected_app fixed per build via cargo features license-app-hanzo/lux/zoo (default "hanzo-dev"). 9 unit tests. - hanzo-engine/examples/license_issuer.rs: mints signed per-app tokens; private key from --signing-key-file / HANZO_LICENSE_SIGNING_KEY, never hardcoded; self-checks the freshly minted token. - Gate (cargo feature license-enforce, OFF by default): hanzo-cli/src/commands/serve.rs top of run_server (exit 78 on failure) and hanzo-server-core/src/hanzo_for_server_builder.rs top of build() (returns Err). No-op note when the feature is off. - workspace + engine dep: ed25519-dalek 2.1.1. license-dev-key/ holds the committed public key + README; the private seed is gitignored. Verified: - cargo test -p hanzo-engine --no-default-features license -> 9 passed. - cargo check -p hanzo-cli --no-default-features --features license-enforce,license-app-hanzo -> clean. - cargo build -p hanzo-engine --example license_issuer -> builds; mints a token that decodes to the exact claim schema and self-verifies. Co-authored-by: Antje Worring <[email protected]>
zeekay
pushed a commit
that referenced
this pull request
Sep 15, 2026
…ver engine#19) (#21) Engine-side license verification: the proprietary engine refuses to serve unless handed a valid, unexpired, correctly-scoped Hanzo-issued Ed25519 token for the right app. Recovers the actual feature from #19 (a 430k-line fork-sync blob) onto current main as a focused ~5-file change. No fork-sync noise (route renames, ROCM defaults) is dragged in. - hanzo-engine/src/license.rs: Ed25519 verify core via ed25519-dalek. Token = base64url(JSON claims)"."base64url(ed25519 sig[64]); sig is over the encoded payload bytes so verify never re-canonicalizes JSON. Claims {v,app_id,holder,iat,exp,features,nonce}. verify_license / load_and_verify with distinct errors Missing/Malformed/BadSig/Expired/NotYetValid/WrongApp. Embedded HANZO_LICENSE_PUBKEY is a DEV key (clearly marked; prod pubkey from KMS swapped in at release). expected_app fixed per build via cargo features license-app-hanzo/lux/zoo (default "hanzo-dev"). 9 unit tests. - hanzo-engine/examples/license_issuer.rs: mints signed per-app tokens; private key from --signing-key-file / HANZO_LICENSE_SIGNING_KEY, never hardcoded; self-checks the freshly minted token. - Gate (cargo feature license-enforce, OFF by default): hanzo-cli/src/commands/serve.rs top of run_server (exit 78 on failure) and hanzo-server-core/src/hanzo_for_server_builder.rs top of build() (returns Err). No-op note when the feature is off. - workspace + engine dep: ed25519-dalek 2.1.1. license-dev-key/ holds the committed public key + README; the private seed is gitignored. Verified: - cargo test -p hanzo-engine --no-default-features license -> 9 passed. - cargo check -p hanzo-cli --no-default-features --features license-enforce,license-app-hanzo -> clean. - cargo build -p hanzo-engine --example license_issuer -> builds; mints a token that decodes to the exact claim schema and self-verifies. Co-authored-by: Antje Worring <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
zeekay
pushed a commit
that referenced
this pull request
Sep 15, 2026
…ver engine#19) (#21) Engine-side license verification: the proprietary engine refuses to serve unless handed a valid, unexpired, correctly-scoped Hanzo-issued Ed25519 token for the right app. Recovers the actual feature from #19 (a 430k-line fork-sync blob) onto current main as a focused ~5-file change. No fork-sync noise (route renames, ROCM defaults) is dragged in. - hanzo-engine/src/license.rs: Ed25519 verify core via ed25519-dalek. Token = base64url(JSON claims)"."base64url(ed25519 sig[64]); sig is over the encoded payload bytes so verify never re-canonicalizes JSON. Claims {v,app_id,holder,iat,exp,features,nonce}. verify_license / load_and_verify with distinct errors Missing/Malformed/BadSig/Expired/NotYetValid/WrongApp. Embedded HANZO_LICENSE_PUBKEY is a DEV key (clearly marked; prod pubkey from KMS swapped in at release). expected_app fixed per build via cargo features license-app-hanzo/lux/zoo (default "hanzo-dev"). 9 unit tests. - hanzo-engine/examples/license_issuer.rs: mints signed per-app tokens; private key from --signing-key-file / HANZO_LICENSE_SIGNING_KEY, never hardcoded; self-checks the freshly minted token. - Gate (cargo feature license-enforce, OFF by default): hanzo-cli/src/commands/serve.rs top of run_server (exit 78 on failure) and hanzo-server-core/src/hanzo_for_server_builder.rs top of build() (returns Err). No-op note when the feature is off. - workspace + engine dep: ed25519-dalek 2.1.1. license-dev-key/ holds the committed public key + README; the private seed is gitignored. Verified: - cargo test -p hanzo-engine --no-default-features license -> 9 passed. - cargo check -p hanzo-cli --no-default-features --features license-enforce,license-app-hanzo -> clean. - cargo build -p hanzo-engine --example license_issuer -> builds; mints a token that decodes to the exact claim schema and self-verifies. Co-authored-by: Antje Worring <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
breezesamuel
added a commit
to breezesamuel/engine
that referenced
this pull request
Nov 17, 2026
…HIP-1345 s2.4, Bounty hanzoai#19)
breezesamuel
added a commit
to breezesamuel/engine
that referenced
this pull request
Nov 18, 2026
…w-up) Completes the four remaining contract items from review: - Matched baselines: strict prefix cache vs composition planner on the identical two-turn shuffled-retrieval fixture - committed as hanzo-kv-fabric/results/cacheblend-results.json - Raw measurements: prefix-only 64/896 reusable (prefill 832) vs planner 544/896 (8.5x), compute 832 -> 352 tokens (-57.7%), recompute 1 (never-cached doc), silent order violations 0 - HIP-1345 update: results/HIP-1345-update.md proposes the §2.7 status addendum (§2.7 = Bounties hanzoai#19-hanzoai#20; the §2.4 label in the first cycle was a mislabel - §2.4 is Bounties hanzoai#14-hanzoai#15) - section refs corrected in module docs and the bench - Out-of-scope statement: explicit 6-item list (KV blending math, cross-segment attention routing, TTFT/quality parity, tenant pinning interplay, runtime eviction, Bounty hanzoai#20)
breezesamuel
added a commit
to breezesamuel/engine
that referenced
this pull request
Nov 18, 2026
Per the live HIP text: Bounties hanzoai#14-hanzoai#15 = §2.4 (LoRA paging), Bounties hanzoai#19-hanzoai#20 = §2.7 (non-prefix RAG KV fusion).
breezesamuel
added a commit
to breezesamuel/engine
that referenced
this pull request
Nov 18, 2026
Per the live HIP text: Bounties hanzoai#14-hanzoai#15 = §2.4 (LoRA paging), Bounties hanzoai#19-hanzoai#20 = §2.7 (non-prefix RAG KV fusion).
zeekay
pushed a commit
to breezesamuel/engine
that referenced
this pull request
Nov 21, 2026
Per the live HIP text: Bounties hanzoai#14-hanzoai#15 = §2.4 (LoRA paging), Bounties hanzoai#19-hanzoai#20 = §2.7 (non-prefix RAG KV fusion).
zeekay
pushed a commit
to breezesamuel/engine
that referenced
this pull request
Nov 21, 2026
…HIP-1345 s2.4, Bounty hanzoai#19)
zeekay
pushed a commit
to breezesamuel/engine
that referenced
this pull request
Nov 21, 2026
…w-up) Completes the four remaining contract items from review: - Matched baselines: strict prefix cache vs composition planner on the identical two-turn shuffled-retrieval fixture - committed as hanzo-kv-fabric/results/cacheblend-results.json - Raw measurements: prefix-only 64/896 reusable (prefill 832) vs planner 544/896 (8.5x), compute 832 -> 352 tokens (-57.7%), recompute 1 (never-cached doc), silent order violations 0 - HIP-1345 update: results/HIP-1345-update.md proposes the §2.7 status addendum (§2.7 = Bounties hanzoai#19-hanzoai#20; the §2.4 label in the first cycle was a mislabel - §2.4 is Bounties hanzoai#14-hanzoai#15) - section refs corrected in module docs and the bench - Out-of-scope statement: explicit 6-item list (KV blending math, cross-segment attention routing, TTFT/quality parity, tenant pinning interplay, runtime eviction, Bounty hanzoai#20)
zeekay
pushed a commit
to breezesamuel/engine
that referenced
this pull request
Nov 21, 2026
Per the live HIP text: Bounties hanzoai#14-hanzoai#15 = §2.4 (LoRA paging), Bounties hanzoai#19-hanzoai#20 = §2.7 (non-prefix RAG KV fusion).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the engine-side license-verification core from
SECURE-ENGINE-DISTRIBUTION-DESIGN.md: the security gate that makes the proprietary engine refuse to run unless handed a valid, unexpired, correctly-scoped Hanzo-issued license token for the right app.What's in this PR
1. License verify core -
hanzo-engine/src/license.rsed25519-dalek(added to workspace + engine deps).base64url(JSON(claims)) "." base64url(ed25519_sig[64]). The signature is computed over the ASCII bytes of the encoded payload, so verification never re-canonicalizes JSON. Claims:{v:u8, app_id:String, holder:String, iat:i64, exp:i64, features:Vec<String>, nonce:String}.verify_license(token, pubkey, expected_app, now_unix) -> Result<License, LicenseError>with distinct errors:Malformed,BadSig,Expired,WrongApp,NotYetValid.load_and_verify()readsHANZO_ENGINE_LICENSE_TOKEN(fallback file path viaHANZO_ENGINE_LICENSE_FILE), then checks the embedded pubkey + the build'sexpected_app+ current time.HANZO_LICENSE_PUBKEY: [u8;32]is a DEV key (clearly markedDEV KEY -- replace with prod pubkey from KMS for release). The matching private seed is NOT committed (gitignoredlicense-dev-key/).expected_appfixed per build via cargo featureslicense-app-hanzo/license-app-lux/license-app-zoo(default"hanzo-dev"), so a Zoo token cannot run a Hanzo build.2. The gate (cargo feature
license-enforce, OFF by default)hanzo-cli/src/commands/serve.rs-> top ofrun_server(beforeinitialize_logging()): on failure logs a clear message and hard-exits (exit(78)).hanzo-server-core/src/hanzo_for_server_builder.rs-> top ofHanzoForServerBuilder::build(): returnsErrso the engine never binds its listener. This covers every embedder (node / CLI / pyo3-via-server), not just the CLI.license-enforceis OFF (dev/CLI/perf), both sites are a one-line no-op note.3. License-issuer tool -
hanzo-engine/examples/license_issuer.rs--signing-key-fileorHANZO_LICENSE_SIGNING_KEY(base64url/base64 32-byte seed), never hardcoded. Self-checks the freshly minted token before printing.4. Unit tests (9, in
license.rs) - the 5 required plus 4 extra:valid-verifies, tampered-sig -> BadSig, tampered-payload -> BadSig, expired -> Expired, wrong-app -> WrongApp, malformed (8 shapes) -> Malformed, future-dated -> NotYetValid, wrong-version -> Malformed, and dev-key-pubkey == embedded const.
Verification done
cargo test -p hanzo-engine --no-default-features license-> 9 passed, 0 failed (feature-light, no rocm/cuda, platform-independent).cargo check -p hanzo-cli --no-default-features --features license-enforce,license-app-hanzo-> compiles clean (both gate sites build under enforcement).cargo build -p hanzo-engine --example license_issuer-> builds; ran it end-to-end (issues a token whose payload decodes to the exact claim schema; app-scoping confirmed).DEV-stubbed / follow-ups (NOT in this PR)
HANZO_LICENSE_PUBKEYis a throwaway DEV key. Generate the prod keypair on a private host, hold the private key in KMS / CI secret, and swap this const before release. The gitignored dev private seed is for tests/issuer only.option_env!("HANZO_ENGINE_LICENSE_TOKEN")in the node-options structs and pass through to the sidecar env; add the 3 CI secrets; build per-app with thelicense-app-*feature.HanzoForServerBuilderare not gated here.Note: on a fresh clone the gitignored
license-dev-key/dev_signing_key.b64must be recreated beforecargo test(one-liner inlicense-dev-key/README.md).🤖 Generated with Claude Code