Repository navigation
E3 engine fixes: alias=maybe miscompile fixed (#292); #293/#295 re-verified closed and pinned - #867
Merged
Merged
Conversation
The runtime compiled an alias body of the form maybe(X + Y) into X-prime Y-optional - the optionality suffix bound to the body's LAST atom instead of the body, so the rule silently never matched (maps#292, 52 fuzz cases; ts/py/rs were the consistent reference). The wrap condition was inverted: only a single-character String body is its own atomic unit; every other body needs the non-capturing group. Failing spec + fixture pin the agreed outputs.
Re-verified every fuzz-filed family against origin/main before writing these: the nested-block, unknown-keyword, malformed-escape and zero-width-in-compound-from families already match ruby/ts/rs on the shared .parg grammar (the fuzz-era drift was closed by the generated parser work), and the note-text brace corruption no longer reproduces (the din-kaa evidence map parses to the same rule set clean or braced). The pins keep those boundaries from drifting back. One residual stays open on purpose: ruleset-inside-metadata is rejected here because the canonical .parg metadata_field production has no ruleset_block - the ruby/ts/rs acceptance is the lax side and needs the owner ruling the issue itself asks for; py rejecting is grammar-canonical, not a defect.
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.
Summary
The E3 round's engine-side findings on the ruby reference runtime and the vendored py runtime. One fix (maps#292), and two findings (maps#293, maps#295) that were re-verified probe-by-probe against origin/main before writing anything — both were already closed by work that landed after the fuzz campaign ran, so they are pinned with regression tests rather than "fixed" (nothing fabricated).
maps#292 — ruby miscompiled
alias = maybe(...)(FIXED, red→green)The runtime compiled a Maybe/Some/MaybeSome over a multi-atom body by appending the suffix to the UNWRAPPED body:
maybe(any([x,y,z]) + any(1..3))built(?:x|y|z)[1-3]?— the optionality bound to the last atom, the rule silently never matched, andabctransliterated unchanged (52 fuzz cases; ts/py/rs were the consistent reference). The wrap condition was inverted: only a single-character String body is its own atomic unit; every other body needs the non-capturing group.spec/interscript/fixtures/fuzz/alias-maybe.isc+fuzz_findings_spec.rb: both rows red before the fix (abc,y), green after; outputs are the four-runtime reference values from the issue.Observed, not touched:
lib/interscript/compiler/{ruby,python,javascript}.rb(the legacy cross-compilers, CI-maintained) carry the byte-identical inverted condition in their emit paths — same latent defect class, out of this finding's scope; flagged for the owner.maps#293 — py parse accept/reject boundary (VERIFIED ALIGNED; pinned)
Every family re-run against origin/main py:
parallelinsidesequencefromrulesetinsidemetadata.pargmetadata_fieldproduction has no ruleset_block, so py rejecting is grammar-canonical; ruby/ts/rs accepting is the lax side and needs the owner ruling the issue itself notes ("three-way laxness vs py")The first four were closed by the grammar-sync/generated-parser work that landed after the campaign (the sha-pinned .parg embed is byte-identical and the pin test passes).
tests/test_isc_parser.py::TestParseBoundaryFuzzFamiliespins all five so the boundary cannot drift back silently. Full-corpus boundary check: py parses 429/435, failing only the 6 documented dependency-resolver maps (the parity README §A.5 semantics, not drift).maps#295 — py note-text brace corruption (VERIFIED CLOSED on A; B no longer divergent)
standard's→standa{d's) was run through current main py next to the clean map — every embedded row produces identical output; the parser's block/string scanning no longer corrupts.TestNoteTextIsInertpins the defect class (a{in description free-text must not alter the parsed rule set or the output).Test plan
stategeocadastre-ukr-cyrl-latn-1993(StateGeoCadastre Ukrainian System (1993)) #293/Implement systemun-ukr-cyrl-latn-1998#295: probes re-run per family before any test was written; pins green