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 Lockfile: Pin Every Definition an AI Decision Depends On

A researcher compares a software dependency graph on one laptop with a clean restoration checklist on a second device.

An AI answer can change meaning even when the user’s question and the application code remain identical. The chatbot might retrieve a newer definition of “active account”, a revised legal-policy summary, or an updated translation in which “may” accidentally becomes “must”. When those components change independently, nobody may know which precise collection of meanings produced yesterday’s advice. Vocabulary Coding and Engineering proposes a Semantic Lockfile: a versioned, reproducible record of the definitions, source documents, concept mappings, time conventions and validation tests that a particular language-driven workflow actually relied upon. A lockfile does not guarantee that an answer is correct, but it can make the source of its interpretation inspectable and the conditions for repeating a test explicit.

The software analogy is grounded in a real tool. npm’s package-lock documentation describes an exact installed dependency tree, used to make installations reproducible despite changes in upstream package versions. npm ci performs a clean installation and fails rather than silently updating inconsistent dependencies. A semantic system would need similar discipline for meaning dependencies: rules, dictionaries, translations, schema versions and source authority. The W3C DCAT 3 Recommendation supports version relationships for data resources, and W3C PROV supports recording origins and transformations. Neither is a universal language lockfile standard. The design here is a proposal that must be tested before real decisions depend on it.

  • Source layer: Pin the exact document and the version used.
  • Concept layer: Identify the scoped sense behind consequential words.
  • Mapping layer: Preserve the intended exact, close, broader or unresolved relationship.
  • Time layer: Record publication and effective dates separately.
  • Execution layer: Identify the model, retrieval index and rules used where known.
  • Test layer: Pin source-linked boundary and exception cases.
  • Audit layer: Make upgrades, conflicts, rollback and corrections traceable.

What exactly is locked: words or references?

The proposed lockfile does not forbid words from changing in ordinary conversation. It records which definition of a term an application used for a particular task. A company may change “verified” from email confirmation to identity-document review; historical records must still be interpreted under the older meaning when describing what actually occurred. The lockfile preserves those references rather than pretending that one meaning will be appropriate forever.

A well-designed record separates a stable identifier from its source definition, version and governing authority. A source can revise its wording while the system continues to resolve the earlier source accurately. Locking the reference is not equivalent to declaring the reference true or morally justified.

How a software dependency lockfile works

A software project can specify acceptable dependency versions in its package manifest. The lockfile records the resolved dependency tree used for one installation. A teammate or automated build can then install matching versions rather than discovering a different set of packages at a later date. The official npm documentation describes this as a way to make the dependency tree reproducible across environments.

For a clean build, npm ci checks that the package manifest and lockfile agree rather than updating the lockfile during installation. The language-engineering analogue would be an AI test that refuses to label its result “reproduced” when the source policies or concept definitions are absent or do not match the manifest.

Why a definition is a dependency

If a financial report defines active customer as a purchaser in the previous 30 days, every count using that category depends on the definition. If a chatbot instead uses the term for monthly login activity, its response may look plausible but compare unlike populations. The definition is part of the calculation, even though it is stored in prose rather than code.

A semantic lockfile explicitly connects the report or decision to that dependency. The purpose is to protect downstream users from an unannounced change of meaning, not to create a new legal authority over a word or hide the source organisation’s right to revise its criteria.

Dependency 1: the authoritative source

The first entry identifies the policy, standard or data dictionary that controls the claim. It should include issuer, document ID, relevant version, language and source URL or an appropriate secure reference. Where legal effect matters, it needs the applicable jurisdiction and status. A cached page may be the source used by the AI but not the actually governing rule.

The lockfile should be honest about that distinction. It may record both what the system consulted and what the responsible institution considers authoritative. If no current source is available, the record should say unresolved rather than invent a plausible definition to complete the manifest.

Dependency 2: the scoped concept

The concept identifier describes the meaning selected in the workflow. A common label such as complete could refer to a form submitted, reviewed or finally approved. Each concept requires a specific definition, inclusion examples and any important exclusions. Two concepts can share an English name without being identical.

The source definition may belong to a controlled vocabulary or an internal database dictionary. The lockfile should not claim that the selected concept governs every public use of the word. A matching label is a convenience, not proof of semantic equivalence.

Dependency 3: mappings between schemes

A multilingual or federated workflow may translate a source concept into a receiving organisation’s vocabulary. The mapping itself is a dependency, with a scope, version and supported equivalence strength. W3C SKOS distinguishes exactMatch, closeMatch and broader or narrower relations. These are not synonyms for one another.

