UK Free School Meals
The primary worked example. Three sections composing toA AND (B OR C), three source documents that cross-reference each other, 23 test cases.
Source documents:
- Education Act 1996 (s.512, s.512ZA) — child eligibility gate
- The Education (Free School Meals) (England) Regulations 2014 (Reg 3, 4, 4A, 5) — appears in all three sections
- Children and Families Act 2014 (s.105) — universal infant entitlement
| Section | Covers | Source documents |
|---|---|---|
A — child_eligibility | Age 4–15, state-funded school | Education Act 1996 + Free School Meals Regulations Reg 3 |
B — household_qualifying_criteria | 7 benefit routes + looked-after/care leaver | Free School Meals Regulations Reg 4 + Reg 4A |
C — universal_infant_fsm | Reception, Year 1, Year 2 — automatic, no income test | Children and Families Act 2014 + Free School Meals Regulations Reg 5 |
aethis/uk-fsm — combines the three sections under one outcome_logic. Authenticated decide (rulebook_id: aethis/uk-fsm).
Live public section ruleset (anonymous decide OK): aethis/uk-fsm/child-eligibility — the Section A gate, queryable by itself.
Sections B (household_criteria) and C (universal_infant) live as rulesets inside the aethis/uk-fsm rulebook (Phase B.2.2 of the converged 2-term model) rather than as standalone published slugs. Hit them via rulebook_id: aethis/uk-fsm and the rulebook’s outcome_logic combines them with Section A.
Try a decision now (no API key needed):
- CLI
- Python SDK
- curl
- MCP
- Multi-section composition with shared source documents
- OR logic across sections (B or C is sufficient)
- Automatic entitlement override (Section C has no income test)
- Integer arithmetic with threshold comparison (£7,400 UC threshold)
- Enum fields (
child.school_type,child.year_group) - Unconditional boolean flags (
child.is_looked_after,child.is_care_leaver)
How Section A was authored
The child eligibility section is the simplest — two fields, six tests, no refinement needed. Here is the complete authoring journey. Step 1 — Source documents. Two statutory texts were provided:- Education Act 1996 (s.512, s.512ZA) — defines “relevant school” (maintained schools, Academies, non-maintained special schools, pupil referral units) and compulsory school age
- Free School Meals Regulations 2014 (Reg 3) — establishes entitlement for children aged 4–15 at a relevant school
- “This section determines only whether the child is eligible based on age and school type. It does not assess household income — that is Section B.”
- “child.age should represent the child’s age in whole years at the start of the academic year (1 September).”
- “child.school_type should be an enum with values: state_funded, independent, home_educated. Only state_funded schools are within scope.”
aethis/uk-fsm/child-eligibility published with label “v1 — child eligibility gate (age 4–15, state-funded schools)”.
Composition
The three published sections compose into a rulebook with outcome logicA AND (B OR C):
Construction All Risks insurance
Benchmark domain. A five-level exception chain in a London market endorsement — the failure pattern used to test frontier LLMs.| Model | Accuracy (N=20) | Notes |
|---|---|---|
| Aethis Engine | 20/20 (100%) | deterministic, <5ms, same answer every time |
GPT-5.4 (reasoning_effort=low) | 20/20 (100%) | 16–126 reasoning tokens per scenario |
| Claude Sonnet 4.6 | 19/20 (95%) | fails E4 (DE3/LEG3 carveback gap) |
| GPT-5.4 (default) | 19/20 (95%) | 0 reasoning tokens on every scenario — short-circuits on E4 |
| Claude Opus 4.7 (current Anthropic strongest) | 18/20 (90%) | fails E4 + B3 (£499 M boundary) |
Spacecraft Crew Certification Act 2049
A deliberately simple public demo domain — 11 fields across 7 rule groups, ideal for first experiments. Two demonstrations: a one-field short-circuit, and a fully-specified happy path.One field, decision reached (Vogon)
A Vogon is disqualifying under §3(1) regardless of any other answer, so the engine short-circuits the momentspace.crew.species: "Vogon" is provided:
- CLI
- Python SDK
- curl
- MCP
fields_provided: 1, fields_evaluated: 11 — the engine reasoned across all 11 fields and discharged the case as soon as the species check failed. The other groups stay pending because no further questions need answering.
All fields, happy path (Human + Improbability Drive)
To pass every gate, the applicant needs a valid licence, medical, radiation cert, towel, and a vessel running on something more exciting than conventional propulsion (§7(2) — seeaethis/spacecraft-crew-certification/explain):
- CLI
- Python SDK
- curl
- MCP
"Infinite Improbability Drive" for "Conventional" and the decision flips to not_eligible with propulsion_compliance: not_satisfied — the engine names the exact group that failed.