Edge Technology for Vocabulary must preserve the meaning of a correct result when an AI system is upgraded. An improved overall score can hide a new mistake about who is included, whether a decision is approved or what action a notice permits. The Semantic Regression Gate keeps consequential meaning failures visible rather than allowing an aggregate improvement to erase them.
This original eduKate article provides a locally executed JavaScript policy for comparing two sets of verdicts on one frozen synthetic manifest. Fourteen fixtures test critical failures, bounded minor regressions and incomplete runs. The demonstration is not a deployed model evaluation, independently validated benchmark or evidence of learning gains.
- Freeze the test identities and expected verdicts before comparing versions.
- Distinguish critical errors from bounded minor failures.
- Hold missing and incomplete runs instead of shrinking the denominator.
- Track regressions and improvements separately.
- Inspect reproducible results without confusing eligibility for review with deployment approval.
Contents
- 1. An aggregate score is not a release decision
- 2. Established testing and the proposed local policy
- 3. The aggregate trap in an executable example
- 4. Three separate budgets and boundaries
- 5. Executable local regression gate
- 6. Fourteen actually executed synthetic cases
- 7. Fencing a semantic release obligation
- 8. Centre-to-edge learning operations
- 9. Four-week evaluation laboratory
- 10. References and connected research
1. An aggregate score is not a release decision
Imagine a new tutor model that improves two explanations about word choice but now interprets a restricted notice as unrestricted. Its total score can increase even though it has acquired a consequential new defect. A parent or engineer should ask which errors changed, which decisions are affected and whether the test set actually contains the relevant cases. The same principle applies to a student: an improved total can coexist with a particular misunderstanding of must not, not yet or some. The instructional response is targeted teaching, not a permanent label.
The previous Semantic Test Harness checks a candidate against reviewed source facts. This article works at a different layer: it compares the results of two versions of a system against a frozen test manifest. It preserves the case identity and expected behaviour rather than allowing an improved aggregate to erase the significance of one error. The Concept-Split Impact Rehearsal identifies dependent material that may break after a meaning change; the regression gate asks whether a candidate release meets an explicit acceptance policy.
2. Established testing and the proposed local policy
The NIST AI Risk Management Framework core, Measure function recommends assessing AI risks before deployment and throughout operation, with documented tests, appropriate benchmarks and independent review. The local demo is inspired by those principles, not a claim of NIST certification or compliance.
Software regression testing compares a changed implementation with a set of expected behaviours. For semantic work, expectations must be source-grounded, task-specific and separately reviewed. A claim that a field is critical is a policy choice based on the potential consequences of the intended use; it is not an intrinsic property of a word. For example, changing may to will in an ordinary creative writing exercise may have a different consequence from changing it in an action record. The test manifest should name the task, source, expected result and risk classification before the run. The toy fixture abbreviates that record to an identifier, expected verdict and critical flag.
3. The aggregate trap in an executable example
| Test obligation | Expected | Baseline | Candidate |
|---|---|---|---|
| scope | HOLD | HOLD | ALLOW |
| authority | REJECT | REJECT | REJECT |
| faithful | ALLOW | HOLD | ALLOW |
| wording | ALLOW | HOLD | ALLOW |
| ambiguous | HOLD | HOLD | HOLD |
The baseline correctly handles three of these five cases. The candidate handles four, yet it newly allows the unsupported scope claim. The proposed policy holds the candidate because the scope case was predeclared critical. The aggregate rises from 60% to 80% in this invented fixture; that numerical increase is not an estimated real-world model improvement. It illustrates how a case-level gate can disagree with an aggregate ranking. If a critical defect already existed in the baseline, the candidate is still held. The policy does not legitimise inherited failures.
4. Three separate budgets and boundaries
| Condition | Decision |
|---|---|
| Invalid manifest or budget | HOLD_MANIFEST |
| Missing/extra case or invalid result | HOLD_INCOMPLETE |
| Any wrong critical case | HOLD_CRITICAL |
| New minor regressions exceed budget | HOLD_REGRESSION |
| All remaining minor failures exceed budget | HOLD_RESIDUAL |
| All declared gates pass | ELIGIBLE_REVIEW |
The two minor budgets are explicit nonnegative integers: maximum newly failing minor cases and maximum total candidate minor failures. They do not override the critical condition. A permitted residual failure must be visible to the human reviewer. An ERROR is an observed execution failure, not a missing expectation. An omitted case blocks comparison rather than being excluded from the denominator. The demo assumes comparable test runs against the same manifest; it does not verify hashes, model identities, environmental conditions or test independence. Real release infrastructure must bind those facts to the run evidence.
5. Executable local regression gate
function gate(manifest,baseline,candidate,policy){
const verdicts=["ALLOW","HOLD","REJECT"],actual=[...verdicts,"ERROR"];
const validBudget=x=>Number.isSafeInteger(x)&&x>=0;
if(!Array.isArray(manifest)||!manifest.length||!policy||!validBudget(policy.maxNewMinor)||!validBudget(policy.maxMinorFailures)||!manifest.every(x=>x&&typeof x.id==="string"&&x.id.trim()&&typeof x.critical==="boolean"&&verdicts.includes(x.expected))||new Set(manifest.map(x=>x.id)).size!==manifest.length)return {status:"HOLD_MANIFEST"};
const ids=manifest.map(x=>x.id);
const complete=r=>r&&Object.keys(r).length===ids.length&&ids.every(id=>Object.hasOwn(r,id)&&actual.includes(r[id]));
if(!complete(baseline)||!complete(candidate))return {status:"HOLD_INCOMPLETE"};
const failed=manifest.filter(x=>candidate[x.id]!==x.expected);
const regressions=failed.filter(x=>baseline[x.id]===x.expected);
const improvements=manifest.filter(x=>baseline[x.id]!==x.expected&&candidate[x.id]===x.expected);
const critical=failed.filter(x=>x.critical),minor=failed.filter(x=>!x.critical),newMinor=regressions.filter(x=>!x.critical);
const status=critical.length?"HOLD_CRITICAL":newMinor.length>policy.maxNewMinor?"HOLD_REGRESSION":minor.length>policy.maxMinorFailures?"HOLD_RESIDUAL":"ELIGIBLE_REVIEW";
return {status,baselineCorrect:manifest.filter(x=>baseline[x.id]===x.expected).length,candidateCorrect:manifest.length-failed.length,critical:critical.map(x=>x.id),regressions:regressions.map(x=>x.id),improvements:improvements.map(x=>x.id),minorFailures:minor.map(x=>x.id)};
}
ELIGIBLE_REVIEW is not a deployment approval. It means the candidate meets the narrow declared gates and can move to an appropriate review. The method reports critical failures, regression and improvement IDs and minor failures. It does not run the AI, interpret language, assess actual safety, select policy thresholds or approve an external action. A real test manifest requires reviewed input examples and independent reference judgments. Any policy change should be versioned and tested rather than adjusted after seeing an inconvenient result.
6. Fourteen actually executed synthetic cases
On 2 December 2026, 14 of 14 authored fixtures matched the predeclared expected gate status and, where defined, candidate correct-count. These are local author-run regression checks, not independently validated findings.
| ID | Expected | Observed | Candidate correct | Why |
|---|---|---|---|---|
| R01 | ELIGIBLE_REVIEW | ELIGIBLE_REVIEW | 5 | No failures or regressions. |
| R02 | HOLD_CRITICAL | HOLD_CRITICAL | 4 | Aggregate increases from 3 to 4 but critical scope fails. |
| R03 | HOLD_CRITICAL | HOLD_CRITICAL | 4 | Inherited critical defect still blocks review. |
| R04 | HOLD_REGRESSION | HOLD_REGRESSION | 4 | New minor regression exceeds zero budget. |
| R05 | ELIGIBLE_REVIEW | ELIGIBLE_REVIEW | 4 | Explicit bounded minor budget, still review only. |
| R06 | HOLD_RESIDUAL | HOLD_RESIDUAL | 3 | Pre-existing minor failures exceed total budget. |
| R07 | ELIGIBLE_REVIEW | ELIGIBLE_REVIEW | 5 | Correction of previous minor failure. |
| R08 | HOLD_INCOMPLETE | HOLD_INCOMPLETE | — | Missing test is not a pass. |
| R09 | HOLD_INCOMPLETE | HOLD_INCOMPLETE | — | Unexpected case cannot alter denominator. |
| R10 | HOLD_CRITICAL | HOLD_CRITICAL | 4 | Execution error on critical case blocks. |
| R11 | HOLD_MANIFEST | HOLD_MANIFEST | — | Duplicate fixture ID rejected. |
| R12 | HOLD_MANIFEST | HOLD_MANIFEST | — | Invalid budget rejected. |
| R13 | HOLD_CRITICAL | HOLD_CRITICAL | 4 | Permission-like error independently blocks. |
| R14 | HOLD_RESIDUAL | HOLD_RESIDUAL | 4 | New regression budget cannot override total budget. |
const tests = [
{
"id": "R01",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"policy": {
"maxNewMinor": 0,
"maxMinorFailures": 1
},
"want": "ELIGIBLE_REVIEW",
"count": 5
},
{
"id": "R02",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "HOLD",
"wording": "HOLD",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "ALLOW",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"policy": {
"maxNewMinor": 0,
"maxMinorFailures": 1
},
"want": "HOLD_CRITICAL",
"count": 4
},
{
"id": "R03",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "ALLOW",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "ALLOW",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"policy": {
"maxNewMinor": 0,
"maxMinorFailures": 1
},
"want": "HOLD_CRITICAL",
"count": 4
},
{
"id": "R04",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "HOLD",
"ambiguous": "HOLD"
},
"policy": {
"maxNewMinor": 0,
"maxMinorFailures": 1
},
"want": "HOLD_REGRESSION",
"count": 4
},
{
"id": "R05",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "HOLD",
"ambiguous": "HOLD"
},
"policy": {
"maxNewMinor": 1,
"maxMinorFailures": 1
},
"want": "ELIGIBLE_REVIEW",
"count": 4
},
{
"id": "R06",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "HOLD",
"wording": "HOLD",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "HOLD",
"wording": "HOLD",
"ambiguous": "HOLD"
},
"policy": {
"maxNewMinor": 0,
"maxMinorFailures": 1
},
"want": "HOLD_RESIDUAL",
"count": 3
},
{
"id": "R07",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "HOLD",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"policy": {
"maxNewMinor": 0,
"maxMinorFailures": 1
},
"want": "ELIGIBLE_REVIEW",
"count": 5
},
{
"id": "R08",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW"
},
"policy": {
"maxNewMinor": 0,
"maxMinorFailures": 1
},
"want": "HOLD_INCOMPLETE",
"count": null
},
{
"id": "R09",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD",
"extra": "ALLOW"
},
"policy": {
"maxNewMinor": 0,
"maxMinorFailures": 1
},
"want": "HOLD_INCOMPLETE",
"count": null
},
{
"id": "R10",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "ERROR",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"policy": {
"maxNewMinor": 0,
"maxMinorFailures": 1
},
"want": "HOLD_CRITICAL",
"count": 4
},
{
"id": "R11",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
},
{
"id": "scope",
"critical": true,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"policy": {
"maxNewMinor": 0,
"maxMinorFailures": 1
},
"want": "HOLD_MANIFEST",
"count": null
},
{
"id": "R12",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"policy": {
"maxNewMinor": -1,
"maxMinorFailures": 0
},
"want": "HOLD_MANIFEST",
"count": null
},
{
"id": "R13",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "HOLD",
"authority": "ALLOW",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"policy": {
"maxNewMinor": 0,
"maxMinorFailures": 1
},
"want": "HOLD_CRITICAL",
"count": 4
},
{
"id": "R14",
"manifest": [
{
"id": "scope",
"critical": true,
"expected": "HOLD"
},
{
"id": "authority",
"critical": true,
"expected": "REJECT"
},
{
"id": "faithful",
"critical": false,
"expected": "ALLOW"
},
{
"id": "wording",
"critical": false,
"expected": "ALLOW"
},
{
"id": "ambiguous",
"critical": false,
"expected": "HOLD"
}
],
"baseline": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "HOLD"
},
"candidate": {
"scope": "HOLD",
"authority": "REJECT",
"faithful": "ALLOW",
"wording": "ALLOW",
"ambiguous": "ALLOW"
},
"policy": {
"maxNewMinor": 1,
"maxMinorFailures": 0
},
"want": "HOLD_RESIDUAL",
"count": 4
}
];
for (const x of tests) console.log(x.id, gate(x.manifest,x.baseline,x.candidate,x.policy), x.want);
The function and synthetic fixtures can be reproduced in a compatible JavaScript runtime. The published article does not execute code in the reader’s browser. The suite checks status and correct-count, not every returned array against an independently derived reference. A subsequent validation should check all returned IDs, environment provenance and test completeness.
7. Fencing a semantic release obligation
Start with one reviewed claim, for example that some registered participants may collect a kit if the room is available. Add the relevant invariants: group, possibility and condition. Add a candidate paraphrase, then a controlled near-miss that changes one invariant. Record the expected outcome with its source. Add the policy: for this specific decision, a false approval is critical. Freeze the case before evaluating an updated system. This is the technical analogue of a Fencing Method lesson that begins with a correct meaning and adds one useful relationship.
For a learner, the question is why changing the wording alters the meaning. A successful model gate does not establish that the learner can explain it. A teacher can ask for an independent fresh example and keep the student observation separate from the software verdict. Preserve appropriate access support; do not use a technical regression label as a label for a child.
8. Centre-to-edge learning operations
| Rung | Example task |
|---|---|
| L0 | Attend to source |
| L1 | Identify the claim |
| L2 | Name the distinction |
| L3 | Explain the error |
| L4 | Recall the contrast later |
| L5 | Read and encode qualifiers |
| L6 | Relate condition and group |
| L7 | Combine a faithful paraphrase |
| L8 | Disambiguate status |
| L9 | Transfer to a fresh source |
| L10 | Interpret the consequence of a changed meaning |
| L11 | Apply formal subject definitions |
| L12 | Trace test and source versions |
| L13 | Critique an aggregate claim |
| L14 | Maintain a reviewed regression register |
| L15 | Design a new obligation when genuinely needed |
These are suggested operations in the original eduKate vocabulary ladder, not an official grading or age scale. A student may need a basic explanation of one word and be able to critique a model’s paraphrase of another. The purpose is to identify a useful next task.
9. Four-week evaluation laboratory
| Week | Activity | Evidence |
|---|---|---|
| 1 | Define reviewed source obligations and consequence categories before seeing candidate results. | Frozen manifest, review scope and version. |
| 2 | Reproduce local fixtures and add independent near-misses. | Status, correct counts and all affected IDs. |
| 3 | Compare two hypothetical versions under identical fixtures and inspect the policy’s false holds. | Critical defects, new regressions, residual failures, costs. |
| 4 | Review a fresh authorised learning task and inspect whether the student transfers the distinction. | Separate technical and human evidence. |
A credible later evaluation should include independent case authors, held-out task families and explicit source extraction checks. Report uncertainty and the cost of conservative holds. If the policy blocks useful changes unnecessarily, inspect why without weakening the rule after the result is known. Student research requires applicable school permission, consent or assent and privacy safeguards. No actual model A/B experiment, production release or human learning study was conducted here.
10. References and connected research
- NIST AI RMF Core
- Semantic Test Harness
- Concept-Split Impact Rehearsal
- Transactional Semantic Repair Patch
- Meaning Lab v1.3
- L0–L15 ladder
- Fencing Method
The proposed gate is a bounded original policy. It illustrates one way to keep consequential semantic obligations visible during change, not a universal release standard or official examination requirement.
