Baguet Icon Baguet Typography 1.0
[GITHUB REPO] [WEB PORTAL]
BAGUET TECHNICAL SPECIFICATION // SPEC-DOC-GUIDE // EDITION 2026.10

BAGUET 1.0 — Technical Installation, Usage, and Operations Guide

100% lossless compression and algebraic memory ecosystem engineered to execute vector search, attention, and inference directly on compressed AI data without prior decompression — eliminating up to 75% of RAM and storage overhead with exact mathematical preservation of the original bits.

[TECHNICAL GUIDE]
Scope: This official production guide documents cross-platform installation (Pip, Conda, and desktop), Python SDK integration, CLI commands, BAGUET Studio operation, offline governance, and troubleshooting for BAGUET 1.0.

Who This Guide Is For

SEC.CAT-00.1
  • [01]
    Product managers and teams: understand the problems BAGUET solves, the unconditional zero lock-in guarantee, and how to evaluate real infrastructure savings.
  • [02]
    Studio users: operate each of the 5 visual interface halls with ease, learn productivity shortcuts, and safely run audits, compressions, and verifications.
  • [03]
    Software and AI engineers: integrate the core, ai, media, license, and studio namespaces into your data pipelines and tensor models.
  • [04]
    Infrastructure operators and SecOps: install verified packages, configure offline cryptographic licenses, and diagnose incidents without compromising credentials.

What BAGUET Does — and Does Not Promise

SEC.CAT-00.2

BAGUET provides:

  • [+]
    universal byte compression and restoration with a mathematical guarantee of bit-exact integrity via SHA-256;
  • [+]
    direct execution on compressed data (Compute-on-Compressed-Data), including LLM KV cache, RAG embeddings, weight matrices, and differential checkpoints;
  • [+]
    dedicated lossless paths for structured audio, image, and video formats;
  • [+]
    indexed containers for O(1) record access and a multi-block parallel streaming engine;
  • [+]
    offline cryptographic license governance (Ed25519), forensic receipts, and local ROI auditing tools;
  • [+]
    a local interactive visual interface called BAGUET Studio.
FORMAL DEFINITION STRICT LOSSLESS & INFORMATION THEORY LIMITS
The lossless designation applies strictly to operations that preserve the full integrity of the original data and whose restoration reproduces the exact same bit sequence. Certain progressive modes expose lower-precision base layers for fast startup or preview; these layers are partial, and exact refinement remains accessible on demand. As with any information-theoretic system, high-entropy or already-compressed data may incur a small header overhead.

BAGUET does not replace a language or vision model, nor does it perform full neural network training on its own. It serves as a high-efficiency substrate for storing and computing over tensor and binary representations.

ARCHITECTURAL LAYER SCHEMATIC // ALGEBRAIC SUBSTRATE [ZERO-DECOMPRESSION ARCHITECTURE]
+-------------------------------------------------------------------------------------------------+ | APPLICATION LAYER (LLM / RAG / TENSOR MODELS) | | PyTorch, vLLM, TensorRT, Hugging Face, FAISS, Milvus, Qdrant | +-------------------------------------------------------------------------------------------------+ | v +-------------------------------------------------------------------------------------------------+ | BAGUET ALGEBRAIC SUBSTRATE (COMPUTE-ON-COMPRESSED-DATA KERNEL) | | • Sub-linear Top-K Vector Search • Flash-SDPA Attention on Compressed KV Cache | | • Direct Compressed Linear (CUDA / MPS) • Reversible Differential Checkpoints (BGTD6) | | • Virtual Slab Pool O(1) • Native SIMD Accelerators (AVX2 / NEON) | +-------------------------------------------------------------------------------------------------+ | v +-------------------------------------------------------------------------------------------------+ | LOCAL HARDWARE & AIR-GAPPED INFRASTRUCTURE | | System RAM / VRAM, NVIDIA CUDA GPUs, Apple Silicon (MPS), x86_64 / ARM64 CPUs | +-------------------------------------------------------------------------------------------------+

1. Installation and Distribution Channels

SEC.CAT-01

System Requirements

  • [SYS]
    Python: Version 3.10 or higher (required for type compliance and native C-ABI buffers).
  • [REQ]
    Runtime Dependencies: numpy >= 1.24 and cryptography >= 41.
  • [OPT]
    Optional Dependencies: torch >= 2.1 and ml_dtypes >= 0.3 (required only for direct PyTorch tensor integration and BFloat16 support).
  • [ENV]
    Supported Environments: macOS (Apple Silicon arm64 and Intel x86_64), Linux (glibc >= 2.31, x86_64 and aarch64), and Windows 10/11 (64-bit x64).

1.1 Installation via Pip (Python Package Index)

To install the official distribution with the native engine, CLI, and BAGUET Studio:

CONSOLE // LINUX & macOS BASH bash
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install baguet

On Windows (PowerShell):

CONSOLE // WINDOWS POWERSHELL powershell
py -3.10 -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install baguet

Installation with optional PyTorch support:

CONSOLE // PYTORCH EXTRA bash
python -m pip install "baguet[torch]"

1.2 Installation via Conda / Mamba Ecosystem

For data science workstations and enterprise clusters managed via Conda:

CONSOLE // CONDA CHANNEL bash
# Create dedicated environment
conda create -n baguet-env python=3.10 -y
conda activate baguet-env

# Install from the official Soilore Conda channel
conda install -c soilore baguet

(Distribution note: the packaging recipe automatically provisions binary dependencies numpy >= 1.24 and cryptography >= 41, registering the package under the canonical identifier baguet with executable aliases baguet and baguet-studio.)

1.3 Desktop Installers and Operating System Integration

For users who prefer to use BAGUET Studio integrated into their operating system without managing virtual environments from the terminal:

  • [OSX]
    macOS Universal: .dmg package compatible with Apple Silicon (M1/M2/M3/M4) and Intel, including a Finder Quick Action.
  • [WIN]
    Windows x64: executable installer with Windows Explorer context menu integration.
  • [LNX]
    Linux: AppImage package / XDG-compliant .desktop entry.

If you have already installed the package via Pip or Conda, generate the operating system right-click integration files and shortcuts by running:

CONSOLE // DESKTOP PROVISIONING bash
baguet install-desktop --target-dir ./baguet-integration

1.4 Verify Installation

Verify that the SDK and native core are operational:

CONSOLE // OPERATIONAL CHECK bash
python -c "from baguet_sdk import core; engine = core.BaguetEngine(); print('BAGUET ready')"
baguet self-test

The engine loads the Rust-compiled backend by default, enabling SIMD acceleration via AVX2/FMA on x86_64 processors or NEON on ARM64 architectures. The self-test suite runs a deterministic battery validating all cryptographic and tensor subsystems in milliseconds.

2. First Steps with Python

SEC.CAT-02

The public baguet_sdk facade exposes five structured namespaces: core, ai, media, license, and studio. The example below demonstrates compression and restoration with integrity verification:

PYTHON // FUNDAMENTAL EXAMPLE python
from baguet_sdk import core

engine = core.BaguetEngine()
original = b"Sample data for first use of BAGUET. " * 2

packet, useful_bits = engine.compress_bytes(original)
restored = engine.decompress_bytes(packet)

assert restored == original
print(f"Input: {len(original)} B; packet: {len(packet)} B; useful bits: {useful_bits}")

compress_bytes returns a tuple: the compressed binary packet and the number of encoded useful bits. decompress_bytes returns the exact restored bytes. Creating a single BaguetEngine instance is recommended to share settings, licenses, and limits across your application.

The namespace also supports direct functional calls by passing engine=engine:

PYTHON // DIRECT FUNCTIONAL CALL python
from baguet_sdk import core

engine = core.BaguetEngine()
packet, bits = core.compress_bytes(b"sample", engine=engine)
restored = core.decompress_bytes(packet, engine=engine)

BAGUET Exception Hierarchy

  • [EXC]
    BaguetError: base class for protocol operational exceptions.
  • [WARN]
    BaguetContingencyWarning: warning emitted when a non-fatal contingency occurs.
  • [FAIL]
    BaguetIntegrityError: raised when a packet is malformed, truncated, or has a mismatched SHA-256 hash (fail-closed).
  • [SEC]
    BaguetSecurityError: raised when a security policy, BGT-AE key, or license is violated.
  • [PRIOR]
    BaguetPriorMismatchError: the supplied domain prior differs from the one required by the file.
  • [NOTF]
    BaguetNotFoundError: the requested record or key does not exist in the container (compatible with KeyError).

3. Functions and Formats

SEC.CAT-03

SDK Namespaces Overview

