v1.31.3
Release Notes - v1.31.3
Release Date: August 16, 2026
Overview
Version 1.31.3 delivers a major architectural reorganization of the speculative decoding engine, separating it into well-defined packages for classic and MTP (Multi-Token Prediction) strategies. This refactor significantly improves code maintainability and readability while also fixing validation bugs in chat processing.
Detailed Changes
New Features
Speculative Decoding Package Refactor
- Author: William Kennedy
- Separated speculative decoding logic from the batch engine into dedicated packages under
sdk/kronk/model/internal/speculation/ - Created
classicpackage implementing classic speculative decoding with generate, verify, and state management components - Created
mtppackage implementing MTP-specific draft generation, synchronization, verification, and finalization - Introduced
speculation.Controllerinterface withDisabledfallback implementation for non-speculative workloads - Added
speculation_runtime.goas the central runtime controller that dispatches to classic or MTP engines based on configuration - Added
speculation_config.goto centralize speculation configuration parsing and validation - Added
mtp_runtime_hooks.gowith MTP-specific runtime hooks for the yzma integration - All new packages include comprehensive test coverage (disabled_test.go, classic_test.go, mtp/*_test.go, speculation_test.go)
Improvements
Validation Bug Fixes
- Author: William Kennedy
- Fixed validation bugs in speculative decoding configuration and chat processing
- Added 57 new lines of tests in
cmd/server/api/services/kronk/tests/chat_test.gofor chat validation scenarios - Added 75 new lines of tests in
sdk/kronk/model/chat_test.gofor chat processing validation - Streamlined batch engine code by removing speculative decoding logic (270 lines removed from
batchgen_engine.go, 748 lines frombatchgen_speculative.go) - Cleaned up
batchgen_slot.goandbatchgen_slot_start.goto remove speculative decoding concerns - Removed
speculative_sparse.go(109 lines) as the functionality has been reorganized into the new speculation packages
Documentation
Speculative Decoding Documentation Updates
- Author: William Kennedy
- Updated
.manual/chapter-03-model-configuration.mdwith 12 new lines covering speculation configuration - Updated
.manual/chapter-06-speculative-decoding-mtp.mdwith 6 new lines reflecting the new architecture - Updated BUI components (
DocsManual.tsx,DocsSDKModel.tsx) with 42 new lines of documentation content
Dependencies
Configuration Tool Updates
- Updated
sdk/tools/models/kronkconfig.goandkronkresolve.goto support new speculation configuration fields - Added tests for kronkresolve configuration parsing
- Updated model config YAML files in
sdk/tools/defaults/yaml/andzarf/kms/
Statistics
| Category | Count |
|---|---|
| Total Commits | 2 |
| New Features | 1 |
| Improvements | 1 |
| Bug Fixes | 1 |
| Documentation | 1 |
Contributors:
- William Kennedy
Upgrade Notes
Breaking Changes
None
Migration
No migration required. The speculative decoding functionality remains the same from a user perspective — the changes are internal reorganization of the codebase.
Recommended Actions
- No action required for existing users
- If you have custom speculation configuration, verify it still works with the updated configuration parsing
- Review the updated documentation in Chapter 3 and Chapter 6 for the latest speculation configuration guidance