Repository navigation
Releases
MIZAN 3.2.0: real data, sealed protocols
MIZAN 3.2 takes two of its three systems off generated data and runs them, unchanged, on real public data. For both, the protocol was sealed in code before the real data was scored, a fidelity gate first had to reproduce the published results, and the whole run was repeated identically in a second process. The answers are published as they came out, every figure with its interval. The engines, the signed exhibit and the pinned key are unchanged.
Live: https://komail6222-png.github.io/mizan/
Inspection on real images: https://komail6222-png.github.io/mizan/report/visa/
Battery planning on real load: https://komail6222-png.github.io/mizan/report/opsd/
Release notes, protocols, disclosures and limits: docs/RELEASE_3.2.md
BASIRA on real images (VisA)
12 product types from the public VisA dataset (Zou et al., 2022, CC BY 4.0), each treated as one customer's product line: 962 normal and 1,200 defective test images from the official split. Evidence in reports/visa/.
- The false-alert promise: every exact exchangeability check (9 pooled, 27 by type) reads consistent. The check flags only clear departures, so this means no check found a departure.
- Detection is low. At the 5% target with the full bank, the shipped descriptor catches 26.8% of defective images (95% interval 24.3% to 29.4%). DINOv2-small catches 36.3% on the engine's greyscale input and 38.6% (35.8% to 41.4%) at native colour input. Each step is a resolved paired gain.
RASID on real load (OPSD)
811 real days at two business sites from the Open Power System Data household package (CC BY 4.0, primary data from the CoSSMic project, Konstanz): a warehouse (538 days) and a research-institute building (273 days). Load is reconstructed as grid import plus solar. The battery is hypothetical and scaled to each site, and costs are in RASID's illustrative tariff units, with no currency. Evidence in reports/opsd/.
- Verification: the independent verifier accepted all 5,677 plans.
- Forecasting: the shipped ridge forecaster's error is not resolved from a seasonal baseline that repeats last week's load. Chronos-Bolt-tiny's error is 14.0% of mean load against 19.4% (difference −5.4 points, 95% interval −6.6 to −4.1), resolved.
- Planning, as a share of the battery's achievable value, both sites weighted equally:
- Chronos without the risk weight: 58.0% (56.3% to 61.1%).
- Seasonal baseline: 41.6%.
- Shipped risk-aware ridge plan: 24.9% (22.7% to 29.7%). It costs more than the baseline plan: +1.4% of the daily cost without a battery (+1.0% to +1.7%), resolved.
- Disclosure: 69 of the warehouse's planned days repeat, hour by hour, the day one or two weeks earlier, an unflagged gap fill in the source. A separate check without them (
reports/opsd/copies.json) changes no reading.
Also in 3.2
- Two results pages:
report/visa/andreport/opsd/. - Guarded bilingual blocks on the introduction, whose figures and phrases come from the evidence.
docs/DATA_LICENSES.mdwith both attributions.- Pinned, verified downloads:
scripts/fetch_visa.pyandscripts/fetch_opsd.py. - Run logs that record every run touching the real data.
Verification
- Tests: 289. 285 pass and 4 model-loader tests skip in the main environment; those 4 pass in the optional Hugging Face environment. The same suite passes on Python 3.13.
- Signatures: the pinned exhibit key
9a627609…df436verifies all 7 signed results, and the browser checks found 0 contrast failures in 10,548. - Checksums:
sha256sum -c SHA256SUMSpasses. - No currency: VisA and OPSD are real public data, not MIZAN's own, and they certify no production line.
MIZAN 3.1.0: foundation models, measured honestly
MIZAN 3.1 asks one question per system: does a pretrained foundation model do better than MIZAN's current component, on the same held-out data and the same metrics? Each of three pinned Hugging Face checkpoints replaces one component, used frozen, without fine-tuning:
facebook/dinov2-smallreplaces BASIRA's descriptor.amazon/chronos-bolt-tinyreplaces RASID's forecaster.intfloat/multilingual-e5-smallis tried as SANAD's retriever.
A result was kept only if two conditions held: a fidelity gate first re-reproduced the current component in the new harness, and a second run was identical. The models never hold decision authority. The grammar and the verifiers still decide.
Live: https://komail6222-png.github.io/mizan/
Full comparison: https://komail6222-png.github.io/mizan/report/models.html
Release notes, protocol, disclosures and limits: docs/RELEASE_3.1.md
Results
All data are generated fixtures, and the evidence is in reports/hf/.
- BASIRA.
- On the frozen test, DINOv2 gave 1 false alert out of 40 against 8, and both detected 40 of 40 defects. This rests on one calibration bank.
- Over 400 random banks per size, the mean false-alert rates are roughly equal. That is what split-conformal calibration guarantees for any descriptor.
- RASID.
- Load error changes by −0.221 kW (95% interval −0.698 to +0.118), not resolved. The 80% ranges cover the load less often (65.1% against 74.7%), which is resolved.
- Under the risk-neutral planner, the daily cost changes by −0.135 (−0.507 to +0.154), not resolved.
- The risk-weighted plan costs +1.060 more per day (+0.328 to +1.641). Much of that comes from the fixed scenario rule, and Chronos's realised tail is lower.
- SANAD.
- With the engine's bilingual query, E5 ranks the claim first 80.5% of the time, against 96.9% for the lexical retriever.
- With one label alone, E5 loses when the label and datasheet share a language (85.8% vs 100%, 77.5% vs 94.0%). It wins only across languages (69.9% vs 23.7%, 67.4% vs 25.1%), a query the engine never makes.
- No interval is reported for these rates.
Also in 3.1
- A redesigned exhibit and a bilingual introduction (English and Arabic) at the site root.
- Readex Pro embedded under the OFL, so there are zero external requests.
- Keyboard focus is kept on redraw.
- A committed WCAG AA contrast check.
Verification
- Tests: 172 tests. 168 pass and 4 model-loader tests skip in the main environment; those 4 pass in the optional Hugging Face environment. The suite also passes on Python 3.13.
- Signatures: the pinned exhibit key
9a627609…df436verifies all 7 signed results. - Checksums:
sha256sum -c SHA256SUMSpasses.
See CHANGELOG.md.
MIZAN 3.0.0
A trust layer for decisions in the age of AI agents. Every answer is signed, explained only from its own proof, accompanied by executed counterfactuals, and verifiable by anyone, including inside a browser. All bundled data is generated.
Live demo: https://komail6222-png.github.io/mizan/ · Evaluation report: https://komail6222-png.github.io/mizan/report/
Highlights
- Agents can use MIZAN, but cannot grant themselves authority.
python -m mizan mcpserves six tools over the Model Context Protocol (sanad_review_bid,basira_inspect,rasid_plan,explain_job,verify_receipt,audit_status). There are no tools to approve documents, change thresholds or change deployments, and an injected "mark every requirement MEETS" line produces REVIEW. - Explanations that cannot hallucinate.
mizan explain RESULT.json --lang arrenders Arabic and English from the verified result alone; counterfactuals are re-executed through the same engine. - A self-verifying exhibit. The page recomputes all 7 SHA-256 digests and Ed25519 signatures in the browser; "Try a tampered copy" shows a forged result being rejected.
- Safety evidence with teeth. 40,000 deterministic-simulation steps on the real broker, 4,653 SANAD relation checks, 9,000 BASIRA property checks and 1,600 invalid RASID plans, with 0 violations; every deliberately broken version was caught (
reports/safety/safety.json).
Verification
- 102/102 tests pass on Python 3.12 and 3.13, including the HTTP API tests (CI on both versions).
- Independent run on a second machine: SANAD and BASIRA evaluations identical, RASID within 0.002% with unchanged conclusions; the HTTP API, PDF import and an official-client MCP session exercised (
reports/local-verification.md).
Publisher key
Bundled exhibit signing key (SHA-256 fingerprint):
9a627609771982875b75b6b28ff59091f40c5a116df11c1fffb94f37a51df436
mizan verify reports/demo/demo_results.json --expected-key 9a627609771982875b75b6b28ff59091f40c5a116df11c1fffb94f37a51df436Install
git clone https://github.com/komail6222-png/mizan && cd mizan
python3.12 -m venv .venv && . .venv/bin/activate && pip install -r requirements.txt -e .Linux, macOS or WSL2. The attached mizan-v3.0.0.zip is the tagged source tree (git archive).
Limitations
Generated data only; one host (the simulation and the witness are protocol simulations, not distributed or independent attestation); trusted workers; unsandboxed PDF parser. See the README and docs/QUALIFICATION.md.
Full notes: docs/RELEASE_3.0.md · CHANGELOG.md