Domain What It Solves Namespace
Bytes, files, and inspection Compress, restore, manage indexed vaults, stream, and inspect containers baguet_sdk.core
Artificial Intelligence KV cache, embeddings, Top-K search, Flash-SDPA attention, weights, checkpoints, progressive tensors, and ranks baguet_sdk.ai
Multimedia and Transcoding RGB images, PCM16 audio, 3D video, and bit-exact reversal of supported formats baguet_sdk.media
Licensing and Governance Offline BGTL1 license validation, Ed25519 audit receipts, and update manifests baguet_sdk.license
Interface and Local Operation Studio server, forensic ROI calculation, internationalization, and desktop shortcuts baguet_sdk.studio

Catalog of Official Extensions

Extension Magic Identifier Primary Use
.bgt BGT... Universal packet for any data stream or individual files
.bgts BGTS5\x02 Parallel block container with per-frame CRC32 for large files
.bgtv BGTV5\x03 Object vault (Slab Pool) with O(1) random retrieval
.bgtt BGTT6\x01 Indexed tensor catalog with selective zero-copy mmap extraction
.bgtd BGTD6\x01 Reversible differential checkpoint against reference weights (fine-tuning / LoRA)
.bgtp BGTP6\x01 Progressive tensor (fast-startup base stream + exact residual)
.bgtu BGTU6\x01 Reversible transcoding of pre-compressed formats (PNG, WAV, NPY, gzip, zlib)
.bgtpr BGTPR6 Trained domain prior dictionary for compacting repetitive patterns
.bgttile BGTTILE1 Matrix with 2D spatial tile partitioning

4. SDK Usage Reference

SEC.CAT-04

4.1 Bytes and O(1) Header Inspection

PYTHON // CORE BYTES & HEADERS python
from baguet_sdk import core

engine = core.BaguetEngine()
raw = b"production content for archiving"
packet, bit_count = engine.compress_bytes(raw)
assert engine.decompress_bytes(packet) == raw

To inspect metadata of any container in O(1) time without decompressing its contents:

PYTHON // O(1) HEADER INSPECTION python
from baguet_sdk import core

# Create a sample container for immediate inspection
packet, _ = core.compress_bytes(b"BAGUET engine telemetry data")
with open("archive.bgt", "wb") as f:
    f.write(packet)

info = core.inspect_file_info("archive.bgt")
print(f"Format: {info.get('container')} | Accelerator: {info.get('accelerator')}")

4.2 AI: Tensors and KV Cache

PYTHON // KV CACHE COMPRESSION python
import numpy as np
from baguet_sdk import core, ai

engine = core.BaguetEngine()
kv = np.arange(2 * 8 * 16, dtype=np.float16).reshape(2, 8, 16)

packet, bits = ai.compress_kv_cache(kv, engine=engine)
restored = ai.decompress_kv_cache(packet, engine=engine)

assert restored.shape == kv.shape
assert restored.dtype == kv.dtype
assert restored.tobytes() == kv.tobytes()
DIRECT EXECUTION PIPELINE // COMPUTE-ON-COMPRESSED-DATA [ZERO-UNPACK EXECUTION]
INPUT TENSOR (FP16 / BF16 / FP32): [ Weight Matrix / KV-Cache / Embedding Vectors ] | v +-------------------------------------------------------------------------------------------------+ | BAGUET ALGEBRAIC CONTAINER (.BGT / .BGTT / .BGTP): | | • Independent-Block Structural Indexing • Built-in SHA-256 Cryptographic Verification | | • 100% Bit-Exact Full Preservation • Zero-Copy Direct Access via Memory Mapping | +-------------------------------------------------------------------------------------------------+ | v Top-K Search, Flash-SDPA Attention, and Linear Projection kernels (CPU / CUDA / Apple MPS) operate directly on compressed blocks without requiring full decompression!

4.3 AI: Embeddings and Sub-Linear Top-K Search

To ensure alignment with the SIMD vector registers of the search engine, embedding matrices for search and sketch indexing must be created in np.float16 or bfloat16:

PYTHON // SUB-LINEAR VECTOR TOP-K python
import numpy as np
from baguet_sdk import core, ai

engine = core.BaguetEngine()
# FP16 Embeddings (128 vectors of 32 dimensions)
embeddings = np.random.default_rng(7).normal(size=(128, 32)).astype(np.float16)
query = np.random.default_rng(8).normal(size=(32,)).astype(np.float32)

packed, _ = ai.compress_embeddings(embeddings, engine=engine)
restored = ai.decompress_embeddings(packed, engine=engine)
assert np.array_equal(restored, embeddings)

# 1. Direct top-k vector search over compressed data
indices, scores = ai.search_compressed_embeddings_topk(
    packed, query, k=5, metric="dot", engine=engine
)

# 2. Sketch index construction and direct sub-linear search
sketch = ai.build_embedding_sketch_index(packed, block_size=16, engine=engine)
pruned_indices, pruned_scores = ai.query_compressed_embeddings_topk(
    packed, query, k=5, metric="dot", sketch_index=sketch, engine=engine
)

4.4 AI: Compressed KV Attention and Offloader

PYTHON // DIRECT KV ATTENTION python
import numpy as np
from baguet_sdk import core, ai

engine = core.BaguetEngine()
keys = np.ones((1, 8, 16), dtype=np.float16)
values = np.arange(1 * 8 * 16, dtype=np.float16).reshape(1, 8, 16)
query = np.ones((1, 16), dtype=np.float32)

key_packet, _ = engine.compress_kv_cache(keys)
value_packet, _ = engine.compress_kv_cache(values)

context, weights = ai.compressed_kv_attention_forward(
    key_packet, value_packet, query, engine=engine
)

To manage historical context blocks with on-demand intermediate storage:

PYTHON // KV CACHE OFFLOADER python
import numpy as np
from baguet_sdk import core, ai

engine = core.BaguetEngine()
offloader = ai.BaguetKVCacheOffloader(engine=engine)
offloader.put_block(0, np.ones((8, 16), dtype=np.float16), np.ones((8, 16), dtype=np.float16))
keys, values = offloader.get_block(0)
context, weights = offloader.attention_on_offloaded_blocks(
    [0], np.ones((16,), dtype=np.float32)
)

4.5 AI: Compressed Linear Layers

PYTHON // NUMPY LINEAR LAYER python
import numpy as np
from baguet_sdk import ai, core

engine = core.BaguetEngine()
weights = np.arange(64 * 64, dtype=np.float16).reshape(64, 64)
bias = np.zeros(64, dtype=np.float32)
x = np.ones((64,), dtype=np.float32)

layer = ai.BaguetCompressedLinear.from_numpy(weights, bias, engine=engine)
y = layer.forward(x, full_precision=True)
report = layer.memory_footprint_report()
print(f"Memory reduction: {report['reduction_pct']:.1f}%")

With PyTorch (when the [torch] extra is installed):

PYTHON // PYTORCH LINEAR MODULE python
import torch
from baguet_sdk import ai, core

engine = core.BaguetEngine()
torch_linear = torch.nn.Linear(3, 4).eval()
# Native execution support on accelerators (CUDA and Apple Silicon MPS)
layer = ai.BaguetCompressedLinear.from_torch(torch_linear, engine=engine)
# When processing tensors on an accelerated device, executes directly with GPU cache
y = layer(torch.ones((1, 3), dtype=torch.float32))

4.6 AI: SafeTensors, Delta, and Progressive Tensors

PYTHON // SAFETENSORS & DELTA CHECKPOINT python
import numpy as np
from baguet_sdk import core, ai

engine = core.BaguetEngine()
base = {"layer.weight": np.zeros((4, 4), dtype=np.float32)}
updated = {"layer.weight": np.ones((4, 4), dtype=np.float32)}

# Dictionary packing
archive, _ = ai.compress_safetensors_dict(updated, engine=engine)
all_tensors = ai.decompress_safetensors_dict(archive, engine=engine)

# Reversible differential checkpoint (BGTD6)
delta, metadata = ai.compress_safetensors_delta(updated, base, engine=engine)
reconstructed = ai.decompress_safetensors_delta(delta, base, engine=engine)

# Progressive tensor (BGTP6)
progressive, progressive_metadata = engine.compress_tensor_progressive(
    updated["layer.weight"]
)
preview = engine.decompress_tensor_progressive(progressive, full_precision=False)
exact = engine.decompress_tensor_progressive(progressive, full_precision=True)
assert np.array_equal(exact, updated["layer.weight"])

4.7 AI: Ranks and Reconstruction

PYTHON // SURPRISAL RANKS python
from baguet_sdk import core

engine = core.BaguetEngine()
ranks, zero_ratio = engine.extract_surprisal_ranks(b"structured telemetry text")
restored_bytes = engine.reconstruct_from_ranks(ranks)
assert restored_bytes == b"structured telemetry text"

