Edge Technology for Vocabulary requires meaning to survive a round trip between systems. A packet may be exported, imported and successfully re-exported while an unknown condition becomes false, a zero disappears or a meaning identifier changes. The Semantic Round-Trip Codec makes those failures visible with a narrow executable representation.
This original eduKate extension of the Portable Meaning Contract includes a JavaScript demonstrator executed on twelve synthetic cases. It checks preservation of a declared profile, source, meaning identifiers and field states. It is not a deployed protocol, a conforming general-purpose canonicalizer, an independently validated benchmark or proof of improved learning.
- Preserve meaning identifiers, source and version.
- Keep unknown, inapplicable, omitted and zero distinct.
- Normalize only the ordering the contract declares immaterial.
- Reject duplicate or malformed field rows.
- Inspect actual reproducible synthetic results.
Contents
- 1. A successful import is not a successful handover
- 2. Established interchange technology and the proposed profile
- 3. A deliberately small portable packet
- 4. Five Fencing moves for a Secondary learner
- 5. The executable round-trip check
- 6. Actual executed synthetic cases
- 7. Where the codec sits in VocabularyOS
- 8. Centre-to-edge learning operations
- 9. Four-week validation laboratory
- 10. References and connected research
1. A successful import is not a successful handover
A teacher records that a proposed activity involves club respondents and that room availability is unknown. A second application can import the packet without a syntax error, then represent the missing condition as false or omit it. A third application can export a fluent sentence from the damaged record. Every application may report success while the meaning changes. This is the gap between the Portable Meaning Contract, which negotiates a compatible representation, and a round-trip check, which inspects what actually returns.
At the centre a learner can practise retelling a notice accurately. At the edge the same idea becomes a bounded invariant: the fields which a particular profile declares meaningful must survive a representation change. A successful round trip does not establish that the original notice was true, that its source was authorised or that all relevant facts were included. It establishes that the specified representation was preserved.
2. Established interchange technology and the proposed profile
The JSON specification, RFC 8259 defines arrays as ordered and objects as unordered collections, and describes interoperability problems when object member names are duplicated. RFC 8785 defines a canonicalization scheme for JSON used in repeatable cryptographic operations. The local prototype uses only arrays, strings and null, with its own declared order-insensitive field-row contract. It is not an implementation of JCS, a cryptographic signature or a general JSON canonicalizer. In particular, ordinary arrays are not generally unordered; this one local collection is explicitly treated as a set keyed by field name.
The design has two separate layers. The transport layer parses the packet. The semantic layer checks that the profile, version, source, field identifiers, state and exact values survive. A compatible parser cannot repair an incorrectly chosen sense, so the source representation must be reviewed separately.
3. A deliberately small portable packet
[
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
]| Position | Meaning |
|---|---|
| 0 | Profile ID |
| 1 | Version |
| 2 | Source release ID |
| 3 | Field rows: [field, meaning ID, state, value] |
Known values are nonempty strings, including the exact string 0. Unknown and not-applicable values use null, but have different state labels. Missing is neither of these. This convention does not purport to cover every kind of numeric value or language expression. Stable meaning IDs need a real registry; here they are synthetic. Do not use these example IDs as evidence of official curriculum alignment.
4. Five Fencing moves for a Secondary learner
Start: the arrangement is proposed. Add the reference group: the club respondents. Add what remains unresolved: availability. Keep a stated zero count as zero rather than treat it as absent. Then ask the learner to reconstruct the notice from a new table without adding a confirmed room or a date. Each layer serves the task. A student does not need to write code to understand the difference between unknown, not applicable and zero. The program tests whether a representation keeps those distinctions, not whether the student can explain them.
| Source state | Wrong rewrite | Faithful interpretation |
|---|---|---|
| Unknown availability | Room unavailable | Availability remains unresolved |
| Deadline not applicable | Deadline unknown | No deadline applies in the stated task |
| Known count 0 | No count recorded | The recorded count is zero |
5. The executable round-trip check
The encoder validates the bounded array structure, rejects repeated field names, copies the rows and sorts the copy by field ID. The checker parses a received string and compares the normalized records. Exact code-unit string matching is intentional; the system does not equate translations or normalize distinct spellings. A production transport would need robust resource limits, Unicode policies, source authentication, a reviewed schema and an independent implementation test.
function codec(packet){
const nonempty=x=>typeof x==="string"&&x.length>0;
if(!Array.isArray(packet)||packet.length!==4||!packet.slice(0,3).every(nonempty)||!Array.isArray(packet[3])||!packet[3].length)return null;
const [profile,version,source,rows]=packet, seen=new Set();
for(const r of rows){
if(!Array.isArray(r)||r.length!==4||!nonempty(r[0])||!nonempty(r[1])||seen.has(r[0]))return null;
if(r[2]==="known"? !nonempty(r[3]) : !["unknown","not_applicable"].includes(r[2])||r[3]!==null)return null;
seen.add(r[0]);
}
return JSON.stringify([profile,version,source,rows.map(r=>r.slice()).sort((a,b)=>a[0]<b[0]?-1:a[0]>b[0]?1:0)]);
}
function audit(original,wire){
const expected=codec(original);
if(expected===null)return "HOLD_SOURCE";
if(typeof wire!=="string")return "HOLD_WIRE";
let decoded;try{decoded=JSON.parse(wire)}catch{return "HOLD_WIRE"}
const actual=codec(decoded);
if(actual===null)return "HOLD_WIRE";
return expected===actual?"ROUNDTRIP_MATCH":"HOLD_CHANGED";
}ROUNDTRIP_MATCH means the exact normalized representation matches. HOLD_SOURCE means the original was invalid. HOLD_WIRE means the received representation is malformed or outside this contract. HOLD_CHANGED means both representations are valid but differ. A hold is not proof that an alternative representation is incorrect in every context; it is a reason to investigate before claiming this transfer preserved the specified fields.
6. Actual executed synthetic cases
On 2 December 2026 the two functions ran locally on twelve author-defined fixtures. 12 of 12 observed verdicts matched the expected outcomes. No real learner records or network handovers were involved. The JSON inputs below reproduce the status checks; the website displays the code but does not execute it.
| ID | Expected | Observed | Test purpose |
|---|---|---|---|
| R01 | ROUNDTRIP_MATCH | ROUNDTRIP_MATCH | Lossless encode/decode. |
| R02 | ROUNDTRIP_MATCH | ROUNDTRIP_MATCH | Row order is expressly immaterial. |
| R03 | HOLD_CHANGED | HOLD_CHANGED | Explicit unknown row removed. |
| R04 | HOLD_CHANGED | HOLD_CHANGED | Unknown became inapplicable. |
| R05 | HOLD_CHANGED | HOLD_CHANGED | Unknown became a stated value. |
| R06 | HOLD_WIRE | HOLD_WIRE | Numeric primitive outside string contract. |
| R07 | HOLD_CHANGED | HOLD_CHANGED | Same text, changed meaning identifier. |
| R08 | HOLD_CHANGED | HOLD_CHANGED | Version lost. |
| R09 | HOLD_WIRE | HOLD_WIRE | Duplicate field key. |
| R10 | HOLD_CHANGED | HOLD_CHANGED | Different source. |
| R11 | HOLD_WIRE | HOLD_WIRE | Malformed transmission. |
| R12 | HOLD_SOURCE | HOLD_SOURCE | Invalid original. |
const tests = [
{
"id": "R01",
"original": [
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
],
"wire": "[\"notice\",\"1\",\"source-v1\",[[\"condition\",\"condition:availability:v1\",\"unknown\",null],[\"count\",\"count:respondents:v1\",\"known\",\"0\"],[\"deadline\",\"time:deadline:v1\",\"not_applicable\",null],[\"group\",\"group:respondents:v1\",\"known\",\"club respondents\"],[\"status\",\"status:proposal:v1\",\"known\",\"proposed\"]]]",
"want": "ROUNDTRIP_MATCH"
},
{
"id": "R02",
"original": [
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
],
"wire": "[\"notice\",\"1\",\"source-v1\",[[\"deadline\",\"time:deadline:v1\",\"not_applicable\",null],[\"count\",\"count:respondents:v1\",\"known\",\"0\"],[\"status\",\"status:proposal:v1\",\"known\",\"proposed\"],[\"condition\",\"condition:availability:v1\",\"unknown\",null],[\"group\",\"group:respondents:v1\",\"known\",\"club respondents\"]]]",
"want": "ROUNDTRIP_MATCH"
},
{
"id": "R03",
"original": [
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
],
"wire": "[\"notice\",\"1\",\"source-v1\",[[\"group\",\"group:respondents:v1\",\"known\",\"club respondents\"],[\"status\",\"status:proposal:v1\",\"known\",\"proposed\"],[\"count\",\"count:respondents:v1\",\"known\",\"0\"],[\"deadline\",\"time:deadline:v1\",\"not_applicable\",null]]]",
"want": "HOLD_CHANGED"
},
{
"id": "R04",
"original": [
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
],
"wire": "[\"notice\",\"1\",\"source-v1\",[[\"group\",\"group:respondents:v1\",\"known\",\"club respondents\"],[\"condition\",\"condition:availability:v1\",\"not_applicable\",null],[\"status\",\"status:proposal:v1\",\"known\",\"proposed\"],[\"count\",\"count:respondents:v1\",\"known\",\"0\"],[\"deadline\",\"time:deadline:v1\",\"not_applicable\",null]]]",
"want": "HOLD_CHANGED"
},
{
"id": "R05",
"original": [
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
],
"wire": "[\"notice\",\"1\",\"source-v1\",[[\"group\",\"group:respondents:v1\",\"known\",\"club respondents\"],[\"condition\",\"condition:availability:v1\",\"known\",\"false\"],[\"status\",\"status:proposal:v1\",\"known\",\"proposed\"],[\"count\",\"count:respondents:v1\",\"known\",\"0\"],[\"deadline\",\"time:deadline:v1\",\"not_applicable\",null]]]",
"want": "HOLD_CHANGED"
},
{
"id": "R06",
"original": [
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
],
"wire": "[\"notice\",\"1\",\"source-v1\",[[\"group\",\"group:respondents:v1\",\"known\",\"club respondents\"],[\"condition\",\"condition:availability:v1\",\"unknown\",null],[\"status\",\"status:proposal:v1\",\"known\",\"proposed\"],[\"count\",\"count:respondents:v1\",\"known\",0],[\"deadline\",\"time:deadline:v1\",\"not_applicable\",null]]]",
"want": "HOLD_WIRE"
},
{
"id": "R07",
"original": [
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
],
"wire": "[\"notice\",\"1\",\"source-v1\",[[\"group\",\"group:all-pupils:v1\",\"known\",\"club respondents\"],[\"condition\",\"condition:availability:v1\",\"unknown\",null],[\"status\",\"status:proposal:v1\",\"known\",\"proposed\"],[\"count\",\"count:respondents:v1\",\"known\",\"0\"],[\"deadline\",\"time:deadline:v1\",\"not_applicable\",null]]]",
"want": "HOLD_CHANGED"
},
{
"id": "R08",
"original": [
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
],
"wire": "[\"notice\",\"2\",\"source-v1\",[[\"group\",\"group:respondents:v1\",\"known\",\"club respondents\"],[\"condition\",\"condition:availability:v1\",\"unknown\",null],[\"status\",\"status:proposal:v1\",\"known\",\"proposed\"],[\"count\",\"count:respondents:v1\",\"known\",\"0\"],[\"deadline\",\"time:deadline:v1\",\"not_applicable\",null]]]",
"want": "HOLD_CHANGED"
},
{
"id": "R09",
"original": [
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
],
"wire": "[\"notice\",\"1\",\"source-v1\",[[\"group\",\"group:respondents:v1\",\"known\",\"club respondents\"],[\"condition\",\"condition:availability:v1\",\"unknown\",null],[\"status\",\"status:proposal:v1\",\"known\",\"proposed\"],[\"count\",\"count:respondents:v1\",\"known\",\"0\"],[\"deadline\",\"time:deadline:v1\",\"not_applicable\",null],[\"group\",\"group:respondents:v1\",\"known\",\"club respondents\"]]]",
"want": "HOLD_WIRE"
},
{
"id": "R10",
"original": [
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
],
"wire": "[\"notice\",\"1\",\"source-v2\",[[\"group\",\"group:respondents:v1\",\"known\",\"club respondents\"],[\"condition\",\"condition:availability:v1\",\"unknown\",null],[\"status\",\"status:proposal:v1\",\"known\",\"proposed\"],[\"count\",\"count:respondents:v1\",\"known\",\"0\"],[\"deadline\",\"time:deadline:v1\",\"not_applicable\",null]]]",
"want": "HOLD_CHANGED"
},
{
"id": "R11",
"original": [
"notice",
"1",
"source-v1",
[
[
"group",
"group:respondents:v1",
"known",
"club respondents"
],
[
"condition",
"condition:availability:v1",
"unknown",
null
],
[
"status",
"status:proposal:v1",
"known",
"proposed"
],
[
"count",
"count:respondents:v1",
"known",
"0"
],
[
"deadline",
"time:deadline:v1",
"not_applicable",
null
]
]
],
"wire": "[invalid",
"want": "HOLD_WIRE"
},
{
"id": "R12",
"original": [
"notice",
"1",
"source-v1",
[]
],
"wire": "[\"notice\",\"1\",\"source-v1\",[[\"condition\",\"condition:availability:v1\",\"unknown\",null],[\"count\",\"count:respondents:v1\",\"known\",\"0\"],[\"deadline\",\"time:deadline:v1\",\"not_applicable\",null],[\"group\",\"group:respondents:v1\",\"known\",\"club respondents\"],[\"status\",\"status:proposal:v1\",\"known\",\"proposed\"]]]",
"want": "HOLD_SOURCE"
}
];
for(const x of tests) console.log(x.id,audit(x.original,x.wire),x.want);The tests were written by the author to exercise the intended rules. They do not establish general reliability, robustness against adversarial packets or semantic accuracy of extracted fields. A future interoperability suite should run independently implemented encoders and decoders, exercise Unicode, size limits and malformed inputs, and verify the declared invariants against source evidence.
7. Where the codec sits in VocabularyOS
VocabularyOS needs a source-to-sense layer, a reviewed concept mapping, a negotiated meaning contract, a serialization layer, a receiving validator and a return route. The codec sits after the contract selection and before a receiving application claims a successful handover. A receiver may legitimately project or transform a packet under a separate agreement. Such a transformation should have a different declared contract and a traceable reason, rather than be labelled an exact round trip. An AI may read the received packet correctly but generate a misleading explanation; a source-grounded semantic check of that explanation is another operation.
This connects the VocabularyOS Reference Stack v0.1 to actual testable components. The reference stack remains a proposal. Private learner responses should not enter a public interchange example. Any actual sharing needs purpose-specific permissions, access and retention controls. Structural validity supplies no disclosure authority.
8. Centre-to-edge learning operations
| Rung | Observable operation |
|---|---|
| L0 | Attend to the source |
| L1 | Identify relevant fields |
| L2 | Name the intended sense |
| L3 | Explain state differences |
| L4 | Recall later |
| L5 | Encode the form |
| L6 | Relate field and source |
| L7 | Combine the qualifiers |
| L8 | Disambiguate unknown and missing |
| L9 | Transfer to a fresh table |
| L10 | Interpret the changed claim |
| L11 | Apply the profile |
| L12 | Trace the source version |
| L13 | Critique a lossy export |
| L14 | Maintain a reviewed contract |
| L15 | Propose and test a new distinction |
The ladder is an original educational framework, not a school grade, diagnosis or validated scale. Select the learning operation relevant to the student. Compare independently produced explanations after a delay rather than infer learning from a successful codec test.
9. Four-week validation laboratory
| Week | Activity | Evidence |
|---|---|---|
| 1 | Annotate synthetic source packets and distinguish known, unknown, inapplicable and omitted. | Reviewed intended meanings. |
| 2 | Reproduce the tests; commission independent malformed and lossy fixtures. | Observed verdicts, false accepts and false holds. |
| 3 | Build a second implementation and test export/import/re-export in both directions. | Interoperability results and explicit limitations. |
| 4 | Use authorised new source-retelling tasks with a matched plain-glossary baseline. | Separate learner transfer and technical outcomes. |
No learner experiment was performed. Research involving students requires the applicable permissions, consent or assent and safeguards. Measure review time and useful task completion as well as detected errors. A larger packet is not automatically more useful, and a matching packet is not a reason to stop inspecting its source.
