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 | Semantic Schema Migration: How to Replace a Vague Word Without Inventing Historical Facts

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

Replacing one vague database word with two precise words is not safe if the migration invents facts that the original records never contained. A fictional organisation stores approved=true when an editor has reviewed a document. It introduces two fields: editorial_review_completed and public_release_authorised. A developer copies every old true into both fields. The database migrates successfully, yet the new system may falsely claim that old documents were authorised for public release. Vocabulary Coding and Engineering proposes a Semantic Schema Migration: evolve concept names and databases without changing the meanings of historical evidence, fabricating unknown approval events or silently breaking the decisions that depend on those words.

The software technique exists already. Danilo Sato’s Parallel Change pattern describes expand, migrate and contract as three phases of changing an interface without breaking every consumer at once; Sadalage and Fowler’s Evolutionary Database Design explains small version-controlled migrations and transition phases. Neither automatically decides what approved used to mean. The proposed addition is to treat source-authorised definitions, actual events, unknown historical evidence and AI consumer expectations as part of the migration’s correctness contract. A cleaner schema is beneficial only if it represents reality more faithfully, not merely with more fields.

  • Expand: Introduce precise new concepts while retaining the legacy field.
  • Source: Document what the old field actually asserted and under which policy.
  • Map: Derive new values only when supporting original evidence exists.
  • Unknown: Do not turn missing approval details into confirmed true or false.
  • Migrate: Update consumers, translations, reports and AI tool rules incrementally.
  • Contract: Retire obsolete paths only after dependent systems have safe replacements.
  • Audit: Keep dated mappings, corrective events and a means to reconstruct history.

Chapter index

1. Why an old Boolean cannot answer two new questions

A legacy field approved=true may have represented an internal review, an automated technical check or a final officer’s sign-off. The actual meaning depends on the source policy and how records were created. A migration cannot discover that from the Boolean alone.

Splitting approved into two new fields can be valuable for future records, but old data may lack the evidence needed to fill them. The correct outcome can be legacy-approved-under-old-rule, plus explicit unknown for approval kinds never recorded.

A system that converts every old true into two newer true values invents institutional events. The new fields look precise, but their precision is unsupported and could enable a consequential wrong action.

Back to index · Next chapter

2. Expand, migrate and contract are separate work

Parallel Change names three phases for a backward-incompatible interface revision. Expand adds support for a new representation. Migrate moves consumers gradually. Contract removes the older access path when it is no longer required.

These phases are useful because software and external partners do not all change simultaneously. A customer-facing notice may be updated before a finance report, while an older application still expects the original field.

Semantic migration needs an additional rule: supporting both technical interfaces does not mean the old and new fields are conceptually identical. Every conversion path needs documented scope and consequences.

Back to index · Next chapter

3. Inventory the word’s consumers

A single approval column can feed a dashboard, a newsletter template, an AI search index, an external API and a publication tool. Renaming the column without identifying these consumers can leave wrong assumptions active for years.

Make a register of readers, writers, automated agents, source documents and exported datasets. Include cached or scheduled reports where known. A code search alone may not reveal every downstream spreadsheet.

For each consumer, record whether it needs evidence of editorial review, actual external publication permission or merely a historical label. The difference determines whether it can safely use a compatibility mapping.

Back to index · Next chapter

4. Define the new terms before running a script

A fictional publication workflow may define editorial_review_completed as a reviewer’s finished language check, and public_release_authorised as final approval from an officer entitled to authorise the release of one exact document version.

The terms need positive and excluded cases, event evidence, source owner and effective time. A changed name does not create a new institutional right, nor can a software engineer authorise a policy change simply by deploying a database.

The appropriate authority must establish the intended meanings. Engineers can then implement and test the required separation rather than guessing what each field ought to mean.

Back to index · Next chapter

5. A source-linked mapping table

Record A has a dated editor’s completion note but no publication sign-off. Its editorial status can be supported; publication authority remains unknown. Record B has a source-supported final publication event for its exact file version, so that fact can be represented according to the approved process.