4.8 Multimedia and Transcoding

PYTHON // STRUCTURED MULTIMEDIA python
import numpy as np
from baguet_sdk import core, media

engine = core.BaguetEngine()

# 24-bit RGB image
image = np.zeros((32, 48, 3), dtype=np.uint8)
packet_img, _ = media.compress_image_rgb(image, engine=engine)
assert np.array_equal(image, media.decompress_image_rgb(packet_img, engine=engine))

# PCM16 audio
samples = np.zeros((16_000,), dtype=np.int16)
packet_aud, _ = media.compress_audio_pcm16(samples, engine=engine)
assert np.array_equal(samples, media.decompress_audio_pcm16(packet_aud, engine=engine))

# 3D volumetric video (T, H, W)
video = np.zeros((4, 16, 16), dtype=np.uint8)
packet_vid, _ = media.compress_video_3d(video, engine=engine)
assert np.array_equal(video, media.decompress_video_3d(packet_vid, engine=engine))

Reversible container transcoding:

PYTHON // BGTU6 TRANSCODING python
import gzip
from baguet_sdk import core, media

engine = core.BaguetEngine()
raw_data = b"archived log content"
source_container = gzip.compress(raw_data)
packet, metadata = media.transcode_compressed(source_container, engine=engine)

# Reconstruct container with bit-exact decompression on the original data
restored_container = media.untranscode_compressed(
    packet, reconstruct_container=True, engine=engine
)
assert gzip.decompress(restored_container) == raw_data

# Or extract the uncompressed raw payload directly
restored_raw = media.untranscode_compressed(
    packet, reconstruct_container=False, engine=engine
)
assert bytes(restored_raw) == raw_data

4.9 Domain Prior

PYTHON // PRIOR TRAINING python
from baguet_sdk import core

corpus = [
    b"event=login status=ok",
    b"event=logout status=ok",
]
prior = core.BaguetPriorTrainer().fit(corpus)
engine_with_prior = core.BaguetEngine(prior=prior)
packet, _ = engine_with_prior.compress_bytes(corpus[0])
assert engine_with_prior.decompress_bytes(packet) == corpus[0]

4.10 Object Vault (Slab) and Streaming

PYTHON // O(1) SLAB VAULT python
from baguet_sdk import core

engine = core.BaguetEngine()
pool = core.BaguetVirtualSlabPool(engine)
pool.put_file("model/layer0", b"sample weights")
assert pool.get_file("model/layer0") == b"sample weights"
pool.save_to_disk("archive.bgtv")

Streaming for large files with bounded memory consumption:

PYTHON // MULTI-THREAD STREAMING ENGINE python
from pathlib import Path
from baguet_sdk import core

engine = core.BaguetEngine()
stream = core.BaguetStreamEngine(engine)

# Sample file for streaming test
Path("input.bin").write_bytes(b"STREAMING-DATA-BLOCK-" * 1000)

stats = stream.compress_stream(
    "input.bin", "input.bgts", chunk_size=4 * 1024 * 1024, max_workers=4
)
restored_stats = stream.decompress_stream("input.bgts", "restored.bin")
assert Path("restored.bin").read_bytes() == Path("input.bin").read_bytes()

4.11 Licenses and Forensic Receipts

PYTHON // ED25519 CRYPTOGRAPHIC RECEIPT python
from baguet_sdk import core, license, studio

engine = core.BaguetEngine()
raw = b"audit data"
packet, _ = engine.compress_bytes(raw)
restored = engine.decompress_bytes(packet)

# Issuance and verification of forensic receipt
receipt = license.BaguetCryptographicReceipt.create(raw, packet, restored)
assert license.BaguetCryptographicReceipt.verify_receipt(receipt)

4.12 Forensic ROI Audit

PYTHON // FORENSIC ROI AUDIT python
from pathlib import Path
from baguet_sdk import core, studio

engine = core.BaguetEngine()

# Prepare local sample directory for audit
data_dir = Path("./data")
data_dir.mkdir(exist_ok=True)
(data_dir / "sample.log").write_text("Telemetry record " * 100, encoding="utf-8")

report = studio.audit_roi(
    engine,
    data_dir,
    scale_projection_tb=10.0,
    cloud_storage_cost_per_gb_month=0.023,
    ram_vram_cost_per_gb_month=6.50,
)
print(f"Files: {report['files_scanned']} | Reduction: {report['baguet_savings_pct']:.1f}%")

5. Command-Line Interface (CLI)

SEC.CAT-05

Run baguet --help or baguet <subcommand> --help (for example, baguet compress --help) to inspect all available options.

Fundamental File Operations

CLI // FUNDAMENTAL OPERATIONS bash
# Compress file to .bgt
baguet compress input.bin output.bgt

# Decompress with SHA-256 hash verification
baguet decompress output.bgt restored.bin

# Inspect O(1) header of any Baguet file
baguet info output.bgt

Fast Mode and Forensic Receipt

CLI // FAST PIPELINE & CERTIFICATES bash
# Fast mode for high-throughput pipelines
baguet compress input.bin output.bgt --fast-mode

# Compress and issue a signed forensic receipt (.baguet.receipt.json)
baguet compress input.bin output.bgt --receipt

# Verify authenticity and round-trip integrity of a receipt
baguet verify-receipt output.bgt.baguet.receipt.json --input-file input.bin --packet-file output.bgt

Reversible Multimedia Transcoding (BGTU6)

The transcoder analyzes the internal structure of pre-compressed containers and images (non-interlaced 8-bit RGB PNG, PCM16 WAV audio, NPY arrays, and .gz / .zlib files) and reorganizes streams into .bgtu containers with bit-exact restoration:

CLI // BGTU6 TRANSCODING bash
baguet transcode document.png document.bgtu
baguet untranscode document.bgtu restored.png --reconstruct-container

Domain Prior, Object Vault, and Streaming

CLI // SLAB & STREAMING bash
# Train contextual prior on sample files
baguet train-prior domain.bgtpr sample1.txt sample2.txt

# Insert and extract from a Slab vault (.bgtv) in O(1) (use --encrypt-vault to encrypt the entire vault in BGTV5\x03 without inflating small files)
baguet slab-put vault.bgtv "document/1" input.txt
baguet slab-put secure-vault.bgtv "document/1" input.txt --encrypt-vault --key "$BAGUET_KEY"
baguet slab-get vault.bgtv "document/1" restored.txt

# Parallel streaming of large files with multi-core workers (up to 2 workers on Community; up to 16/64 on Pro/Growth)
baguet stream-compress large-file.bin large-file.bgts --chunk-size 4194304 --workers 2
baguet stream-decompress large-file.bgts restored.bin --workers 2

ROI Audit and License Activation

CLI // AUDIT & LICENSES bash
# Deterministic reduction audit and savings projection
baguet roi-audit ./dataset --scale-tb 10.0 --json

# Check active license status
baguet license status

# Activate offline BGTL1 license (persists to ~/.baguet/license.key)
baguet license activate "$BAGUET_LICENSE_TOKEN"

Authenticated Encryption (BGT-AE / AES-256-SIV)

CLI // BGT-AE AUTHENTICATED ENCRYPTION bash
# Compress protected with a 256-bit symmetric key
baguet compress data.csv vault.bgt --key "your-production-secret-key"

# Decompress requiring authentication
baguet decompress vault.bgt restored.csv --key "your-production-secret-key"

# Enable strict production mode (rejects legacy or unkeyed formats)
baguet compress data.csv vault.bgt --key "your-production-secret-key" --production

Verification, Updates, and Maintenance via CLI

In addition to compression and licensing operations, the CLI provides fast utilities to validate your installation, verify offline updates, and invoke Studio actions:

CLI // VERIFICATION & MAINTENANCE bash
# Run deterministic self-test battery for installation and engine
baguet self-test

# Verify signed offline update package or manifest (.bgtupd / .json)
baguet verify-update package.bgtupd

# Direct 1-click action on files or folders (automatic compress/decompress)
baguet desktop-action ./my_file.csv --mode auto

6. Complete BAGUET Studio Tutorial

SEC.CAT-06

BAGUET Studio is the ecosystem's native visual interface, operating as a secure local web console over loopback (127.0.0.1). It removes intermediaries and lets you control every engine capability directly.

