Edge Technology for Vocabulary needs a way to preserve the difference between proposed, approved, scheduled and completed. The Semantic Status Transition Guard tests whether a reviewed event, exact identity and current revision justify a specific change of status, rather than treating those words as interchangeable.
This original eduKate JavaScript demonstrator was executed on sixteen synthetic cases. It prepares changes under a bounded local state-machine contract. It is not a deployed workflow, an independently validated benchmark, real authorization or evidence of student learning gains.
- Separate a status from the event that changes it.
- Check identity, role, evidence and revision.
- Hold unsupported transitions and changed replay events.
- Retain the original record when preparing an update.
- Reproduce sixteen executed local tests.
Contents
- 1. A status word is not an event
- 2. Existing state-machine technology and the local proposal
- 3. Five Fencing moves: keep the event and state separate
- 4. The bounded transition contract
- 5. Executable local status-transition guard
- 6. Sixteen executed local synthetic cases
- 7. Secondary 1–4 learning and transfer
- 8. Centre-to-edge vocabulary learning operations
- 9. VocabularyOS integration and four-week laboratory
- 10. References and connected research
1. A status word is not an event
A fictional school notice describes a workshop as proposed. A later message says the proposal is approved. A timetable then schedules it, and a subsequent observation records completion. These are four distinct claims. A pupil who rewrites approved as completed has changed the evidence. An AI that does the same may issue a misleading handover. The earlier exception and time-window engines evaluate conditions and order; the new mechanism asks whether a particular reviewed event justifies a change of status.
A status register should not advance because a date passes, a sentence sounds confident or a reviewer appears to have approved a different object. Each transition requires its own evidence. The local examples are synthetic and do not describe actual school procedures.
2. Existing state-machine technology and the local proposal
The W3C State Chart XML recommendation describes state-machine transitions enabled by a current state, an event and an applicable guard condition. The eduKate example adopts a small explicit transition table inspired by that general architecture. It is not an SCXML processor or a general workflow standard. The review flag, event role and evidence reference are supplied fixture values, not independently authenticated authority.
| Event | From | To | Declared role |
|---|---|---|---|
| submit | draft | proposed | submitter |
| approve | proposed | approved | reviewer |
| reject | proposed | rejected | reviewer |
| withdraw | proposed | withdrawn | submitter |
| schedule | approved | scheduled | coordinator |
| complete | scheduled | completed | observer |
| cancel_approved | approved | cancelled | coordinator |
| cancel_scheduled | scheduled | cancelled | coordinator |
This is a local policy choice for one invented workflow. Real processes may have different states, exceptions, authorities or reopening rules. The implementation does not invent an exceptional transition when a rule is absent.
3. Five Fencing moves: keep the event and state separate
Start with the accurate base: the workshop is proposed. Add the exact object identity and source version. Add the reviewed approval event, if one exists. Change only the appropriate status: approved, not yet scheduled or completed. Finally give the learner a different sequence of notices and ask which states are actually established. If the source gives no evidence of approval, retain the original uncertainty. A learner can explain this distinction without programming.
{
"record": {
"id": "workshop-01",
"state": "proposed",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": true
}
}4. The bounded transition contract
Each event identifies its target record, expected revision, event kind, declared role, evidence reference and review state. An already-recorded exact event ID is recognised without a second revision increase. A reused ID with changed declared fields is a conflict. A new event must refer to the current revision, match the allowed source state and have the specified role and review flag. A successful result is a prepared replacement, not a committed change.
The history is assumed to be a trusted, previously reviewed record. The function validates the bounded shape and event IDs but does not replay the entire prior history to establish that its current state and revision are legitimate. It does not implement cryptographic authentication, concurrent persistence, timestamps, actual permission checks or publication. A production system must independently establish those properties. The history bound is one conservative local resource limit.
5. Executable local status-transition guard
function advance(record,event){
const states=["draft","proposed","approved","scheduled","completed","cancelled","withdrawn","rejected"];
const transitions={
submit:["draft","proposed","submitter"],
approve:["proposed","approved","reviewer"],
reject:["proposed","rejected","reviewer"],
withdraw:["proposed","withdrawn","submitter"],
schedule:["approved","scheduled","coordinator"],
complete:["scheduled","completed","observer"],
cancel_approved:["approved","cancelled","coordinator"],
cancel_scheduled:["scheduled","cancelled","coordinator"]
};
const str=x=>typeof x==="string"&&x.length>0;
const fields=["id","recordId","baseRev","kind","role","evidence","reviewed"];
const valid=x=>x&&[x.id,x.recordId,x.kind,x.role,x.evidence].every(str)&&Number.isSafeInteger(x.baseRev)&&x.baseRev>=0&&typeof x.reviewed==="boolean"&&Object.hasOwn(transitions,x.kind);
if(!record||!str(record.id)||!Number.isSafeInteger(record.rev)||record.rev<0||record.rev===Number.MAX_SAFE_INTEGER||!states.includes(record.state)||!Array.isArray(record.history)||record.history.length>=100||!record.history.every(x=>valid(x)&&x.recordId===record.id)||new Set(record.history.map(x=>x.id)).size!==record.history.length||!valid(event))return {status:"HOLD_INPUT"};
if(event.recordId!==record.id)return {status:"HOLD_TARGET"};
const seen=record.history.find(x=>x.id===event.id);
if(seen)return {status:fields.every(k=>seen[k]===event[k])?"ALREADY_RECORDED":"HOLD_EVENT_CONFLICT"};
if(event.baseRev!==record.rev)return {status:"HOLD_STALE"};
const [from,to,role]=transitions[event.kind];
if(event.reviewed!==true||event.role!==role)return {status:"HOLD_EVIDENCE"};
if(record.state!==from)return {status:"HOLD_TRANSITION"};
const entry=Object.fromEntries(fields.map(k=>[k,event[k]]));
return {status:"PREPARED",record:{...record,state:to,rev:record.rev+1,history:[...record.history,entry]}};
}PREPARED returns a new record and a one-step higher revision. ALREADY_RECORDED is an exact replay hold against repeated change. Other HOLD results identify input, identity, event conflict, stale revision, evidence or transition issues. The record is not mutated by the function. Its output has no authority to schedule a workshop, cancel a real appointment, disclose a document or publish a corrected lesson.
6. Sixteen executed local synthetic cases
On 2 December 2026 the function ran on sixteen authored fixtures. 16 of 16 expected status-and-state outputs matched, with unchanged original records and the expected one-step revision increase for prepared replacements. These are author-run regression cases, not an independent benchmark or test of actual institutional workflows.
| Case | Expected | Observed | Purpose |
|---|---|---|---|
| T01 | PREPARED:approved | PREPARED:approved | Reviewed approval changes proposed to approved |
| T02 | HOLD_TRANSITION | HOLD_TRANSITION | Completion cannot skip approval and scheduling |
| T03 | HOLD_EVIDENCE | HOLD_EVIDENCE | Wrong declared role |
| T04 | HOLD_EVIDENCE | HOLD_EVIDENCE | Unreviewed event |
| T05 | HOLD_STALE | HOLD_STALE | Stale revision |
| T06 | HOLD_TARGET | HOLD_TARGET | Wrong object |
| T07 | ALREADY_RECORDED | ALREADY_RECORDED | Exact replay changes nothing |
| T08 | HOLD_EVENT_CONFLICT | HOLD_EVENT_CONFLICT | Reused event ID with changed evidence |
| T09 | PREPARED:scheduled | PREPARED:scheduled | Approved does not mean scheduled |
| T10 | HOLD_TRANSITION | HOLD_TRANSITION | Approval alone cannot prove completion |
| T11 | PREPARED:completed | PREPARED:completed | Completion requires its own reviewed event |
| T12 | PREPARED:withdrawn | PREPARED:withdrawn | A proposal can be withdrawn |
| T13 | PREPARED:rejected | PREPARED:rejected | Rejection is a distinct state |
| T14 | HOLD_TRANSITION | HOLD_TRANSITION | Cancelled is terminal in this local profile |
| T15 | PREPARED:cancelled | PREPARED:cancelled | Explicit approved-state cancellation |
| T16 | HOLD_INPUT | HOLD_INPUT | Missing evidence reference |
const fixtures = [
{
"id": "T01",
"record": {
"id": "workshop-01",
"state": "proposed",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "PREPARED:approved"
},
{
"id": "T02",
"record": {
"id": "workshop-01",
"state": "proposed",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "complete",
"role": "observer",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "HOLD_TRANSITION"
},
{
"id": "T03",
"record": {
"id": "workshop-01",
"state": "proposed",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "submitter",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "HOLD_EVIDENCE"
},
{
"id": "T04",
"record": {
"id": "workshop-01",
"state": "proposed",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": false
},
"want": "HOLD_EVIDENCE"
},
{
"id": "T05",
"record": {
"id": "workshop-01",
"state": "proposed",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 2,
"kind": "approve",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "HOLD_STALE"
},
{
"id": "T06",
"record": {
"id": "workshop-01",
"state": "proposed",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "other",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "HOLD_TARGET"
},
{
"id": "T07",
"record": {
"id": "workshop-01",
"state": "approved",
"rev": 4,
"history": [
{
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": true
}
]
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "ALREADY_RECORDED"
},
{
"id": "T08",
"record": {
"id": "workshop-01",
"state": "approved",
"rev": 4,
"history": [
{
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": true
}
]
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "changed",
"reviewed": true
},
"want": "HOLD_EVENT_CONFLICT"
},
{
"id": "T09",
"record": {
"id": "workshop-01",
"state": "approved",
"rev": 4,
"history": [
{
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": true
}
]
},
"event": {
"id": "e5",
"recordId": "workshop-01",
"baseRev": 4,
"kind": "schedule",
"role": "coordinator",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "PREPARED:scheduled"
},
{
"id": "T10",
"record": {
"id": "workshop-01",
"state": "approved",
"rev": 4,
"history": [
{
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": true
}
]
},
"event": {
"id": "e5",
"recordId": "workshop-01",
"baseRev": 4,
"kind": "complete",
"role": "observer",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "HOLD_TRANSITION"
},
{
"id": "T11",
"record": {
"id": "workshop-01",
"state": "scheduled",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "complete",
"role": "observer",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "PREPARED:completed"
},
{
"id": "T12",
"record": {
"id": "workshop-01",
"state": "proposed",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "withdraw",
"role": "submitter",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "PREPARED:withdrawn"
},
{
"id": "T13",
"record": {
"id": "workshop-01",
"state": "proposed",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "reject",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "PREPARED:rejected"
},
{
"id": "T14",
"record": {
"id": "workshop-01",
"state": "cancelled",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "complete",
"role": "observer",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "HOLD_TRANSITION"
},
{
"id": "T15",
"record": {
"id": "workshop-01",
"state": "approved",
"rev": 4,
"history": [
{
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "synthetic reviewed record",
"reviewed": true
}
]
},
"event": {
"id": "e5",
"recordId": "workshop-01",
"baseRev": 4,
"kind": "cancel_approved",
"role": "coordinator",
"evidence": "synthetic reviewed record",
"reviewed": true
},
"want": "PREPARED:cancelled"
},
{
"id": "T16",
"record": {
"id": "workshop-01",
"state": "proposed",
"rev": 3,
"history": []
},
"event": {
"id": "e4",
"recordId": "workshop-01",
"baseRev": 3,
"kind": "approve",
"role": "reviewer",
"evidence": "",
"reviewed": true
},
"want": "HOLD_INPUT"
}
];
for(const x of fixtures) console.log(x.id,advance(x.record,x.event),x.want);The webpage publishes reproduction code but does not execute it. A further suite should challenge replay after later revisions, forged or incomplete histories, event ordering, contradictory sources, reopened cases and concurrent conditional writes. An independent reviewer must check the semantic rule table before implementation. The current results cannot establish production atomicity, source truth or authorization.
7. Secondary 1–4 learning and transfer
Secondary 1 can distinguish a planned activity from a confirmed one. Secondary 2 can preserve tense and event status in a retelling. Secondary 3 can distinguish a hypothesis, completed experiment and documented result. Secondary 4 can separate a reported intention, an implementation decision and measured effectiveness. A different word may be needed at each step, and each requires its own evidence. The original examples are learning illustrations, not official exam formats.
A student’s correct choice after the teacher supplies the answer is supported performance. An independent explanation using a new notice is a separate observation. The vocabulary engine should not mark the entire topic mastered from one correct status change.
8. Centre-to-edge vocabulary learning operations
| Rung | Observable task |
|---|---|
| L0 | Attend to the notice |
| L1 | Identify the current state |
| L2 | Name the event |
| L3 | Explain the difference |
| L4 | Recall later |
| L5 | Read and encode the status |
| L6 | Relate event and state |
| L7 | Combine a faithful description |
| L8 | Disambiguate planned and completed |
| L9 | Transfer to a new sequence |
| L10 | Interpret a changed status |
| L11 | Apply the declared transition rule |
| L12 | Trace revisions |
| L13 | Critique a premature update |
| L14 | Maintain a reviewed state register |
| L15 | Propose and test a needed transition |
The eduKate L0–L15 ladder is a proposed teaching architecture, not a validated scale or an official grade. The Fencing Method helps build an accurate statement in useful layers; the state machine checks a separate technical operation.
9. VocabularyOS integration and four-week laboratory
A source register retains the actual notice. Reference binding identifies the intended object. The source-span witness locates evidence. A reviewed semantic annotation identifies the event and relevant status. The transition guard prepares a bounded change. A real commit component must establish authority, current revision and transaction integrity, while the return layer locates dependent content and the release gate checks the result. These are separate responsibilities.
| Week | Activity | Evidence |
|---|---|---|
| 1 | Review synthetic event sequences and actual status distinctions. | Reviewed rule and source labels. |
| 2 | Reproduce the sixteen tests; add independently proposed invalid transitions. | Observed status, preservation and replay checks. |
| 3 | Design a separate audited persistence and authority layer. | Concurrent-write and replay evidence; explicit limitations. |
| 4 | Use an authorised fresh learner task and a matched ordinary explanation. | Independent transfer, effort and teacher review, separate from technical results. |
No production integration or human study was performed. Research involving children requires appropriate permissions, consent or assent, privacy safeguards and suitable access arrangements. Keep identifiable learner observations separate from public workflow demonstrations.
