VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Vocabulary Coding and Engineering | The Semantic Test Oracle: Who Decides Whether an AI Understood Correctly?

Researchers compare two independently coded transcript copies beside a structured adjudication log and tabbed codebook.

Before anyone declares that an AI has understood a sentence correctly, somebody must establish which interpretation counts as correct—and why. A benchmark might describe “within one month” as equivalent to “within 30 calendar days”, but the deadlines can differ. An AI might use a dictionary’s everyday meaning of “resident” where a legal programme uses a narrower definition. Several models can agree with a mistaken reference answer. Vocabulary Coding and Engineering calls this the semantic test oracle problem: meaningful evaluation requires an answer key that is as carefully justified, versioned and challengeable as the models being tested.

The problem has a genuine analogue in software engineering. The 2015 survey by Barr and colleaguesW3C SHACLNIST’s AI Risk Management Framework100-case Meaning Lab

What is a test oracle, and why should language engineers care?

A software test produces an observed output. To recognise a defect, the tester needs a justified expected result or another reliable comparison method. The literature calls this difficulty the test oracle problem. A language evaluator faces the same issue when it judges whether a paraphrase preserved the original rule or silently added an obligation.

An AI response that sounds plausible is not a test oracle. Nor is a majority vote by several AI systems. The evaluator must know what was being tested—word fidelity, source accuracy, decision equivalence or action authorisation—and identify evidence suitable for that question.

The source itself may contain unresolved ambiguity

A fictional policy reads “Submit the form by Friday.” The tester knows the day but not the cutoff time or timezone. One reviewer assumes working-hours close, another midnight. The disagreement does not prove one model is unreliable; it may expose a source that never specified an exact deadline.

The correct reference state may be “requires clarification”. A benchmark should permit uncertainty and identify the missing information. An answer key that invents a time to force a binary label rewards unwarranted certainty, and its impressive accuracy percentage is misleading.

Truth, quotation fidelity and practical effect are three tests

A source could correctly contain the sentence “40 applications were approved” yet the underlying report could have counted applicants incorrectly. An AI might quote the sentence faithfully without establishing the factual count. Another model might correctly identify an old source but wrongly claim it governs today’s procedure.

Keep source fidelity, factual correctness and current applicability distinct. The reference procedure should record which dimension it evaluated. One green check cannot honestly represent every level of truth, governance and decision correctness.

Legal interpretations need jurisdiction and authority

The ordinary word resident is not necessarily identical to its definition under an immigration law, benefit rule or tax statute. A benchmark based on ordinary dictionary examples cannot automatically decide a real person’s legal eligibility.

For legal questions, cite the exact applicable instrument, relevant date and authoritative interpretive process. A competent actor may need to resolve disputes. Research annotations can compare language, but they do not become binding law merely because they were approved by a dataset curator.

Scientific meaning needs methods and uncertainty

A study may report an association and expressly avoid asserting causation. A summary stating that the treatment caused improvement changes the evidential claim. Reviewers can compare the sentence with study design, population, effect size and limitations.

But a scientific question may remain unsettled after careful review. The oracle can judge whether an explanation accurately reflects the evidence without pretending that every ongoing research dispute has a final binary truth value.

Operational definitions need accountable owners

A business uses complete for a submitted document. Another department uses complete only after review. Software built under one interpretation can produce incorrect results in the other’s workflow. The answer key needs the approved operational definition and examples.

The responsible process owner should establish what the status means for the intended action. A developer may test the implementation, but should not silently decide a policy question. Source authority and software conformance are separate checks.

SHACL validates a shape, not the world

W3C SHACL defines how a data graph can be checked against a shapes graph. A shape might require every official decision to have a source, date and responsible actor. A conforming result can establish that the chosen structural constraints were satisfied.

It does not prove that the source is authentic, the outcome fair or the legal interpretation correct. As of November 2026 SHACL 1.0 is a Recommendation, while SHACL 1.2 Core remains a Working Draft. Both should be described within their actual technical scope.

