Edge Technology for Vocabulary must preserve the difference between a general rule, an exception and an exception to the exception. An AI that interprets unless as a convenient shortcut may return a confident decision even when an exceptional condition is unresolved. The Executable Exception Precedence Engine checks whether the stated result survives every bounded completion of the unknown facts.
This original eduKate extension of the Three-Valued Condition Engine includes a JavaScript demonstrator actually executed on fourteen synthetic cases. It tests explicitly ranked rules and competing outcomes, not free-language interpretation or authority to act. It is neither a production system nor an independently validated educational intervention.
- Preserve general rules, exceptions and their stated priorities.
- Keep missing facts and explicit unknown separate.
- Hold when an unresolved exception changes the result.
- Detect equal-priority conflict and missing rule coverage.
- Inspect actual local results and reproducible inputs.
Contents
- 1. A word can change which rule applies
- 2. Existing decision-table technology and the local policy
- 3. A bounded rule contract
- 4. Fencing the meaning of unless
- 5. Executable local precedence evaluator
- 6. Fourteen actual local synthetic results
- 7. The exception layer in VocabularyOS
- 8. Centre-to-edge vocabulary learning
- 9. Four-week validation laboratory
- 10. References and connected research
1. A word can change which rule applies
A notice says that the ordinary meeting arrangement applies unless the room is closed. Another clause specifies an alternative arrangement if closure is confirmed. A learner may understand each word but still apply the general rule after an exception becomes relevant. An AI can make the same mistake. The problem is not only evaluating a condition; it is deciding which of several overlapping rules governs the stated outcome. The meaning of unless should not be reduced to deleting the sentence that contains it. Read the entire rule and any separate exception or override.
The example is synthetic. A real school arrangement depends on the applicable source, its scope, the responsible authority and the current facts. No output here confers permission to enter a room or carry out an action.
2. Existing decision-table technology and the local policy
Decision Model and Notation (DMN) uses hit policies to specify how matching decision-table rules are interpreted. The Camunda decision-table documentation illustrates different policies including Unique, Any and First. This prototype is an independent, simplified precedence policy inspired by the broader problem of overlapping rules, not a DMN interpreter or an implementation of a particular standard hit policy. It assigns each reviewed rule an explicit integer priority; the highest active priority wins only if its outputs agree.
The earlier Three-Valued Condition Engine represents true, false and unknown. The new component addresses what happens when those conditions belong to competing rules. Rather than treat unknown as false, it checks all bounded Boolean completions of the unknown facts. If the outcome changes across completions, it holds. This avoids independently guessing the same unknown fact differently in two rules.
3. A bounded rule contract
{
"facts": {
"closed": null,
"special": false
},
"rules": [
{
"id": "default",
"priority": 0,
"when": [],
"result": "ordinary arrangement"
},
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
},
{
"id": "override",
"priority": 20,
"when": [
[
"closed",
true
],
[
"special",
true
]
],
"result": "special arrangement"
}
]
}| Field | Local interpretation |
|---|---|
| facts | Each named fact is true, false or null (explicit unknown). |
| when | Conjunction of named Boolean conditions; empty means unconditional. |
| priority | Higher integer has precedence, assigned by a reviewed rule author. |
| result | A descriptive arrangement label, not an action or authorisation. |
Do not derive precedence merely from a word such as except, a later timestamp or the position of a sentence. The actual source and rule owner must establish the scope and priority. An omitted fact is an invalid reference in this contract, whereas null is a deliberate state. The engine accepts at most twelve facts and rules, including no more than eight unknown facts. It does not handle time, general natural-language interpretation, conflicting source authorities or real permission checks.
4. Fencing the meaning of unless
Base: the ordinary arrangement applies. Add a boundary: there is an exception if the room is closed. Add a separate rule describing the alternative. Add the current evidence: closure is unknown. Now explain why neither arrangement should be presented as definitely applicable. Finally change the evidence in a new example and ask the learner to explain which rule wins. The source may use unless without stating what occurs in the exceptional case; a separate outcome must not be invented.
| Closure | Special override | Model outcome |
|---|---|---|
| False | Any | Ordinary arrangement |
| True | False | Alternative arrangement |
| True | True | Special arrangement |
| Unknown | False | Hold if the alternatives differ |
The table assumes the stated synthetic rules. It is not a universal interpretation of unless. A teacher can work through the plain sentences before showing the formal representation.
5. Executable local precedence evaluator
function decide(facts,rules){
if(!facts||typeof facts!=="object"||Array.isArray(facts)||!Array.isArray(rules)||!rules.length||rules.length>12)return {status:"HOLD_INPUT"};
const names=Object.keys(facts),valid=x=>x===true||x===false||x===null;
if(names.length>12||!names.every(k=>valid(facts[k])))return {status:"HOLD_INPUT"};
if(!rules.every(r=>r&&typeof r.id==="string"&&r.id&&Number.isSafeInteger(r.priority)&&typeof r.result==="string"&&r.result&&Array.isArray(r.when)&&r.when.every(c=>Array.isArray(c)&&c.length===2&&Object.hasOwn(facts,c[0])&&typeof c[1]==="boolean"))||new Set(rules.map(r=>r.id)).size!==rules.length)return {status:"HOLD_RULE"};
const unknown=names.filter(k=>facts[k]===null);
if(unknown.length>8)return {status:"HOLD_BOUND"};
const possible=new Set();let gap=false,conflict=false;
for(let m=0;m<2**unknown.length;m++){
const world=new Map(Object.entries(facts));
unknown.forEach((k,i)=>world.set(k,Boolean(m&(1<<i))));
const hits=rules.filter(r=>r.when.every(([k,v])=>world.get(k)===v));
if(!hits.length){gap=true;continue}
const best=Math.max(...hits.map(r=>r.priority));
const choices=new Set(hits.filter(r=>r.priority===best).map(r=>r.result));
if(choices.size>1){conflict=true;continue}
possible.add([...choices][0]);
}
if(conflict)return {status:"HOLD_CONFLICT"};
if(gap)return {status:"HOLD_GAP"};
if(possible.size!==1)return {status:"HOLD_UNCERTAIN",possible:[...possible].sort()};
return {status:"DETERMINATE",result:[...possible][0]};
}For each complete assignment of the unknown facts, the function identifies matching rules, selects the highest priority and checks whether the selected rules agree. A conflict in any possible world is held; a world with no applicable rule is held as a gap; otherwise multiple outcomes produce a hold for uncertainty. The conservative order of these hold reasons is a local design choice. DETERMINATE only establishes agreement across the declared possibilities, not that the source was correctly interpreted.
6. Fourteen actual local synthetic results
On 2 December 2026 the function was executed on fourteen author-defined cases. 14 of 14 status-and-result strings matched expectations. The suite tests precedence, uncertainty, rule order and bounded refusal. It is not an independent benchmark, a deployed rules service or evidence of learner improvement.
| ID | Expected | Observed | Purpose |
|---|---|---|---|
| X01 | DETERMINATE:ordinary arrangement | DETERMINATE:ordinary arrangement | Exception does not apply. |
| X02 | DETERMINATE:alternative arrangement | DETERMINATE:alternative arrangement | Reviewed higher-priority exception applies. |
| X03 | HOLD_UNCERTAIN | HOLD_UNCERTAIN | Unknown exception can change the result. |
| X04 | DETERMINATE:ordinary arrangement | DETERMINATE:ordinary arrangement | Both completions yield same result. |
| X05 | DETERMINATE:special arrangement | DETERMINATE:special arrangement | Higher-priority scoped override. |
| X06 | HOLD_UNCERTAIN | HOLD_UNCERTAIN | Unknown override matters. |
| X07 | HOLD_CONFLICT | HOLD_CONFLICT | Equal-priority outputs conflict. |
| X08 | HOLD_GAP | HOLD_GAP | No default rule inferred. |
| X09 | HOLD_GAP | HOLD_GAP | A possible world lacks a rule. |
| X10 | HOLD_RULE | HOLD_RULE | Missing predicate is not explicit unknown. |
| X11 | DETERMINATE:alternative arrangement | DETERMINATE:alternative arrangement | Array order does not determine precedence. |
| X12 | HOLD_RULE | HOLD_RULE | Duplicate rule ID. |
| X13 | DETERMINATE:one result | DETERMINATE:one result | Shared fact remains correlated. |
| X14 | HOLD_BOUND | HOLD_BOUND | Bounded enumeration refuses excess unknowns. |
const tests = [
{
"id": "X01",
"facts": {
"closed": false
},
"rules": [
{
"id": "default",
"priority": 0,
"when": [],
"result": "ordinary arrangement"
},
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
}
],
"want": "DETERMINATE:ordinary arrangement"
},
{
"id": "X02",
"facts": {
"closed": true
},
"rules": [
{
"id": "default",
"priority": 0,
"when": [],
"result": "ordinary arrangement"
},
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
}
],
"want": "DETERMINATE:alternative arrangement"
},
{
"id": "X03",
"facts": {
"closed": null
},
"rules": [
{
"id": "default",
"priority": 0,
"when": [],
"result": "ordinary arrangement"
},
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
}
],
"want": "HOLD_UNCERTAIN"
},
{
"id": "X04",
"facts": {
"closed": null
},
"rules": [
{
"id": "default",
"priority": 0,
"when": [],
"result": "ordinary arrangement"
},
{
"id": "same",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "ordinary arrangement"
}
],
"want": "DETERMINATE:ordinary arrangement"
},
{
"id": "X05",
"facts": {
"closed": true,
"special": true
},
"rules": [
{
"id": "default",
"priority": 0,
"when": [],
"result": "ordinary arrangement"
},
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
},
{
"id": "override",
"priority": 20,
"when": [
[
"closed",
true
],
[
"special",
true
]
],
"result": "special arrangement"
}
],
"want": "DETERMINATE:special arrangement"
},
{
"id": "X06",
"facts": {
"closed": true,
"special": null
},
"rules": [
{
"id": "default",
"priority": 0,
"when": [],
"result": "ordinary arrangement"
},
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
},
{
"id": "override",
"priority": 20,
"when": [
[
"closed",
true
],
[
"special",
true
]
],
"result": "special arrangement"
}
],
"want": "HOLD_UNCERTAIN"
},
{
"id": "X07",
"facts": {
"closed": true
},
"rules": [
{
"id": "default",
"priority": 0,
"when": [],
"result": "ordinary arrangement"
},
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
},
{
"id": "same",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "ordinary arrangement"
}
],
"want": "HOLD_CONFLICT"
},
{
"id": "X08",
"facts": {
"closed": false
},
"rules": [
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
}
],
"want": "HOLD_GAP"
},
{
"id": "X09",
"facts": {
"closed": null
},
"rules": [
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
}
],
"want": "HOLD_GAP"
},
{
"id": "X10",
"facts": {},
"rules": [
{
"id": "default",
"priority": 0,
"when": [],
"result": "ordinary arrangement"
},
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
}
],
"want": "HOLD_RULE"
},
{
"id": "X11",
"facts": {
"closed": true
},
"rules": [
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
},
{
"id": "default",
"priority": 0,
"when": [],
"result": "ordinary arrangement"
}
],
"want": "DETERMINATE:alternative arrangement"
},
{
"id": "X12",
"facts": {
"closed": true
},
"rules": [
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
},
{
"id": "closure",
"priority": 10,
"when": [
[
"closed",
true
]
],
"result": "alternative arrangement"
}
],
"want": "HOLD_RULE"
},
{
"id": "X13",
"facts": {
"closed": null
},
"rules": [
{
"id": "yes",
"priority": 1,
"when": [
[
"closed",
true
]
],
"result": "one result"
},
{
"id": "no",
"priority": 1,
"when": [
[
"closed",
false
]
],
"result": "one result"
}
],
"want": "DETERMINATE:one result"
},
{
"id": "X14",
"facts": {
"f0": null,
"f1": null,
"f2": null,
"f3": null,
"f4": null,
"f5": null,
"f6": null,
"f7": null,
"f8": null
},
"rules": [
{
"id": "default",
"priority": 0,
"when": [],
"result": "ordinary arrangement"
}
],
"want": "HOLD_BOUND"
}
];
for (const x of tests) { const r=decide(x.facts,x.rules); console.log(x.id,r,x.want); }A future test suite should separately review the rule translation and compare all outcomes against an independently derived truth table. It should include malformed conditions, incompatible scope, exceptions with no stated result, and contradictory source evidence. A correct local decision over wrongly encoded premises can still be wrong for the real situation.
7. The exception layer in VocabularyOS
A proposed runtime first retrieves the applicable source and version. It resolves each sense, preserves the meaning of the condition and determines the relevant rule authority. The condition engine represents evidence; the precedence engine resolves a bounded decision among rules; the composed handover gate determines which additional checks remain. If a source is corrected, the return layer should flag dependent rule records for review. The local priority number is not an institutional rank or legal rule. A downstream system must not promote an arrangement label into an instruction to act.
A parent can use the same distinction without technology: ask what normally applies, which exception is stated, whether the condition is established, and whether the source says what happens next. Check an independent new example rather than supply the entire reasoning for the learner.
8. Centre-to-edge vocabulary learning
| Rung | Observable operation |
|---|---|
| L0 | Attend to the rule |
| L1 | Identify its condition |
| L2 | Name the exception |
| L3 | Explain the boundary |
| L4 | Recall later |
| L5 | Read and encode the clause |
| L6 | Relate general and exceptional cases |
| L7 | Combine a faithful sentence |
| L8 | Disambiguate unknown and false |
| L9 | Transfer to a fresh rule |
| L10 | Interpret changed consequences |
| L11 | Apply the stated rule contract |
| L12 | Trace revisions |
| L13 | Critique a mistaken precedence |
| L14 | Maintain a reviewed rule register |
| L15 | Propose and test a needed distinction |
The eduKate ladder is a proposed teaching framework, not an official school scale. Select a relevant operation, retain approved access support and distinguish supported practice from independent transfer.
9. Four-week validation laboratory
| Week | Activity | Evidence |
|---|---|---|
| 1 | Review fictional notices with exceptions and explicit priority. | Reviewed conditions and source scope. |
| 2 | Run the fixtures and add independent competing-rule examples. | Observed status, false holds and wrong releases. |
| 3 | Test the source-to-rule translation, including missing exceptional outcomes. | Separate extraction errors from evaluation errors. |
| 4 | Use a new authorised learner task and compare with an ordinary explanation. | Delayed independent transfer and effort, separate from technical results. |
Use synthetic data for software work. Research involving students requires appropriate school approval, consent or assent, privacy and safeguarding arrangements. This article performed no human experiment or production deployment. The next goal is to demonstrate narrow, auditable utility, not maximise automated decisions.
