Edge Technology for Vocabulary must protect the meaning of total, average, respondent and proportion before a calculation is released. A system can combine two correct group reports and still count the same person twice or average the wrong denominator. The Semantic Partition Aggregator checks whether records cover the stated target exactly once before calculating a pooled proportion.
This original eduKate extension of the Evidence Join Guard contains a bounded JavaScript demonstrator actually executed on fourteen synthetic cases. It checks exact membership, a shared measure, period and version, and observed binary responses. It is not a deployed data system, an independent benchmark, a statistical inference engine or evidence of improved learning.
- Define the target units and measure.
- Distinguish overlapping groups from partitions.
- Pool counts, not unrelated percentages.
- Hold missing or unknown responses.
- Inspect the actual synthetic test results.
Contents
- 1. Why a correct sum can be a false statement
- 2. The vocabulary behind the mathematical contract
- 3. Established technology versus the eduKate extension
- 4. Synthetic partition fixture
- 5. Fencing from a percentage to a defensible conclusion
- 6. Executable local aggregator
- 7. Fourteen actual synthetic regression cases
- 8. VocabularyOS integration and return path
- 9. The centre-to-edge vocabulary ladder
- 10. Four-week validation and teaching laboratory
- 11. References and connected research
1. Why a correct sum can be a false statement
Imagine two school activity groups reporting how many respondents chose an option. Group A has two of two; Group B has one of six. Averaging 100% and approximately 16.7% gives approximately 58.3%. But three of the eight distinct respondents chose the option, which is 37.5%. The arithmetic describes different quantities. The first is an equal-weight mean of the two group rates; the second is the pooled respondent rate. Neither is universally wrong, but only one answers the stated pooled question.
Now imagine one respondent appears in both groups. The denominator eight may no longer be the count of distinct people. The word total cannot resolve the overlap. The Evidence Join Guard checks whether fields refer to the same observation; the new partition aggregator asks whether separate observations form a complete, non-overlapping set of units for an explicitly stated pooled measure.
2. The vocabulary behind the mathematical contract
| Term | Meaning in this prototype |
|---|---|
| Universe | The exact set of synthetic units in the declared target. |
| Partition | A collection of mutually exclusive groups covering that universe. |
| Numerator | Units with an observed true response. |
| Denominator | All units with a known Boolean response in the complete target. |
| Unknown | A response not established as true or false. |
| Pooled proportion | Sum of successes divided by sum of distinct covered units. |
A pooled proportion is appropriate here because the contract requires a complete binary record for every target unit. If the groups have unequal sizes, their rates must contribute in proportion to their sizes. If the target is instead the mean rate of groups treated as equal units, that is a different measure and needs its own definition. The prototype refuses incomplete coverage or unknown outcomes rather than silently changing the denominator to the respondents with available answers.
3. Established technology versus the eduKate extension
Ordinary database aggregation already supports counting and summing. The PostgreSQL aggregate-function documentation distinguishes counting rows from counting non-null expressions and documents aggregation behaviour. This is not a new SQL engine. The proposed VocabularyOS extension validates the meaning and membership of records before aggregation: measured property, observation period, definition version, target membership and response state.
A real implementation would need a reviewed identity-resolution process, provenance, stable identifiers and a suitable statistical design. Matching IDs in the demonstration is not proof that two real records concern the same person, and different IDs are not proof that they concern different people. Use synthetic IDs here, not actual children’s names or identifiers.
4. Synthetic partition fixture
{
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "B",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
false
]
]
}
]
}Both partitions use the same declared measure, period and version. The rows jointly cover each unit exactly once. Three are true, so the result is 3/8. The output is a statement about these eight fictional units only, not a population estimate or evidence that a wider school prefers the option. An actual source-to-record extraction and identity review must occur before this mathematical component.
5. Fencing from a percentage to a defensible conclusion
Start with two successes in A. Add one success in B. Add the group sizes and check membership. Verify that the groups do not overlap and cover the intended target. Then calculate three out of eight, and state the reference group. The five moves transform a bare number into a scoped statement. A Secondary 3 student can perform the exercise with eight counters on paper, and a Secondary 4 student can explain why an unweighted average answers a different question. No coding is necessary for the centre-level task.
| Scenario | Correct next move |
|---|---|
| Two rates, no group sizes | Hold the pooled calculation. |
| One person appears twice | Resolve overlap; do not sum person counts. |
| One response unknown | Retain unknown; do not count it as no. |
| Complete disjoint groups | Pool the numerator and denominator. |
6. Executable local aggregator
function aggregate(contract,parts){
const nonempty=x=>typeof x==="string"&&x.length>0;
const keys=["measure","period","version"];
if(!contract||!keys.every(k=>nonempty(contract[k]))||!Array.isArray(contract.universe)||!contract.universe.length||contract.universe.length>1000||!contract.universe.every(nonempty)||new Set(contract.universe).size!==contract.universe.length||!Array.isArray(parts)||!parts.length||parts.length>100)return {status:"HOLD_INPUT"};
const universe=new Set(contract.universe),seen=new Set(),pids=new Set();let yes=0,unknown=0;
for(const part of parts){
if(!part||!nonempty(part.id)||pids.has(part.id)||!Array.isArray(part.rows))return {status:"HOLD_PARTITION"};
pids.add(part.id);
if(!keys.every(k=>part[k]===contract[k]))return {status:"HOLD_MEANING"};
for(const row of part.rows){
if(!Array.isArray(row)||row.length!==2||!nonempty(row[0])||![true,false,null].includes(row[1]))return {status:"HOLD_ROW"};
const [id,value]=row;
if(!universe.has(id))return {status:"HOLD_OUTSIDE"};
if(seen.has(id))return {status:"HOLD_OVERLAP"};
seen.add(id);if(value===true)yes++;if(value===null)unknown++;
}
}
if(seen.size!==universe.size)return {status:"HOLD_COVERAGE"};
if(unknown)return {status:"HOLD_UNKNOWN",unknown};
return {status:"AGGREGATED",numerator:yes,denominator:seen.size};
}The function validates a small target universe and partition register, then checks the declared meaning labels and exact membership. It refuses unexpected, repeated, missing and unresolved units. A successful call returns integer numerator and denominator, not a rounded percentage. Keeping the fraction intact avoids introducing a second rounding problem. The program has no network access, does not authenticate the records, does not perform statistical inference and does not decide whether data may be disclosed. The output is not a general-purpose aggregation certificate.
7. Fourteen actual synthetic regression cases
On 2 December 2026 this function ran locally against fourteen authored fixtures. 14 of 14 status-and-fraction outputs matched their expected outcomes. The inputs were designed to test the stated contract; they are not independent benchmark data or real pupil records.
| ID | Expected | Observed | Reason |
|---|---|---|---|
| A01 | AGGREGATED:3/8 | AGGREGATED:3/8 | Unequal group sizes: pool counts, not group percentages. |
| A02 | AGGREGATED:3/8 | AGGREGATED:3/8 | Order of partitions does not change result. |
| A03 | HOLD_OVERLAP | HOLD_OVERLAP | Same unit appears in two groups. |
| A04 | HOLD_COVERAGE | HOLD_COVERAGE | One expected member is absent. |
| A05 | HOLD_OUTSIDE | HOLD_OUTSIDE | Unexpected member is not a valid addition. |
| A06 | HOLD_UNKNOWN | HOLD_UNKNOWN | Unknown response is not no. |
| A07 | HOLD_MEANING | HOLD_MEANING | Time bases differ. |
| A08 | HOLD_MEANING | HOLD_MEANING | Same units, different question. |
| A09 | HOLD_MEANING | HOLD_MEANING | Different response definitions. |
| A10 | HOLD_PARTITION | HOLD_PARTITION | Repeated partition identifier. |
| A11 | HOLD_ROW | HOLD_ROW | Text false is not Boolean false. |
| A12 | HOLD_INPUT | HOLD_INPUT | Invalid target universe. |
| A13 | AGGREGATED:0/2 | AGGREGATED:0/2 | Observed zero is retained. |
| A14 | HOLD_INPUT | HOLD_INPUT | No denominator for an empty target. |
const tests = [
{
"id": "A01",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "B",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
false
]
]
}
],
"want": "AGGREGATED:3/8"
},
{
"id": "A02",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "B",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
false
]
]
},
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
}
],
"want": "AGGREGATED:3/8"
},
{
"id": "A03",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "B",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
false
],
[
"u2",
true
]
]
}
],
"want": "HOLD_OVERLAP"
},
{
"id": "A04",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "B",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
]
]
}
],
"want": "HOLD_COVERAGE"
},
{
"id": "A05",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "B",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
false
],
[
"outside",
false
]
]
}
],
"want": "HOLD_OUTSIDE"
},
{
"id": "A06",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "B",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
null
]
]
}
],
"want": "HOLD_UNKNOWN"
},
{
"id": "A07",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "B",
"measure": "selected-option-a",
"period": "later-consultation",
"version": "binary-response-v1",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
false
]
]
}
],
"want": "HOLD_MEANING"
},
{
"id": "A08",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "B",
"measure": "attended-event",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
false
]
]
}
],
"want": "HOLD_MEANING"
},
{
"id": "A09",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "B",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "multiple-response-v2",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
false
]
]
}
],
"want": "HOLD_MEANING"
},
{
"id": "A10",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
false
]
]
}
],
"want": "HOLD_PARTITION"
},
{
"id": "A11",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "B",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u3",
"false"
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
false
]
]
}
],
"want": "HOLD_ROW"
},
{
"id": "A12",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2",
"u3",
"u4",
"u5",
"u6",
"u7",
"u8",
"u1"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
true
],
[
"u2",
true
]
]
},
{
"id": "B",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u3",
true
],
[
"u4",
false
],
[
"u5",
false
],
[
"u6",
false
],
[
"u7",
false
],
[
"u8",
false
]
]
}
],
"want": "HOLD_INPUT"
},
{
"id": "A13",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": [
"u1",
"u2"
]
},
"parts": [
{
"id": "A",
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"rows": [
[
"u1",
false
],
[
"u2",
false
]
]
}
],
"want": "AGGREGATED:0/2"
},
{
"id": "A14",
"contract": {
"measure": "selected-option-a",
"period": "fictional-consultation-v1",
"version": "binary-response-v1",
"universe": []
},
"parts": [],
"want": "HOLD_INPUT"
}
];
for (const x of tests) console.log(x.id,aggregate(x.contract,x.parts),x.want);A future independent suite should test mixed observation windows, duplicated source identities under different IDs, unknown outcomes, valid sampling designs and legitimate alternate measures. The strict complete-coverage policy deliberately does not answer a partial-response survey question; a separate, explicitly scoped respondents-only operator may be valid. Do not treat every hold as an error in the input.
8. VocabularyOS integration and return path
A proposed source register identifies the actual consultation. The concept library defines the measured response and what counts as one unit. The quantity type preserves numerator and denominator semantics. The join guard assembles compatible records. The partition aggregator checks disjointness and coverage. A release gate asks whether the result answers the intended question and whether disclosure is authorised. If an identity match or response definition changes, a dependent aggregate should be flagged for review, rather than silently recalculated under new assumptions.
Even an apparently anonymous ID may be linkable in a real system. Minimise collection, separate access control from arithmetic and use only authorised data. Do not transfer learner-level records into public research examples. The demonstration deliberately uses invented identifiers and no private data.
9. The centre-to-edge vocabulary ladder
| Rung | Observable operation |
|---|---|
| L0 | Attend to the data |
| L1 | Identify groups |
| L2 | Name the measure |
| L3 | Explain numerator and denominator |
| L4 | Recall the distinction |
| L5 | Read and encode counts |
| L6 | Relate group and whole |
| L7 | Combine a faithful result |
| L8 | Disambiguate units and records |
| L9 | Transfer to a new table |
| L10 | Interpret the competing averages |
| L11 | Apply the formal aggregation contract |
| L12 | Trace definition changes |
| L13 | Critique an unsupported total |
| L14 | Maintain a reviewed measure register |
| L15 | Propose and test a needed aggregation rule |
The L0–L15 ladder is an original educational framework, not an official school scale. Select only the operations needed for the learner. A successful software test cannot establish a student’s understanding.
10. Four-week validation and teaching laboratory
| Week | Activity | Evidence |
|---|---|---|
| 1 | Build synthetic partitions and define the intended measure. | Reviewed target and definitions. |
| 2 | Reproduce the fourteen cases and add independent overlap or coverage failures. | Observed errors and holds. |
| 3 | Compare strict pooling with an explicitly labelled partial-response operator and a simple arithmetic baseline. | Different valid questions, false releases and review effort. |
| 4 | Use an authorised fresh school task comparing denominators. | Independent transfer, effort and limitations separate from software results. |
Research involving children requires appropriate permissions, consent or assent, privacy and safeguards. No human experiment or deployed integration was performed. The engineering goal is to make the counting boundary visible, not to claim all aggregation can be automated safely.