The oracle cannot be just another language model

An AI judge may help detect missing negations or altered figures. But the judge and candidate model might rely on the same incorrect source or share an evaluation blind spot. Two confident answers are not independent evidence of a fact.

A stronger system combines targeted checks with direct inspection of authoritative records. A numbers checker, modality checker and subject-matter reviewer can contribute complementary evidence. Their judgments still require limits and documented sources.

A counterexample can outweigh a unanimous vote

Five systems may call “65 or older” identical to “over 65”. One reviewer points to a person exactly 65. That case shows the expressions differ under the stipulated age threshold regardless of the models’ popularity or fluency.

The review record should preserve the counterexample and update the expected label. A trustworthy oracle responds to evidence. It does not suppress a correct dissent because consensus was more convenient for a dashboard.

Metamorphic testing has a role—and its own oracle problem

In software testing, metamorphic relations compare how outputs should change under controlled input transformations when an exact expected output is difficult to obtain. For language, changing punctuation or a harmless phrasing might leave a rule’s decision unchanged. Reversing an exact negation can change it.

But even harmlessness needs justification. Reordering a sentence can alter pragmatic emphasis, reference or scope. A transformation that is valid in a structured policy language may fail for satire or ambiguous ordinary speech. The test designer must justify the relation rather than assume every rewrite is safe.

Boundary tests reveal an underspecified rule

A fictional programme requires completion of a training session. Does watching part of a video count? What about a verified remote session? The policy may be clear for an ordinary classroom attendee but incomplete for the difficult cases.

The test should expose these unresolved boundaries and request a source clarification. It must not invent a rule from convenience or punish AI for refusing to decide. A valuable research result may be discovering that the original requirement was never well specified.

Multiple correct paraphrases can coexist

An answer key that contains only one expected sentence risks penalising other accurate explanations. Under a specified procedure, “may request a review” and “is permitted to ask for reassessment” might preserve the same action, though those terms require source confirmation.

Evaluation should compare source-linked propositions and consequences rather than exact strings alone. This permits accessible writing and translation while still detecting shifted dates, populations or duties. An oracle is not a requirement that everyone use identical words.

A reference answer expires when its source changes

A policy might be approved in January, replaced in March and preserved in an archive. The January test label may remain correct for January cases but no longer apply to new cases. Automatically using the newest text for every date can also be wrong.

Version the source, effective interval, test cases and annotations. Preserve older records for historical reproduction and document how pending cases are treated. The answer key is itself a dependent artefact in a living system.

Humans disagree, so adjudication must be visible

Two reviewers can read the same sentence and disagree about the quantifier’s scope or whether a technical phrase has a special definition. Independent annotations help reveal that conflict; hiding disagreement under one averaged score makes a benchmark look more certain than it is.

A suitable adjudication log records both proposed interpretations, evidence and the authority used to resolve the case. If neither can be established, retain the unresolved label. Human agreement is useful, but it is not a mathematical proof of truth.

Benchmark agreement is not institutional permission

Researchers may authorise the labels in their dataset, but that does not give them the power to approve benefit decisions or interpret a court order. A model might be correct about a document’s words while acting without the user’s consent.

Keep the research oracle and the action-authorisation check separate. A good semantic benchmark asks whether the interpretation is supported. A deployed system separately asks whether the contemplated action is permitted by the actual user and controlling institution.

The unresolved class needs specific reasons

Unknown is not a homogeneous bucket. A test may be unresolved because the source was unavailable, the date missing, two authorities conflict, a personal fact is disputed or a moral question genuinely lacks an agreed adjudicator.

Documenting the cause guides the next step: retrieve a source, clarify a deadline, obtain professional review or preserve legitimate disagreement. A model should not receive full credit for guessing U on every hard example; its explanation and evidence need evaluation.

Worked dispute: verified, approved and calendar days

