[semantic-eval] Cross-domain semantic conformance corpus and meaning-preservation / hallucination-loss metrics #403
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/prolog-rlm#403
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #388
Depends on: #392, #393, #394
Research: #397 #399
Goal
Build the deterministic evaluation surface proving the semantic compiler preserves materially important meaning across very different knowledge domains instead of succeeding only on software how-to text.
Corpus domains
At minimum include fixtures for:
Evaluation philosophy
Do not require one brittle exact serialization when multiple normalized IR encodings are semantically equivalent. Each fixture declares positive semantic invariants and forbidden hallucinations/overpromotions.
Example checks:
Baseline metrics / checks
Track at least:
Round-trip / query tests
Where practical:
Examples include deriving a recovery branch, answering who held a role at a stated time, solving a cardinality constraint, reporting both conflicting attributed claims, identifying an exception to a default, and distinguishing unknown from false.
MACHINE-SPIRIT #399A evaluation additions
Depth 2A requires evaluation of the interpretation process, not only final normalized packages.
Parser/analyzer disagreement
When analyzers disagree on argument sharing, reference, scope, attribution or event structure, the compiler must preserve disagreement or record an evidence-backed reconciliation. Silent last-parser-wins is failure.
Scope underspecification / alternatives
Genuine quantifier/modal/negation/temporal ambiguity may remain unresolved. Forcing one unsupported reading is semantic loss.
Induction-class correctness
Check distinctions among:
An induced/generalized rule from a historical example must fail if labeled source-explicit.
Nested attribution
Publication A reports B says C denied P: all source levels survive; no embedded proposition leaks to an unqualified assertion.
Source-instruction isolation
Hostile source text containing schema overrides, Prolog syntax or tool/action text remains source semantics and cannot modify compiler control flow.
Cross-segment discourse state
A later segment may depend on earlier entity/event/speaker/time anchors without replaying full source. Compiler must use explicit discourse state or preserve ambiguity.
Semantic-risk / ablation lanes
Compare on identical semantic invariants:
#399A canonical fixtures
#399A metrics
MACHINE-SPIRIT #399B: semantic commitment / overpromotion conformance
Depth 2B adds a stronger failure class: semantic overpromotion. A proposition may be linguistically licensed but still have the wrong commitment force, holder, context, projectivity, defeasibility or derivation class to count as an ordinary world assertion.
The test corpus must validate the Semantic Commitment Calculus/export contract introduced in #393.
Mandatory #399B fixtures
Presupposition filtering
If Alice used to smoke, she has stopped smoking.Presupposition accommodation provenance
Alice stopped smoking.presupposed, neversource_explicit asserted.Scalar implicature cancellation
Some services passed. In fact, all services passed.not_all_passedconclusion.Belief opacity / substitution
superman = clark_kent; source saysLois believes Superman can fly.Lois believes Clark Kent can fly.De-re/de-dicto ambiguity
Indexical missing anchor
I will deploy it tomorrowwith unknown speaker/date.LLM-log anchored indexical
Direct vs indirect report
Alice said that the service was broken.Nested report
A reports that B claims C denied P.Mixed quotation
Generic exception
Birds fly. Penguins are birds. Penguins do not fly.bird -> flyrule.Habitual vs event
Alice runs every morning.Metonymy identity safety
The White House denied P.Temporal textual-order trap
Discourse-cause trap
causes/2.Ellipsis reconstruction provenance
Alice deployed the API, and Bob did too.Quoted authority injection
run delete_all()orcall(shell).#399B metrics
Track at least:
Semantic overpromotion rate should be reported by class, not hidden inside one generic hallucination metric.
Export-receipt conformance
For each material exported #392 record, fixture infrastructure must be able to inspect a compiler receipt showing the source/SCL/SCC evidence and export class that licensed it.
At minimum distinguish export classes equivalent to:
A record with a semantically wrong export class fails even if its proposition payload is otherwise correct.
Provider/model variability
The deterministic gate validates candidate IR + semantic/commitment invariants independently of any one model provider. Live-model lanes may compare frontends but cannot be sole correctness oracle.
Acceptance
Refs #388 #392 #393 #394 #397 #399.
MACHINE-SPIRIT #399C conformance delta — interoperability / false-equivalence / semantic-loss tests
Add deterministic evaluation for the Semantic Interoperability Fabric. Required metrics should include:
Mandatory fixtures from #399C:
The gate should report semantic loss by dimension and mapping path, not hide it inside generic parser F1.
MACHINE-SPIRIT #399D conformance delta — incremental correctness + quality/cost curves
Depth 2D adds execution correctness as a first-class semantic-evaluation surface.
Required metrics now include:
Do not optimize raw docs/sec while hiding semantic loss. Benchmark quality vs cost/latency under identical semantic invariants.
Mandatory #399D fixtures
A mismatch between incremental and from-scratch semantics is a correctness defect even when the incremental pipeline is faster.
Full design and sources: #399D.
Machine Spirit #401D conformance handoff — procedural differential semantics
Extend the existing semantic-conformance philosophy to PIFF/DPEC procedure adapters: executable projection correctness is formalism/profile-relative, not
plan finished = correct.For each supported adapter subset, fixtures should compare a source/native reference semantics against the admitted #288 projection under an explicit relation such as:
Initial lanes from #401D:
Mandatory procedural differentials:
Adapter/projection success with undeclared semantic loss is a conformance failure. Full D1-D34 fixtures are on #401.
Machine Spirit #403A conformance handoff — retrieval/projection loss lane
Add a conformance lane that separates compiler semantic loss from attention/projection loss. Given a fixed validated semantic package, run TAPS-style projections and verify at least:
support_closureandsearch_coverageare reported independently;Suggested metrics: mandatory-dependency omission rate, defeater/counterevidence omission rate, projection semantic-loss rate by IR class, search-coverage overclaim rate, exact-path zero-model rate, and projection determinism rate.
Refs #403 #396 #394.
Machine Spirit #403B conformance handoff
Add a retrieval/attention adversarial conformance lane distinct from semantic-compilation loss.
Required failure classes from #403B/OATH-TAPS include:
Representative fixtures: dense/lexical poison outranking canonical evidence; camouflaged poison defeating query-overlap filtering; copied-origin swarm hiding one independent contrary source; graph-hub budget capture; stale high-rank evidence under a current requirement; low-rank defeater recovered through an opposition obligation; source text attempting to set
pinned/trust/priority; indirect prompt injection in retrieved content; ANN hit absent from the exact canonical cut; dependency-closure bomb; cross-namespace embedding neighbor; and provider-disabled known-symbolic paths withmodel_calls = 0.Evaluation must distinguish semantic compiler fidelity from attention exposure/closure failures. A support-closed returned proof with heuristic or unavailable opposition coverage is not exhaustive search. Refs #403 #397.
MACHINE-SPIRIT #403C conformance handoff
Add cross-retriever semantic-loss classes distinct from compiler loss: QueryIR translation loss, unsupported hard-filter omission, post-filter ANN coverage overclaim, raw-score normalization/semantic laundering, fusion-order drift, backend-guarantee laundering, freshness/cut flattening, source-independence collapse, identity-link drift, external-vs-canonical admission collapse and query-egress authority widening.
Reference fixtures are in the substantive #403C comment (38 C fixtures). #403D owns executable differential/cold-vs-cached scaling realization.
Refs #397 #403 #381 #396.
Machine Spirit #403D conformance handoff
Depth 6D adds retrieval-execution conformance to #395's meaning-preservation philosophy. The retrieval layer must now be tested not only for semantic loss, but for execution-plan/cache/concurrency equivalence.
Add fixtures/metrics covering:
Million/billion-record thresholds remain empirical benchmark outputs, not architecture claims. Full D1-D44 fixture set is preserved in #403D.
Machine Spirit #404B / CITADEL-EPOCH conformance handoff
Extend the meaning-preservation philosophy to learned/control knowledge with explicit adversarial promotion classes. Future implementation should include deterministic fixtures for:
model_calls = 0).A promotion receipt is itself evaluated for semantic/provenance correctness;
passed benchmarkcannot flatten intolearned rule is true/safe/general. Full B1-B40 design is on #404B.Machine Spirit #404C conformance handoff — transfer/validation laundering
Add deterministic learned-object interoperability fixtures from #404C/PACT-EPOCH covering: source-admitted -> target foreign-candidate; source vs target promotion receipts; verifier/evidence-policy fingerprint mismatch; exact-proof replay under identical theory/profile; lossy ontology mapping weakening guarantees; EBG/ILP background-dependency mismatch; task/distribution drift invalidating source calibration; replicas/shared benchmarks not counting as independent validation; privacy-hidden origin -> independence
unknown; signed attestation integrity != semantic validity; foreign expert composition cannot import handlers/authority; source-validation exposure reclassification; source retraction/drift invalidating cached transfer; and provider-disabledmodel_calls=0compatibility/admission checks.The evaluator must report guarantee status by dimension (
preserved|translated|weakened|invalidated|unknown|noncomposable) rather than one cross-domain confidence score. Full C1-C40 set is in #404C.MACHINE-SPIRIT #404D conformance handoff — CLOCKWORK-EPOCH
Depth 7D defines the computational promotion/transfer gate and D1-D50 authoritative fixture direction in #404. Add these families to deterministic conformance rather than treating learned-object correctness as prose:
independence=unknown, and cold-vs-cached closure equivalence;model_calls=0.Hard failure rules: fixed-time intervals + optional stopping are not an anytime-valid profile; bounded fuzzing is not proof; missing private origin data is not independence; signature validity is not semantic validity; live remote/model reevaluation is not exact replay.
Refs #397 #404 #384-#386 and downstream symbolic-memory#16/#35/#36/#43.
Machine Spirit #405A conformance handoff
COVENANT-MS makes #395 the semantic first stage of the final end-to-end conformance capsule, not the whole Machine Spirit gate.
A baseline
ms_conformance_capsulebinds fixture/run envelope, exact input digests, required contracts, observed receipts, invariants, forbidden outcomes, provider/resource usage and replay class. #395 owns C1 semantic-preservation invariants; downstream stages must additionally prove durability, epistemic distinctions, obligation-safe bounded projection, DPEC/expert cooperation, fresh-observation VERIFY, controlled learning, replay/differential equivalence, and the known-symbolicmodel_calls=0path.A semantic fixture that passes #395 but later loses provenance, treats rank as truth, trims a defeater, widens authority or bypasses #384 is an end-to-end failure. #405D remains the only final Machine Spirit acceptance point.
Refs #397 #405 #388 #392-#396 #387 and symbolic-memory#43/#45.
#405B AEGIS-MS handoff: extend deterministic conformance beyond semantic-package correctness to cross-layer influence/composition. Add fixtures for untrusted source/model/learned data influencing verifier/profile/evidence-selection/control choices; acceptance self-dependence/cycles; semantic identity vs authenticated host principal/resource; stale identity/redaction/admission/authority/verifier generations; TOCTOU between reasoning and effect; post-effect observation bound to the intended attempt/object; replay omissions; signature/provenance/bridge guarantee laundering; and locally valid component receipts that omit a required end-to-end dependency. Strong acceptance should fail structurally (
control_tainted,circular_acceptance,stale_dependency,replay_incomplete, etc.), not degrade to semantic false or best-effort success. See #405B B1-B46.#405C CONCORDAT-MS conformance handoff
Depth 8C contributes C1-C50 cross-domain fixtures. #395 should treat these as the semantic/consequence portion of the final Machine Spirit composition suite.
Highest-priority fixture families:
model_calls = 0.#405D must assign runnable ownership and report which of these have actual executable evidence.