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 State Machine: Why Reviewed, Approved and Released Are Not the Same Event

Illustration of a traceable data lineage connecting original evidence, transformation stages, datasets and a final chart.

A status word is not a state transition, and an AI that confuses the two can act before a process has actually been completed. A document may be received, reviewed, approved or released. These words sound like a simple progression, but the actual workflow might permit correction, rejection, revocation or re-review. An AI that reads “reviewed” as “approved” could mislead a user or initiate an unauthorised release. Vocabulary Coding and Engineering proposes a Semantic State Machine: explicitly define which events, approvals and source conditions permit each status change, then test whether language models preserve those distinctions as they summarise, translate and recommend actions.

Formal state-machine verification is established software engineering, not a new universal theory of vocabulary. Leslie Lamport’s TLA+ overview distinguishes properties of possible system behaviours; TLC’s official tool description explains model checking of safety and liveness properties for executable TLA+ specifications. This article adapts that discipline to a fictional document workflow, from the user’s source wording to the AI’s proposed next step. Model checking can prove specified properties for a correctly modelled, adequately explored formal state space under its assumptions. It cannot on its own establish that the human words were translated into the right model, that a cited approval was genuine, or that anyone authorised the agent to act.

  • State: What is established now, under which source version?
  • Event: What actually happened rather than what was merely requested?
  • Guard: Which conditions must hold before the next transition?
  • Invariant: What must never be violated, such as no release without approval?
  • Liveness: What progress should be possible under stated assumptions?
  • Trace: Which evidence records the real sequence and its corrections?
  • Authority: A language model cannot change a formal or institutional status simply by describing it.

Chapter index

1. Why a status is more than an adjective

Approved can mean an editor checked grammar, a manager agreed to a proposal or an authorised officer issued a final release instruction. An organisation can use all three meanings honestly in different processes. Trouble begins when a database or AI assistant stores one unqualified Boolean called approved and downstream consumers treat the meanings as interchangeable.

A state-machine model requires specific status definitions. The purpose is not to impose one vocabulary on everyone, but to identify how each source-defined category controls an application. If approval concerns internal review, the system should not infer that public distribution is authorised.

Record included and excluded cases for the status. For example, “Reviewed” means the assigned reviewer completed assessment; it does not necessarily entail acceptance. A model should preserve that exclusion when generating a summary, because the excluded interpretation is often the one that creates harm.

Back to index · Next chapter

2. States and events are different

A workflow might have states RECEIVED, UNDER_REVIEW, REJECTED, APPROVED, RELEASED and REVOKED. An event might be submit, begin_review, approve, reject, release or revoke. A current state records a condition, while an event records an occurrence or attempted occurrence.

An instruction saying “approve this” is not evidence that the approve event occurred. An AI can recommend requesting approval without recording an approval. Treating a generated status update as a completed event can create false institutional history.

The event record needs time, actor, affected document and a source of evidence. A proposed operation and confirmed result must be stored separately. That distinction protects language semantics from becoming a substitute for real workflow execution.

Back to index · Next chapter

3. Draw the legal transitions before building an AI

In a simple fictional service, RECEIVED may transition to UNDER_REVIEW, then to APPROVED or REJECTED. APPROVED may move to RELEASED when a separate final sign-off exists. The process might also permit a return to review after corrections.

A state-machine diagram is not a statement of the law. It is a model of an authorised process for a specified organisation. The process owner must confirm the allowed transitions and any exceptional ones before software treats the diagram as operative.

Do not assume that every state has one successor. Real workflows have branches, corrections and time-dependent permissions. A diagram hiding those features can be neat and wrong.

Back to index · Next chapter

4. Guards explain what a word does not guarantee

A guard is a condition that must hold for an event to cause a transition. Release might require state=APPROVED, a matching document version and confirmation by an authorised role. A sentence saying “ready to publish” does not automatically satisfy those guards.

This is where vocabulary engineering becomes executable process design: the term approved is not enough. The source-defined approval kind, actor, scope and target all matter. A model that returns a confident sentence must still face checks applied by trusted software.

A useful schema documents the guard and provides positive and negative cases. A validly formatted status value is not evidence that the underlying conditions have actually occurred.

Back to index · Next chapter

5. The basic safety property: never release too early

A hypothetical safety invariant is “no document reaches RELEASED without the defined final publication approval having been recorded for the same version.” This can be formalised over a state machine if approval, document version and authority have been correctly represented.

A model checker can explore reachable states and report a counterexample when a transition violates the invariant. This is a stronger kind of investigation than merely asking an AI whether the process looks safe.

But a proof about the model does not prove the model matches the actual institution. If the specification accidentally defines reviewed as final approval, the formal result may be perfectly sound for a flawed interpretation. Source review is indispensable.