Original fictional notice: “Verified applicants may request a fee review within 30 calendar days after written notice.” A model writes “Approved applicants must appeal within a month.” A reviewer spots differences in verification status, permission, procedure and timing. Another reviewer argues verified and approved may be synonymous within this programme.

The source glossary decides that one comparison; the other differences require separate tests. If the source lacks a glossary, the first pair remains unresolved rather than being automatically labelled identical. This is what good adjudication looks like: resolve each issue on its own authority and evidence.

The reference dataset also needs provenance

Every annotation should link to the original source, the version reviewed, the relevant case, the reviewers’ instructions and any corrections. If a label is changed after an error is found, an auditor should know what was originally published and why the change occurred.

The W3C PROV data model is one useful foundation for representing relationships between source entities, review activities and human agents. It improves traceability but does not transform a disputed interpretation into a factual certainty.

How to keep evaluation independent

Developers sometimes tune a model repeatedly against the same benchmark, making the examples less useful for demonstrating generalisation. A semantic oracle system should maintain genuinely held-out cases and independently reviewed new material.

Include harmless paraphrases, deliberate meaning-changing edits and unresolved cases. Report failure categories rather than only one percentage. A model good at short English policies may not be reliable for translated clinical information or culturally dependent speech acts.

A public correction route makes an oracle more credible

Reference answers can be wrong, and an erroneous label can be copied into training or evaluation systems. An affected reader or researcher should be able to challenge a specific item and provide a counterexample or source.

The review owner should examine the claim, record the outcome, and identify any downstream results needing correction. Do not silently erase the history or publicly expose confidential personal evidence. Accountability requires both an accurate current key and an appropriate record of revisions.

A semantic test-oracle record

  • Case ID: Stable reference for the source and candidate.
  • Question: Fidelity, truth, rule compatibility or authorisation.
  • Source: Original text, issuer, date and effective period.
  • Expected outcome: Preserved, changed or unresolved under stated conditions.
  • Reason: Exact boundary or counterexample supporting the label.
  • Reviewer: Relevant expertise and permitted adjudication role.
  • Disagreement: Alternative readings and supporting evidence.
  • Version history: Corrections and the rules governing old cases.
  • Scope: Languages, domains and decisions actually evaluated.
  • Challenge route: How a mistaken reference answer can be changed.

A seven-stage oracle-building workflow

  1. Choose a bounded task and primary source.
  2. Record the governing version, date and scope.
  3. Create positive, negative, boundary and deliberately ambiguous cases.
  4. Separate structural validation, factual evidence and semantic equivalence.
  5. Ask independent reviewers to justify source-linked labels.
  6. Adjudicate disputes and keep unresolved cases visible.
  7. Test a new model on held-out examples and publish the limitations.

Frequently asked questions

What is the software-testing oracle problem?

It is the challenge of knowing whether an observed program result is correct. A reliable expected result may require specifications, models, test relations or human expertise.

Can AI be its own final judge of meaning?

It can assist with evaluation but cannot grant itself universal authority. Shared model errors, insufficient source evidence and contested interpretations remain possible.

What if the original sentence has no unique answer?

Mark the case unresolved, describe what is missing and seek clarification from the relevant source or competent actor. Guessing a binary label is not a reliable test.

Does SHACL prove the truth of an AI answer?

No. It checks a data graph against defined constraints. That is different from checking factual truth, legal effect or social fairness.

Conclusion: the answer key also needs an answer key

The Meaning Lab cannot become a serious research programme by producing more test sentences alone. It needs justified reference answers, counterexamples, authoritative sources, version history and a route to challenge mistakes. At word zoom, a changed qualifier can reverse the condition. At evaluation zoom, a false benchmark label can reverse the research result. At institutional zoom, a technically correct interpretation still requires permission to act. A credible semantic oracle is a disciplined, bounded and revisable process—never an invisible universal judge.

Sources and further reading

Scope note: The semantic test oracle proposed here is an applied research framework, not an established legal or scientific authority. All decision examples are fictional and any consequential use requires domain-appropriate review.