Repository navigation
feat(WO59/A3): Interscript::Equivalence — system-equivalence checking - #816
Merged
Merged
Conversation
…ce checking Probes a sample set through two systems and reports the agreement ratio plus the minimal distinguishing samples. Samples are caller-supplied or derived from the systems' own embedded tests (the natural probe set for near-equivalent authorities). The distinguishing corpus generator and the bounded-equivalence search build on this base.
Two rulings pinned as frozen vectors: a parallel block is single-pass longest-match; duplicate rules resolve last-declared-wins. Each A4 ruling lands this way -- empirical vectors first, the IS-1 v2 normative text accretes per ruled point.
The byte-decode relabeled invalid sequences as UTF-8; the python reference decodes with errors=replace (U+FFFD). Ruby String#scrub matches byte-for-byte. Caught by the C1 conformance matrix: the invalid bytes crashed first_alternates' split.
CONFORMANCE.md pins the decoder at a 512-step cap; the runtime defaults had drifted (translator 100, byt5 256) truncating long outputs (the fas docs-split rows). The C1 matrix caught it.
* origin/main: test(WO80/A4): normative rulings for parallel composition (#818)
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.
A3 first slice: Interscript::Equivalence.check(first, second, samples:) probes both systems and reports {tested, matched, ratio, distinguishing} — the mechanical basis for the coverage audit, alias/dedup justification (A1), and the L3 certification kit (A5). samples_from_tests derives the natural probe set from embedded tests.
2 specs, both green; full suite green.