A chain of two close mappings does not automatically establish exact equivalence for a consequential decision. The lockfile should record the actual intermediate concepts and tests, not merely the final target label. If the mapping cannot be justified, the result can be marked incompatible or unresolved rather than silently coerced.

Dependency 4: time and validity

A policy can be approved, published and effective on different dates. A database may record an event later than it occurred. A language system needs to know which time dimension the source uses before deciding whether an old rule applies to an application filed today. A bare updated_at timestamp does not settle this question.

The lockfile should record the effective interval and source version that governed the particular task. It can also retain the system’s observation date and the original event time where needed. Historical reproduction is not the same as applying an obsolete rule to a new case.

Dependency 5: the semantic test oracle

A validator deciding whether two statements are equivalent needs reference answers and boundary cases. Those references can also be revised when an error is found. A reproducible evaluation therefore needs a test-suite identifier, version and reviewer status, not just a claim that “all tests passed”.

A mistaken benchmark label can reward the wrong AI behaviour. Pinning the label enables investigators to reproduce how a past score was obtained, while a separate correction record identifies why the answer key changed. Provenance protects scrutiny, not infallibility.

Dependency 6: software and model configuration

A model version, retrieval index, prompt instructions, tool configuration and schema can all affect the final answer. The lockfile can capture known identifiers for those components and any applicable permission boundaries. This does not imply that all providers expose exact underlying weights or deterministic replay guarantees.

A system may still produce different outputs because of sampling, backend changes or other unavailable implementation details. The manifest should distinguish “components identified” from “behaviour exactly reproduced”. Its claim must not be stronger than the evidence permits.

A proposed lockfile entry

  • workflow_id: Stable reference to the particular task.
  • source: Issuer, document version and applicable period.
  • concept_id: Scoped meaning and exact source definition.
  • mapping: Target concept, mapping relation and review version.
  • units: Quantity and temporal conventions where relevant.
  • schema: The version of the data contract.
  • validator: Reference cases and expected interpretations.
  • runtime: Known model, retrieval and tool-policy identifiers.
  • evidence_status: Verified source, disputed or unresolved.
  • review: Who accepted the manifest and how it can be corrected.

A fictional example with three meaning dependencies

Imagine a report using verified, active and within a month. A lockfile records that verified means email link confirmed under Version 2 of a service handbook; active means completed purchase within 30 calendar days under a sales data dictionary; and the deadline refers to a calendar-month convention defined in a specific contract. These three terms have different sources and scopes.

If a new handbook changes verified to an identity-document procedure, the system should flag that one dependency changed. The report’s historical meaning can remain reconstructable, while new decisions require an explicit mapping or migration. That is more useful than automatically updating all three words in the final text.

A lockfile is not a checksum of truth

A cryptographic digest can establish that a file matches previously recorded bytes under suitable assumptions. It cannot prove the policy was correct, legitimate or effective. A lockfile containing precisely identified wrong sources can still reproduce a wrong answer. The point is to locate the wrong dependency so the responsible reviewer can correct it.

The manifest should therefore disclose source authenticity, factual support, governing authority and the tested interpretation as separate questions. Do not decorate an uncertain claim with a hash and then market it as verified human meaning.

Dependency graphs need to expose indirect changes

A single concept can appear in a translated notice, database formula, dashboard and AI prompt. Changing its source may invalidate several dependent artefacts. The lockfile should include direct dependencies and, where feasible, trace their known descendants. An impact check can then identify what may need retesting.

This still cannot guarantee that every website or person relying on the old explanation is known. Actual reach and harm require further evidence. A dependency graph describes a technical relationship, not a census of all affected human decisions.

Pinning and updating serve different purposes

Pinning sources supports reproduction of past results; updating them supports correctness under current conditions. A design that only pins forever becomes stale, while one that updates automatically makes old decisions difficult to reconstruct. Both behaviours need explicit paths and source authority.

Maintain a fixed historical manifest for old records, then create a reviewed new manifest for future operations. The public label can remain familiar even when the controlling definition version changes. The release gate decides when the new meaning is safe for downstream systems to adopt.

Conflict between a source and the lockfile

An application may specify Definition Version 4 while the current approved policy is Version 5. This is not a reason to silently overwrite the lockfile with the newest value. The first question is whether the task concerns a historical or current decision. The answer determines which version may be appropriate.

If the requested task is current and the manifest is stale, a safe workflow should stop or request authorised upgrade. If the question is historical, Version 4 may be the necessary reference. The status needs to be communicated clearly to the AI and the eventual reader.

A lockfile must not become permanent surveillance

Preserving every user’s prompts and personal records would create privacy risks unrelated to the limited objective of defining terms. The lockfile can often reference public standards and nonsensitive definition versions without storing identifiable case data. A separately controlled case record may be necessary for specific reviews.