CONSOLE ARCHITECTURE // 5 HALLS + SETTINGS / TOOLS [STUDIO MODULES]
+---------------------+---------------------+---------------------+---------------------+---------------------+ | HALL 01: ROI & AUDIT| HALL 02: COMPRESSOR | HALL 03: SLAB/STREAM| HALL 04: AI KERNELS | HALL 05: LICENSES | | Financial Projection| Drag & Drop + Folder| O(1) Slab Vault | Sub-linear RAG Top-K| BGTL1 Passport | | 1:1 Memory Rulers | AES-256-SIV Crypto | Parallel Streaming | Flash-SDPA Attention| Check / Renew Cred. | | JSON ROI Report | Receipt Verifier | 1-Clk OS Integration| BGTD6 Checkpoints | Subscription Check. | +---------------------+---------------------+---------------------+---------------------+---------------------+ | | | | | v v v v v [Keyboard Key 1] [Keyboard Key 2] [Keyboard Key 3] [Keyboard Key 4] [Keyboard Key 5] [TOP HEADER] -> Tier Badge (clicks to Hall 05) | Alerts | [SETTINGS / TOOLS] | 7 Languages | [⌘K]

6.1 How to Launch Studio

In your terminal, run:

CONSOLE // START STUDIO bash
baguet studio

This command starts the local service on the default port 8765 and automatically opens your browser at:
http://127.0.0.1:8765/

Startup Options:

  • baguet studio --host 127.0.0.1: specifies the local listening IP address (secure default 127.0.0.1).
  • baguet studio --port 8765: sets a custom TCP port if 8765 is already occupied by another service.
  • baguet studio --no-browser: runs the service without automatically launching a browser window (ideal for remote servers, Docker containers, or SSH tunnel access).
  • baguet studio --once: serves a single usage session and automatically shuts down the local server process.
OPERATIONAL NOTICE SECURE EXECUTION VIA LOCAL SERVER (LOOPBACK)
Important: opening the HTML file directly via the file:// protocol in a browser prevents access to the local engine and system files. To compress real data, issue signed certificates, and manage persistent licenses in ~/.baguet, always launch through the Baguet.app desktop application or the baguet studio command.

6.2 Global Navigation, Languages, and Keyboard Shortcuts

  • Quick Keyboard Shortcuts: Press number keys 1, 2, 3, 4, or 5 to jump instantaneously between Halls.
  • Header Plan Indicator: In the top-left corner, displays the active plan (clickable to open Hall 05 directly).
  • SETTINGS / TOOLS Button: In the top-right corner, opens the centralized panel for tools, self-test, subscription, updates, and the danger zone (session shutdown and complete uninstallation).
  • Command Palette ([ ⌘K ] or Ctrl+K): Opens localized quick search in the active language to navigate between Halls, trigger self-test, or inspect recent receipts.
  • Language Selector: Switch instantaneously across 7 full languages: EN, PT, ES, DE, FR, ZH, and JA. The preference is saved in ~/.baguet/preferences.json.
  • Instrumentation Footer: Displays the vector accelerator status (AVX2/FMA or NEON), summary of the last operation, latency in microseconds, and access to the session audit history ([ SESSION AUDIT LOG ]).
HALL 01 — ROI & Audit (01 / ROI & AUDIT)
[FINANCIAL AUDIT]

Objective: Audit real files or folders and calculate cloud storage and RAM/VRAM cost savings.

1
Select the path to a local file or directory in the native picker (e.g., ~/datasets/logs).
2
Adjust the Scale Projection using the quick selectors: 1 TB, 10 TB (default), 100 TB, or 1 PB.
3
Adjust your infrastructure unit costs:
  • Cloud Storage ($ / GB / Month): default 0.023.
  • GPU RAM/VRAM ($ / GB / Month): default 3.40.
4
Click RE-RUN FORENSIC AUDIT.
5
The panel displays the actual physical reduction ratio, the 1:1 comparative ruler, the projected annual financial savings, and a detailed breakdown by modality.
6
Click ISSUE CRYPTOGRAPHIC AUDIT CERTIFICATE to inspect and download the signed certificate exclusive to the Hall 01 audit, or click EXPORT EXECUTIVE REPORT to export the full executive report in JSON (with human-readable UTC timestamps).
HALL 02 — Compressor & Transcoder (02 / COMPRESSOR)
[LOSSLESS ENGINE & AUDIT]

Objective: Compress files or folders, restore contents with full mathematical precision, transcode formats, and verify forensic certificates.

1
Load Files or Folders: Drag and drop onto the central Drag & Drop zone or use the + ADD FILES and + ADD FOLDER buttons.
2
Choose the Operation:
  • Compress File: compresses individual files or entire directories, generating a .bgt / .bgtd container.
  • Restore Original: decompresses a .bgt* file while validating integrity via SHA-256 and displaying the exact restoration percentage.
  • Convert File: transcodes pre-compressed formats (PNG, WAV, NPY, gzip) into .bgtu.