Back to index · Next chapter

6. Safety and liveness answer different questions

A safety property says an unacceptable event never occurs, such as publishing before permission. A liveness property concerns progress, such as whether a submitted request can eventually reach a terminal outcome, under stated fairness and environmental assumptions.

Lamport’s TLA+ explanation discusses these kinds of properties and state-machine behaviours. Not every liveness claim is warranted: a human reviewer might never respond, a service might be unavailable, or the process might legitimately remain unresolved.

A good design records safety invariants separately from realistic progress expectations. Blocking every action permanently can prevent an unsafe transition but fail as a useful service. Safety and availability both require careful specification.

Back to index · Next chapter

7. A four-event worked sequence

Imagine a fictional report with event records: submitted on Monday, editor-reviewed on Tuesday, manager-requested-approval on Wednesday and final-authorised on Thursday. A user asks on Wednesday whether the report can be publicly released.

The correct response under our stipulated policy is no: the manager requested approval but did not yet complete the required final authorisation. The words requested and approved are not equivalent, and the dated event order matters.

A model that sees a heading “Approval request” and answers “Approved on Wednesday” has changed the status without evidence. A source-linked state machine exposes exactly which event and guard were missing.

Back to index · Next chapter

8. An optimistic user message can be misleading

A person may write “Everything is approved, send it.” In a conversational context, this can be an instruction or an assertion. The connected application still needs to establish whether that person has appropriate release authority and which document version they intend.

The AI can ask for the missing version or identify the proposed action. It must not treat a lower-trust pasted document as authorisation. The actual execution component should check permissions independently of the language model’s interpretation.

A statement by a model that the status is APPROVED is a generated output. It is not automatically a trusted event in the institutional record.

Back to index · Next chapter

9. Model a rejection followed by appeal

An applicant might receive a REJECTED status, request a review and later receive a revised decision. The historical rejection was real at its time; a later approval does not mean it never occurred.

A good model records the transition history and the authority that changed it. If the source rule has an exception, the workflow may permit reconsideration under specific circumstances. Those are conditions to model explicitly, not an excuse to treat rejected and approved as the same current state.

Language generation must distinguish “was rejected previously” from “is rejected now.” This is one reason the proposed ZTime framework separates event time from current source applicability.

Back to index · Next chapter

10. State validity is version-dependent

A status may be valid under one policy version and inappropriate under another. A document approved for internal distribution in an earlier scheme might need further review before public release under a new scheme.

The machine should preserve the policy and data dictionary version that controlled each event. A migration can reclassify a record only with authority and traceable reasoning. Quietly applying the newest rules retroactively can rewrite institutional history.

The Semantic Lockfile provides a proposed way to pin those meaning dependencies.

Back to index · Next chapter

11. Temporal logic is not natural-language mind reading

A formal specification can express permitted transitions and safety properties. It does not automatically infer a speaker’s intended meaning of approved or resolve a pronoun referring to the wrong document.

The AI’s source extraction is an input to formal reasoning and must be checked. A compiler that produces a valid temporal formula from a misunderstood clause has preserved a mistake in a more precise format.

This is why the pipeline should retain the original words, source metadata, candidate parsed rule, formal property and the validation result as separate artefacts. Independent review can then identify whether the error occurred before or inside the model checker.

Back to index · Next chapter

12. Bounded exploration has limits

A model checker explores specified states and behaviours under the chosen configuration. A finite model with two documents and three roles may reveal an important counterexample but cannot automatically cover infinitely many real-world policies and people.

Specify the explored state space and assumptions. A safety result for a small model is evidence about that model, not universal proof that a live service with different components is safe.

The model’s fidelity and the adequacy of its abstraction are engineering questions. Test counterexamples against the actual documented process and revisit the model when new permissions, roles or source events arise.

Back to index · Next chapter

13. Deadlines add a clock to the machine

A review request may be permitted only within 30 calendar days of written notice, unless a valid extension exists. The transition request_review therefore depends on a source-defined time window and possibly an authorised exception.

“Within one month” is not necessarily the same guard. The start event, exact cutoff, timezone and exception criteria all matter. A system should preserve unknown when the source does not identify the relevant event or when the deadline calculation is disputed.

A timed-state model can expose boundary mistakes at exactly the permitted cutoff. Do not infer a real applicant’s legal entitlement from this fictional rule.

Back to index · Next chapter

14. Translation must preserve the transitions

One language might express “may request review” in terms of permission, while another target sentence accidentally conveys a duty. If software builds a state transition from the translated version, the error can affect the available user actions.

The test should compare source and target conditions, including actor, modality, guards and exceptions. A fluent translation or successful round trip does not establish equivalence for the workflow.