When sensitive evidence is required, apply purpose limitation, least privilege, retention rules and lawful correction procedures. A desire for complete reproducibility is not an unlimited justification to keep or publish personal information indefinitely.

How to verify a lockfile-driven workflow

A reviewer can repeat a selected analysis under the manifest’s source versions, inspect the exact cases, and compare the resulting interpretations. Where the model is nondeterministic, it may be necessary to evaluate a distribution of outputs and report variance rather than claim perfect byte-for-byte replay.

The review should include an intentionally incompatible source version to confirm the system detects drift. It should also include a benign editorial rewrite that leaves the governing concept unchanged. A system that rejects every revision is not demonstrating useful interoperability.

Mapping updates and language translation

A word can acquire new uses in one language while the target language’s closest expression remains narrower. The lockfile needs to identify the exact source and target senses, the version of the mapping and whether the relationship is exact, approximate or contested. Simply pinning the display string loses too much context.

For high-impact translations, test included, excluded and boundary cases under the applicable authority. A bilingual reviewer may need to approve the mapping, and the result should disclose uncertainties that the compact translated phrase cannot resolve.

Why the manifest should contain a rejection state

A tool that cannot resolve a required source should not invent a package-like version number to satisfy a schema. It should identify which source or mapping is missing and what the consequence is for the task. Sometimes the correct outcome is “cannot produce an authorised current answer from this manifest”.

An explicit unresolved state is particularly important where “unknown” might otherwise be coerced into “not eligible” or “approved”. A trustworthy system protects the difference between missing data and a negative decision.

Does this replace existing dictionaries and ontologies?

No. A lockfile references dictionaries, source policies, mappings, tests and software versions; it need not be a new master dictionary. W3C SKOS, PROV and DCAT already solve useful parts of concept organisation, lineage and resource versioning. The proposal is to bind specific dependencies to a workflow so they can be inspected as a unit.

That is a narrower and testable contribution. The framework should be judged against simpler approaches, including explicit source citations and ordinary version control. If it does not improve reproducibility or error diagnosis in a bounded pilot, the evidence would not justify wider use.

A six-step compatibility matrix

  1. List each source term and the exact version used by the consumer.
  2. Find all mappings, formulas and notices that rely on the term.
  3. Compare the old and candidate definition on ordinary and boundary cases.
  4. Classify the change as compatible, breaking, unresolved or irrelevant to that consumer.
  5. Retest the affected outputs under their appropriate effective dates.
  6. Record approval, correction and historical status without rewriting the original evidence.

A low-risk research pilot

Select a fictional customer-status workflow with five concepts, two translations and two source versions. Build a manifest containing definition identifiers, mappings, units and ten independently reviewed cases. Compare a system using only current web pages with one that uses pinned source references. Introduce an intentionally stale document and a subtle change in the definition of approved.

Measure whether the manifest helps reviewers locate the difference, whether it flags false compatibility and how much work maintaining it requires. Report test outcomes and unresolved cases rather than claiming perfect semantics. A viable small pilot would support only the specific workflow, not every language or institution.

Frequently asked questions

Is a Semantic Lockfile an existing npm or W3C standard?

No. It is an exploratory design analogy to software package lockfiles and versioned knowledge resources. npm and W3C specifications remain authoritative only for their own documented scopes.

Would pinning a policy version guarantee the answer is true?

No. It records which source the system relied on. The source may still be wrong, obsolete for the task, improperly interpreted or lacking authority.

Can an AI answer be reproduced exactly?

Not always. Source versions can be identified, but model outputs may remain nondeterministic and some provider internals may not be accessible. Reproducibility must be defined precisely.

Why keep old definitions if they no longer apply?

Old versions can explain past records and decisions. Preserving them for historical interpretation does not mean they should govern new cases or justify indefinite retention of private data.

Conclusion: every consequential meaning has dependencies

A word used in a decision rarely stands alone. It depends on a particular definition, source, time, mapping, evidence standard and sometimes a software implementation. A Semantic Lockfile would make those relationships explicit and auditable. It would not stop human language from evolving; it would help prevent an unannounced change from rewriting the interpretation of past and present work. The proposed Z system grows more credible when it can say exactly which meanings were used, which dependencies changed and which tests must be repeated before the resulting answer deserves reliance.

Primary references and related reading

Editorial status: Software package lockfiles are an established tool. The proposed Semantic Lockfile is an unimplemented language-engineering concept, not an npm, W3C or ISO standard and not a guarantee of factual truth or legal authority. Worked cases are fictional.