Vocabulary coding enables teenagers to construct statements that describe conditions, relationships and intended actions. An executable specification goes further by expressing a selected part of a task in a form that a person or suitable computer can systematically evaluate against test inputs. The learner can then compare the results with the intended meaning of the original instruction.
Not every human request can or should become executable code. Natural language may contain uncertainty, incomplete evidence, competing objectives and permissions that require human review. EduKate’s language engineering approach begins with a low-risk fictional rule, specifies its meaning, creates a small evaluation procedure and tests ordinary and exceptional cases. The goal is to connect language, logic and computation while keeping the limits of automation visible.
- Translate a bounded instruction into explicit inputs and outputs.
- Preserve conditions, scope, permission and missing information.
- Write a procedure and expected cases before evaluating it.
- Distinguish matching the specification from establishing real-world truth.
- Document a reviewed handover with the conditions required for safe use.
Chapter navigation
- 1. Choose a task that can actually be evaluated
- 2. Specify inputs and output meanings
- 3. Write the procedure in plain-language pseudocode
- 4. Worked test table
- 5. A test oracle must be justified
- 6. Test completeness within a bounded domain
- 7. Separate validation from verification of the world
- 8. Civilisation zoom: executable knowledge has limits
- 9. AI laboratory
- 10. Four-week executable specification studio
- 11. Continue learning in the eduKate vocabulary ecosystem
Choose a task that can actually be evaluated
Imagine a fictional school telescope club that accepts requests for an observing session. Its classroom rule says that a request meets the ordinary criteria when the session is listed, a place is available and a required orientation is recorded as completed. An accepted request still needs an authorised confirmation.
This provides a narrow task: check whether the supplied records establish that the ordinary criteria are met. It does not authorise the programme to confirm bookings, reserve equipment or decide whether real-world observation conditions are safe. A useful specification begins by separating evaluation from action.
Specify inputs and output meanings
Use three input fields: listed session, available place and recorded orientation completion. For this exercise, each field can be confirmed true, confirmed false or unknown. The result can be criteria met, criteria not met or insufficient information. Define precisely what each result means.
Criteria met means that all three stated conditions are confirmed true. Criteria not met means that at least one condition is confirmed false. Insufficient information means that no condition is confirmed false but at least one remains unknown. These are local rules for an invented classification task, not an official admission procedure.
Write the procedure in plain-language pseudocode
For a record supplied to the fictional evaluator: if any condition is confirmed false, return criteria not met. Otherwise, if any condition is unknown, return insufficient information. Otherwise, return criteria met. Reject or flag input values outside the defined set rather than silently treating them as true or false.
This procedure can be evaluated by a person using a paper table or implemented in a suitable programming language. Its result does not verify the underlying records, establish that an authorised person has confirmed a request or perform an external operation. Those tasks require their own evidence and controls.
Worked test table
Case A contains true, true, true and returns criteria met. Case B contains true, false, unknown and returns criteria not met because the confirmed false condition suffices. Case C contains true, unknown, true and returns insufficient information. Case D contains unknown, unknown, unknown and returns insufficient information.
Case E contains false, true, true and returns criteria not met. Case F contains an invalid field value, such as a text label not defined in the specification, and should be flagged as invalid input. These expected outcomes follow from the specified classroom procedure. They are not results from a deployed software system.
A test oracle must be justified
The expected result for each case serves as a reference for evaluating a procedure. A programmer might mistakenly decide that any unknown input forces an insufficient-information result, even if another required condition is confirmed false. Case B reveals that mismatch with the stated rule.
However, an answer key can itself be wrong. Compare expectations with the source rule and intended decision process. If the underlying policy instead requires reviewing every unknown condition regardless of the other results, the specification would need to change. Preserve the distinction between repairing a programme and revising its intended behaviour.
Test completeness within a bounded domain
Three inputs with three allowed values each give 27 possible combinations. In this small model, exactly one combination has all three values true. Eight combinations have no false values, including that all-true combination. Seven therefore return insufficient information, and nineteen return criteria not met.
A learner can enumerate all 27 combinations to check a particular implementation against the defined procedure. This is exhaustive only for those three fields and their specified value set. It does not cover invalid inputs, source errors, changes in policy or real-world circumstances outside the model. Additional checks remain necessary.
Separate validation from verification of the world
A record stating that an orientation was completed may satisfy the input format. The programme cannot determine from that field alone whether the record is accurate or current. Appropriate source provenance, verification and authorisation belong to the wider process.
Likewise, a correctly implemented rule may be unsuitable if its specification omitted an important condition. Evaluate the procedure against the written specification and examine whether the specification actually serves the intended task. A passing test suite does not establish that an institution’s policy is justified.
Civilisation zoom: executable knowledge has limits
A documented procedure can make selected knowledge easier to share. Another team can inspect its inputs, reproduce its calculations and test its outputs. When meanings or conditions change, the procedure and tests can be revised together. This supports a useful component of the EduKate portable civilisation framework.
Real institutions still require people, appropriate expertise, lawful authority, material resources and practical judgement. Important decisions cannot be justified solely by saying that software returned a particular value. Preserve the distinction between executing a calculation and legitimately acting in the world.
AI laboratory
Use an age-appropriate AI to translate the fictional evaluator into readable pseudocode or simple code. Ask it to calculate the six example results and explain the expected output categories. Independently inspect the procedure and, if appropriate, evaluate all 27 permitted combinations using a paper table or a local learning environment.
Do not connect the exercise to actual accounts, booking services or equipment controls. A generated code example may contain mistakes. The teenager should understand the meaning of the conditions and be able to test the output rather than trusting the programme because it looks technically sophisticated.
Four-week executable specification studio
At 13 identify a rule’s conditions; at 14 construct a decision table; at 15 write pseudocode; at 16 distinguish permission from classification; at 17 design systematic tests; at 18 document an independently inspectable specification and correction process. These are flexible stages.
Week one: choose a fictional question and define the inputs and outputs. Week two: construct the procedure and expected cases. Week three: evaluate normal, boundary, unknown and invalid records, documenting actual results. Week four: correct failures and prepare a versioned handover. The objective is to make a bounded stream of thought executable while preserving the meaning, evidence and limitations that make it useful.
