Retraction (2026-11-04). An earlier note here claimed an off-by-one in the ordinal (
score) cell ofbench/v6_audit.pyand reported 0.7777 macro. That was wrong: the suite stores the score label as a 0-based class index (0..4), soranked[gold]was correct all along. The numbers are 0.8620 macro, 0.8632 overall, 0.8393 joint bundle exact, ECE 0.0190, and the ordinal cells score ~0.63. The mistake and the check that exposes it are in paper/MEASUREMENT-CORRECTION.md. The corrected re-score is reproduced by:uv run python -m bench.v6_audit --ckpt "myna-v5-prototype 2" --split test --every 1 --out runs/paper_v6_audit.json --md runs/paper_v6_audit.md --metrics runs/paper_v6_test.metrics.json --rowout runs/paper_myna_v6_test.rowoutcomes.json
The decision engine that never re-reads. Typed choice / score / noul
decisions over growing observations — tickets, threads, page states,
documents — where the observation is scanned once and every later request
only pays for what changed.
Born from a year inside laya and kev: both are non-autoregressive System-1 decision models, and both re-encode the entire state on every request. Agent loops don't work that way — the state grows at the edge and the questions are short. Myna is an architecture built for that shape from the ground up.
What it is. microsoft/deberta-v3-large, fine-tuned on decision-v2-pilot's train split,
behind the same typed choice / score / noul question schema, with a readout that routes by
option cardinality — ≤ 16 options are scored from one packed sequence, > 16 are scored decoupled
against their own bundle competition — per-primitive temperature scaling fit on a held-out
2,000-bundle CAL split, and split-conformal prediction sets. It is a different model class
from the gated-linear-attention engine the rest of this README describes, and it gives up the
property that engine is named for: v6 re-encodes the whole state on every ask. Its
Observation holds text, not a fixed-size state matrix. MynaV6.observe/append/ask keep
engine.Observation's signature so myna-serve runs either engine, and
Myna(<directory>) picks the one the directory's contents name.
What it measures on the frozen data/decision-v2-pilot/test.jsonl — 1,176 bundles, 1,440
questions across 16 (source, qname) cells. Every cell below is read out of
runs/witness-v6-master-paper.json and runs/witness-competitor-head-to-head-1440.json, the two
witnesses the Colab campaign wrote; the two Myna v5 columns additionally have their own per-arm
origins committed beside them (runs/witness-v5-master-paper.json for Packed, macro 0.8173, and
runs/witness-hybrid-v3.json for the card-routed Unified arm, 0.8502). bench/v6_audit.py
re-scores the same split against them on this box, and that re-score is the next section.
| cell | Laya Default | Laya Tournament | Laya Typed-Decisions | VegaML 0.8B | Myna v5 Packed | Myna v5 Unified | Myna v6 dev | Myna v6 test |
|---|---|---|---|---|---|---|---|---|
agnews/is_business |
0.8837 | 0.8837 | 0.8837 | 0.3023 | 0.9535 | 0.9535 | 0.9333 | 0.9535 |
agnews/is_scitech |
0.9388 | 0.9388 | 0.9184 | 0.3469 | 0.9184 | 0.9184 | 0.9362 | 0.9184 |
agnews/is_sports |
0.9787 | 0.9787 | 0.9787 | 0.1915 | 0.9787 | 0.9787 | 0.9423 | 0.9787 |
agnews/is_world |
0.8000 | 0.8000 | 0.8889 | 0.2222 | 0.9778 | 0.9778 | 0.9500 | 0.9778 |
agnews/topic |
0.8879 | 0.8879 | 0.9052 | 0.8879 | 0.9052 | 0.9052 | 0.8793 | 0.9052 |
amazon/stars |
0.3000 | 0.3000 | 0.3250 | 0.5250 | 0.6375 | 0.6375 | 0.6125 | 0.6375 |
banking77/intent |
0.2759 | 0.6034 | 0.5862 | 0.3707 | 0.0086 | 0.5345 | 0.7500 | 0.6638 |
boolq/answer |
0.7000 | 0.7000 | 0.7875 | 0.5375 | 0.8250 | 0.8250 | 0.8875 | 0.8250 |
contrastive/decision |
0.5969 | 0.5969 | 0.5969 | 0.4490 | 0.9847 | 0.9847 | 1.0000 | 0.9847 |
dbpedia14/category |
0.7414 | 0.7414 | 0.7328 | 0.7759 | 0.9569 | 0.9569 | 0.9310 | 0.9569 |
imdb/positive |
0.4625 | 0.4625 | 0.4625 | 0.5375 | 0.9500 | 0.9500 | 0.9500 | 0.9500 |
mnli/relation |
0.5776 | 0.5776 | 0.5948 | 0.5603 | 0.8362 | 0.8362 | 0.8534 | 0.8362 |
sst5/sentiment |
0.3750 | 0.3750 | 0.4875 | 0.4250 | 0.6000 | 0.6000 | 0.5750 | 0.6000 |
trec/answer_type |
0.7672 | 0.7672 | 0.8190 | 0.3017 | 0.9569 | 0.9569 | 0.8879 | 0.9569 |
yelp/rating |
0.5000 | 0.5000 | 0.5250 | 0.5250 | 0.6625 | 0.6625 | 0.7625 | 0.6625 |
yelp/recommend |
0.8125 | 0.8125 | 0.7875 | 0.4625 | 0.9250 | 0.9250 | 0.9250 | 0.9250 |
| 16-cell unweighted macro | 0.6624 | 0.6829 | 0.7050 | 0.4638 | 0.8173 | 0.8502 | 0.8610 | 0.8583 |
| overall accuracy (1,440 questions) | 0.6333 | 0.6597 | 0.6792 | 0.4958 | 0.8069 | 0.8493 | 0.8646 | 0.8597 |
| joint bundle exact-match (1,176 bundles) | 0.5595 | 0.5918 | 0.6182 | 0.4498 | 0.7730 | 0.8248 | 0.8469 | 0.8376 |
primitive: choice (696 questions) |
0.6264 | 0.6810 | 0.6882 | 0.5517 | 0.7773 | 0.8649 | 0.8836 | 0.8865 |
primitive: score (240 questions) |
0.3917 | 0.3917 | 0.4458 | 0.4917 | 0.6333 | 0.6333 | 0.6500 | 0.6333 |
primitive: noul (504 questions) |
0.7579 | 0.7579 | 0.7778 | 0.4206 | 0.9306 | 0.9306 | 0.9405 | 0.9306 |
Myna v6's test arm answers 1,238 of 1,440 questions, gets 985 of 1,176 bundles right on
every question at once, prints 0/172 cross-question contradictions, and holds
77 of 116 on the 77-way banking77/intent cell. The dev column is the same checkpoint on
the development split (macro 0.8610, 1/172 contradictions), so the run does not improve on the
split it was scored on.
The footing, written before the comparison. These are not four engines at one table on equal terms, and the row that says otherwise would be the one worth doubting:
- Myna v5 and v6 were fine-tuned on
decision-v2-pilot/train.jsonl, so all 16 cells are in-domain for them.banking77's set-aware routing was designed after diagnosing packed truncation on that cell —Myna v5 Packedscores 0.0086 there, 1 of 80 clean rows, because 77 options squeezed into one 512-token sequence leave each option about 3 tokens. - Laya and VegaML are scored zero-shot on 14 of the 16 cells;
agnews/*andboolq/answerare in their own training mixture. On those six shared in-distribution cells the unweighted macro is Myna v6 0.9264 · Laya Typed-Decisions 0.8937 · Laya English 0.8649 · VegaML 0.4147 — computed as the mean of the six cells above, which is the only way the witness supports it: the JSON files store per-cell values, not this mean. - The one comparison that is close to like-for-like is
Myna v5 Packed → v5 Unified → v6: same backbone, same frozen rows, macro +0.0329 then +0.0081. The first step is one cell: every non-banking77row is byte-identical across those two columns, andbanking77's 0.0086 → 0.5345 is 0.5259/16 = 0.0329 of unweighted macro — the whole step, attributed to the routing change alone.
Calibration and abstention, fit strictly on the 2,000-bundle CAL split and reported on test
(runs/witness-v6-master-paper.json's calibration_test): temperatures choice 0.9 /
score 0.9 / noul 0.85 with 0 argmax flips on dev and test, ECE 0.0189, mean Brier
0.0434, empirical conformal coverage 0.8549 (1,231/1,440) against a 90% target and
0.9368 (1,349/1,440) against 95%, selective accuracy 0.9873 (853/864) at 60% coverage,
coverage 0.7861 (1,132/1,440) at ≤ 5% error risk, and 0.9904 (103/104) on G5's own three
sources — banking77 + dbpedia14 + trec — at 60% coverage.
uv run python -m bench.v6_audit --ckpt "myna-v5-prototype 2" --split test --every 1 --out runs/v6_rescore_test.jsonbench/v6_audit.py loads myna-v6-unified.pt + deberta-v5-finetuned/ and scores every
test bundle — 1,176 bundles, 1,440 questions, 16 cells, no sampling — on this M5 at CPU, fp32,
in 775.5 s. It writes runs/v6_rescore_test.json, whose first field is the command that made
it. Against the published column above: macro 0.8620 vs 0.8583, overall 0.8632
(1,243/1,440) vs 0.8597 (1,238/1,440) — a net +5 questions out of 1,440, with 8 of the 16
cells exact to the question and the other 8 movers each ±1 to ±3 questions (mnli/relation
+3, yelp/rating −3, boolq/answer +2, the rest ±1). The local arm is the better
one, so nothing in the published table is the flattering measurement.
One part of it does not reproduce, and it is named rather than averaged away:
banking77/intent lands at 78/116 = 0.6724 against the published 77/116 = 0.6638 in aggregate,
but its variant decomposition moves — none_absent scores 0/12 here where the campaign
printed 7/12 (clean 60/80 vs 58/80, none_present 9/12 vs 5/12, permuted 9/12 vs 7/12). The
aggregate matches because the other three variants over-score to compensate. The cause is the
open-set rejection gate: SetAwareBankingHead.extract_gate_features's six features and the
T_fallback / 0.45 threshold are reconstructed from the tensor shapes, because the archive
carries the weights and no training code, so nothing in this tree pins that recipe the way
load_state_dict(strict=True) pins the other 60 tensors of the four heads. Until the notebook
that fitted it is in the repo, the none_of_these behaviour is the one v6 figure this box cannot
stand behind, and MynaV6's banking77 answers should be read as argmax-over-options, not as
vetted OOS rejections.
With no explicit floor set, the engine still declined 119 of 1,440 answers — the conformal
90% set came out empty at the CAL-fitted quantile — and those abstentions are ranked anyway
in both the published and the local column, so the comparison is on one definition: a selective
number would be a different number.
What this closes, and what it does not. G1's arithmetic used to be satisfied by these numbers
while the verdict stayed at not met, deliberately: it was pinned to the v1b-kaggle-3600b
artifact, and neither the majority floor nor an interval had been re-derived on v6's rows by this
repository's harness. That gap is now closed rather than relabelled — the same audit writes a
frozen-instrument metrics dump, myna.report reads it and prints g1/pass: true on its own
arithmetic, and bench/significance.py re-runs its row-clustered bootstrap on the v6 rows:
uv run python -m bench.v6_audit --ckpt "myna-v5-prototype 2" --split test --every 1 \
--out runs/v6_g1_test.json --md runs/v6_g1_test.md \
--metrics runs/v6_test.metrics.json --rowout runs/myna_v6_test.rowoutcomes.json
uv run python -m myna.report --metrics runs/v6_test.metrics.json --split test \
--out runs/v6_test.report.json
uv run python bench/significance.py --myna runs/myna_v6_test.rowoutcomes.json \
--laya runs/laya_0419_test.rowoutcomes.json --report runs/v6_test.report.json \
--B 20000 --seed 20261031 --out runs/significance_v6.json --md runs/significance_v6.mdG5 moved on the same checkpoint through the curve above, so five of the seven gates now read
met and the tally is no longer waiting on a run. What it is waiting on is stated in §2.2 and
repeated here because it changes how the table should be read: the five verdicts do not belong to
one model. G1, G5 and the calibration figures are v6 — a fine-tuned microsoft/deberta-v3-large
(434,012,160 of its 446,631,182 params, 1.736 GB) plus 12,619,022 params of Myna readout, trained
in-domain where laya and vegaml are scored zero-shot. G2's speed and G3's browser build are runs/myna-v0
at 14,449,280 params, and src/myna/onnx_export.py exports that trunk and nothing else. G4 and G6
are the two that stay not met, and neither is reachable by the v6 artifact: the engine truncates
the state into a 512-token budget, and the synthetic harness refuses a checkpoint that is not the
SSM (§9.69 writes both, with the abort conditions named rather than assumed).
uv sync --extra v6 # transformers + safetensors + huggingface_hubfrom myna import MynaV6
myna = MynaV6("myna-v5-prototype 2") # a local campaign directory — or:
myna = MynaV6("Aashish254/myna-v6") # the Hugging Face Hub repo id
out = myna.predict("Your card was declined at 3am and I have already travelled twice today.", {
"refund": {"type": "noul", "instructions": "Is this a refund request?"},
"severity": {"type": "score", "instructions": "How severe is it?",
"criteria": ["trivial", "minor", "moderate", "severe", "critical"]}},
abstain_below=0.85)
out["answers"]["refund"]["noul"] # p(Yes), always present — Brier is defined on it
out["answers"]["refund"]["abstain"] # bool, from the CAL-fitted floor
out["answers"]["severity"]["conformal_set_90"] # the 90% prediction setThat block was run verbatim against the local directory, and its whole response is committed in
runs/v6_live_smoke.json. It prints noul 0.7094255685806274 with abstain: true — the
90% conformal set for a two-option question at that margin is empty — and severity
with conformal_set_90 ["moderate", "severe"] while also abstaining, because abstain_below
0.85 sits above its top probability 0.4672558009624481. Both withhold paths are visible in one
response, which is the point of the example. The engine reports 446,631,182 parameters, of
which 12,619,022 are the four heads and 434,012,160 the DeBERTa backbone; the
latency_ms that run printed is one call in a warm process on this laptop and is not a v6
latency measurement (§9.68 vii).
Myna(<dir>) from src/myna/engine.py auto-detects: a directory holding
myna-v6-unified.pt (or myna-v5-unified.pt) beside deberta-v5-finetuned/ returns a
MynaV6, and a directory holding model.pt + tokenizer.json returns the v0/v1b engine.
myna-serve --ckpt "myna-v5-prototype 2" serves the same two routes either way.
The weights are not in git and will not be: deberta-v5-finetuned/model.safetensors is
1,736,094,384 bytes — 390 tensors, 434,012,160 parameters, all fp32, counted from the file's own
header — and the four heads on top of it are another 50,499,775 bytes in myna-v6-unified.pt.
scripts/upload_to_hf.py puts both on the Hub in one command:
uv run python scripts/upload_to_hf.py --ckpt-dir "myna-v5-prototype 2" --repo-id Aashish254/myna-v6 --dry-runThat command prints 10 files / 1,799,177,588 B = 1.799 GB and uploads nothing; §9.68(ix) carries the whole verification battery this section rests on — suite, registry, gate checker, secret scan, live engine and the uploader's own dry run — with each figure as its instrument printed it.
It has now run for real. huggingface.co/Aashish254/myna-v6
is public, and the Hub's own per-file sizes sum to 1,799,177,588 B — every one of the 10 manifest
files matches byte for byte, next to the generated card. Two things only the real run could show: the
namespace is the Hugging Face username Aashish254, capitalised, and create_repo answers
403 … rights to create a model under the namespace "aashish254" for the GitHub handle the brief
quoted; and the card's datasets: frontmatter cited a Hub dataset that answers 401 under either
spelling, because the frozen suite is data/decision-v2-pilot/ committed in this repository. Both are
fixed in the script, so MynaV6("Aashish254/myna-v6") is the documented load path and the card it
ships names a source that exists.
pip install "git+https://github.com/aashish254/myna.git"
myna-weights # → ~/.cache/myna/antiprior_off_s0-weights/{model.pt,tokenizer.json}from myna import Myna, fetch_weights
myna = Myna(fetch_weights()) # the best published arm: test macro 0.5339
out = myna.predict("My order never arrived and I want a refund.", {
"department": {"type": "choice",
"instructions": "Which team should handle this ticket?",
"criteria": ["billing", "technical", "shipping", "returns", "other"]}})
print(out["answers"]["department"]["choice"])That prints billing, at confidence 0.7899749875068665 with shipping the
weakest of the five at 0.00027509400388225913, over the Release bytes whose
sha256 is 30f0fa937e57e8ce8b21c58315dc7e800151a0c95e003dc0930e0f75d588f1e5 —
16,926,848 params at temperature 1.5. Measured 2026-10-01 on an M5 at latency_ms
7.84 (runs/quickstart_from_gh_download.log), 6.98 from a package installed off an
unpushed tree (runs/quickstart_from_git_install.log), and 7.93 from the install line above
pasted literally into a fresh venv, which resolved to fe11db6 and fetched its own weights
(runs/quickstart_from_public_install.log). Same choice, same float, three harnesses; only the
milliseconds move.
myna-weights takes --tag (every published arm is a tag: antiprior_off_s0-weights
is the 0.5339 control, antiprior_on_s0c-weights the 0.4785 one, v1b-checkpoint the
0.4893 Kaggle run), --dest DIR, --force, and --check, which prints whether the
cache hashes and exits 1 without writing anything. It needs no gh, no token and no
extra: it is stdlib urllib, it verifies each file against the digest GitHub publishes
for that asset, and it writes a SHA256SUMS beside them that shasum -a 256 -c reads.
Weights are deliberately not in the wheel — a pip install that downloaded a
particular training run would make every published macro a side effect of an install.
Prefer the tool you already have? The same bytes:
gh release download antiprior_off_s0-weights -D ~/.cache/myna/antiprior_off_s0-weightsOver HTTP, the server already ships (the extra is one install away:
pip install "myna[serve] @ git+https://github.com/aashish254/myna.git"):
myna-serve --ckpt ~/.cache/myna/antiprior_off_s0-weights --port 8080
curl -s localhost:8080/v1/predict -H 'content-type: application/json' \
-d '{"state":"My order never arrived and I want a refund.","questions":{"department":{"type":"choice","instructions":"Which team should handle this ticket?","criteria":["billing","technical","shipping","returns","other"]}}}'/v1/predict takes {state, questions} and returns the same answers object the
engine prints; /v1/sessions keeps an observation so /ask and /append never
re-read the state.
Everything above runs today, on the small engine. What those weights are worth is the table
below, and its headline is two sentences rather than one: the project now clears G1 and G5, but
on Myna v6 — a fine-tuned microsoft/deberta-v3-large with 12.6M params of Myna readout — while
the 14.4M engine the quickstart boots still fails both, has the only browser build and the only
latency measurement, and is what pip install myna-engine actually runs. The two gates that stay
not met are the two v6 cannot be put through at all (§9.69).
Benchmarks, every number measured
5 of 7 met, 2 not met, 0 open — the release gate is NOT clear.
Every verdict below is checked against a committed artifact — the registry
row beside it and the field read out of that artifact by
uv run python bench/gates.py --check — and the same words head the
status column of SPEC.md §2.2. Two gates moved this tick, and
both moved on the same checkpoint: G1 and G5 are what Myna v6 Unified
measures on the frozen split, each with its own witness in runs/ and its
paired interval, and §9.69 writes the caveats that come with them — v6 is
trained in-domain where the witnesses are zero-shot, and the 446M artifact
that clears G1 is not the 14M artifact G2's speed and G3's browser build
were measured on. The two that remain not met are not waiting on a
longer run: G4's ladder cannot be scored on v6 because the engine truncates
its state into a 512-token budget (§9.69), and G6 is a synthetic-retention
level the v6 architecture has no harness for. Neither is open — both are
measured, on the checkpoints the instruments do accept.
| gate | verdict | what the committed artifact prints | what it does not claim |
|---|---|---|---|
| G1 — Accuracy beats the witness | met | v6 re-scored on this box and read by the unchanged frozen instrument: bench/v6_audit.py --split test --every 1 writes runs/v6_test.metrics.json, and myna.report prints g1/pass: true on its own arithmetic — macro 0.8620375366903147 against the 0.70 target, majority floor 0.4330647953941198, margin_observed +0.4290 where +0.15 is required — over 16 of 16 cells kept at n ≥ 30 with dropped_cells: [], unmatched_sets: [] and below_majority_floor: [] (runs/v6_test.report.json). bench/significance.py re-runs its row-clustered bootstrap on those same 1,176 rows against laya's row dump, and its point line — myna 0.8620, floor 0.4331, laya 0.6664, gap +0.1956 — has to agree with the report to 1e-9 before it prints an interval. All three of G1's claims survive their own interval: macro 0.8620 [0.8430, 0.8800] (lower bound ≥ 0.70), margin +0.4290 [0.3900, 0.4424] (lower bound ≥ +0.15), and the paired gap +0.1956 [0.1701, 0.2210], which excludes zero without a resample either — McNemar 391 against 67 over 458 discordant pairs, p = 1.05e-56 — at the same first-replicate digest d45e5c018ee550da as the laya and vegaml runs, so all three intervals come from one replicate set over one row order (runs/significance_v6.md). The published v6 column is 0.8583 — the 4-dp read of test_audit/macro_acc: 0.8582510184910809 in runs/witness-v6-master-paper.json — so the local arm is the higher of the two, not the flattering one. Still in the row, as the before number: v1b-kaggle-3600b's committed report prints "pass": false for this gate — 0.4893 · floor 0.4331 · +0.0563 [0.0192, 0.0676], macro [0.4647, 0.5139], 0.211 short of 0.70 (§9.66) — with a dev tail that still gains +0.0072 over its last 1,000 updates and 3,600 updates in 20,225 s on a T4. The zero-shot competitors on those same rows are laya 0.4.19 at 0.6664 [0.6439, 0.6888] and vegaml 0.15.0 at 0.6160 [0.5898, 0.6415], the latter scored forced-choice through its own 43.8% decline flag (§9.67); the untrained control measures 0.346 / 0.351. |
met on the level, on the frozen arithmetic, and on an artifact this box re-scored — and the four things it does not claim are the point of the verdict rather than its footnotes. (i) The trunk is borrowed. v6 is a fine-tuned microsoft/deberta-v3-large: 434,012,160 of its 446,631,182 params — 1.736 GB of model.safetensors — with 12,619,022 params of Myna readout on top. §2.3 makes that a headline condition, so what this gate certifies is the readout and the cardinality routing, not a from-scratch encoder. (ii) The arm is in-domain. v6 was fine-tuned on decision-v2-pilot/train.jsonl; every one of the 16 cells is inside its training distribution, while laya and vegaml are zero-shot on 14 of 16. The +0.1956 over laya is a trained-versus-untrained gap and must not be read as a like-for-like win. (iii) It is a different artifact from the one the rest of the table describes. G2's ratios and G3's browser build are runs/myna-v0 at 14,449,280 params, and v6 has no ONNX export at all. (iv) One cell this box cannot stand behind: banking77/intent none_absent is 0/12 here against the campaign's 7/12, because the open-set gate is reconstructed from tensor shapes with no training code in the tree (§9.68). (v) The checkpoint is not in git: runs/ carries every witness these rows quote, and the 1.799 GB the commands load is the public Hub repo Aashish254/myna-v6 (§9.68(ix)), so a clean checkout re-runs none of them without that download. What the verdict does not settle is dose — that question belonged to v1b-kaggle-3600b, whose tail slope §9.38 writes down; v6's checkpoint came from a Colab campaign whose notebook is not in this repo, so no command here re-derives its training run. The void pre-385e06c checkpoint's 0.338 is still deliberately not a row (§9.23). |
| G2 — Latency claim survives equal-footing re-measurement | met | one M5 process, both engines fp32, Agent.system_one called directly, ladder capped inside laya's own 1024 window: 3.04×/3.21×/4.12×/3.60× end-to-end and 6.78×/4.67×/4.75×/3.65× ask-only at 1/5/10/50 questions, each cell the minimum of two committed runs. |
met as a ratio, which is all G2 asks. It carries no accuracy implication, and now no accuracy verdict either: the faster engine is runs/myna-v0 — 14,449,280 params against laya's 421,293,827 — which is the checkpoint that fails G1 and G5, not the one that clears them. G1 and G5 are met by v6, whose 446,631,182 params are 434,012,160 fine-tuned DeBERTa-v3-large encoder plus 12,619,022 of Myna readout, and that is a different artifact at 31× v0's parameter count and 1.736 GB of model.safetensors; this ratio was never measured on it (§9.69). The millisecond columns behind these ratios are load-dependent on a box other sessions share (§9.23) — quote the ratio, never the milliseconds. |
| G3 — Deployment works for real | met | the exported artifact answers three typed decisions in real Chrome 153 with the same probabilities the torch engine prints — 6/6 parity checks, both isolation modes, desktop and mobile widths — and its bytes, cold-load and p50 are measured there with the box's load average printed beside them. | met as a mechanics gate, and the caveat is part of the verdict rather than a footnote: what ships is v0 — src/myna/onnx_export.py exports that trunk and nothing else, so v6's G1 and G5 passes have no browser artifact behind them and the gate and the level are met by different weights (§9.69); the ≤ 20 MB int8 route is open on bytes and closed on agreement (§9.28); the Apple-silicon int8 route closes for the opposite reason — 17.40 MiB at 9.24e-03 and no latency win at all, so fp32 is the artifact on both paths (§9.29). |
| G4 — Long-context is correct, not just cheap | not met | v0's needle curve prints 0.188 at 128 tokens against a 0.167 uniform floor — at chance on the shortest rung — so the longer rows are the decay of nothing, and runs/needle_myna-v0.md prints G4: not measured by this run in place of a table a reader could quote. v6 was offered to the same harness on this box and did not produce a curve at all: it stops inside needle construction, bench/eval_needle.py → src/myna/longctx.py:69 → src/myna/tokenizer.py:45, which asks tok.encode(...).ids of an engine whose tok is an HF tokenizer that returns a plain list (runs/needle_v6.log, AttributeError: 'list' object has no attribute 'ids', 4.35 s). That is the harness's assumption failing, not a long-context measurement, and no rung is being claimed from it. |
not met, and no longer a run that has not happened. Two reasons this gate cannot be closed by the checkpoint that clears G1, and they are different: the harness is not v6-shaped (above), and the engine is not either — MynaV6 takes max_length: int = 512 and truncates the packed sequence to it (src/myna/v6_engine.py:410), and its backbone declares max_position_embeddings: 512, so a 4k state has no representation to be scored on rather than a bad score. Wiring the tokenizer shim would print a truncated-at-512 number against a 4k threshold, which is not this gate's measurement (§9.69). The 16k state is measured, fixed at 576 KiB and cheap (§9.22); the 16k decision has now been measured on this box too — the 4k truncated-backprop checkpoint ran its approved 1200-update dose on the M5 and prints 0.183 at 4096 and 0.150 at 16384 against these two thresholds (§9.63, runs/needle_lc1_stageC_final.json; the ladder is a registry row now — needle-lc1-stageC, witnessed by the committed replay pair runs/needle_lc1_stageC_replay.{md,json} — because the Stage C weights are in Release lc1-4k-s0-stageC-weights (id 428002663) and that row's command fetches them). So the KAGGLE label on 7b was stale and neither half of this gate is a compute question. What is not settled is the mechanism: the ladder at 799 and at 1199 updates is identical on every shared rung, so another dose at this regime is not the next experiment. |
| G5 — Useful confidence, with abstention | met | v6's curve over G5's own three sources on calibration.jsonl (120 rows / 120 questions) prints g5.pass: true: accuracy 0.883 at full coverage → 0.969 at 80% → 0.986 at 60% → 1.000 at 50%, with best coverage at the 0.95 target = 0.8 (96 questions, 0.96875) at a machine-readable floor of 0.8517. That floor is settable, not just quoted: Myna(ckpt, abstain_below=0.8517) abstained on 24 of 120 questions and the curve withholds 24 below it — the harness exits 1 if those two disagree. The same curve over all 11 pooled sources and 568 questions also passes (0.968 at 60%, floor 0.884, 227 abstentions matching 227). Per source at that trio floor: dbpedia14 0.975 coverage at 1.000, trec 0.875 at 0.971, banking77 0.550 at 0.909. |
met on the level, on v6, and the caveats are part of the verdict. Three of them. (i) It is the v6 checkpoint that clears it: the v0 curve the gate was written against (runs/risk_coverage.json, 448 rows / 568 questions) still prints g5.pass: false with a max of 0.596 — that artifact is why this gate sat at not met, and nothing about it changed. (ii) banking77 does not clear it alone: at the pooled 0.8517 floor it is at 0.909 on 55% coverage, so the gate's wording — pooled over its three named sources — is what passes, and the per-source verdicts printed in the same witness say true / true / false. (iii) The gate names calibration.jsonl, and v6's temperatures and conformal quantiles were fitted on a CAL split, so this curve is in-sample for the confidence mechanism even though the frozen suite's own split is what §2.2 asks to be measured on it; the control is the same trio curve re-run on test.jsonl, where it also passes — 0.950 at 80% and 0.975 at 70.1% coverage (348 questions, g5.pass: true) at a floor of 0.9034 that abstains on 104 of 348 exactly where the curve withholds 104 — and it is a registry row here (risk-coverage-v6-trio-test) rather than a reassurance, with banking77 again the source that does not reach the level alone (0.921 on 32.8% coverage); a third split, --split development over the same 348 questions and 190 sets on a harder curve (0.845 at full coverage), also passes at 0.955 on 70.1% coverage (floor 0.8944, engine abstains on 103, curve withholds 103) as the risk-coverage-v6-trio-dev row. That third witness re-cuts the per-source story: at its pooled floor trec is the only source under 0.95 (0.947) and banking77 the highest (0.978), yet g5_per_source still reads banking77: false because its own best coverage at the target is 0.50 against the gate's 0.60 minimum — banking77 fails G5 per source on coverage, not on accuracy. What did not change is the machinery, which was already met: Myna(abstain_below=t) withholds the commitment with a measured reason and the fallback seam labels which engine committed (§9.24, §9.69). |
| G6 — No regression on what already worked | not met | v0 — the checkpoint the level was set on — measures 0.9525 / 0.9496 on the synthetic test split, and v1b-kaggle-3600b, the checkpoint every G1 figure here is scored on, measures 0.3423 / 0.3489 on those same rows: the harness hashes the split it scores and both arms print the same digest per seed (998d7375…, fc9cbe3b…), so the pairing is an artifact rather than a claim. 0.3423 against the ≥ 0.94 the gate asks for is 0.5977 short, and the floors printed beside it in the same witness — uniform 0.3370, majority 0.3546 / 0.3463 — put it +0.0053 over chance and below the modal-label floor on seed 0. |
not met, and the honest name for what was measured matters: v1b-kaggle-3600b trained on the real decision-v2 suite and never saw a synthetic row, so this is zero-shot retention of the task family, not a capability v0 had and v1 lost. The gate fails either way — it is a level test on the next checkpoint, and the level is 0.94 — but the finding is a transfer failure and §9.65 keeps the two readings apart rather than picking the flattering word. What v6 adds here is not a number: bench/eval_synthetic.py builds a MynaModel from model.pt beside a tokenizer.json and refuses a checkpoint whose embedding count disagrees with that tokenizer, and a v6 campaign directory carries neither — its weights are myna-v6-unified.pt (the readout heads) plus deberta-v5-finetuned/ (an HF DebertaV2Model). So v6 cannot be put through this gate at all, which is not the same claim as failing it, and the verdict stays where §9.65 measured it. What this does not settle: the mechanism (4 of 9 cells sit below chance on seed 0, so this is not merely an uninformative head), and the next v1 artifact — runs/lc1-4k-s0 cannot be scored here at all, because its model.pt declares 4096 embeddings while its tokenizer.json holds 522 entries and bench/eval_synthetic.py refuses the mismatch instead of silently re-tokenizing. And v0's logged 0.9523 in runs/train-v0.log is not this run's 0.9525: §9.30 disqualifies those nine rows as a set this box can regenerate, so the paired measurement above — not the log — is what the verdict rests on. |
| G7 — Reproducibility | met | make repro is green at this tick: 49 registry rows bind every published table cell to one command and one committed witness, and the 205 quoted figures are re-read out of those files rather than out of the prose. The python commands among those rows are checked against the tool behind them — its --help must still print every flag the row publishes (§9.43). The seeds live inside the printed commands (--seed 0, --seeds 0 1), not in sentences about them. |
met as a binding, not as a rebuild, and the gap is disclosed rather than absorbed: no target executes the registry end to end — 35 rows re-run on this box, 6 retrain a checkpoint, 3 need a laya checkout on PYTHONPATH, 1 need vegaml in its own venv, 3 need Google Chrome and 1 is KAGGLE. That is TODO 8b, which stays unticked for exactly this reason. |
- Gated linear attention trunk. Each layer carries a fixed-size matrix
state
S ∈ R^{H×d_k×d_v}(96 KiB/layer at production width), not a KV cache that grows with context. Three execution forms — recurrent (streaming), chunked (training, linear memory), quadratic (reference) — are proven numerically identical, in float64, in CI. - Persistent state = the cache. Appending to the observation continues
the scan from the cached
S. Nothing below the append point is ever re-read, and the result is bit-exact versus a full pass — not approximate, not distilled, identical. The only thing retained per observation is the stack ofSmatrices: 576 KiB at production width, for a 128-token state or a 16,384-token one. - Questions are branches, not prompt tokens. Each question resumes every layer from the cached state-end, so a question reads the whole observation and — by architecture, not masking — nothing of any other question. Adding, removing, or reordering questions changes no other answer.
- No vocabulary readout anywhere. All three answer types share one pointer-probe head over option spans. No generation, nothing to parse, nothing to hallucinate.
| params | weights on disk | state memory | context | |
|---|---|---|---|---|
| myna-v0 | 14.45M · m | 55.13 MiB fp32 · m | 576 KiB, 128 or 16,384 tokens alike · m | 16,384 scanned and answered from · m |
| laya | 421.29M, read from their checkpoint · m | ~1.7 GB fp32 · p | holds none — re-encodes per request | 1,024 + 256 head, from their config.json · m |
| kev-4B | ~4B, published | ~8 GB fp32 · p | KV grows with the context · p | — |
Every cell above carries its own tag. m measured here, from a file in this
repo: myna's parameter count and artifact size are n_params and
sizes.mlx_fp32.file_bytes in runs/bench_mlx_int8.json, the 576 KiB is the
state_bytes_total: 589824 that runs/browser_g3.json prints on every one of its
four Chrome rows, and laya's two cells are the line runs/latency_matched.md
prints when it opens their snapshot. p projected — arithmetic from a
parameter count against a model we did not open, which is why it is not a
comparison cell. The decision accuracy at long context is a third thing again
and it is gated: the needle test puts v0 at 0.188 on a 128-token state against
a 0.167 floor, i.e. at chance before length even enters, and
runs/needle_myna-v0.md prints G4: not measured by this run rather than a decay curve.
The context column is a cost statement, and the only 16k number this repo has
measured. Long-context correctness has now been measured on the checkpoint trained
for it: 1,200 updates at 4k states, run on this box rather than on a GPU, and it
reads 0.183 at 4096 tokens and 0.150 at 16384 against the 0.90 and 0.85 G4 asks
for. The 128-token rung is still on the 0.167 floor, so runs/needle_lc1_stageC_final.md
prints G4: not measured by this run for the curve and the shortfall stands as a flat
line at chance, not a decay. Going from 799 to 1,199 updates changed none of the
three shared 60-sample counts, which is why this is written as a mechanism finding rather
than a compute or budget one (§9.62, §9.63, runs/needle_lc1_stageC_final.json).
(SPEC.md §2.2 G4, §9.25).
Reproduce the params and weights columns — n_params, and both file_bytes — with the
MLX harness that owns the checkpoint. It is also the run whose --drift-rows 12 prints
the 576 KiB row at every state length from 128 to 16,384:
uv run python -m bench.bench_mlx --ckpt runs/myna-v0 --reps 20 --drift-rows 12 --out runs/bench_mlx_int8.mdand the context column with the needle run that the 0.188-against-0.167 pair came from
(runs/needle_myna-v0.md, and its G4: not measured by this run line):
uv run python bench/eval_needle.py --ckpt runs/myna-v0 --device cpu --n 16 --seed 0 --lengths 128 1024 4096 8192 16384G1 is an accuracy gate on kev's frozen decision-v2 test split, and the
checkpoint that answers it trains on Kaggle. Every number below is printed by a
committed artifact rather than recalled, and SPEC.md §8 requires all of
them rather than the flattering pair:
| row | test MACRO over the 16 (source, question) cells both sides score | footing |
|---|---|---|
| laya 421M — their engine, their suite, 40 rows/source | 0.667 · m | runs/laya_decision_v2_test.json, joined cell by cell |
| laya 0.4.19, paired — the same 1,176 rows myna scores, not a 40/source subsample | 0.6664 [0.6439, 0.6888] · m | runs/laya_0419_test.rowoutcomes.json, runs/significance.md (§9.66) |
| vegaml 0.15.0, scored as a control — same rows, same 16 cells, 14,342,512 trainable params behind a frozen 752,393,024-param reader; 43.8% of its outcomes carry its own decline flag and are scored forced-choice | 0.6160 [0.5898, 0.6415] · m | runs/vegaml_0150_test.rowoutcomes.json, runs/vegaml_control.md (§9.67) |
| myna, untrained control — random init, the suite's own tokenizer, current code | seed 0 0.346 · seed 1 0.351 · mean 0.348 · m | runs/scratch_decision_v2_test.md |
| myna trained on this corpus (G1) | 0.4893 [0.4647, 0.5139] · m — +0.0563 over the floor where +0.15 is required, so the row is a not met, measured | runs/v1b_kaggle_3600b.report.json, runs/significance.md |
| majority-label floor, same 16 cells | 0.433 · m | runs/report_scratch_vs_laya.log |
| uniform-chance floor, same 16 cells | 0.332 · m | same |
majority-label clip of that control — max(model, floor) per cell, an oracle not a result |
0.436 · m | runs/report_scratch_vs_laya.json |
The last row is the one that must not be read as a score. myna.report now prints
clip = max(model, majority) beside each cell's own accuracy, and the control's
16-cell clip macro is 0.436 against its model macro of 0.346 — the +0.090
difference is "answering nothing, per cell, with this split's majority label", which
is an oracle statistic (the floor is measured on the rows being scored), it is
available to no model, and the report says so on the line that prints it
(runs/report_scratch_vs_laya.log: 13 of 16 cells answer below their own floor).
Printing it is reporting; acting on it would be a per-cell fallback rule — a
leaderboard decision, not a learning improvement, and SPEC §5 P9: 9c builds the
report and stays out of that decision.
The same reasoning is why the scope question is priced rather than argued. Two cells
(banking77/intent, mnli/relation) answer below their own floor and do not beat their own
permutation nulls, so a reader may reasonably ask whether G1 should be scored without them.
uv run python -m bench.scope_pricing answers it from the committed run: dropping them moves
the level 0.4893 → 0.5334 and the majority floor 0.4331 → 0.4666 with it, because the cells
myna wins are the ones a majority classifier wins too, so the margin G1 gates on moves
+0.0563 → +0.0668 — eleven-thousandths. Dropping their whole sources is the same 14 cells, and
even removing all five below-floor cells reaches 0.5526, still 0.147 short of 0.70. No scope
choice here passes G1 (runs/scope_pricing.json); whether those two cells belong in the claim
at all stays P9: 9d's call, and it is a decision about what the published number means. The
table is mutation-checked like everything else this repo publishes
(uv run python bench/mutation_scope_pricing.py, 24 mutants): its first pass caught 10 of them,
and the 13 survivors were all in the harness's main() — the guard's individual comparisons, how
the witness is assembled, and what the printed table puts under which column heading — not in the
arithmetic, where 8 of 8 died (SPEC §9.46).
The disclosure in the middle. The one checkpoint this repo ever trained on the
upstream corpus scores 0.338 on those same 16 cells
(runs/report_void_vs_laya.log, from
uv run python -m myna.report --suite data/decision-v2-pilot --split test --metrics runs/myna-v1-rich/metrics.json --laya runs/laya_decision_v2_test.json --out runs/report_void_vs_laya.json)
— below its own control, by 0.008, which is the
same order as the control's 0.005 seed spread, and void as evidence regardless
because it predates the 385e06c batching fix (§5 P1). So the honest sentence
about this repo as it stands is: no committed measurement of myna's
architecture on this corpus exists in either direction — the control that could
not have learned anything sits on the chance floor, and the checkpoint that could
is not here. What the control does prove is the one falsification that mattered —
a probe head or an answer head that leaked the label would sit above the 0.332
chance floor, and it sits on it. The third row waits on its artifact rather than
on a run: v1b-kaggle-3600b has trained and reported its own metrics, and TODO 3i
publishes that number the moment its witness is a file in this repo, because a
figure for a checkpoint this repo cannot open is a number with nothing behind it —
which is the mistake §9.30 exists to prevent.
Reproduce the control (1,440 rows scored on CPU; no gradient step, on any corpus):
uv run python bench/eval_scratch.py --split test --seeds 0 1 --out runs/scratch_decision_v2_test.md --metrics-out runs/scratch_metrics_test.jsonand the join that puts it beside laya's per-cell numbers:
uv run python -m myna.report --suite data/decision-v2-pilot --split test --metrics runs/scratch_metrics_test.json --laya runs/laya_decision_v2_test.json --out runs/report_scratch_vs_laya.jsonTwo statistics that must never be subtracted from each other. The table is the
unweighted mean over the 16 cells both sides scored; laya's own harness prints a
row-weighted overall of 0.6319 over its 546 sampled answers, which is a different
statistic over a different sample — a cell counted by rows and a cell counted once
are not comparable, and arithmetic across the two is how §9.30's eight dead cells
were born. The join also merges the competitor's two contrastive/decision rows (one
qid asked as a 4-way choice over 24 answers and as a noul over 16) into that cell at
0.500 by rows; until §9.32 the report kept whichever row came last — 0.625 — which
had inflated every per-cell laya figure here by 0.008–0.009.
One process, both engines resident, device=cpu, both fp32 — the same Python
str state and the same question dict handed to each engine. laya is called as
Agent.system_one on its published 55cf4c4 checkpoint, on laya's own
Stripe-payout ticket (87 myna / 57 laya tokens), alternating 3-option choice
and noul questions exactly like laya's own latency bench. p50 over 10 reps
after 3 warm-ups:
| questions | laya system_one |
myna end-to-end | ratio | myna, state already scanned | ratio |
|---|---|---|---|---|---|
| 1 | 100.7 ms | 33.1 ms | 3.04× | 14.9 ms | 6.78× |
| 5 | 272.0 ms | 74.9 ms | 3.63× | 55.5 ms | 4.90× |
| 10 | 506.3 ms | 120.8 ms | 4.19× | 98.2 ms | 5.15× |
| 50 | 3,589.5 ms | 870.0 ms | 4.13× | 787.1 ms | 4.56× |
Reproduce: PYTHONPATH="<laya checkout>" .venv/bin/python -m bench.bench_latency_matched → runs/latency_matched.md. Every cell in this table
is m — measured, on this box, by the command above, and the numbers after it
("14.5–17.4 ms", "−10 µs/token", "R² 0.74") are least-squares fits over the same
run's ladder, which is why they are quoted as fitted rather than as read. That
table is one run;
the claim shipped in SPEC.md §2.1 is the per-row minimum across the two
committed runs — 3.04× / 3.21× / 4.12× / 3.60× end-to-end and 6.78× / 4.67× /
4.75× / 3.65× streaming — because two runs of this command on this laptop differ
by up to 22% in absolute ms (other sessions share these cores), and the
conservative number is the only one that belongs in a README (SPEC §9.23).
Accuracy is not measured by this table and nothing here implies it.
What the shape of the cost says, fitted over a state ladder capped inside laya's
1024-token window: answering from a cached state costs 14.5–17.4 ms whether that
state is 66 or 1,060 tokens (fitted state slope −10 µs/token, i.e. zero) — the
fixed-size state, measured rather than drawn. The scan is not flat: within a
256-token chunk it is quadratic, so the sub-40 ms decision is a short-state result
(SPEC §9.22). laya's cost is state × questions — one sequence carrying the whole
state, once per question — which is why its additive fit lands at R² 0.7356 while
myna's end-to-end fit lands at 0.9915 (the ask-only fit is 0.9619, and the three
numbers are the harness's own fit block, not restatements of each other).
An earlier version of this section published 33×–239× speedups against a "~500 ms
laya floor". The floor was Router truncating the state at 1,024 tokens while
myna read all of it, and the speedup column was myna against itself. Withdrawn —
SPEC.md §9.20.
The exported artifact runs with no server and no build step. browser/index.html
re-implements the tokenizer in JavaScript from tokenizer.json alone, chains
state_step.onnx one call per 256-token chunk, runs the pointer head and the
abstention gate over the option spans from head.bin, and answers the same three
typed decisions the Python engine answers — checked against the Python engine by
browser/parity.mjs, the same module node browser/selftest.mjs fails a build on
(7 checks in node, 6 in the tab, which has no filesystem to compare bytes against).
Google Chrome 153, headless, cold cache, throwaway profile, 15 decisions per row
(bench/browser_g3.mjs → runs/browser_g3.json, and runs/browser_g3_int8.json
for the right-hand column). Every cell is m:
| fp32 — what ships | int8 — attempted | |
|---|---|---|
| artifact the page fetches | 59.32 MiB | 18.56 MiB |
| bytes on the wire, incl. the 13.58 MiB wasm runtime | 73.09 MiB | 32.33 MiB |
weights.bin requests |
1 (shared by both graphs) | 1 |
| cold load | 254–394 ms | 214–336 ms |
| p50 per decision, 10 threads / 1 thread | 436 / 742 ms | 413 / 757 ms |
| option probabilities vs the torch engine | 1.03e-06 | 6.48e-02 |
| Chrome's own parity checks | 6/6 | 4/6 |
Two things that table says and one it does not. It says the trunk really is transferred once — 93.7 MiB of duplicated fp32 weights in the first export (at its own 8 × 256-token shape, per SPEC §5 P6 6a), 59.32 MiB now, with Chrome's network log as the witness rather than a sum in a README. And it says the ≤ 20 MB int8 route is a byte win and an agreement loss: dynamic quint8 lands at 18.56 MiB and moves option probabilities 648× past the bound the fp32 artifact meets, for 5% latency on a box that was busier during the int8 run — so int8 ships nowhere (SPEC §9.28; §9.29 is the same verdict on the Apple path, for the opposite reason). What the table does not say is anything about accuracy: the checkpoint in that artifact is v0, which still fails the real-corpus gate below.
uv run python -m myna.onnx_export --ckpt runs/myna-v0 --out runs/onnx \
--scan-chunk 16 --n-chunks 4 --suite data/decision-v2-pilot # → runs/onnx_parity.json
uv run python -m myna.onnx_export --ckpt runs/myna-v0 --out runs/onnx-wide --questions 2 --q-len 1152 --scan-chunk 64 --report runs/onnx_parity_widest.json
uv run python bench/browser_expected.py # → browser/expected.json
npm ci && npm run selftest # 7 checks, node
npm run g3 # Chrome: bytes, cold, p50, shots
npm run g3 -- --artifact runs/onnx_int8 --out runs/browser_g3_int8.json # the int8 column
uv run python bench/quantize_int8.py # the int8 row aboveThe second export is the widest real request in the suite — 2 questions × 1,152 tokens
over a 16k state, 1,067 tokens after the state is folded in — and it is the parity cell
that the ≤ 1e-3 bound is actually measured on; the first line's --suite export is
what backs the probabilities row. The two npm run g3 lines are the same harness
pointed at the two artifacts, left and right column of the table above.
Absolute milliseconds from this laptop are a range, not a point, so the witness
files carry uptime's load average next to every number (SPEC §9.23), and the tab's
own memory reading (176 MiB) counts JS-managed heap only — it does not attribute the
54 MiB mounted into the wasm heap, which is why no total-tab memory figure is claimed.
The same checkpoint serves natively through MLX: src/myna/mlx_model.py is a port of
the torch forward over identical weights, so there is no conversion step and no
re-export. One M5, both engines, same tensors, median of 20 reps, per-row minimum
of two committed runs (bench/bench_mlx.py → runs/bench_mlx_int8.md and
runs/bench_mlx_int8_run2.md, load average 4.55 and 3.94 at print). Every cell is
m, including the ratio ranges, which are per-row minima rather than best cases:
| engine | vs PyTorch on MPS, 128 → 16,384-token state | artifact on disk |
|---|---|---|
| MLX fp32 | 1.76–2.22× | 55.13 MiB |
| MLX int8, group 64 | 1.79–2.41× | 17.40 MiB |
int8 is 3.17× smaller and not faster — the sign of the int8 − fp32 difference flips
between the two runs on 4 of the 7 state lengths, and fp32's own run-to-run spread
reaches 15.2% on the widest row. bench/diag_mlx_int8_gem.py prices that at the kernel:
5 of the 6 linear shapes this model actually uses are slower quantised (0.43–1.06×
fp32/int8) even though int8 reads 3.6× fewer weight bytes, because the quantised pass
gets 10–37 GB/s of weight read against fp32's 55–257 on the same box. And it is not free
in agreement — over 20 real calibration.jsonl questions the port moves option
probabilities 1.20e-03 while quantisation moves them 9.24e-03 and changes one argmax, on
a question whose top two options sat 0.0008 apart. So fp32 is what ships on this path
too, and the int8 artifact stays in the tree for whoever needs the bytes for a reason
other than speed (SPEC §9.29).
uv run python -m bench.bench_mlx --ckpt runs/myna-v0 --reps 20 --drift-rows 12 --out runs/bench_mlx_int8.md
uv run python -m bench.bench_mlx --ckpt runs/myna-v0 --reps 3 --lengths 128 --drift-rows 12 --keep trunk.tok.weight .gate.weight --fp32-out runs/myna-v0-mlx-fp32-keepgate --int8-out runs/myna-v0-mlx-int8-keepgate --out runs/bench_mlx_int8_keepgate.md
uv run python bench/diag_mlx_int8_gem.py --iters 200 --trials 7 --out runs/mlx_int8_gem_probe.mdThe first line is both ratio tables (runs/bench_mlx_int8.md and its _run2 twin are
two runs of it, and runs/bench_mlx_int8.json is the n_params / file_bytes witness
the architecture table quotes). The second keeps trunk.tok.weight and .gate.weight
in fp32 — the one row of the six that flips sign when they are, which is why it is run
separately rather than folded into the first. The third prices the claim at the kernel.
9,000 steps on the synthetic typed-decisions corpus, batch 32, MPS, one M5 — the
log's own elapsed counter reads 15,693 s (4.4 h) at step 8999 — and dev and
test use noun pools the trainer never showed the model. Every cell below is m,
copied from runs/train-v0.log's final === test === block; the overall figures
are the macro over those nine rows, which is also the only way to average them
honestly from what the log prints:
test 0.952 · dev 0.960 (the dev-mid probe line prints 0.9682 at steps 7500, 8000 and 8500 —
on a prefix subset of that same dev split, not on all of it — and an earlier draft of this section
quoted that as the dev overall next to a test figure of 0.951 that no committed artifact prints —
SPEC.md §9.30).
| workflow / question | type | test acc | Brier | ECE |
|---|---|---|---|---|
| incident/page_oncall | noul | 0.946 | 0.046 | 0.026 |
| incident/severity | score | 0.958 | — | 0.019 |
| incident/team | choice | 0.960 | — | 0.020 |
| moderation/action | score | 0.974 | — | 0.012 |
| moderation/category | choice | 0.948 | — | 0.027 |
| moderation/repeat_appeal | noul | 0.946 | 0.043 | 0.037 |
| support/churn_risk | noul | 0.963 | 0.028 | 0.016 |
| support/department | choice | 0.947 | — | 0.029 |
| support/urgency | score | 0.928 | — | 0.042 |
Generalization is real, not memorization: the dev→test gap is 0.76 of a point
(0.9599 − 0.9523) on fully disjoint nouns. Test ECE runs 0.0115–0.0415 with the
single refit temperature (3.0) that runs/train-v0.log prints. A short RLCD
pass — 800 steps maximizing the Brier proper score under a KL leash to the
supervised model — then halved it: mean ECE 0.0191 → 0.0076, mean Brier 0.0258
→ 0.0232, dev accuracy 0.9626 → 0.9657 (runs/rlcd_v0.log, every one of the 9
questions improved or held). Note what that dev accuracy is: rlcd.py
regenerates the dev split at 600 rows per workflow, so 0.9626 is a different
dev draw than the 0.9599 above — the published claim is the before/after pair
inside one draw, not either level. The policy here is the
reported distribution, so the score is optimized differentiably, no REINFORCE
(PLAN.md decision 10 has the post-mortem of trying it the generative way).
These two are the only tables here whose reproduction is a training run, so
bench/reproduce.py --run refuses them and runs/train-v0.log / runs/rlcd_v0.log are
the witnesses instead:
uv run python -m myna.train --steps 9000 --batch 32 --device mps --out runs/myna-v0
uv run python -m myna.rlcd --ckpt runs/myna-v0 --steps 800 --out runs/myna-v0-rlcdA System-1 decider that never says "not me" is not a fast model, it is an unauditable one. So the engine can be built with a floor under it, and the measurement that matters is the trade the floor buys:
from myna.engine import Myna
myna = Myna("runs/myna-v0", abstain_below=0.693) # the floor the curve below picks
out = myna.observe(
"China Invokes Deng to Send Tough Taiwan Message BEIJING (Reuters) - China invoked late "
"leader Deng Xiaoping on Saturday in its campaign to recover Taiwan, lauding his proposal "
"to recover the island by peaceful means, but warning against any move toward independence."
).ask({"topic": {"type": "choice", "instructions": "What is the topic of this article?",
"criteria": {"world": "world news", "sports": "games, athletes, teams",
"business": "companies, markets, economy",
"scitech": "research, gadgets, software, space"}}}})
a = out["answers"]["topic"]The gold label for this row of calibration.jsonl is world, at 0.001. The engine was
about to answer sports, and the floor took the decision away:
a["choice"] -> None out["policy"] -> {'abstain_below': 0.693, 'abstained': ['topic']}
a["abstain"] -> True
a["reason"] -> 'sports at p=0.602, 0.341 ahead of the runner-up, under the 0.693 floor'
a["probabilities"] -> {'world': 0.001, 'sports': 0.602, 'business': 0.136, 'scitech': 0.261}
probabilities rides along because the answer was withheld: it is what a fallback re-ranks
and what the curve below is sorted by. The withheld field is None on purpose — a caller
that ignores abstain gets an error at the seam instead of a confident wrong label.
Refusing costs the decision, not the numbers: noul keeps reporting raw
p(Yes) (the Brier score needs it), every answer keeps its confidence and its
runner-up margin, and ask() echoes the floor in force plus which questions it
withdrew. myna.serve --abstain-below 0.693 puts the same policy behind HTTP, and
/v1/health names it.
The curve below is every question in calibration.jsonl (448 rows, 568 questions),
ranked by the probability of the side committed to — every cell m, from
runs/risk_coverage.md. floor is the value you would
hand the engine, and the run re-runs the engine at that floor to check it abstains
on exactly the rows the curve withheld — 227 against 227 at the 0.693 floor.
| coverage | questions answered | accuracy | risk | floor |
|---|---|---|---|---|
| 1.00 | 568 | 0.349 | 0.651 | 0.074 |
| 0.90 | 511 | 0.376 | 0.624 | 0.444 |
| 0.80 | 454 | 0.374 | 0.626 | 0.547 |
| 0.70 | 398 | 0.392 | 0.608 | 0.622 |
| 0.60 | 341 | 0.413 | 0.587 | 0.693 |
| 0.50 | 284 | 0.426 | 0.574 | 0.772 |
| 0.40 | 227 | 0.445 | 0.555 | 0.851 |
| 0.30 | 170 | 0.465 | 0.535 | 0.935 |
| 0.20 | 114 | 0.535 | 0.465 | 0.974 |
| 0.10 | 57 | 0.596 | 0.404 | 0.994 |
Read the shape, not the level. Accuracy climbs +0.247 from full coverage to the
top decile, so this model's confidence ranks its own answers — and it does that on
v0, a checkpoint trained on synthetic data that scores near the guessing floor on
this corpus (the agnews row above is one of them: world at 0.001 against a withheld
sports at 0.602). That is the harness proving it measures something; it is not
the gate. G5 wants ≥ 0.95 accuracy at ≥ 60% coverage on banking77 + dbpedia14 + trec,
and on v0 no rung reaches 0.95 (max 0.596, at 10% coverage) with those three sources
at 0.000 / 0.025 / 0.150 (SPEC.md §2.2, §9.24).
The gate was written against v0 and v0 does not reach it. Re-run unchanged on the v6 checkpoint, the curve is the one G5 names — the three sources pooled, on the split the gate names:
calibration: 120 rows / 120 questions over 42 question-sets — pooled over banking77,dbpedia14,trec only
rung realized n accuracy risk floor
1.00 1.000 120 0.883 0.117 0.299
0.90 0.900 108 0.917 0.083 0.692
0.80 0.800 96 0.969 0.031 0.852
0.70 0.700 84 0.976 0.024 0.958
0.60 0.600 72 0.986 0.014 0.992
G5 (§2.2): accuracy >= 0.95 at coverage >= 0.60: PASS — best coverage at target: 0.8
floor 0.852 re-run on the engine: it abstained on 24 of 120 questions, the curve puts 24
below that floor (coverage 0.800)
Two things make that a measurement rather than a number copied out of a table. The
floor is settable: Myna(ckpt, abstain_below=0.8517) withdraws on 24 of the 120
questions and the curve withholds 24 below it, and the harness exits 1 when the two
disagree — so the threshold that earns the pass is the one the engine would actually
run at. And it is not a three-source slice: the same curve over all 11 pooled sources
and 568 questions also passes, at 0.968 on 60% coverage (floor 0.884, 227 against 227).
What the witness also prints, and what the verdict carries rather than footnotes away,
is that banking77 does not clear the level alone — 0.909 on 55% coverage at that
floor, against dbpedia14's 1.000 on 97.5% and trec's 0.971 on 87.5%. The gate's wording
is a pooled accuracy over its three named sources, so the pooled verdict is what passes,
and the per-source lines say true / true / false in the same file. The third caveat is
which split: calibration.jsonl is what §2.2 names, and v6's temperatures and conformal
quantiles were fitted on a separate CAL split, so this curve is in-sample for the
confidence mechanism. The control is the same trio curve re-run on test.jsonl, where it
also passes — 0.950 at 80% coverage and 0.975 at 70.1% over 348 questions, with the
0.9034 floor abstaining on 104 of 348 exactly where the curve withholds 104 — and it is
runs/risk_coverage_v6_g5trio_test.md, registry row risk-coverage-v6-trio-test, not a
reassurance:
uv run python -m bench.risk_coverage --ckpt "myna-v5-prototype 2" --split calibration \
--source banking77,dbpedia14,trec --out runs/risk_coverage_v6_g5trio.md
uv run python -m bench.risk_coverage --ckpt "myna-v5-prototype 2" --split calibration \
--out runs/risk_coverage_v6.md
uv run python -m bench.risk_coverage --ckpt "myna-v5-prototype 2" --split test \
--source banking77,dbpedia14,trec --out runs/risk_coverage_v6_g5trio_test.mdbench/risk_coverage.py prints it, tests/test_risk_coverage.py checks it against
a synthetic oracle whose answer the test knows in advance, and
bench/mutation_p5.py (49 mutations, all caught) checks that each published figure
moves when — and only when — the claim behind it stops holding. Reproduce:
uv run python -m bench.risk_coverage --ckpt runs/myna-v0 --out runs/risk_coverage.mdSPEC §9.30 buried eight headline cells that had been copied out of an artifact into
prose and then copied again. This is the repair pointed the other way: one line per
published table, the command that regenerates it, and the file its numbers came from.
bench/reproduce.py holds the pairs, and either of
make repro # or:
uv run python bench/reproduce.py --check # every row, or it says which one driftedproves, for each row, that its witness is still committed, still contains the figure the
docs quote from it, and that the prose around the table — not this index, which is this
file's own registry echoed back and is cut out before matching — still prints the
command. The fourth assertion asks the tool rather than the file: every row whose command
names a python target gets --help from it, and each flag the row publishes has to be in
the answer, because a renamed flag leaves the other three untouched (§9.43).
The registry's size is counted out of ROWS by bench/gates.py and read back out of
SPEC §2.2 — the gate table's one hand-copied row — so make gates reds on a stale count
instead of printing it (§9.44).
A third command guards something no row covers: make secrets
(bench/scan_secrets.py) walks every blob in the object database, reachable or not,
against nine credential shapes, and prints the blobs it scanned beside the blobs the
database reports so a mismatch exits non-zero. That denominator is the whole design —
the first version of this check was a one-off command that mis-parsed its own input,
walked nothing, and published "845 blobs, 0 matches" into SPEC (§5 P0).
A finding is then classified, because two findings are not the same fact: one in a blob
reachable from a ref is in the set a push transfers and fails the command; one in an
unreachable blob — an amended commit's leftover, or the tool's own earlier drafts — is
printed as local debt and does not. tests/test_scan_secrets.py runs all three arms of
that rule against a throwaway repo, and .github/workflows/ci.yml runs make secrets
on every push — so the sentence "no credential is in this repository's history" is a
command CI executes rather than a claim this file remembers.
tests/test_reproduce.py (38 tests) pins the block below to the registry, so a
row cannot appear here without being added there, and
bench/mutation_reproduce.py breaks the checker one promise
at a time — a witness that stopped existing, a figure the artifact no longer prints, an
index that counts as its own evidence, a flag check that stopped asking — and requires the
tests to go red: 29/29 all caught, in runs/mutation_reproduce.log. Rows tagged
external-* need something this repo does not carry (a laya checkout, Google Chrome);
the gated-kaggle row has no witness on purpose — that figure does not exist yet,
and no local run may invent it. make repro-show ROW=ID prints what a row would do and
make repro-run ROW=ID does it, overwriting a committed witness the README quotes —
hence the two-step.
The release-gate table at the top of this file is deliberately not a row here. Its command is
make gates # or:
uv run python bench/gates.py --check # every verdict, or it says which one lost its witnessand what that proves is different in kind: bench/gates.py imports the registry above
rather than restating it, so a verdict cannot be greener than the artifact under it, and it
re-reads one named field from a committed JSON file per gate (g5.pass,
baseline.readable, inference_only, meta.myna_dtype). But the table itself is
generated from the same declarations it would check, and §9.31 says what a checker
generates is not evidence — so the evidence is SPEC.md §2.2's status column and
the files it cites, which is exactly what --check reads.
# README architecture table · SPEC §2.1 (params, weights on disk) [here]
uv run python -m bench.bench_mlx --ckpt runs/myna-v0 --reps 20 --drift-rows 12 --out runs/bench_mlx_int8.md
# README 'Measured on an Apple M5' · SPEC §2.1 G2 [external-laya]
PYTHONPATH="<laya checkout>" .venv/bin/python -m bench.bench_latency_matched
# README 'Trained v0' · SPEC §2.1 G6 [retrain]
uv run python -m myna.train --steps 9000 --batch 32 --device mps --out runs/myna-v0
# PLAN v1 · TODO 4 (RLCD scoring pass) [retrain]
uv run python -m myna.rlcd --ckpt runs/myna-v0 --steps 800 --out runs/myna-v0-rlcd
# README abstention table · SPEC §2.2 G5 [here]
uv run python -m bench.risk_coverage --ckpt runs/myna-v0 --out runs/risk_coverage.md
# SPEC §2.2 G4 · README context column [here]
uv run python bench/eval_needle.py --ckpt runs/myna-v0 --device cpu --n 16 --seed 0 --lengths 128 1024 4096 8192 16384
# SPEC §2.2 G4 · §9.64 (the 4k-trained ladder, replayed from its Release) [here]
uv run python bench/eval_needle.py --ckpt "$(uv run python -c 'from myna.weights import fetch_weights; print(fetch_weights(tag="lc1-4k-s0-stageC-weights"))')" --device cpu --n 60 --seed 0 --lengths 128 1024 4096 8192 16384 --out runs/needle_lc1_stageC_replay.md
# SPEC §2.2 G6 · §9.65 (the v1b arm on the synthetic test split) [here]
uv run python bench/eval_synthetic.py --ckpt runs/v1b-kaggle-3600b --device cpu --seed 0 --n-train 4000 --n-eval 1200 --out runs/g6_v1b_synthetic_s0.md
# SPEC §2.1 G1 competitor row · README real-corpus table [external-laya]
uv run python bench/eval_laya_real.py --split test --n-per-source 40 --seed 0 --out runs/laya_decision_v2_test.json
# SPEC §2.2 G3 (torch↔onnxruntime) · README browser section [here]
uv run python -m myna.onnx_export --ckpt runs/myna-v0 --out runs/onnx --scan-chunk 16 --n-chunks 4 --suite data/decision-v2-pilot
# SPEC §5 P6 6b (the 1,067-token request) [here]
uv run python -m myna.onnx_export --ckpt runs/myna-v0 --out runs/onnx-wide --questions 2 --q-len 1152 --scan-chunk 64 --report runs/onnx_parity_widest.json
# SPEC §5 P6 (the node gate that backs every browser cell) [external-chrome]
npm run selftest
# README in-tab table, left column · SPEC §2.2 G3 [external-chrome]
npm run g3
# README in-tab table, right column [external-chrome]
npm run g3 -- --artifact runs/onnx_int8 --out runs/browser_g3_int8.json
# SPEC §5 P6 (the int8 attempt, and the node gate going red) [here]
uv run python bench/quantize_int8.py
# README 'On an Apple silicon Mac' · SPEC §5 P6 6c [here]
uv run python -m bench.bench_mlx --ckpt runs/myna-v0 --reps 20 --drift-rows 12 --out runs/bench_mlx_int8.md
# SPEC §5 P6 6c (the one row that flips when the gates are kept fp32) [here]
uv run python -m bench.bench_mlx --ckpt runs/myna-v0 --reps 3 --lengths 128 --drift-rows 12 --keep trunk.tok.weight .gate.weight --fp32-out runs/myna-v0-mlx-fp32-keepgate --int8-out runs/myna-v0-mlx-int8-keepgate --out runs/bench_mlx_int8_keepgate.md
# README 'and it prices that at the kernel' · SPEC §5 P6 6c [here]
uv run python bench/diag_mlx_int8_gem.py --iters 200 --trials 7 --out runs/mlx_int8_gem_probe.md
# SPEC §4.2 (the majority-label floors the accuracy gates are set against) [here]
uv run pytest tests/test_report.py -q
# SPEC §5 P3 3c (the Kaggle image is python 3.12/3.11, this box is 3.13) [here]
uv run python bench/check_python311.py
# README upstream table, control row · SPEC §8's disclosure [here]
uv run python bench/eval_scratch.py --split test --seeds 0 1 --out runs/scratch_decision_v2_test.md --metrics-out runs/scratch_metrics_test.json
# README upstream table, the gap line · SPEC §8 [here]
uv run python -m myna.report --suite data/decision-v2-pilot --split test --metrics runs/scratch_metrics_test.json --laya runs/laya_decision_v2_test.json --out runs/report_scratch_vs_laya.json
# README upstream table's disclosure row · SPEC §5 P1, §9.23 [here]
uv run python -m myna.report --suite data/decision-v2-pilot --split test --metrics runs/myna-v1-rich/metrics.json --laya runs/laya_decision_v2_test.json --out runs/report_void_vs_laya.json
# SPEC §2.1 G1 myna row · TODO 3i [gated-kaggle]
# no local command: the run this row named is now committed as `v1b-kaggle-macro`, so G1's verdict no longer rests here.
# SPEC §5 P9 9e (the `ce` vs `emd` verdict) · §9.35, §9.36 [retrain]
python bench/ordinal_ab.py --ab-dir /tmp/ab2
# SPEC §2.1 G1 myna row · §5 P8 · KAGGLE_LAUNCH_INSTRUCTIONS.md [here]
uv run python -m myna.report --suite data/decision-v2-pilot --split test --metrics runs/v1b_kaggle_3600b.metrics.json --laya runs/laya_decision_v2_test.json --out runs/v1b_kaggle_3600b.report.json
# SPEC §5 P10 10c (the fresh `off` control) · §9.53(iii) [here]
uv run python -m myna.report --suite data/decision-v2-pilot --split test --metrics runs/antiprior_off_s0.metrics.json --laya runs/laya_decision_v2_test.json --out runs/antiprior_off_s0.report.json
# SPEC §5 P10 10c (Tier 0 over the `off` control) · §9.55(iii) [retrain]
uv run python bench/diag_question_ablation.py --run-dir runs/antiprior_off_s0 --metrics runs/antiprior_off_s0.metrics.json --out runs/tier0_antiprior_off_s0.json
# SPEC §5 P10 10c (the `on` arm, dose-matched) · §9.56 [here]
uv run python -m myna.report --suite data/decision-v2-pilot --split test --metrics runs/antiprior_on_s0c.metrics.json --laya runs/laya_decision_v2_test.json --out runs/antiprior_on_s0c.report.json
# SPEC §5 P10 10c (Tier 0 over the `on` arm) · §9.56 [retrain]
uv run python bench/diag_question_ablation.py --run-dir runs/antiprior_on_s0c --metrics runs/antiprior_on_s0c.metrics.json --out runs/tier0_antiprior_on_s0c.json
# SPEC §9.41 (the dbpedia14 dev→test delta) · TODO 9h [here]
uv run python -m myna.report --split dev --metrics runs/v1b_kaggle_3600b.metrics.json --out runs/v1b_kaggle_3600b.dev.report.json > runs/v1b_kaggle_3600b.dev.report.log
# SPEC §5 P9 9d · TODO 9d [here]
uv run python -m bench.scope_pricing
# KAGGLE_LAUNCH_INSTRUCTIONS.md cost table · kaggle/campaign.py [here]
grep -E "^step" runs/v1b_kaggle_3600b.train.log | tail -1
# SPEC §2.1 G1 · §9.38 · KAGGLE_LAUNCH_INSTRUCTIONS.md dose lane [here]
grep -E "dev-mid acc" runs/v1b_kaggle_3600b.train.log | uniq | tail -5
# SPEC §5 P10 · `campaign.py`'s P10 pair · TODO 10 [here]
uv run python bench/anti_prior_audit.py --compare --out runs/anti_prior_audit.json
# SPEC §5 P10 9l (§9.48) — Tier 0 input ablation [retrain]
uv run python bench/diag_question_ablation.py --run-dir runs/v1b-kaggle-3600b --out runs/diag_question_ablation.json
# SPEC §9.66 — myna's per-question outcomes over the 1,176 test rows [here]
uv run python bench/row_outcomes.py --out runs/myna_v1b_test.rowoutcomes.json
# SPEC §9.66 — laya 0.4.19's outcomes over the same rows [external-laya]
PYTHONPATH="<laya 0.4.19 checkout>" "<laya venv>/bin/python" bench/eval_laya_row_outcomes.py --out runs/laya_0419_test.rowoutcomes.json
# SPEC §2.2 G1 · §9.66 — every headline accuracy with a 95% interval [here]
uv run python bench/significance.py --myna runs/myna_v1b_test.rowoutcomes.json --laya runs/laya_0419_test.rowoutcomes.json --B 20000 --seed 20261031 --out runs/significance.json --md runs/significance.md
# SPEC §9.67 — vegaml 0.15.0's outcomes over the same rows [external-vegaml]
"<vegaml 0.15.0 venv>/bin/python" bench/eval_vegaml_row_outcomes.py --every 100 --out runs/vegaml_0150_test.rowoutcomes.json
# SPEC §2.2 G1 · §9.67 — the control in the frozen instrument's competitor slot [here]
uv run python bench/vegaml_control.py --control runs/vegaml_0150_test.rowoutcomes.json --B 20000 --seed 20261031 --out runs/vegaml_control.json --md runs/vegaml_control.md
# README v6 table · the local re-score of the shipped checkpoint [here]
uv run python -m bench.v6_audit --ckpt "myna-v5-prototype 2" --split test --every 1 --out runs/paper_v6_audit.json --md runs/paper_v6_audit.md --metrics runs/paper_v6_test.metrics.json --rowout runs/paper_myna_v6_test.rowoutcomes.json
# SPEC §2.2 G5 · README abstention table (v6, all pooled sources) [here]
uv run python -m bench.risk_coverage --ckpt "myna-v5-prototype 2" --split calibration --out runs/risk_coverage_v6.md
# SPEC §2.2 G5 · README abstention table (G5's three named sources) [here]
uv run python -m bench.risk_coverage --ckpt "myna-v5-prototype 2" --split calibration --source banking77,dbpedia14,trec --out runs/risk_coverage_v6_g5trio.md
# SPEC §2.2 G5 · README v6 abstention table (the same trio curve out-of-sample, on `test.jsonl`) [here]
uv run python -m bench.risk_coverage --ckpt "myna-v5-prototype 2" --split test --source banking77,dbpedia14,trec --out runs/risk_coverage_v6_g5trio_test.md
# SPEC §2.2 G5 · SPEC §9.69(iv) (the same trio curve on a third split, where it is harder and still passes) [here]
uv run python -m bench.risk_coverage --ckpt "myna-v5-prototype 2" --split development --source banking77,dbpedia14,trec --out runs/risk_coverage_v6_g5trio_dev.md
# SPEC §2.2 G1 · README v6 gate paragraph (the dumps the frozen instrument reads) [here]
uv run python -m bench.v6_audit --ckpt "myna-v5-prototype 2" --split test --every 1 --out runs/v6_g1_test.json --md runs/v6_g1_test.md --metrics runs/v6_test.metrics.json --rowout runs/myna_v6_test.rowoutcomes.json
# SPEC §2.2 G1 · README v6 gate paragraph (the frozen report's own verdict on v6's rows) [here]
uv run python -m myna.report --metrics runs/v6_test.metrics.json --split test --out runs/v6_test.report.json
# SPEC §2.2 G1 · README v6 gate paragraph · benchmarks.html engines table (G1's number with its own sampling error) [here]
uv run python bench/significance.py --myna runs/myna_v6_test.rowoutcomes.json --laya runs/laya_0419_test.rowoutcomes.json --report runs/v6_test.report.json --B 20000 --seed 20261031 --out runs/significance_v6.json --md runs/significance_v6.mduv sync --extra browser
uv run python -m myna.train # 4,000 steps by default; v0's 9,000 took 15,693 s on an M5
uv run pytest # equivalence + isolation proofs--extra browser (onnx, onnxruntime, onnxscript) is part of the test install, not an optional
add-on: the registry asks bench/quantize_int8.py --help for its int8-quantize row and that module
imports onnx at module scope, so a plain uv sync leaves 5 tests red — the row, gate G7's proof
that every published row binds to a live command, and the four test_gates.py arms that read it.
Those 5 are what the runner printed on its first real collection pass (13 failed, 520 passed, 20
skipped, §9.52); the next run installed the extra and went green — 545 passed, 8 skipped, 0 failed
in 568.96 s, the first green this repository has recorded, and CI installs --extra browser for the
same reason this file does.
And a fresh clone is still missing the weights, which costs another 5. --extra browser alone
does not make uv run pytest green: five tests load runs/myna-v0/model.pt, runs/* is ignored, and
.gitignore keeps 57 MB of *.pt out of git — fetch the two Release assets first (the block under
"Weights are not in the tree", or gh release download v0-checkpoint --dir runs/myna-v0) and both
classes go away.
The 11 MLX tests are the remaining skip: uv run pytest -rs names them, and --extra mlx includes
them on Apple silicon only. Off macOS that extra is a trap worth naming, because PyPI's Linux
mlx wheel installs the bindings without libmlx.so, so the package is present and unloadable at
once (uv run python -c "import mlx.core" is the one command that shows it). The four MLX registry
rows report the same limit as a note rather than a failure. Both facts are CI-measured and in §9.51,
which is the entry for the tick this repo's Actions tab had never once gone green.
Weights are not in the tree — .gitignore keeps *.pt out, and G7's witness is the committed
JSON, not a binary. The v0 checkpoint that ~20 registry rows read as --ckpt runs/myna-v0 is
therefore a Release asset, with its
sha256 and the re-run that ties it to runs/risk_coverage.json on the page. The V1-B weights behind
the 0.4893 macro are also there now — v1b-checkpoint,
recovered on 2026-10-01 from the Kaggle notebook's Output archive after §9.50 had recorded them as
destroyed with /private/tmp/kgwork. The page carries the three hashes that tie those bytes to the
committed Tier 0 witness (model 0e73a8f07edc, tokenizer 0252c24627ee, and a metrics.json that
cmps byte-identical to runs/v1b_kaggle_3600b.metrics.json), which is why "recovered" is a
measurement here and not a hope. §9.53 is the entry. The off control of the P10 pair ships the same
way — antiprior_off_s0-weights,
model.pt 67,733,781 B at sha256 30f0fa937e57e8ce…, downloaded back and re-hashed on 2026-10-01 —
and its title says 3,314 of 3,600 updates, because the tag previously claimed the requested dose as
if it were the achieved one (§9.54). That checkpoint is now ablated too, and what it says is the thing
the accuracy work needed before spending another GPU hour: the control's +0.0445 over V1-B (exactly
0.0445463372) arrives with less prompt-selectivity, not more — its blank-instruction macro rises
further (+0.0974) than its
as-scored one (+0.0445), and a fourth cell (agnews/is_business) has become a constant emitter that
prints its own 0.698 floor. §9.55(iii) is the entry and tier0-off-control is the row. The stopped
on arm's snapshots are labelled by step, because size does not identify them: the
antiprior_on_s0-wip asset (release deleted 2026-10-05) is the ≤step-250 bytes (203,229,625 B, sha256 8ed38b240bd843bf…,
downloaded and re-hashed), while this box's runs/antiprior_on_s0/model_last.pt is the step-500 save —
same byte count, sha256 3b45dd6a4ae65e77… — and it is gitignored, so §9.55(ii) keeps that as an open
durability gap rather than a covered one. The on arm has since run to completion on this box:
continued from that step-500 save through the canonical launcher with --resume, ending at
"last_step": 3314 of "steps_requested": 3315 with "stopped": null, so the pair is one machine and
one dose and the residue left is the re-seeded data RNG a continuation cannot avoid. The coverage
asymmetry this README used to report — 176,003 paraphrase draws against the control's 207,411 over the
same 17,112 sets, "15.2% fewer per update" — was a denominator, not a dose: the continued process ran
2,814 updates, so the two arms reach 62.55 and 62.57 draws per executed update, and a CPU replay of
both drawers lands on both counters exactly (§9.58). The judgement §9.56(vii) fixed before the run
printed: test macro 0.4784612299508689 against 0.5338735348381732, −0.0554 from the flag alone, and
0 constant emitters where the control has 4, so the shortcut is gone and nothing readable arrived in
its place. antiprior-on-macro and tier0-on-arm are the two rows; the weights are on the
antiprior_on_s0c-weights Release and re-hash identical to the trained files.
mkdir -p runs/myna-v0
curl -L -o runs/myna-v0/model.pt https://github.com/aashish254/myna/releases/download/v0-checkpoint/model.pt
curl -L -o runs/myna-v0/tokenizer.json https://github.com/aashish254/myna/releases/download/v0-checkpoint/tokenizer.json
make repro # 41/41 rows hold here, with weights to readThe V1-B weights go where bench/diag_question_ablation.py already looks by default, so Tier 0
re-runs on the recovered checkpoint with no flag at all:
mkdir -p runs/v1b-kaggle-3600b
curl -L -o runs/v1b-kaggle-3600b/model.pt https://github.com/aashish254/myna/releases/download/v1b-checkpoint/model.pt
curl -L -o runs/v1b-kaggle-3600b/tokenizer.json https://github.com/aashish254/myna/releases/download/v1b-checkpoint/tokenizer.json
uv run python bench/diag_question_ablation.py # guard green: 716 committed keys, macro 0.4893271976from myna import Myna
myna = Myna("runs/myna-v0")
obs = myna.observe("Hi, we were billed twice for March. Please refund the duplicate today or we will cancel our plan.")
answers = obs.ask({
"department": {"type": "choice", "instructions": "Which department should handle this?",
"criteria": {"billing": "invoices, payments, refunds",
"technical": "bugs, outages, system errors"}},
"urgency": {"type": "score", "instructions": "How urgent is this?",
"criteria": ["not urgent", "soon", "blocking", "drop everything"]},
"churn_risk": {"type": "noul", "instructions": "Does the writer threaten to cancel?"},
})["answers"]
# the thread continues — only the new message is encoded
obs2 = obs.append("And the second charge is still showing on my card this morning.")
# the observation itself is portable: 576 KiB of state, resume it tomorrow
obs2.save_state("session.pt") # ... myna.restore("session.pt")uv run --extra serve python -m myna.serve --ckpt runs/myna-v0 --port 8080
# --abstain-below 0.693 runs the server with a floor under its answers; /v1/health
# reports the value in force, so a deployment cannot forget its own policyPOST /v1/predict |
{state, questions} → answers (laya Router.predict contract) |
POST /v1/sessions |
{state} → session_id — the state is scanned once, here |
POST /v1/sessions/{id}/append |
{text} → only the delta is scanned |
POST /v1/sessions/{id}/ask |
{questions} → answers; flat cost as the session grows |
DELETE /v1/sessions/{id} |
release the 576 KiB and be done |
v0 trains and evaluates on a synthetic typed-decisions corpus (three
workflows: ticket triage, incident triage, content moderation) with disjoint
train/dev/test vocabulary. It proves the architecture learns and streams;
it does not yet claim parity with laya/kev on their frozen suites —
SPEC.md's gates split that into what is settled and what is not.
Speed is measured on one box against laya's own engine and clears its gate
(G2, §2.2); accuracy on the real kev decision-v2 corpus (G1) and the
usable-confidence gate (G5, the section above) both wait on a checkpoint
trained on that corpus, which runs on Kaggle rather than here. The full
next-generation research design — free-text questions, state algebra (merge/branch/diff
of cached states), O(window) mid-state edits, unbounded two-timescale memory,
expected-utility decisions, 15 MB on-device model — is specified with
acceptance criteria in V2_SPEC.md.
The uncertainty has somewhere to go: myna.fallback holds a Decider seam and a
registry, so Fallback(myna, laya) re-asks the secondary only the questions the
fast engine refused, and every answer carries the name of the engine that committed
to it. No single model is load-bearing on that path, and the routing is auditable one
decision at a time rather than reconstructed from logs.
Honest limits: word-order-heavy tasks can be partly solved bag-of-cues style; mid-state edits (not appends) fall back to a full re-encode — linear in the state's length asymptotically, but with a quadratic factor inside each 256-token chunk, so short states are cheaper than long ones (§9.22); the question branch's fixed cost (10.1 ms fitted, 14.5–17.4 ms to answer one question regardless of state length) is kernel work, not architecture work; and abstention is a routing feature, not an accuracy one — it can decline to answer, it cannot answer a question the checkpoint never learned (§9.24).
Apache-2.0 · research log in PLAN.md · questions to aashish254