MicroLLM v0.4.1 — Portable Vault Configuration, Release Hygiene & Reproducible Packaging¶
MicroLLM v0.4.1 (micro-jev) is a maintenance, privacy-hygiene, and packaging reproducibility patch release following v0.4.0. It aligns published PyPI (sdist / wheel), GitHub Release, and Docker Hub artifacts with the scrubbed Git tree, generalizes Hugging Face credential resolution for portable environments, and reinforces CI standalone-wheel and repository hygiene checks.
Key Highlights¶
- Portable KeePass Vault Resolution (
microllm.hf_publishing): - Generalized
get_vault_paths()andresolve_hf_token()to use environment variables (MICROLLM_KEEPASS_DB,KEEPASS_DB,KEEPASS_DB_PATHandMICROLLM_KEEPASS_KEY,KEEPASS_KEY,KEEPASS_KEY_PATH) with a clean cross-platform default fallback at~/.config/microllm/vault.kdbx(#269). - Removed legacy workstation-specific path references from packaged distributions (
wheelandsdist). - Repository Privacy & Packaging Hygiene Suite:
- Added automated CI regression suite (
tests/test_repo_privacy_hygiene.py) enforcing.gitignorecoverage on local vault files (*.kdbx,*.keyx) and private outreach artifacts, zero hardcoded OS user paths, and zero leaked personal contact metadata across all tracked files (#269). - Re-aligned cryptographic
SHA256SUMS.txt, PyPI distributions, and Git tag provenance (RCA-093,RCA-095). - CI Standalone Wheel & Version Synchronization Guardrails:
- Updated isolated out-of-tree wheel integration assertions in
.github/workflows/ci.yml(#267,RCA-092). - Added
test_all_version_surfaces_synchronizedintests/test_packaging_ci.pyto guarantee lockstep alignment acrosspyproject.toml,microllm.__version__, FastAPIcreate_app().version, MCPserverInfo.version, and.github/workflows/ci.yml. - Hardened
packaged_wheelfixture intests/test_audit18_m4_cicd_packaging.pyso standalone packaging checks build the wheel on demand ifdist/is empty. - Documentation & Governance Traceability:
- Updated
docs/ACTION_LOGBOOK.md(ACT-121–ACT-124) anddocs/RCA_REGISTER.md(RCA-092–RCA-095).
Quality & Performance Summary¶
- Test Suite:
1,371unit, integration, adversarial, and privacy-hygiene tests passing (0failed,1skipped;92%code coverage across9,449statements),0flake8/mypyissues,16/16LaTeX math syntax checks passing. - Core v0.4.x Engine Capabilities Preserved:
- Logit-space
S1-SHAPcounterfactual attribution (original_log_odds,logit_drop). - Inter-clause evidence-competition hijack defense (
x_hijack_suspected,x_abstain=True). - Coding-agent
policy_boundaries(allowed/forbidden) with remainder-based destructive hazard inspection and NFKC Unicode normalization. - Verified CPU throughput:
0.013 msp50 (38,917 decisions/sontest_cases_11000) across the 12-suite / 28-dataset benchmark campaign.
Installation & Quickstart¶
1. Package Upgrade¶
Or run via multi-arch Docker (linux/amd64, linux/arm64):
2. Python SDK Quickstart¶
from microllm import MicroJevClient
client = MicroJevClient()
decision = client.choice(
state="Payment gateway reports timeout on transaction #TX-98421.",
question_id="recovery_action",
question_text="Select the recommended recovery action.",
options=[
("retry_idempotent", "Retry with idempotent key"),
("reverse", "Reverse transaction and refund"),
("alert_oncall", "Alert engineering oncall"),
],
)
print(decision.best_option, round(decision.confidence, 4), decision.x_abstain)