Reference evaluator (ADR-0015, Rust): als-ref with λ_almd agreement 49/49, three gates, abstain ledger 429/602, first two reference findings - #36
Merged
Conversation
…lchain (Ferrocene-rebuildable), standalone crate, totality by exhaustive matches, forbidden host methods and types as the host-diversity clause, independence gate — the claim-ladder ceiling decided at zero switching cost
…errocene 26.05.0's upstream), clippy clauses for forbidden host types/methods, the kernel-conformance corpus carried with provenance
…om the EBNF, abstract values with ALS-R2 rendering, evaluator (effect-fn lift, explicit propagation, value semantics, lazy ranges, tail-call trampoline, by-value captures), the stdlib as the judge reads it, the run/parse/stdlib-index protocol
…dence (no almide-* dep, pinned stable, clippy clauses, F64 without Display, fmt), totality-or-abstain with the shrink-only abstain ledger (429 over 602, 152 classes); PARSER-NOTES records 13 decisions and the first two reference disagreements
…hed build, three gates), CONTRIBUTING, the gate-verification ledger, README, BOUNDARY (an evaluator is not a compiler), QUALIFICATION limitation 2 (the instrument exists; the ref leg is next)
… family (five new cross fixtures): 602 to 607 programs, 429 to 434 abstains, float.abs and float.to_int join the classes
This was referenced Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Frontier #1 of the aviation-quality arc, first slice: the judge-owned reference evaluator (#10, ADR-0015 — ratified, then amended to Rust with the user before any code existed).
What lands
ref/—als-ref, a fresh, source-level evaluator of Almide programs written from the ALS chapters and the EBNF: stable Rust pinned to 1.95.0 = Ferrocene 26.05.0's upstream (rebuild undercriticalupis a CI-step change), zero dependencies, noalmide-*crate, behind the black-box protocolals-ref run <file> --json→{exit, stdout, stderr}|{abstain: {class, reason}}|{error}.clippy.tomlforbidsHashMap/HashSet(clause 1) and the std string/number/sort methods whose behaviour the ALS specifies (clause 5);F64implements noDisplay; every ASTmatchis exhaustive, unimplemented forms are explicit classified abstains (clause 2);rust-toolchain.tomlpins the channel (clause 4); the independence gate readscargo tree(clause 6).proofs/kernel-conformance/— the λ_almd corpus carried in with provenance (48 programs + the nine-linekAlltrace).gates.yml(cached cargo, ~1 min):check-ref-kernel.py(agreement 49/49, twice — floor 1.0, determinism),check-ref-independence.sh,check-ref-totality.py(+proofs/ref-abstain.toml, shrink-only).docs/ref/PARSER-NOTES.md: 13 decisions where text and corpus disagreed, the rules the evaluator abstains on until the ALS states them, and the findings below.Measured at this commit (spec/wasm_cross + spec/programs, 602 programs)
list.map38,list.fold17,bytes.new14,int.parse14,value.int13,float.to_string12, …) — the ratchet's workFindings — the class limitation 2 said agreement could not see
grain_functions.almdlabeled_args6: the fixture's own comment says evaluation order is the WRITTEN order; ALS-E26 says 先頭から順; the implementation evaluates named args in PARAMETER order (secondthenfirst). The evaluator follows the written order and disagrees → ALS-E26 must decide, then either the comment or the implementation is wrong.effect_assign_unwrap.almd:xs[0] = step(10)(index-assign of an effect call, no!) is accepted and the Int slot receives the unwrapped value — a residual implicit-propagation site after ADR-0008. The evaluator keeps the Result and cannot type the next call →semantics:type-mismatch.?; ALS-M14's carrier paragraph predates the UInt64 upper-half lane (C-179); ALS-E10's "束縛は実体化" predates #1400 (C-238).Not in this PR (next)
scripts/conformance.py --legs ref(verdict legs == ref) + selftest scenarios + runner-coverage ledger; the stdlib long tail against the ledger; ADR-0016's numeric rules for the float/overflow abstains.🤖 Generated with Claude Code