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.

Edge Technology for Vocabulary | The Executable Exception Precedence Engine: When Does Unless Override a General Rule?

Three secondary students review open books and notes together in a classroom.

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

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.

Back to contents

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.

Back to contents

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"
    }
  ]
}
FieldLocal interpretation
factsEach named fact is true, false or null (explicit unknown).
whenConjunction of named Boolean conditions; empty means unconditional.
priorityHigher integer has precedence, assigned by a reviewed rule author.
resultA 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.

Back to contents

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.

ClosureSpecial overrideModel outcome
FalseAnyOrdinary arrangement
TrueFalseAlternative arrangement
TrueTrueSpecial arrangement
UnknownFalseHold 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.

Back to contents

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.

Back to contents

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.

IDExpectedObservedPurpose
X01DETERMINATE:ordinary arrangementDETERMINATE:ordinary arrangementException does not apply.
X02DETERMINATE:alternative arrangementDETERMINATE:alternative arrangementReviewed higher-priority exception applies.
X03HOLD_UNCERTAINHOLD_UNCERTAINUnknown exception can change the result.
X04DETERMINATE:ordinary arrangementDETERMINATE:ordinary arrangementBoth completions yield same result.
X05DETERMINATE:special arrangementDETERMINATE:special arrangementHigher-priority scoped override.
X06HOLD_UNCERTAINHOLD_UNCERTAINUnknown override matters.
X07HOLD_CONFLICTHOLD_CONFLICTEqual-priority outputs conflict.
X08HOLD_GAPHOLD_GAPNo default rule inferred.
X09HOLD_GAPHOLD_GAPA possible world lacks a rule.
X10HOLD_RULEHOLD_RULEMissing predicate is not explicit unknown.
X11DETERMINATE:alternative arrangementDETERMINATE:alternative arrangementArray order does not determine precedence.
X12HOLD_RULEHOLD_RULEDuplicate rule ID.
X13DETERMINATE:one resultDETERMINATE:one resultShared fact remains correlated.
X14HOLD_BOUNDHOLD_BOUNDBounded 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.

Back to contents

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.

Back to contents

8. Centre-to-edge vocabulary learning

RungObservable operation
L0Attend to the rule
L1Identify its condition
L2Name the exception
L3Explain the boundary
L4Recall later
L5Read and encode the clause
L6Relate general and exceptional cases
L7Combine a faithful sentence
L8Disambiguate unknown and false
L9Transfer to a fresh rule
L10Interpret changed consequences
L11Apply the stated rule contract
L12Trace revisions
L13Critique a mistaken precedence
L14Maintain a reviewed rule register
L15Propose 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.

Back to contents

9. Four-week validation laboratory

WeekActivityEvidence
1Review fictional notices with exceptions and explicit priority.Reviewed conditions and source scope.
2Run the fixtures and add independent competing-rule examples.Observed status, false holds and wrong releases.
3Test the source-to-rule translation, including missing exceptional outcomes.Separate extraction errors from evaluation errors.
4Use 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.

Back to contents

10. References and connected research

Back to contents