3
Precision Toggles and Optional Dictionary:
  • Authenticated Encryption (AES-256-SIV // Universal Passphrase): optional authenticated cryptographic protection (creation available on Growth/Enterprise plans). When enabled and executed, Studio opens a secure modal requesting a passphrase (minimum 12 characters) defined by you — never tied to your BGTL1 license. The same passphrase works identically in Studio, the CLI (--key), and the Python SDK, survives plan renewals or cancellations, and can be shared with third parties. Warning: store your passphrase safely, as it is unrecoverable. Decompressing/opening any encrypted file works freely on every plan, including free Community (simply supply the passphrase set during compression).
  • Issue Bit-Exact Delivery Certificate: generates an individualized certificate for the Hall 02 operation. On decompression, the modal includes the Round-Trip Integrity verification stamp and properly ordered SHA-256 hashes (compressed -> restored); on compression, it records the packet generation summary and SHA-256.
  • Real-Time Fast Mode: prioritizes maximum throughput for intensive pipelines.
  • Optional Domain Dictionary (.bgtpr): lets you apply a dictionary trained in Hall 04 to compress repetitive files even further (e.g., JSON logs, code, telemetry) and displays a comparison across original, standard, and .bgtpr sizes. When selecting a .bgtpr for compression, a confirmation modal reminds you of this critical point: keep a backup of this .bgtpr file, as it is indispensable to decompress the file later (decompression works on any plan, including Community, CLI, and SDK, provided the same .bgtpr is present).
4
Click EXECUTE COMPRESSION ENGINE [ ⏎ ].
5
Once complete, use DOWNLOAD RESULT to download the generated file and VIEW RECEIPT to view/copy/download the JSON certificate for this execution (isolated from other Halls and verifications).
6
Forensic Certificate Verifier (CRYPTOGRAPHIC AUDIT CERTIFICATE VERIFIER): In the dedicated section directly below in Hall 02, select any .json certificate issued by any plan and click OPEN / VERIFY CERTIFICATE to open the forensic modal with an authenticity banner (Ed25519 / HMAC signature and SHA-256 integrity), without overwriting the receipt of your last compression.
HALL 03 — Slab & Stream (03 / SLAB & STREAM)
[CONTAINERS & THROUGHPUT]

Objective: Inspect formats in O(1) time, manage single-file object vaults, and run parallel streaming.

  • Universal Format Inspector (UNIVERSAL FORMAT INSPECTOR): Click the path field at the top of the panel to open the file picker (or enter the path to any .bgt* file); in connected mode, selection automatically triggers inspection (with the INSPECT FILE button also available) to view line-by-line header metadata, format version (1.0), official description, size, and integrity without unpacking. Below the result, the 9 format profiles serve as a structural reference guide.
  • Indexed Object Vault (Slab Pool .bgtv):
    1. Click the .bgtv vault field to select an existing file on the system (or enter the path, e.g., my_vault.bgtv); in connected mode, the object list loads automatically upon selecting or confirming the path.
    2. Use + INSERT OBJECT to select one or multiple files (or specify an entire folder) at once; for 1 file the optional field defines the exact key, and for batches or folders it acts as an organizational prefix (e.g., models/v1/). Use the checkboxes with GET ALL / GET O(1) (N) (exports 1 file or a batch .zip archive) and DEL ALL / DEL (N) to bulk-extract or remove entries, plus COMPACT VAULT to optimize the vault.
    3. Optional Domain Dictionary in Vault (.bgtpr): you can attach a .bgtpr below the vault bar to individually compress each object stored in the .bgtv (greatly reducing the size of many small/repetitive files while keeping O(1) random access, and migrating existing objects when running COMPACT VAULT). Upon attaching the .bgtpr, Studio displays a notice confirming that the same .bgtpr must be preserved, as it is indispensable to open or extract objects with GET O(1) later (including on the free Community plan, CLI, and SDK).
    4. Optional Vault-Level AES-256 Encryption: the AES-256 checkbox next to the .bgtpr field is unchecked by default to preserve pure compression with zero per-file overhead. When checked to create/write a secure vault (Growth/Enterprise plan), it applies AES-256-SIV authenticated encryption to the entire .bgtv container (BGTV5\x03, only +16 B total in the file) using the passphrase (minimum 12 characters) entered in the modal — keep it safe, as it is unrecoverable. Any user (even without a commercial plan, on Community or CLI slab-get --key) can open and extract the vault by supplying the passphrase (and the .bgtpr, if used).
  • Parallel Streaming Engine (.bgts):
    1. Specify input and .bgts destination (and optionally a .bgtpr dictionary — the confirmation modal will remind you to back up the .bgtpr, since DECOMPRESS STREAM also requires the same .bgtpr file).
    2. Optionally check the AES-256 box next to the .bgtpr field (Growth/Enterprise plan) to protect the stream with a passphrase (≥12 characters) interoperable with stream-compress --key and stream-decompress --key.
    3. Adjust chunk size and worker count.
    4. Run RUN STREAM COMPRESSION or DECOMPRESS STREAM (decompression/restoration of original files operates without size limits or plan restrictions; if the stream is encrypted with AES-256, the modal prompts for the passphrase automatically).
HALL 04 — AI & LLM Studio (04 / AI KERNELS)
[COMPUTE-ON-COMPRESSED-DATA]

Objective: Simulate, benchmark, and train prior dictionaries for direct computation over compressed tensors and embeddings.

1
Select the Mathematical Kernel:
  • RAG Sub-Linear Top-K (Direct Sketch Index): direct vector search with 100% Recall@K by pruning irrelevant blocks.
  • Online Flash-SDPA Attention: attention computation directly over compressed KV-Cache slices.
  • Zero-Copy KV-Cache Offloader: structured swap with on-demand paged attention.
  • Direct Compressed Linear Projection (CUDA / Apple MPS Native): direct matrix product W · x + b on CPU, NVIDIA CUDA, or Apple Silicon MPS via BaguetCompressedLinear.from_torch.
  • Progressive Tensor & AllReduce (BGTP6) and Differential Fine-Tuning Checkpoint (BGTD6).
2
Adjust the test payload size (on the free Community license, the sandbox supports up to 16 MB; Pro/Growth/Enterprise plans scale according to quota).
3
Click RUN LIVE AI BENCHMARK [ ⏎ ] to measure the live kernel using a synthetic test tensor (no file upload required), or train a domain dictionary under TRAIN EMBEDDING PRIOR DICTIONARY by selecting the folder containing reference UTF-8 files (in the macOS folder picker, internal files appear dimmed because you are selecting the directory itself; Growth/Enterprise plan).
4
Inspect real-time telemetry and copy the ready-to-use Python integration snippet via COPY [⌘C].
HALL 05 — Licenses & Chancellery (05 / LICENSES)
[CRYPTOGRAPHIC PASSPORT & PLANS]

Objective: Manage the offline cryptographic passport (BGTL1), verify renewals, and subscribe to commercial plans.

1
Cryptographic Passport: Inspect organization, Key ID, offline validity, grace period days (with an automatic red visual alert if the token enters its final 7 days or grace window), and node/worker limits.
2
Activation and Verification/Renewal (ACTIVATE CREDENTIAL // CHECK / RENEW CREDENTIAL):
  • To activate a new token received via email or .bgtl1 file, paste the BGTL1.<payload>.<signature> text into the credential field and click ACTIVATE CREDENTIAL. The signature is validated locally via Ed25519 with zero external calls.
  • To revalidate or fetch a newer renewal, click CHECK / RENEW CREDENTIAL directly — you do not need to re-type or re-paste the token: Studio automatically inspects the active credential saved on your device (~/.baguet/license.key) and, if a newer renewal is available (locally or on an enterprise license server configured via BAGUET_LICENSE_REFRESH_URL), applies the update automatically.
3
Self-Service Subscription and Upgrade:
  • Toggle between MONTHLY and ANNUAL BILLING.
  • For Pro and Growth plans, click UPGRADE TO PRO ↗ / UPGRADE TO GROWTH ↗ to complete checkout securely via Stripe and receive your token by email with automatic activation upon returning to Studio.
  • For the Enterprise plan, use the institutional link or contact contact@soilore.com.

6.3 SETTINGS / TOOLS Panel (Tools, Updates, and Danger Zone)

Accessible at any time from the SETTINGS / TOOLS button in the top-right corner of the header, this panel brings together operational application utilities, subscription management, update verification, and shutdown/uninstallation:

  • RUN SELF-TEST SUITE: Runs the deterministic engine self-test battery and validates installation integrity.
  • MANAGE / CANCEL SUBSCRIPTION ↗: Automatically displayed when an active paid plan (Pro or Growth) is present. Directs you to the secure billing portal to change payment methods or cancel automatic renewal without interrupting the remaining paid days.
  • CHECK FOR UPDATES: Checks if a new release is available by querying the official release channel. Requires internet access (clearly informing you if the device is offline).
  • SIGNED OFFLINE UPDATE VERIFIER (VERIFY OFFLINE UPDATE): Allows selecting a local .bgtupd package or .json manifest to verify its Ed25519 cryptographic signature and anti-rollback protection 100% offline before updating.
  • DANGER ZONE (Shutdown and Complete Removal):
    • STOP ACTIVE STUDIO SESSION: Prompts for confirmation and immediately shuts down the active session's local server, closing Studio while keeping your licenses and settings intact.
    • UNINSTALL BAGUET COMPLETELY: Completely removes the baguet package, the desktop application (Baguet.app), context menu integrations, and the ~/.baguet user directory, requiring exact input of DELETE in the confirmation dialog.

7. Benchmarks and Industry Comparison

SEC.CAT-07

The following results were certified from BAGUET technical audit reports. All measurements reflect deterministic executions with cryptographic SHA-256 integrity validation and strict floating-point tolerance np.allclose(atol=1e-5, rtol=1e-5) for matrix operations.

1:1 MEMORY SAVINGS RULER // CRITICAL PRODUCTION CASES [PHYSICAL SCALE PROJECTION]
LARGE-SCALE FP16 KV CACHE (67,117,056 B RAW) 99.90% REDUCTION (1,008× SMALLER)
SAFETENSORS RAW: 67.1 MB
BAGUET: 66.5 KB
RAG TOP-K EMBEDDINGS (262,144 B RAW) 4.00× SMALLER // 100% RECALL@K
ZSTD LEVEL-3: 239.8 KB
BAGUET: 65.5 KB

7.1 AI Data and Compute-on-Compressed-Data

Workload Raw Input BAGUET Output Alternative / Standard Observed Performance & Metrics
RAG Top-K Embeddings 262,144 B 65,536 B Zstandard (level 3): 239,862 B 4.00× smaller than original; Top-K search completed in 1.78 ms p50 with 100% Recall@K (292.5× faster)
LLM KV Cache (Attention) 262,144 B 96,732 B Zstandard (level 3): 233,570 B 2.71× smaller than original; direct attention executed in 0.29 ms to 1.84 ms (up to 414.8×)
Large-Scale FP16 KV Cache 67,117,056 B 66,545 B SafeTensors (raw): 67,117,184 B 99.90% reduction vs. input; approx. 1,008× more compact; execution in 1,350.13 ms (4.93×)
Neural Network Weights (BF16) 2,097,240 B 1,410,383 B Blosc2 (1,492,881 B) / ZipNN (1,535,445 B) 32.75% smaller than original; smaller than all frontier competitors; inference in 14.30 ms
LoRA Delta Checkpoint (BGTD6) 524,342 B 2,739 B Standalone Weights: 419,634 B Delta is 99.35% smaller than standalone weights (191.4× smaller); restoration in 286.38 ms (2.28×)
Progressive FP32 Tensor (BGTP6) 40,960 B 49,329 B (Base: 14,421 B) Raw FP32 Tensor: 40,960 B Base layer saves 64.80% GPU traffic on fast startup; execution in 0.36 ms (9.73×)

7.2 Multimedia and Specialized Codecs

Modality Raw Input BAGUET Output Specialized Standard Codec Comparison vs. Industry Standard
Mono PCM16 Audio 96,000 B 3,163 B FLAC (FFmpeg): 46,066 B 93.1% more compact than FLAC; restoration in 0.72 ms
Volumetric Video / CT Gray8 65,536 B 103 B FFV1 Matroska: 2,662 B 96.1% more compact than FFV1; restoration in 0.21 ms
24-bit RGB Image 36,864 B 2,832 B PNG (Pillow): 4,962 B 42.9% more compact than PNG; restoration in 0.07 ms
Gzip Transcoding 31,548 B 3,734 B Original Gzip: 31,548 B 88.16% smaller than gzip file; restoration in 0.89 ms

7.3 Streams and Structured Data

Scenario Raw Input BAGUET Output Market Alternatives Performance & Latency
Core 53 Aggregated Suite 1,922,921 B 60,980 B Zstd: 227,515 B; Brotli: 209,327 B 96.83% reduction vs. input; 31.5× more compact
Repetitive Telemetry Stream 1,200,000 B 2,396 B LZ4 (fast block): 4,750 B 49.6% smaller than LZ4; restoration in 0.77 ms
Structured JSONL Logs 4,640 B 237 B Zstandard (level 3): 1,120 B 94.89% reduction (19.58×); operation in 0.64 ms p50
Object Vault (Slab Pool) 9,480 B 1,518 B TAR + Gzip: 3,890 B 61.0% smaller than TAR + Gzip; indexed access in ~0.18 ms
METHODOLOGY // ENTROPY METHODOLOGY NOTE AND REAL-WORLD ENTROPY RANGES
The results in the tables above reflect real production datasets. In practice, the lossless reduction rate achieved by Baguet Studio or via the CLI follows three fundamental physical rules:

1. Raw, Structured Data and AI Tensors (50% to 98%+ reduction): Columnar/CSV tables, telemetry time series, repetitive logs, AI model weights (.safetensors, FP16/BF16), genomics (.bam/.fastq), scientific matrices, and raw medical/spatial imagery (.dcm, .fits, .tiff) possess high algebraic structure and multi-column correlation, achieving the highest reduction ratios in dedicated containers (.bgtt, .bgtp, .bgtu).

2. Media and Pre-Compressed Source Files — Bijective Transcoding (5% to 48% additional reduction): Formats such as .png, .jpeg, .mp4, .mov, .flac, .pdf, and .docx already apply native entropy compression (DEFLATE, AAC/H.264, FLAC). For these formats, Baguet operates via Bijective Transcoding (CONVERT FILE), unpacking the stream and applying superior contextual modeling before sealing the .bgt container, with guaranteed bit-for-bit (SHA-256) restoration of the original file. On very small files (< 100 KB) or files already optimized near the theoretical entropy limit, variance may range between 0% and 15%.

3. Encrypted Data or Random Noise (~0%): Previously encrypted streams (AES/TLS) or pure hashes possess maximum Shannon entropy (with no mathematical redundancy exploitable by any lossless compressor). In these cases, the engine automatically triggers a safety bypass to preserve exact byte integrity without inflating the file.

7.4 Strict Gate Latency and Industrial Reliability

  • [GATE]
    Core 53 Strict Gate: All 5 rounds of 53 scenarios completed with an average of 56.01 ms (standard deviation of 0.25 ms).
  • [ASAN]
    C-ABI Sanitizers & Zero Leaks: Over 16,600 FFI calls instrumented with ASan/UBSan and TSan with zero memory leaks or data races recorded.
  • [FUZZ]
    Intensive LLVM Fuzzing: Over 561 million automated executions without crashes, panics, or memory overflows.

7.5 5-Minute Real-World Test (1M RAG Vectors + 64K KV-Cache + Real SafeTensors + Prior)

Any user can audit Baguet 1.0's real-world performance on their own machine using production Transformer model weights (xlm-roberta-large/model.safetensors, 2.24 GB / 396 tensors), a 1,000,000-vector RAG index, 65,536-token KV-Cache offloading, and a contextual Domain Prior (.bgtpr) dictionary in under 2 minutes:

Audited Act Raw Input macOS Apple Silicon (Darwin-arm64) Linux ELF64 Docker (Linux-aarch64) Mathematical Guarantee
Act 1 — SafeTensors .bgtt + Linear W·x 8.39 MB (FP32) 3.64 MB (43.43% RAM / -56.57%) · 28.89 ms mmap 3.64 MB (43.43% RAM / -56.57%) · 21.30 ms mmap SHA-256 Bit-Exact (Linear max_abs_err = 0.0)
Act 2 — 1,000,000-Vector RAG Index (FP16) 256.00 MB 55.55 MB Index (-78.30% / 4.61×) · 44.73 MB .bgt (-82.53%) · 11.67 ms 55.49 MB Index (-78.32% / 4.61×) · 44.73 MB .bgt (-82.53%) · 13.20 ms Recall@10 = 100.0% (90.0% blocks pruned)
Act 3 — 65,536-Token KV-Cache Offloader 134.22 MB 11.31 MB (8.43% RAM / -91.57% / 11.86×) · 12.61 ms SDPA 11.31 MB (8.43% RAM / -91.57% / 11.87×) · 15.96 ms SDPA SHA-256 Bit-Exact (error ≤ 7.17e-8)
Act 4 — Contextual Domain Prior (.bgtpr) 3,056 B 41 B (-98.66% / 74.54× / 5.41× vs .bgt) · 2.56 ms 41 B (-98.66% / 74.54× / 5.41× vs .bgt) · 2.36 ms SHA-256 Bit-Exact (vs 222 B standard)
Active Global Balance (All 4 Acts) 398.61 MB 70.51 MB (17.69% RAM / -82.31%) · 106.35 s 70.45 MB (17.67% RAM / -82.33%) · 98.83 s 100% End-to-End Verified
SHELL // 5-MINUTE REPRODUCTION & NOTEBOOK EXPORT (.IPYNB) bash
# Run the complete 1M RAG vectors + 64K KV-Cache + SafeTensors showcase: python examples/quickstart.py --real-ai-showcase # Generate a self-contained Jupyter Notebook (.ipynb) for JupyterLab, VS Code, or Colab: python examples/quickstart.py --export-notebook baguet_real_ai_5min.ipynb

8. Licensing, Commercial Matrix, and Offline Governance (BGTL1)

SEC.CAT-08

BAGUET is distributed under the proprietary Baguet EULA v1.0 license agreement (Perpetual Free Decompression Grant):

FORMAL STATEMENT UNCONDITIONAL RIGHT TO ZERO VENDOR LOCK-IN
All reading, universal decompression (.bgt), container reversal (.bgtu), mmap extraction (.bgtt), and SHA-256 integrity verification routines are guaranteed under Baguet EULA v1.0 (Grant I): 100% FREE, PERPETUAL, AND GRATIS FOREVER.

Advanced compression technology, multi-threaded SIMD acceleration, and direct compute-on-tensor kernels for production are governed by offline cryptographic tokens BGTL1, asymmetrically signed via Ed25519 (RFC 8032).

8.1 Commercial Plans and Tiers Matrix

Technical Feature / Limit 00. Community (Open Reader) 01. Pro (AI Builder) 02. Growth (AI Scale — Most Popular) 03. Enterprise (Air-Gapped)
Contracting Mode Free Access Commercial Subscription Commercial Subscription Custom Agreement (contact@soilore.com)
Universal Decompression & Reversal Unlimited (Free & Perpetual under EULA) Unlimited Unlimited Unlimited
BAGUET Studio, CLI & Ed25519 Receipts Included Included Included Included
File Compression (Standard) Unlimited (any size) Unlimited (any size) Unlimited (any size) Unlimited (any size)
Deployment Scale (Nodes/Containers) 1 node (Local Use) Up to 8 nodes Up to 64 nodes Unlimited Nodes
Native Concurrency (Workers) 2 Workers 16 Workers 64 Workers 64 Workers / node
Grace Period 0 days 7 days 15 days 90 days
Tensor & AI Kernel Ceiling 16 MiB Sandbox (Fast-Mode disabled) Up to 32 GiB (Fast-Mode, Flash-SDPA, RAG, Deltas; AllReduce 16 MiB) Full AI Suite + AllReduce up to 256 GiB Full AI Suite + AllReduce up to 4 TiB
Standard Media Conversion Up to 64 MiB Up to 64 MiB Up to 64 MiB Up to 64 MiB
Custom Dictionary (Prior) & AES-256 Encryption — — Included (Prior + AES-256-SIV) Included + HSM / KMS Modules
Signed Offline Updates — — — Included (Dedicated keys)
COMMERCIAL TERMS OFFICIAL PORTAL & SELF-SERVICE SUBSCRIPTION
Current Pricing and Commercial Terms:
As this document is an engineering technical guide and architectural reference, current self-service subscription pricing (Pro and Growth) and tailored Enterprise proposals (B2B under contract) are not hardcoded in this technical documentation. To view current pricing and complete a self-service subscription for Pro or Growth, visit the official commercial portal at https://baguet.soilore.com or use the interactive panel in BAGUET Studio (baguet studio -> Hall 05 Licenses). For Enterprise contracting, contact us directly at contact@soilore.com.

8.2 How to Activate a BGTL1 Token Offline

License validation operates 100% offline via Ed25519 public keys embedded in the library.

Via Environment Variable (Docker / Kubernetes):

SHELL // ENVIRONMENT VARIABLE bash
export BAGUET_LICENSE_TOKEN="BGTL1.eyJleHAiOjE4MD...<payload>.signature"

Via Command Line (Local Persistence):

CLI // DISK PERSISTENCE bash
baguet license activate "BGTL1.eyJleHAiOjE4MD...<payload>.signature"

Via Python SDK:

PYTHON // DIRECT INSTANTIATION python
import os
from baguet_sdk import core

# Pass the BGTL1.<payload>.<signature> token (or None to operate on the Community tier)
token = os.environ.get("BAGUET_LICENSE_TOKEN")
engine = core.BaguetEngine(license_token=token)

8.2.1 Subscription Renewal, Grace Period, and Optional Synchronization

  • Automatic Subscription Renewal: On monthly and annual plans (Pro and Growth), once payment is confirmed for each new billing cycle, a new BGTL1 token is issued and sent to your purchase email, ready for activation via ACTIVATE CREDENTIAL in Hall 05 or baguet license activate.
  • CHECK / RENEW CREDENTIAL Button: Does not require pasting the token again — it automatically revalidates the active credential saved on your device (~/.baguet/license.key) and synchronizes any newer available token.
  • Grace Period: If the credential expires before the new token is applied, paid plans enter a tolerance window (7 days for Pro, 15 days for Growth, and 90 days for Enterprise). During this interval, the Passport in Hall 05 highlights the warning in red and features continue operating normally. Once the grace window ends, paid features are suspended, while file reading and decompression remain free and unlimited forever.
  • Optional use of BAGUET_LICENSE_REFRESH_URL: Intended for teams or enterprise environments with a dedicated license distribution server. It is empty by default, keeping Baguet 100% offline with zero external calls. When configured, Baguet does not maintain a persistent connection or upload user files: it performs only point checks near expiration or when you trigger CHECK / RENEW CREDENTIAL, continuing to operate offline if the network is unavailable.

8.3 Environment Variables and Operational Hardening

The BAGUET ecosystem supports an audited set of environment variables for container orchestration, high-criticality clusters, and vulnerability mitigation in third-party native dependencies:

Environment Variable Values / Type Purpose and Operational Behavior
BAGUET_LICENSE_TOKEN String (BGTL1) Ed25519 cryptographic token for offline activation of Pro, Growth, or Enterprise licenses in environments without persistent disk (Docker / Kubernetes / CI).
BAGUET_REQUIRE_PATCHED_BROTLI "1" / "0" Defensive mitigation against CVE-2026-111497 (Brotli HTTP2Shell / Broccoli2Shell). When set to "1", the engine requires C library brotli >= 1.2.1 to unwrap pre-compressed streams in _unwrap_precompressed_stream; older versions are safely handled as raw without feeding the vulnerable C decompressor.
BAGUET_DISABLE_BROTLI_PROBE "1" / "0" Completely disables any attempt to probe or decompress Brotli streams, immediately returning raw data as raw.
BAGUET_HOME Path (Directory) Sets the base directory for storing local licenses, node leases, and preferences (default: ~/.baguet).
BAGUET_LANG "en" | "pt" | ... Overrides automatic OS language detection for the CLI and Studio (7 languages supported).
BAGUET_NODE_ID String Explicit node identifier for tracking and release in concurrent Floating Node Lease management.
BAGUET_LICENSE_DIR Path (Directory) Dedicated alternate directory for storing the local license file (license.key) without altering other data in BAGUET_HOME.
BAGUET_LICENSE_REFRESH_URL HTTPS URL Optional HTTPS endpoint configured by enterprise administrators for point-in-time license synchronization near expiration or via CHECK / RENEW CREDENTIAL; empty by default in offline operation.

8.4 Offline Cryptographic Integrity & Official Keys

Enterprise and air-gapped operators can independently audit the authenticity and binary integrity of their local BAGUET 1.0 runtime against the official Soilore technical keys below — with zero internet access or telemetry required.

Cryptographic Identifier Algorithm / Standard Official BAGUET 1.0 Value
Official Native Engine Hash SHA-256 (FIPS 180-4) b62bfca70fa24d1b12cdc326fbc73353f521f6ef5ec3a78d0025cb066f00354b
Registration & Release Public Key Ed25519 (RFC 8032)
Key ID: ed25519-soilore-official-2026
23b11828301daf36688ba58ac1e863108cecde14aa4b8751432448548155f537
ZERO-TRUST VERIFICATION // OFFLINE AUDIT NO NETWORK CALLS REQUIRED
100% Air-Gapped Auditability: Comparing the SHA-256 digest of your installed native binary and validating release/license artifacts against the Ed25519 public key (ed25519-soilore-official-2026) confirms zero tampering across local workstations, CI/CD runners, and isolated production clusters.

9. Updates, Maintenance, and Uninstallation

SEC.CAT-09

9.1 Update Workflow (Online and Offline)

  1. [01]
    Check for New Release in Studio: Click SETTINGS / TOOLS → CHECK FOR UPDATES (requires active internet). If operating on an air-gapped network, use the VERIFY OFFLINE UPDATE button or baguet verify-update file.bgtupd to validate the package's Ed25519 signature before installing.
  2. [02]
    Back up your license and preferences in ~/.baguet/ preventatively before updating.
  3. [03]
    Update via Pip, Conda, or the new official Desktop installer:
    pip install --upgrade baguet
    # or via Conda:
    conda update -c soilore baguet
  4. [04]
    Run the deterministic self-test suite (or in Studio via RUN SELF-TEST SUITE):
    baguet self-test
  5. [05]
    Restart Studio and run a quick sample compression and restoration cycle to validate the new binary in production.

9.2 Session Shutdown and Complete Uninstallation

  • Stop only the current server in Studio: Under SETTINGS / TOOLS → DANGER ZONE, click STOP ACTIVE STUDIO SESSION to shut down the local server and close the app while keeping licenses and files intact.
  • Complete uninstallation via Studio: Under SETTINGS / TOOLS → DANGER ZONE, click UNINSTALL BAGUET COMPLETELY and type DELETE exactly in the confirmation dialog. The wizard removes the package, the desktop application (Baguet.app), context menu integrations, and the ~/.baguet/ folder, then closes Studio.
  • Alternative terminal removal: If using only the Python environment installation, run pip uninstall baguet in the corresponding virtual environment.

10. Troubleshooting & FAQ

SEC.CAT-10

Error Diagnostics and Resolution Table

Symptom / Error Probable Cause Resolution Action
ImportError: cannot import name 'baguet_sdk' Incorrect Python environment or missing package Activate the correct virtual environment (source .venv/bin/activate); verify installation with python -m pip show baguet.
Missing native Rust core error Package lacks a compiled native library for this architecture Install the official release for your system (x86_64 or arm64). Do not copy dynamic libraries (.so/.dylib/.dll) across different operating systems.
BaguetIntegrityError: Integrity violation detected Truncated file, disk corruption (bit-rot), or mismatched SHA-256 hash The engine operates in fail-closed mode. Check file size, verify backups, and inspect the header by running baguet info <file>.
BaguetSecurityError: Decompression bomb blocked Output exceeds the in-memory safety ceiling (MAX_DECOMPRESSED_BYTES, default 64 MB) For large files, use the parallel streaming engine (baguet stream-compress) or instantiate the engine with a higher ceiling: BaguetEngine(max_decompressed_bytes=1024*1024*1024).
BaguetSecurityError: Packet marked as keyed requires BGT-AE key File was written with authenticated encryption (AES-256-SIV) and the symmetric key was not supplied Provide the matching key: baguet decompress file.bgt restored.bin --key "your-key" or in the SDK: BaguetEngine(license_key=b"your-key").
BaguetSecurityError: Invalid or expired BGTL1 token Invalid token signature, untrusted key, or expired past the grace period Verify that your system clock is accurate and request credential renewal; during the grace period, the engine continues operating normally.
BaguetPriorMismatchError: Incompatible prior File was compressed with a specific domain dictionary that was not provided during restoration Supply the original .bgtpr file used during compression: baguet decompress file.bgt output.bin --prior domain.bgtpr.
Address already in use when starting Studio Local port 8765 is already in use by another instance Specify an alternate port: baguet studio --port 9000.
Studio disconnected or opened via file:// Page was opened as a static file (file://) instead of launching the local server Launch through the Baguet.app desktop application or the baguet studio command and navigate to http://127.0.0.1:8765/ in your browser.
CVE-2026-111497 / Brotli HTTP2Shell Malformed stream triggering invalid block switch or buffer loop in outdated libbrotli (< 1.2.1) BAGUET includes a multi-block guard with a 64 KiB cap and anti-stall lock that safely aborts to raw. To block vulnerable libraries, set export BAGUET_REQUIRE_PATCHED_BROTLI=1 or disable probing with export BAGUET_DISABLE_BROTLI_PROBE=1.
BaguetSecurityError: Host is not an allowed loopback authority Access to local Studio via DNS rebinding or external Host header The Studio HTTP server blocks requests with non-local Host headers (Host Socket Guard). Access exclusively via http://127.0.0.1:8765/ or http://localhost:8765/.

Frequently Asked Questions (FAQ)

FAQ // QUESTION 01 DATA ACCESS & CANCELLATION
Q: Can files compressed with BAGUET become inaccessible if our company cancels its subscription?
A: No. All reading, universal decompression (.bgt), container reversal (.bgtu), and memory-mapping (mmap) routines are perpetually guaranteed free of charge under Grant I of the Baguet EULA v1.0. You have a technical guarantee to access and decompress your data forever at no additional cost.
FAQ // QUESTION 02 AI MODEL INTEGRITY
Q: Does BAGUET alter AI model weights at any decimal place?
A: No. BAGUET operates with 100% bit-exact reconstruction. Restored tensors return strictly the exact same original IEEE 754 bits, automatically validated by SHA-256 signature.
FAQ // QUESTION 03 CONFIDENTIALITY & REGULATORY COMPLIANCE
Q: Is it safe to use BAGUET with confidential or regulated data (LGPD, GDPR, HIPAA)?
A: Yes. BAGUET runs 100% locally on your company's hardware, with no outbound internet calls and zero telemetry. To protect against leaks at rest, the engine offers BGT-AE (AES-256-SIV — RFC 5297) shielding with HKDF-SHA256 key derivation.
FAQ // QUESTION 04 MATHEMATICAL COMPRESSION LIMITS
Q: Does BAGUET always reduce the size of every file?
A: No. No mathematically viable lossless compression algorithm can shrink every arbitrary byte sequence (by the Pigeonhole Principle). For already-compressed or completely random data, the output may retain its original size with a minimal header overhead.
FAQ // QUESTION 05 SUBSCRIPTION EXPIRATION & GRACE PERIOD
Q: What happens when a production license expires?
A: The engine activates the cryptographically embedded grace period in the token (7 days for Pro, 15 days for Growth, and 90 days for Enterprise), keeping all operations active while logging warnings. Even after the grace period ends, all reading and decompression routines remain free and unlimited.

11. Quick Glossary

SEC.CAT-11
  • [GL-01]
    Lossless: Reconstruction that strictly reproduces the exact original bit and byte sequence, validated by SHA-256 integrity verification.
  • [GL-02]
    Compute-on-Compressed-Data: Execution of mathematical operations (vector search, attention, and linear algebra) directly on data in its compressed format without prior decompression.
  • [GL-03]
    KV Cache: Key and value tensors accumulated during sequential inference of large language models (LLMs).
  • [GL-04]
    Sketch Pruning: Selective filtering of vector blocks directly over compressed data, discarding irrelevant candidates without dense decompression.
  • [GL-05]
    Virtual Slab Pool: Single-file vault organizing multiple logical records or files with O(1) retrieval and validation.
  • [GL-06]
    Domain Prior: Contextual statistical matrix trained on real data samples to optimize entropy on repetitive streams.
  • [GL-07]
    BGT-AE: Deterministic authenticated encryption layer based on AES-256-SIV (RFC 5297) with HKDF-SHA256 key derivation (RFC 5869).
  • [GL-08]
    Loopback: Local network address strictly restricted to the host machine itself (127.0.0.1), preventing unauthorized external connections.

Annex A — Inventory of Documented Python Interface

ANX.CAT-A

Namespace baguet_sdk.core

  • [CLS]
    Classes and Engines: BaguetEngine, BaguetPriorDictionary, BaguetPriorTrainer, BaguetVirtualSlabPool, BaguetStreamEngine.
  • [EXC]
    Exceptions: BaguetError, BaguetSecurityError, BaguetIntegrityError, BaguetContingencyWarning, BaguetPriorMismatchError, BaguetNotFoundError.
  • [OPS]
    Operations: compress_bytes, decompress_bytes, inspect_file_info.

Namespace baguet_sdk.ai

  • [AI]
    Tensor and AI Kernels: compress_kv_cache, decompress_kv_cache, BaguetKVCacheOffloader, compressed_kv_attention_forward, compressed_kv_attention_fp16, compressed_linear_forward, compressed_linear_forward_bf16, compressed_linear_forward_fp32, compress_embeddings, decompress_embeddings, search_compressed_embeddings_topk, build_embedding_sketch_index, query_compressed_embeddings_topk, compress_tensor_progressive, decompress_tensor_progressive, compress_safetensors_dict, decompress_safetensors_dict, compress_safetensors_delta, decompress_safetensors_delta, open_mmap_safetensors, decompress_safetensors_tensor_mmap, extract_surprisal_ranks, reconstruct_from_ranks, BaguetCompressedLinear.

Namespace baguet_sdk.media

  • [MED]
    Multimedia Codecs and Transcoding: compress_image_rgb, decompress_image_rgb, compress_audio_pcm16, decompress_audio_pcm16, compress_video_3d, decompress_video_3d, transcode_compressed, untranscode_compressed.

Namespace baguet_sdk.license

  • [LIC]
    Licensing and Verification: BaguetLicenseManager, BaguetCryptographicReceipt, BaguetUpdateManager.
  • [METH]
    Core Methods: verify_license_token, save_local_license, load_local_license, refresh_license_token_if_needed, verify_receipt, verify_update_manifest.

Namespace baguet_sdk.studio

  • [STU]
    Local Interface and Utilities: BaguetLocalDashboard, install_desktop_integration, audit_roi, generate_audit_receipt.

Annex B — Advanced Engine Operations (BaguetEngine)

ANX.CAT-B

Model Weights and PyTorch Tensors

PYTHON // MODEL WEIGHTS & TORCH TENSORS python
import numpy as np
from baguet_sdk import core

engine = core.BaguetEngine()
weights = {
    "layer.weight": np.arange(16, dtype=np.float16).reshape(4, 4),
    "layer.bias": np.zeros((4,), dtype=np.float32),
}
model_packet, bits = engine.compress_model_weights(weights)
restored_weights = engine.decompress_model_weights(model_packet)
assert np.array_equal(restored_weights["layer.weight"], weights["layer.weight"])

tensor = np.arange(32, dtype=np.float16).reshape(2, 4, 4)
tensor_packet, tensor_bits = engine.compress_torch_tensor(tensor)
restored_value = engine.decompress_torch_tensor(tensor_packet)
restored_tensor = restored_value.detach().cpu().numpy() if hasattr(restored_value, "detach") else restored_value
assert np.array_equal(restored_tensor, tensor)

Indexed Catalog and Single-Tensor Access

PYTHON // INDEXED SAFETENSORS python
import numpy as np
from baguet_sdk import core

engine = core.BaguetEngine()
tensors = {"layer.weight": np.ones((4, 4), dtype=np.float16)}
packet, bits = engine.compress_safetensors_indexed(tensors)
manifest = engine.inspect_safetensors_manifest(packet)
single_tensor = engine.decompress_safetensors_tensor(packet, "layer.weight")
assert np.array_equal(single_tensor, tensors["layer.weight"])

Progressive Base, Surprisal Ranks, and Entropy

PYTHON // PROGRESSIVE & SHANNON ENTROPY python
import numpy as np
from baguet_sdk import core

engine = core.BaguetEngine()
tensor = np.ones((8, 8), dtype=np.float32)
progressive_packet, metadata = engine.compress_tensor_progressive(tensor)
base_packet = engine.extract_progressive_base_stream(progressive_packet)
preview = engine.decompress_tensor_progressive(base_packet, full_precision=False)

entropy = engine.shannon_entropy(b"telemetry sample")
assert entropy > 0.0

Local License and Optional Synchronization

PYTHON // CREDENTIAL MANAGEMENT python
import os
from baguet_sdk import license

token = os.environ.get("BAGUET_LICENSE_TOKEN")
if token:
    license.BaguetLicenseManager.save_local_license(token)
    stored = license.BaguetLicenseManager.load_local_license()
    verified = license.BaguetLicenseManager.verify_license_token(stored)
    # Synchronize one-time renewal only if BAGUET_LICENSE_REFRESH_URL is configured
    renewed = license.BaguetLicenseManager.refresh_license_token_if_needed(stored)

Studio Server and Dashboard via Python

PYTHON // LAUNCHING STUDIO VIA SDK python
from baguet_sdk import core, studio

engine = core.BaguetEngine()
dashboard = studio.BaguetLocalDashboard(engine=engine)
server = dashboard.make_server(host="127.0.0.1", port=8765)
server.server_close()
CODE COPIED [OK]