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 Semantic Partition Aggregator: Can AI Add Numbers Without Counting the Same People Twice?

Three students reviewing open textbooks, notes and stationery together at a classroom table.

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

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.

Back to contents

2. The vocabulary behind the mathematical contract

TermMeaning in this prototype
UniverseThe exact set of synthetic units in the declared target.
PartitionA collection of mutually exclusive groups covering that universe.
NumeratorUnits with an observed true response.
DenominatorAll units with a known Boolean response in the complete target.
UnknownA response not established as true or false.
Pooled proportionSum 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.

Back to contents

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.

Back to contents

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.

Back to contents

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.

ScenarioCorrect next move
Two rates, no group sizesHold the pooled calculation.
One person appears twiceResolve overlap; do not sum person counts.
One response unknownRetain unknown; do not count it as no.
Complete disjoint groupsPool the numerator and denominator.

Back to contents

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.

Back to contents

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.

IDExpectedObservedReason
A01AGGREGATED:3/8AGGREGATED:3/8Unequal group sizes: pool counts, not group percentages.
A02AGGREGATED:3/8AGGREGATED:3/8Order of partitions does not change result.
A03HOLD_OVERLAPHOLD_OVERLAPSame unit appears in two groups.
A04HOLD_COVERAGEHOLD_COVERAGEOne expected member is absent.
A05HOLD_OUTSIDEHOLD_OUTSIDEUnexpected member is not a valid addition.
A06HOLD_UNKNOWNHOLD_UNKNOWNUnknown response is not no.
A07HOLD_MEANINGHOLD_MEANINGTime bases differ.
A08HOLD_MEANINGHOLD_MEANINGSame units, different question.
A09HOLD_MEANINGHOLD_MEANINGDifferent response definitions.
A10HOLD_PARTITIONHOLD_PARTITIONRepeated partition identifier.
A11HOLD_ROWHOLD_ROWText false is not Boolean false.
A12HOLD_INPUTHOLD_INPUTInvalid target universe.
A13AGGREGATED:0/2AGGREGATED:0/2Observed zero is retained.
A14HOLD_INPUTHOLD_INPUTNo 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.

Back to contents

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.

Back to contents

9. The centre-to-edge vocabulary ladder

RungObservable operation
L0Attend to the data
L1Identify groups
L2Name the measure
L3Explain numerator and denominator
L4Recall the distinction
L5Read and encode counts
L6Relate group and whole
L7Combine a faithful result
L8Disambiguate units and records
L9Transfer to a new table
L10Interpret the competing averages
L11Apply the formal aggregation contract
L12Trace definition changes
L13Critique an unsupported total
L14Maintain a reviewed measure register
L15Propose 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.

Back to contents

10. Four-week validation and teaching laboratory

WeekActivityEvidence
1Build synthetic partitions and define the intended measure.Reviewed target and definitions.
2Reproduce the fourteen cases and add independent overlap or coverage failures.Observed errors and holds.
3Compare strict pooling with an explicitly labelled partial-response operator and a simple arithmetic baseline.Different valid questions, false releases and review effort.
4Use 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.

Back to contents

11. References and connected research

Back to contents