A bilingual reviewer can assess source-grounded cases, while a model checker verifies the encoded transition properties. Neither review can replace the other because they check different relationships.

Back to index · Next chapter

15. A model checker can find a bug, not the responsible person

Suppose an invalid transition allows RECEIVED to move directly to RELEASED. A checker can produce a trace showing that sequence under the specified model. It does not establish that a real employee intentionally violated a rule or that harm occurred.

Investigate whether the trace corresponds to a live possibility and whether actual software permits it. If the trace arises from an over-broad abstraction, refine the model before calling it a production defect.

A defect report should identify the property, model version, transition sequence and practical significance. Avoid attributing guilt or inventing real incident histories from synthetic states.

Back to index · Next chapter

16. Cross-system integration creates hidden state changes

One service calls a document REVIEWED, while another uses COMPLETE. An API mapping might convert both to APPROVED because the developer assumed they mean the same thing. This can create an illegal transition without any code exception.

A source-linked mapping table should say which transitions are compatible. The receiving system should check the source status and necessary proof, rather than infer approval from a shared display label.

Use a boundary case where a review completed but final approval was denied. If the integration marks the document ready for publication, the mapping has changed the workflow’s meaning.

Back to index · Next chapter

17. What should the agent do at an unresolved guard?

A valid user request may ask for an action whose permission depends on a missing approval. The agent need not deny that the source allows such actions in principle. It can record the proposal, explain the missing guard and request the right evidence or escalation.

The Semantic Escrow proposes a hold process for these cases. A hold is not itself a successful completed action.

The system should also measure unnecessary holds. If all routine actions become stuck, the design may preserve one safety property while failing to serve its users.

Back to index · Next chapter

18. A low-risk model-checking pilot

Select one fictional document process with a small set of roles, states and events. Define a rule such as no release without final approval and a progress condition for requests with completed required review. Convert the rules into a formal state model.

Use TLC or another suitable tool to explore the defined states, then create language variations and test whether an AI consistently builds the same guards. Include changed modal verbs, disputed source versions, ambiguous document IDs and exceptional transitions.

No model-checking experiment is reported here. A pilot should publish the actual specification, search scope, counterexample traces and results, then compare the AI-assisted method with a simpler manually written rules model.

Back to index · Next chapter

19. Failure taxonomy: source, extraction, state and action

A source error means the governing rule or effective version was selected incorrectly. An extraction error means the AI transformed the source into the wrong guard. A model error means the formal state machine failed to represent the process accurately. An action error means execution ignored the actual permission checks.

Track these separately. Fixing a prompt will not repair a missing authoritative source, while repairing a model checker rule will not undo an external disclosure already made.

The proposed Z system should state which layers have been verified and which remain uncertain. The objective is a traceable chain from human meaning to formal safety properties without pretending that formal syntax proves human authority.

Back to index · Next chapter

20. When a plain explanation beats a formal model

A small, low-risk status question may not need a temporal logic engine. The correct response might be a dated quote from the source and one simple sentence about the current state.

Formal modelling adds value when multiple transitions, concurrent actors and consequential guards make ordinary prose difficult to verify. It also brings maintenance costs and the risk of encoding a wrong rule precisely.

Evaluate the result against the simpler source-grounded baseline. The best vocabulary engineering method is the least complex one that reliably preserves the relevant conditions, not necessarily the one using the most mathematical notation.

Back to index

A seven-step source-to-state workflow

  • Record a versioned authoritative source and what each status word means.
  • Define the process states, events, guards and the actor authorised for each transition.
  • Preserve proposed actions separately from confirmed institutional events.
  • State the safety and progress properties to be checked.
  • Model-check the bounded state space and inspect counterexample traces.
  • Test whether the AI’s source-to-state interpretation preserves boundary and exception cases.
  • Verify the actual tool permissions and publish known limits before deployment.

Frequently asked questions

Does a state-machine model prove that a document is really approved?

No. It models what events and permissions are required. Real approval records and institutional authority must be independently established.

What is the difference between a state and an event?

A state describes the system’s current condition; an event is something that happens or is attempted, possibly changing that state under specified guards.

Can a model checker discover mistakes in natural-language parsing?

It can reveal violated properties in its formal model. Whether the model accurately represents the source sentence requires a separate source-fidelity test.

What should happen if approval is missing?

Hold the consequential action, explain the missing evidence and seek the authorised review when appropriate rather than inventing a completed approval.

Is this a universal state machine for human language?

No. The proposed design is a bounded workflow tool that can be tested on selected source-defined status and temporal rules.

Primary research and standards

Research status: State machines, temporal logic and TLA+ are established formal engineering methods. The Semantic State Machine is an exploratory application to language-to-workflow handovers, not a tested or certified control system. All statuses, records and timelines in the examples are fictional.