Repository navigation
Add a conformance suite for HermitCrab, with its adequacy argument - #480
johnml1135 wants to merge 61 commits into
Conversation
d826869 to
8f9dcea
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## fix/signature-drops-id-under-identity-rule #480 +/- ##
==============================================================================
+ Coverage 74.62% 75.11% +0.48%
==============================================================================
Files 453 556 +103
Lines 38345 56531 +18186
Branches 5285 7719 +2434
==============================================================================
+ Hits 28614 42461 +13847
- Misses 8568 12210 +3642
- Partials 1163 1860 +697 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
d0b5448 to
9dfb2f6
Compare
de95458 to
4823a05
Compare
Introduces an engine-agnostic conformance suite for HermitCrab-formalism morphological parsers: a `conformance/` tree of language grammars and edge-case micro-grammars, each an HC-XML grammar.xml paired with a words.yaml ground truth (oracle-provenance, gloss, and per-word parse signatures). A new SIL.Machine.Morphology.HermitCrab.Conformance project and hc-conformance CLI tool run those fixtures against an engine adapter, producing coverage and rules CSVs, an interface inventory, dataflow- obligation ledgers, evidence cards, a FieldWorks-producibility table, and a JSON manifest for external consumers. PROTOCOL.md is the adapter contract a second engine (e.g. the in-progress Rust port) implements to plug into the same suite. Includes the FieldWorks-producibility classification campaign: for every HermitCrab construct the suite covers, a verdict on whether FieldWorks' own HC-XML export path can actually produce a grammar exercising it, distinguishing genuine data-model limits from mere loader gaps, with five previously-unresolved verdicts now classified and corrected write-ups for two more cases initially misread as exporter silence. Also lands one new edge-case fixture, edge-cases/chained-output-feature-override-loss, isolating an analysis- side OutputHeadFeatures retraction bug: a well-formed four-morph parse of `zudiua` that the founding C# oracle currently loses. The fixture is deliberately red against hc.dll today (expected, not a broken test) and documents the mechanism, provenance, and the HC-Rust divergence that motivated it. The suite is deliberately stopped at this point rather than finished: scope, known gaps, and next steps are documented in the suite's own tracking docs rather than left implicit. This commit squashes the full conformance-suite branch stack (integrate-conformance-framework through conformance/fieldworks- witnesses, 49 commits) into one commit on top of current master, for PR #480. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
4823a05 to
3128301
Compare
Records a break-attempt run of PR #494 (AnalysisAffixProcessRule fix) against the conformance suite: 36/36 fixtures pass (including pathological cases), and a generated-word fuzz sweep (every root x every 0..3-subset of affix rules, up to 6 nonhead roots where the grammar compounds) produced ~1,300 words across 35 grammars, parsed by both master and the PR branch with 0 divergences attributable to PR #494. The one observed diff (edge-cases/truncate-morphotactic, words `a`/`ga`) is pre-existing oracle nondeterminism in analysis multiplicity ordering, reproducible on master alone, unrelated to the syntactic FS change. This was previously recorded only at tag archive/pr494-conformance; folding it into the conformance suite's own PR (#480) so the evidence travels with the suite it was run against. Fixed two references to branches deleted since the doc was written (perf/pr494-conformance, conformance/fieldworks-witnesses) to point at their preserved archive/* tags instead; no other content changed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Added two independently justified conformance fixtures in a20bce1: final-template-partial-discriminators (10 words; #507) and template-category-sharing (6 words; #505). Fresh Release build: zero warnings/errors. Both fixtures pass with memoization on and off, zero skipped; 22 focused manifest/coverage tests pass. Four grammar counterfactuals produce the independently predicted mismatches, documented under conformance/docs. These are grammar-sensitivity controls, not proof that pruning, cache hits, or same-key feature collisions execute. No parser code changed. Generated inventory also restores previously omitted rows for the already-existing Exact-inverse fixture; its valid zudiua loss remains tracked in #504, not relabeled as correct. |
|
Added the shared-template unconstrained-suffix conformance fixture in f150e2a. The grammar has a slot-only feature-unconstrained suffix shared by mandatory TV/IV templates, an ordinary N-to-IV verbalizer, four positive rows, and six rejection controls. The companion rationale explains complete forward derivations and loader reachability (not a FieldWorks UI round trip). Fresh C# harness: all 10 rows pass in both template orders, memoization on/off (40 comparisons; no skips). Focused template/manifest tests: 22 passed, no skips. Regenerated manifest is current at 40 fixtures; coverage/rule reports updated. No Machine parser code changed. PanGloss main now contains the narrow gate-only alignment (fc357daf), with this fixture mirrored unchanged until its old Machine submodule pin is upgraded. Direct state assertions provide red/green evidence; full-parse fixture checks pass both before and after the change. Issue #505 remains open for collision/correlation and broader merge-equivalence evidence. |
Introduces an engine-agnostic conformance suite for HermitCrab-formalism morphological parsers: a `conformance/` tree of language grammars and edge-case micro-grammars, each an HC-XML grammar.xml paired with a words.yaml ground truth (oracle-provenance, gloss, and per-word parse signatures). A new SIL.Machine.Morphology.HermitCrab.Conformance project and hc-conformance CLI tool run those fixtures against an engine adapter, producing coverage and rules CSVs, an interface inventory, dataflow- obligation ledgers, evidence cards, a FieldWorks-producibility table, and a JSON manifest for external consumers. PROTOCOL.md is the adapter contract a second engine (e.g. the in-progress Rust port) implements to plug into the same suite. Includes the FieldWorks-producibility classification campaign: for every HermitCrab construct the suite covers, a verdict on whether FieldWorks' own HC-XML export path can actually produce a grammar exercising it, distinguishing genuine data-model limits from mere loader gaps, with five previously-unresolved verdicts now classified and corrected write-ups for two more cases initially misread as exporter silence. Also lands one new edge-case fixture, edge-cases/chained-output-feature-override-loss, isolating an analysis- side OutputHeadFeatures retraction bug: a well-formed four-morph parse of `zudiua` that the founding C# oracle currently loses. The fixture is deliberately red against hc.dll today (expected, not a broken test) and documents the mechanism, provenance, and the HC-Rust divergence that motivated it. The suite is deliberately stopped at this point rather than finished: scope, known gaps, and next steps are documented in the suite's own tracking docs rather than left implicit. This commit squashes the full conformance-suite branch stack (integrate-conformance-framework through conformance/fieldworks- witnesses, 49 commits) into one commit on top of current master, for PR #480. Folds in three review fixes: AdapterEngine's contract in MaterializedRunner now credits an expect_crash fixture only once the same engine also completes an ordinary fixture from the same run, so a misconfigured adapter (bad path, rejected arguments) can no longer register as reproducing the pinned crash; GuesserSignatureTests' batch-path test is renamed for the overload it actually calls; and .gitattributes freezes project.fwdata as binary so its pinned SHA-256 is reproducible across platforms and CI runners, not just this one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
93f470c to
2933fcc
Compare
Records a break-attempt run of PR #494 (AnalysisAffixProcessRule fix) against the conformance suite: 36/36 fixtures pass (including pathological cases), and a generated-word fuzz sweep (every root x every 0..3-subset of affix rules, up to 6 nonhead roots where the grammar compounds) produced ~1,300 words across 35 grammars, parsed by both master and the PR branch with 0 divergences attributable to PR #494. The one observed diff (edge-cases/truncate-morphotactic, words `a`/`ga`) is pre-existing oracle nondeterminism in analysis multiplicity ordering, reproducible on master alone, unrelated to the syntactic FS change. This was previously recorded only at tag archive/pr494-conformance; folding it into the conformance suite's own PR (#480) so the evidence travels with the suite it was run against. Fixed two references to branches deleted since the doc was written (perf/pr494-conformance, conformance/fieldworks-witnesses) to point at their preserved archive/* tags instead; no other content changed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Introduces an engine-agnostic conformance suite for HermitCrab-formalism morphological parsers: a `conformance/` tree of language grammars and edge-case micro-grammars, each an HC-XML grammar.xml paired with a words.yaml ground truth (oracle-provenance, gloss, and per-word parse signatures). A new SIL.Machine.Morphology.HermitCrab.Conformance project and hc-conformance CLI tool run those fixtures against an engine adapter, producing coverage and rules CSVs, an interface inventory, dataflow- obligation ledgers, evidence cards, a FieldWorks-producibility table, and a JSON manifest for external consumers. PROTOCOL.md is the adapter contract a second engine (e.g. the in-progress Rust port) implements to plug into the same suite. Includes the FieldWorks-producibility classification campaign: for every HermitCrab construct the suite covers, a verdict on whether FieldWorks' own HC-XML export path can actually produce a grammar exercising it, distinguishing genuine data-model limits from mere loader gaps, with five previously-unresolved verdicts now classified and corrected write-ups for two more cases initially misread as exporter silence. Also lands one new edge-case fixture, edge-cases/chained-output-feature-override-loss, isolating an analysis- side OutputHeadFeatures retraction bug: a well-formed four-morph parse of `zudiua` that the founding C# oracle currently loses. The fixture is deliberately red against hc.dll today (expected, not a broken test) and documents the mechanism, provenance, and the HC-Rust divergence that motivated it. The suite is deliberately stopped at this point rather than finished: scope, known gaps, and next steps are documented in the suite's own tracking docs rather than left implicit. This commit squashes the full conformance-suite branch stack (integrate-conformance-framework through conformance/fieldworks- witnesses, 49 commits) into one commit on top of current master, for PR #480. Folds in three review fixes: AdapterEngine's contract in MaterializedRunner now credits an expect_crash fixture only once the same engine also completes an ordinary fixture from the same run, so a misconfigured adapter (bad path, rejected arguments) can no longer register as reproducing the pinned crash; GuesserSignatureTests' batch-path test is renamed for the overload it actually calls; and .gitattributes freezes project.fwdata as binary so its pinned SHA-256 is reproducible across platforms and CI runners, not just this one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Records a break-attempt run of PR #494 (AnalysisAffixProcessRule fix) against the conformance suite: 36/36 fixtures pass (including pathological cases), and a generated-word fuzz sweep (every root x every 0..3-subset of affix rules, up to 6 nonhead roots where the grammar compounds) produced ~1,300 words across 35 grammars, parsed by both master and the PR branch with 0 divergences attributable to PR #494. The one observed diff (edge-cases/truncate-morphotactic, words `a`/`ga`) is pre-existing oracle nondeterminism in analysis multiplicity ordering, reproducible on master alone, unrelated to the syntactic FS change. This was previously recorded only at tag archive/pr494-conformance; folding it into the conformance suite's own PR (#480) so the evidence travels with the suite it was run against. Fixed two references to branches deleted since the doc was written (perf/pr494-conformance, conformance/fieldworks-witnesses) to point at their preserved archive/* tags instead; no other content changed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2933fcc to
f412c25
Compare
Introduces an engine-agnostic conformance suite for HermitCrab-formalism morphological parsers: a `conformance/` tree of language grammars and edge-case micro-grammars, each an HC-XML grammar.xml paired with a words.yaml ground truth (oracle-provenance, gloss, and per-word parse signatures). A new SIL.Machine.Morphology.HermitCrab.Conformance project and hc-conformance CLI tool run those fixtures against an engine adapter, producing coverage and rules CSVs, an interface inventory, dataflow- obligation ledgers, evidence cards, a FieldWorks-producibility table, and a JSON manifest for external consumers. PROTOCOL.md is the adapter contract a second engine (e.g. the in-progress Rust port) implements to plug into the same suite. Includes the FieldWorks-producibility classification campaign: for every HermitCrab construct the suite covers, a verdict on whether FieldWorks' own HC-XML export path can actually produce a grammar exercising it, distinguishing genuine data-model limits from mere loader gaps, with five previously-unresolved verdicts now classified and corrected write-ups for two more cases initially misread as exporter silence. Also lands one new edge-case fixture, edge-cases/chained-output-feature-override-loss, isolating an analysis- side OutputHeadFeatures retraction bug: a well-formed four-morph parse of `zudiua` that the founding C# oracle currently loses. The fixture is deliberately red against hc.dll today (expected, not a broken test) and documents the mechanism, provenance, and the HC-Rust divergence that motivated it. The suite is deliberately stopped at this point rather than finished: scope, known gaps, and next steps are documented in the suite's own tracking docs rather than left implicit. This commit squashes the full conformance-suite branch stack (integrate-conformance-framework through conformance/fieldworks- witnesses, 49 commits) into one commit on top of current master, for PR #480. Folds in three review fixes: AdapterEngine's contract in MaterializedRunner now credits an expect_crash fixture only once the same engine also completes an ordinary fixture from the same run, so a misconfigured adapter (bad path, rejected arguments) can no longer register as reproducing the pinned crash; GuesserSignatureTests' batch-path test is renamed for the overload it actually calls; and .gitattributes freezes project.fwdata as binary so its pinned SHA-256 is reproducible across platforms and CI runners, not just this one. Also folds in the follow-up PR commits: fuzz/break-attempt evidence; admitting PCRE.NET's source generator via a vetted content-hash allowlist; final-template and template-sharing controls; oracle-verified fixtures for per-piece environments, simultaneous mode and iterative epenthesis; reduplication x phonology cases; and a regenerated manifest, ledgers and evidence cards. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f412c25 to
d8ff628
Compare
857313b to
b86120f
Compare
262ab30 to
cf84539
Compare
| writer.WriteLine( | ||
| "# against XmlLanguageLoader.cs (see EngineGateInventoryLedger.DtdAttributes' own doc comment) and" | ||
| ); | ||
| writer.WriteLine("# '-' is a genuine finding for six gates, not a placeholder. triggered_by_fixtures/"); |
There was a problem hiding this comment.
FYI: F40. The regenerated engine-gate-inventory.tsv header (line 9) still says '-' is a genuine finding for six gates, but adding AllomorphNotApplicable this round makes seven. The others are DisjunctiveAllomorph, Environments, HeadPattern, NonHeadPattern, Pattern and SurfaceFormMismatch. This line writes that header. The class summary at line 18 also still says 23 gates. Change them to seven and 24, then regenerate.
| that compare a checked-in ledger against a fresh recompute. These run in seconds and they are what | ||
| stop the published numbers from quietly going stale. | ||
|
|
||
| **Frozen, and honest as they stand.** The ledgers. They record 14 of 46 gate arms evidenced, 5 of 23 |
There was a problem hiding this comment.
FYI: F41. This index still reports 14 of 46 gate arms evidenced, 5 of 23 gates with both MC/DC arms. what-it-claims.md, updated this round, reports 18 of 48 and 7 of 24, and GateObligationLedgerTests pins those numbers. A reader who starts here gets the old figures. Copy the current ones over.
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude-drafted comment, posted on behalf of @johnml1135. Pushed 9b2ff58 (fast-forward from cf84539): four new edge-case fixtures from PanGloss, each replayed on C# hc.dll and matching (boundary-narrowing-probe 3/3; rewrite-default-environment, -epenthesis, -narrow 7/7 each). Each pins a bug PanGloss had and C# did not (UseDefaults in rewrite matching, sillsdev/PanGloss#41; boundary-initial narrowing probe, sillsdev/PanGloss#14). The ledgers gain only rows for these fixtures. Self-check 154/154, coverage 32/32, manifest 144 fixtures. Pre-existing staleness found on cf84539 and left alone:
|
| exercises: ["RewriteRule Iterative (epenthesis/deletion/feature/expansion/merge)"] | ||
| - word: bdt | ||
| note: "C# oracle replay; see STAGING.md." | ||
| expect_fail: true |
There was a problem hiding this comment.
FYI: F42. pr1 is listed in dead-rules-allowed.tsv as never exercised, but bdt here is rejected because of pr1. The lexicon has bdt (grammar.xml:127), and pr1 deletes its t, so it never surfaces. Add blocked_by: [pr1] to this row: the dead-rule gate credits blocked_by (CoverageReport.cs:166), so the allowlist entry can go and a regression in pr1 stays visible.
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude-drafted. Added |
|
|
||
| Derived from `rewrite-default-epenthesis`, this fixture has the same grammar except that segment `a` authors `nas` explicitly with both symbols (`symNasPlus symNasMinus`) instead of omitting it. An explicit full set is a present value, so C# `UseDefaults` leaves it alone: unification binds the set itself, not the `+` default. The epenthesis target is `nas=-` between `b` and `t`; surface `a` carries `nas={+,-}`, which unifies with `nas=-`, so `bat` parses as `|b[ad(aa)]t` here, while in `rewrite-default-epenthesis` (where `a` omits `nas`) it is rejected. | ||
|
|
||
| The seven expectations were recorded with the C# oracle at Machine commit `aab4c59819adb7b366915e09df2fb28c62b8c03a`, using `conformance/adapters/hc-dotnet-wrapper.sh batch`; `rules:` comes from the same build's trace (`insert-oral` = `pr1` for both parsing words). Before the fix for [PanGloss issue #85](https://github.com/sillsdev/PanGloss/issues/85), PanGloss encoded the explicit full set as the same full mask as an absent feature, so `UseDefaults` substituted `+` and `bat` had no parse; C# produced `|b[ad(aa)]t`. The other six words agreed. After the fix all seven agree. FieldWorks HCLoader does not currently emit `defaultSymbol`. |
There was a problem hiding this comment.
FYI: F43. This says the seven expectations were recorded at Machine commit aab4c598, but that commit is from 2026-10-22 and PanGloss#85, which this fixture follows up, was opened 2026-10-30. The expectations are right at this head (self-check passes), so only the provenance is in doubt. Name the build actually used, or drop the commit. Unverified: I could not tell which build produced them.
This comment has been minimized.
This comment has been minimized.
… C#-verified) Five synthetic fixtures (vocabulary tada/taba/taga/da/ba/ga/TA) pin that an ad hoc allomorph or morpheme prohibition holds on every copy HCLoader emits for the entry, so a loader that wired it to one copy only still parses the prohibited word through another: - adhoc-prohibition-stem-msa-copies: a stem allomorph with Verb and Noun MSAs compiles to two lexical entries; tada/taba (prefix-first and stem-first prohibitions on each copy) have no analysis, taga parses once. - adhoc-prohibition-affix-msa-copies: a prefix with two equal MoInflAffMsas (MergeMSAs off) compiles to two rules; the prohibition is attached to both on the first side and the rest side. - adhoc-prohibition-affix-environment-copies: a prefix with two environments times two MSAs is four copies; the prohibition covers all four. - adhoc-prohibition-circumfix-pairings: a circumfix (ta/to x ka/ki) is four pairing subrules; a prohibition naming the circumfix lexeme form blocks all pairings for da/ba, while half-only prohibitions on ga add no rule. - adhoc-prohibition-variant-msa-copies: a variant entry is registered once per main MSA, so a morpheme prohibition on the main Verb MSA holds for the variant too (tadi/tabi have no analysis). Expectations were recorded with hc.dll at Machine aab4c59 and replay unchanged through conformance/adapters/hc-dotnet-wrapper.sh. Each fixture carries a fieldworks/ witness generated with xample-projector plus LibLCM (FieldWorks 9.3.10.1452); fieldworks_producible is true. Ledgers, manifest and pinned counts are regenerated; unrelated stale rows (truncate-morphotactic* and suffixing-extension-slot-ordering witness rows) are kept at their checked-in values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude-drafted. Added five ad hoc prohibition cases in 49bbe7f (fast-forward from bdd369f). Each pins a copy HCLoader registers that a port must also cover:
These came from sillsdev/PanGloss#99 and sillsdev/PanGloss#100, fixed in sillsdev/PanGloss#101 and sillsdev/PanGloss#102. Each case carries a LibLCM-authored Run on the commit before The interface inventory moves from 52 to 54 typed edges, because |
| edge-cases/morphotactic-attribute-breadth subExD Named by the adjacency-variant exclude rules; "toplane" exercises the exclusion, not the allomorph. | ||
| edge-cases/rewrite-default-environment pr1 The bdt rejection pins the obligatory rewrite; no successful parse attributes pr1. | ||
| edge-cases/simultaneous-epenthesis-cascade prule4 Iterative counterpart of the cascade this fixture pins; the parse crashes as expect_crash declares. | ||
| edge-cases/adhoc-prohibition-affix-msa-copies aBa Ad hoc prohibition: it never fires as an applied rule, it only blocks the prohibited word (tada/taba/tadi/tabi), which has no analysis. |
There was a problem hiding this comment.
FYI: F44. These 18 new rows call each fixture's prohibition rules dead, yet those rules are what the fixtures test: tada/taba (and the circumfix and variant equivalents) fail because of them (affix-msa-copies/grammar.xml:84-87 names subTa1, subTa2, aBa as primaries). suffixing-evidential-adjacency-chain/words.yaml:263 already credits this kind of rule with blocked_by: [aKanta], which CoverageReport.cs:166 counts. Add blocked_by to the expect_fail words and drop these rows. The reason text also names tadi/tabi, which only exist in the variant fixture.
|
Approve with fixes. Follow-up on bdd369f. One new commit, 49bbe7f (fast-forward). It adds five
F39 grew this round: the five new witnesses add 20 more full-CLDR Public API, target framework, package, or
Reviewed at 49bbe7f |
The counterfactuals ledger picks the first fixture (in id order) with the strongest verdict for each surface item, so the new adhoc-prohibition-* fixtures took over 43 dtd: rows, but semantic-coverage-evidence.tsv and grammar-coverage-ledger.tsv still named the old fixtures, which failed OpenCoverageDebtMatchesTheNamedItemAndResolutionBaselineExactly and CheckedInGrammarCoverageLedgerIsUpToDate. Both files are regenerated with --write-coverage-evidence and --write-coverage-traceability; the 61-minute --write-counterfactual step was not needed. The unrelated stale rows those commands also changed (an optional-template-composite ordering row, truncate-morphotactic and suffixing-extension-slot-ordering witness rows) are kept at their checked-in values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No new findings. Reviewed at 9fd3f8a |
|
Claude-drafted. Correction to the note on 49bbe7f: that commit failed 9fd3f8a regenerates those two ledgers with |
Start here:
conformance/docs/what-it-is.md, then.github/workflows/conformance.yml: what the suite claims and the gate that enforces it.Status: stacked on #500 — merge in order #556 → #500 → #480 → #578.
Status: CI is red at head
262ab300. Both Build jobs failConformanceFixtureGateTests.EveryConformanceFixturePassesSelfCheckon fouredge-cases/truncate-morphotactic*fixtures (word analyses differ from expectation), and both Conformance jobs fail, with the workflow reportingconformance/coverage.csvorrules.csvstale against the fixtures. The branch is behind master. Work is held until after the Hermit Crab Optimizations release; nothing stacks on this PR.A conformance suite of synthetic HermitCrab grammars, run in-process with HermitCrab as the oracle, with CI gates for parse results, coverage claims and generated ledgers. The latest revision adds named parser-settings variants: the runner builds a fresh morpher per run, applies the variant's settings, and compares complete parse-identity multisets and statuses against that run's own expectations. Variants earn no fixture or semantic-coverage credit.
Why is it so big? The change is about 940 files. Harness code and its tests are the reviewable part; the rest is fixtures, generated ledgers and evidence cards, and docs. Generated files are rewritten by
hc-conformance --write-*and pinned by tests, so check freshness, do not read line by line. No parser engine changed.Where to look:
.github/workflows/conformance.yml: the gate (self-check, coverage report, freshness of generated CSVs).conformance/dead-rules-allowed.tsv: a rule no word exercises fails the coverage report unless listed with a reason.conformance/PROTOCOL.mdandWordsYamlLoader.cs: the adapter contract; settings are closed, so an unsupported setting fails rather than being silently ignored. Pinned byWordsYamlMorpherSettingsTests.src/SIL.Machine.Morphology.HermitCrab.Conformance/Runner.cs: self-check.global.json: new; pins SDK 10.0.100 withlatestFeatureroll-forward for the whole repository.Deliberately not here:
MaxAlternatives(PanGloss lacks HC's typed overflow behaviour) andMergeMSAs(needs the FieldWorks project loader) are unsupported variant settings.MergeAnalysesverifies output preservation only, not merge-fold counts. Suite-side work for #534 (open) waits for its merge.Verification: the earlier numbers (
local_check.sh --agent-strict, C# and PanGloss variant matrices) were taken at184bcd46, not at the current head, and are not repeated here; the red jobs above are the current evidence. Broader Rust workspace and Foma suites were not run.Next: fix the four
truncate-morphotactic*fixtures and regenerate the CSVs, then rebase; or say if the red gate should block holding this branch.Reading this a year from now -- start here
The suite is an executable adequacy argument: synthetic grammars whose expected parse-identity multisets are checked against HermitCrab (self-check) and against a second engine (PanGloss) through an adapter protocol. The decisions below explain why the gates look the way they do.
Decisions and why
GuessRoots; supported:DelReapps,MaxRoots,MakePartialsFinal,MergeAnalyses,GuessRoots. The main risk is claiming support for a setting an adapter cannot apply or treating incomplete output as an empty result, so unsupported settings, missing rows and zero-comparison variants fail, and PanGloss also rejects capped or timed-out output.IIncrementalGenerator; the compilation-graph loader admits it only by content hash, and a probe runs it and fails closed on any generated output.expect_crashfixture passes only if the same engine completes an ordinary fixture in the same run, so a broken adapter command cannot pass as a crash (conformance/PROTOCOL.md)..fwdata. Marked binary in.gitattributesbecause its pinned hash depended oncore.autocrlf. Four fixture grammars keep trailing whitespace because their hashes are pinned in the manifest. Hand-maintained fixture totals were removed from docs; the manifest is the count.Trace.FailureAllomorphdropped. An engine API change does not belong in a test-suite PR; Trace HermitCrab failure reasons and template slot outcomes #534 adds the same fact through its own trace field.ci.ymlback to master. Its added fixture run duplicatedConformanceFixtureGateTestsunderdotnet test.Surprising findings
CounterfactualGate, with a regression test). Regenerating the ledger demoted two surfaces that had only that false evidence (Glossto Unobservable,HeadFeaturesto RequiredByDtd).local_check.shran--semantic-coverage, which exits 1 by design while the catalog is incomplete, so it could never pass; it now runs the same gates asconformance.yml.chained-output-feature-override-lossclaimed to fail on master on purpose; it has passed since Change Add to PriorityUnion #494 (merged).Deferred, and what would unblock it
#540, #522 and #519 are merged and #543 is closed; their suite-side work is already in this branch or no longer stacks here. #534 is open: once it merges,
FailureRuleAttributorshould credit through its new trace field and the FieldWorks-producibility ledger needs rows for its four new failure reasons. #543 would have added fixtures for the #504 and #507 evidence gaps; they are not in this branch. Unsupported variant settings (MaxAlternatives,MergeMSAs) need PanGloss overflow behaviour and a FieldWorks project loader respectively.Evidence and oracle observations
C# HC observations for the variants were collected on 2026-10-22 with the engine unchanged; the five measured fixture/settings pairs cover deletion reapplications (
DelReapps), compounding breadth (MaxRoots), final-template partial discriminators (MakePartialsFinal), the final-template merge key (MergeAnalyses) and guess-roots (GuessRoots). Exact witness outputs and reproduction commands are inconformance/docs/parser-settings-variants.md. The variant protocol forbids capped or timed-out output from matching an expected empty result; the PanGloss tests include that negative control. The companion PanGloss adapter was tested ate2627c9onfeat/conformance-settings-variants. Counts quoted in earlier revisions of this description (tests, runs, fixtures, words) were taken at an older head and are not carried forward.🤖 Generated with Claude Code
This change is