Record C contains only approved=true with no more detailed source. It should retain a legacy or unresolved classification rather than pretend either new field is definitely true. Record D contains an explicit refusal of publication, a negative record that differs from missing information.

These four cases are fictional. They illustrate why mapping rules need original evidence, not a neat one-to-one assignment chosen for convenience.

Back to index · Next chapter

6. Unknown is not the same as false

A database may use NULL to indicate missing data, but real systems distinguish uncollected, pending, not applicable and contested values. The absence of a publication approval event does not necessarily prove an officer rejected the release.

A target schema can represent confirmed positive, confirmed negative and unknown under a clearly described convention. It may need more states if the business workflow requires them.

Do not convert all NULL records into false and announce that the historical institution formally denied them. A data-cleaning routine has no authority to invent a negative decision.

Back to index · Next chapter

7. The false backfill problem

A backfill script copies the legacy approved flag to both editorial_review_completed and public_release_authorised. Every row receives a value and the migration test sees no type errors.

But a grammar-reviewed draft can now look releasable. A dashboard might count the public approvals incorrectly, or an agent might find a new affirmative status and attempt to send the file.

The correctness test must compare source-backed events and permitted downstream actions, not merely compare row counts. A migration that moves every byte accurately can still change what the historical record claims.

Back to index · Next chapter

8. Technical compatibility can conceal semantic breakage

An API can keep a field name and string type while changing the underlying definition of active from recent login to completed purchase. Software clients continue parsing successfully and may not report an exception.

The new metric counts different customers. A reporting service can publish a changed result without explaining why the numerator moved. This is a breaking change in meaning despite stable message syntax.

A proposed Semantic Lockfile and contract test can record definition dependencies and reveal which consumers rely on the older interpretation. Structural validity should not be mistaken for faithful source application.

Back to index · Next chapter

9. Parallel transition needs an honest compatibility view

A shared database may support old and new interfaces for a transition period. Fowler and Sadalage discuss such patterns, including views or adapters, as a way to migrate clients without an all-at-once release.

An honest view can preserve the old field for historical reports while clearly labelling its original meaning. It must not represent it as proof of a newer, stronger authorisation without evidence.

The transition can last longer than planned if partners need changes. Report its cost and unresolved consumers rather than silently making the compatibility layer permanent.

Back to index · Next chapter

10. Dual writes are not necessarily reversible

During transition, a new publication service can write the specific editorial and publication events. It might also populate an old display field for legacy consumers under a documented mapping.

The reverse operation is different: one old Boolean cannot reconstruct two independent events. A bidirectional synchroniser that assumes it can is making a claim stronger than the data support.

Specify which conversion is lossless, which is approximate and which requires manual review. A technically successful dual write should never become a false assurance that all meanings transfer in both directions.

Back to index · Next chapter

11. Distinguish the policy date from deployment time

An institution can approve a new policy on one date and put it into force later. Software may be deployed before or after the effective time. A historical record may have been created under an older, valid category.

Store authored, approved, effective and migrated timestamps for their appropriate roles. The current schema must not retroactively change what an earlier rule said or what event the institution actually completed.

The proposed ZTime framework can help identify these different temporal references. A reliable timestamp still cannot supply a source approval event that nobody recorded.

Back to index · Next chapter

12. Backfills need reference evidence and provenance

A migration may derive a new status from a dated approval record, a competent reviewer decision or an authenticated source document. The specific basis should be attached to the transformed value.

W3C PROV describes relationships among information entities, agents and activities, useful for recording transformation lineage. Provenance helps an auditor reconstruct where a value came from, but it is not proof that the source claim was true or authoritative.

Where evidence is unavailable, preserve the gap. A generated explanation citing the old Boolean does not transform that Boolean into a separate sign-off.

Back to index · Next chapter

13. Test the precise status boundaries

One test document has editorial review complete but publication not authorised. Another has a publication approval for Version A while Version B is under review. A third has no known approval evidence and a fourth has an explicit rejection.

The new system should represent these cases distinctly. A legacy adapter should not grant public release rights simply because one old status looked positive.

Compare the source and new record under each expected decision. A good schema migration preserves what is known and does not add unobserved authorisations.

Back to index · Next chapter

14. AI consumers need a separate transition contract

A model may retrieve an old report using approved to mean reviewed, then query a new service using approved for publication. Its fluent summary can blend the sources into a false claim.

Require source identifiers, definition versions and actual approval scope in inputs to agents that perform consequential tasks. The connected tool must independently enforce permissions; an AI prompt alone cannot prevent every misuse.

When the interpretation is uncertain, the agent can explain the record and request appropriate review without attempting publication. A compatibility field should not override this safeguard.

Back to index · Next chapter

15. A rollback cannot undo the world

Restoring an old software version may remove the new field from the interface, but it cannot recall a document already sent externally or erase a misleading notice already read.

A complete incident response may require correcting records, contacting recipients, restoring access or conducting an authorised case review. Those consequences must not be hidden by a successful database rollback.

Test the technical rollback separately from human correction. The goal is to prevent semantic errors before they become real actions and to respond accurately if a failure occurs.

Back to index · Next chapter

16. Retire the old field only after evidence

The contract phase should confirm that essential readers, writers and external consumers have moved safely to the new representation. Unknown consumers and data exports require explicit decisions, not assumptions.

A retired field can remain documented for historical understanding. Removing its production write path is not a command to destroy all older data or reinterpret past records under new policy.

Preserve a dated mapping and correction history so future researchers can reconstruct what the institution knew and what it did not know at each point.

Back to index · Next chapter

17. A small migration trial

Start with synthetic documents, two old status values and a few source-event types. Expand a test schema, perform reviewed transformations and run the old and new reporting and permission logic side by side.

Measure false release approvals, correct handling of unknowns, report discrepancies and human review time. Use a simple hand-reviewed source baseline so the new system must demonstrate value rather than simply appear more sophisticated.

No actual migration is claimed in this article. A result would apply to the selected case set, source process and implementation, not to all institutional vocabulary.

Back to index · Next chapter

18. When should migration stop?

Stop or hold a consequential migration when the source authority is unknown, essential old event records are absent, a critical consumer cannot preserve the new meaning, or the new approval status would grant a right without evidence.

The team can still introduce more precise prospective fields and leave old records labelled legacy. Correcting the schema does not require pretending the history is cleaner than it is.

A reliable system earns trust when it can say “not established” and identify the right next step instead of filling every column with a plausible invented value.

Back to index · Next chapter

19. The deeper lesson for Z

A stable Z reference can preserve the original meaning of an old category while new scoped concepts are added above it. Those new concepts can use actual source evidence to define relations to the historical field.

This is not universal retroactive understanding. A better representation cannot recover missing past events, and a source-aware migration must remain open to correction.

Vocabulary Coding and Engineering becomes practical when its new words improve future decisions without rewriting what earlier records did and did not establish.

Back to index

Frequently asked questions

Why not copy approved=true into two new approval fields?

One broad historical value does not establish two separate events. The transformation could fabricate formal release authorisation.

What is expand–migrate–contract?

An established pattern for evolving interfaces by adding the new representation, transitioning consumers, then retiring the old one.

Is unknown equivalent to rejected?

No. Missing evidence and a source-confirmed refusal are different states that need different operational treatment.

Can an old and new schema coexist?

Yes, during a controlled transition with explicit source meaning and consumer constraints.

Does a rollback restore a wrong decision made outside the system?

Not necessarily. External disclosures or misleading notices may need separate review and remedies.

Primary software and semantic references

Research status: Expand–migrate–contract and evolutionary database design are established engineering practices. Semantic Schema Migration is a proposed extension. Fictional examples demonstrate historical-evidence limits; no actual schema transformation or verified organisational benefit is claimed.