Split complex legislation into independently testable sections before authoring begins.
Authoring is invite-only private beta. Everything on this page needs an
Aethis API key with authoring scopes, plus your own model-provider key for
the generation steps. Request access,
or start on the open evaluate tier with
your first decision — no key required.
The two tiers are set out on Capabilities and access.
Simple rules? Skip this phase. If your domain fits a single section (one coherent set of criteria, one decision), go straight to Phase 3 — Rule generation. Section discovery is for multi-section domains where decomposing the legislation correctly before authoring begins matters.
What section discovery does
Complex legislation often contains multiple distinct entitlements or criteria that operate independently. Section discovery proposes how to split source text into sections — each of which becomes its own independently testable rule ruleset.For example, UK Free School Meals eligibility has three sections:
Section A (child eligibility gate): age 4–15, attending a state-funded school in England
Section B (means-tested household): qualifying benefit or income below threshold
Section C (universal infant): automatic entitlement for Reception–Year 2, no income test
Sections A and B come from the Education Act 1996 and the Free School Meals Regulations 2014. Section C draws additionally from the Children and Families Act 2014. The Free School Meals Regulations 2014 contribute to all three sections — different regulations to each.The outcome logic is A AND (B OR C): A is a prerequisite gate, B and C are alternative routes.
{ "domain": "uk_fsm", "proposed_sections": [ { "section_id": "child_eligibility", "name": "Child eligibility gate", "description": "Age and school-type criteria that apply as a prerequisite to all FSM routes. Regulation 3 of the FSM Regulations 2014.", "source_documents": ["fsm_regulations_2014_reg3.md", "education_act_1996_s512.md"] }, { "section_id": "household_qualifying_criteria", "name": "Means-tested household criteria", "description": "Qualifying benefit receipt or income below threshold. Regulations 4 and 4A of the FSM Regulations 2014.", "source_documents": ["fsm_regulations_2014_reg4.md", "fsm_regulations_2014_reg4a.md"] }, { "section_id": "universal_infant_fsm", "name": "Universal Infant Free School Meals", "description": "Automatic entitlement for pupils in Reception, Year 1, or Year 2. No income test. Section 512ZB of the Education Act 1996 as inserted by s.105 of the Children and Families Act 2014. Regulation 5 of the FSM Regulations 2014.", "source_documents": ["children_families_act_2014_s105.md", "fsm_regulations_2014_reg5.md", "education_act_1996_s512.md"] } ], "outcome_logic_suggestion": "A AND (B OR C)"}
Notice that education_act_1996_s512.md appears in both Section A and Section C — different provisions of the same document apply to different sections.
Validate against your expected structure
If you know the sections you expect, validate immediately after discovery:
{ "all_match": false, "proposed_sections": ["child_eligibility", "household_qualifying_criteria"], "expected_sections": ["child_eligibility", "household_qualifying_criteria", "universal_infant_fsm"], "discrepancies": [ { "type": "missing_from_proposed", "section_id": "universal_infant_fsm", "note": "Expected section not found in proposed list" } ]}
Refine if sections are wrong
If discovery merged sections that should be separate, or split a single section unnecessarily:
aethis_refine_sections({ domain: "uk_fsm", feedback: "Universal Infant Free School Meals must be a separate section. It has no income test — Reception, Year 1 and Year 2 pupils qualify automatically under s.512ZB of the Education Act 1996 regardless of household circumstances. It should not be merged with the means-tested criteria."})
Feedback must reference the specific source clause or principle. Vague feedback (“split it differently”) won’t converge. Provide the section name, why it should be separate, and the clause that establishes the boundary.
aethis_create_ruleset({ name: "Child eligibility gate", section_id: "child_eligibility", domain: "uk_fsm", source_text: "..." // text of the documents for this section only})
Returns:
{ "project_id": "proj_8CzLVwyx53rTGEJv" }
Pass the same domain string on every aethis_create_ruleset call. Guidance added with aethis_add_domain_guidance applies automatically to all projects in the domain — no need to repeat cross-section principles on each ruleset individually.
Section composition
Sections compose into a rulebook at evaluation time. The outcome logic is applied across section results:
outcome_logic: "A AND (B OR C)"
Section A is a prerequisite gate. Sections B and C are alternative routes — passing either is sufficient. This mirrors the statutory structure: the Universal Infant entitlement (C) is layered on top of the means-tested route (B), both sharing the same child eligibility gate (A).See the UK Free School Meals worked example for the full multi-section structure with source documents, test cases, and published ruleset IDs.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Aethis","colors":{"primary":"#B96A2C","light":"#C67549","dark":"#934216"},"favicon":"https://mintcdn.com/aethis/WVUU0hqcSmi3YkHO/favicon.svg?fit=max\u0026auto=format\u0026n=WVUU0hqcSmi3YkHO\u0026q=85\u0026s=14e7490c211076b474314db45e0dc490","api":{"openapi":"api-reference/openapi.json"},"navbar":{"links":[{"href":"https://aethis.ai","label":"aethis.ai"},{"icon":"github","href":"https://github.com/Aethis-ai/aethis-mcp","label":"Star on GitHub"}],"primary":{"type":"button","label":"Request access","href":"https://aethis.ai/developer-access"}},"footer":{"socials":{"github":"https://github.com/Aethis-ai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aethis","hasAudioNarration":false,"actualSubdomain":"aethis","customDomains":["docs.aethis.ai"],"gitSource":{"type":"github","owner":"aethis-ai","repo":"docs","deployBranch":"main","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"feedback":{"agentFeedback":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afb6f4894bd5dbeb450724a","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"Reference","count":8},{"language":"default","tag":"Authoring (invite-only)","count":7},{"language":"default","tag":"Getting started (no key)","count":7},{"language":"default","tag":"Interfaces","count":6},{"language":"default","tag":"Recipes","count":4},{"language":"default","tag":"AI coding agents","count":3},{"language":"default","tag":"Changelog","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"authoring/section-discovery","slug":"/authoring/section-discovery","pageMetadata":{"title":"Phase 1 — Section discovery","description":"Split complex legislation into independently testable sections before authoring begins.","href":"/authoring/section-discovery"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Split complex legislation into independently testable sections before authoring begins.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authoring is invite-only private beta.`}),` Everything on this page needs an\nAethis API key with authoring scopes, plus your own model-provider key for\nthe generation steps. `,_jsx(_components.a,{href:`https://aethis.ai/developer-access`,children:`Request access`}),`,\nor start on the open evaluate tier with\n`,_jsx(_components.a,{href:`/getting-started/first-decision`,children:`your first decision`}),` — no key required.\nThe two tiers are set out on `,_jsx(_components.a,{href:`/reference/capabilities`,children:`Capabilities and access`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Authoring is invite-only private beta — `,_jsx(_components.a,{href:`https://aethis.ai/developer-access`,children:`request access`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Simple rules?`}),` Skip this phase. If your domain fits a single section (one coherent set of criteria, one decision), go straight to `,_jsx(_components.a,{href:`/authoring/rule-generation`,children:`Phase 3 — Rule generation`}),`. Section discovery is for multi-section domains where decomposing the legislation correctly before authoring begins matters.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`what-section-discovery-does`,children:`What section discovery does`}),`\n`,_jsx(_components.p,{children:`Complex legislation often contains multiple distinct entitlements or criteria that operate independently. Section discovery proposes how to split source text into sections — each of which becomes its own independently testable rule ruleset.`}),`\n`,_jsx(_components.p,{children:`For example, UK Free School Meals eligibility has three sections:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Section A`}),` (child eligibility gate): age 4–15, attending a state-funded school in England`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Section B`}),` (means-tested household): qualifying benefit or income below threshold`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Section C`}),` (universal infant): automatic entitlement for Reception–Year 2, no income test`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Sections A and B come from the Education Act 1996 and the Free School Meals Regulations 2014. Section C draws additionally from the Children and Families Act 2014. The Free School Meals Regulations 2014 contribute to all three sections — different regulations to each.`}),`\n`,_jsxs(_components.p,{children:[`The outcome logic is `,_jsx(_components.code,{children:`A AND (B OR C)`}),`: A is a prerequisite gate, B and C are alternative routes.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`run-section-discovery`,children:`Run section discovery`}),`\n`,_jsx(CodeBlock,{numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`aethis_discover_sections({`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` domain: \"uk_fsm\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` sources: [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` { name: \"education_act_1996_s512.md\", content: \"...\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` { name: \"fsm_regulations_2014_reg3.md\", content: \"...\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` { name: \"fsm_regulations_2014_reg4.md\", content: \"...\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` { name: \"fsm_regulations_2014_reg4a.md\", content: \"...\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` { name: \"fsm_regulations_2014_reg5.md\", content: \"...\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` { name: \"children_families_act_2014_s105.md\", content: \"...\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`})`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Returns:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`24`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`24`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"uk_fsm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"proposed_sections\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"section_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"child_eligibility\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Child eligibility gate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Age and school-type criteria that apply as a prerequisite to all FSM routes. Regulation 3 of the FSM Regulations 2014.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source_documents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fsm_regulations_2014_reg3.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"education_act_1996_s512.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"section_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"household_qualifying_criteria\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Means-tested household criteria\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Qualifying benefit receipt or income below threshold. Regulations 4 and 4A of the FSM Regulations 2014.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source_documents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fsm_regulations_2014_reg4.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fsm_regulations_2014_reg4a.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"section_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"universal_infant_fsm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Universal Infant Free School Meals\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Automatic entitlement for pupils in Reception, Year 1, or Year 2. No income test. Section 512ZB of the Education Act 1996 as inserted by s.105 of the Children and Families Act 2014. Regulation 5 of the FSM Regulations 2014.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source_documents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"children_families_act_2014_s105.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fsm_regulations_2014_reg5.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"education_act_1996_s512.md\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"outcome_logic_suggestion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A AND (B OR C)\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Notice that `,_jsx(_components.code,{children:`education_act_1996_s512.md`}),` appears in both Section A and Section C — different provisions of the same document apply to different sections.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`validate-against-your-expected-structure`,children:`Validate against your expected structure`}),`\n`,_jsx(_components.p,{children:`If you know the sections you expect, validate immediately after discovery:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`9`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`aethis_validate_sections({`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` domain: \"uk_fsm\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` expected_sections: [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"child_eligibility\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"household_qualifying_criteria\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"universal_infant_fsm\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`})`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Returns (all match):`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"all_match\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"proposed_sections\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"child_eligibility\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"household_qualifying_criteria\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"universal_infant_fsm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expected_sections\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"child_eligibility\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"household_qualifying_criteria\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"universal_infant_fsm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"discrepancies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Returns (mismatch):`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"all_match\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"proposed_sections\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"child_eligibility\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"household_qualifying_criteria\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expected_sections\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"child_eligibility\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"household_qualifying_criteria\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"universal_infant_fsm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"discrepancies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"missing_from_proposed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"section_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"universal_infant_fsm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"note\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Expected section not found in proposed list\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`refine-if-sections-are-wrong`,children:`Refine if sections are wrong`}),`\n`,_jsx(_components.p,{children:`If discovery merged sections that should be separate, or split a single section unnecessarily:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`aethis_refine_sections({`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` domain: \"uk_fsm\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` feedback: \"Universal Infant Free School Meals must be a separate section. It has no income test — Reception, Year 1 and Year 2 pupils qualify automatically under s.512ZB of the Education Act 1996 regardless of household circumstances. It should not be merged with the means-tested criteria.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`})`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Feedback must reference the specific source clause or principle. Vague feedback (“split it differently”) won’t converge. Provide the section name, why it should be separate, and the clause that establishes the boundary.`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`after-section-discovery`,children:`After section discovery`}),`\n`,_jsxs(_components.p,{children:[`Once sections are agreed, create one project per section and move to `,_jsx(_components.a,{href:`/authoring/field-vocabulary`,children:`Phase 2 — Field vocabulary`}),`.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`7`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`aethis_create_ruleset({`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` name: \"Child eligibility gate\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` section_id: \"child_eligibility\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` domain: \"uk_fsm\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` source_text: \"...\" // text of the documents for this section only`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`})`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Returns:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"project_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"proj_8CzLVwyx53rTGEJv\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Pass the same `,_jsx(_components.code,{children:`domain`}),` string on every `,_jsx(_components.code,{children:`aethis_create_ruleset`}),` call. Guidance added with `,_jsx(_components.code,{children:`aethis_add_domain_guidance`}),` applies automatically to all projects in the domain — no need to repeat cross-section principles on each ruleset individually.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`section-composition`,children:`Section composition`}),`\n`,_jsx(_components.p,{children:`Sections compose into a rulebook at evaluation time. The outcome logic is applied across section results:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`outcome_logic: \"A AND (B OR C)\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Section A is a prerequisite gate. Sections B and C are alternative routes — passing either is sufficient. This mirrors the statutory structure: the Universal Infant entitlement (C) is layered on top of the means-tested route (B), both sharing the same child eligibility gate (A).`}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`https://github.com/Aethis-ai/aethis-examples`,children:`UK Free School Meals worked example`}),` for the full multi-section structure with source documents, test cases, and published ruleset IDs.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Phase 1 — Section discovery","description":"Split complex legislation into independently testable sections before authoring begins.","href":"/authoring/section-discovery"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What section discovery does","slug":"what-section-discovery-does","depth":2,"children":[]},{"title":"Run section discovery","slug":"run-section-discovery","depth":2,"children":[]},{"title":"Validate against your expected structure","slug":"validate-against-your-expected-structure","depth":2,"children":[]},{"title":"Refine if sections are wrong","slug":"refine-if-sections-are-wrong","depth":2,"children":[]},{"title":"After section discovery","slug":"after-section-discovery","depth":2,"children":[]},{"title":"Section composition","slug":"section-composition","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"aethis","siteName":"Aethis","title":"Phase 1 — Section discovery - Aethis","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-26T03:15:13.431Z","originalFileLocation":"authoring/section-discovery.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Split complex legislation into independently testable sections before authoring begins.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aethis\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aethis/SGGPUd8DU2bg6KYY/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/aethis/SGGPUd8DU2bg6KYY/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aethis/SGGPUd8DU2bg6KYY/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aethis/SGGPUd8DU2bg6KYY/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aethis/SGGPUd8DU2bg6KYY/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aethis/SGGPUd8DU2bg6KYY/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aethis/SGGPUd8DU2bg6KYY/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aethis/SGGPUd8DU2bg6KYY/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aethis/SGGPUd8DU2bg6KYY/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Phase 1 — Section discovery - Aethis\">\u003cmeta data-mint-head property=\"og:description\" content=\"Split complex legislation into independently testable sections before authoring begins.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aethis\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aethis.ai/authoring/section-discovery\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aethis.mintlify.site/_mintlify/api/og/v2?division=Authoring+%28invite-only%29\u0026amp;title=Phase+1+%E2%80%94+Section+discovery\u0026amp;description=Split+complex+legislation+into+independently+testable+sections+before+authoring+begins.\u0026amp;theme=8bf0f477e473398bba2ffd21\u0026amp;signature=43d545f6f8a0277670e93ffde2faec91a5e2cecb5d470f6fedb0260c80a6a939\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Phase 1 — Section discovery - Aethis\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Split complex legislation into independently testable sections before authoring begins.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aethis.mintlify.site/_mintlify/api/og/v2?division=Authoring+%28invite-only%29\u0026amp;title=Phase+1+%E2%80%94+Section+discovery\u0026amp;description=Split+complex+legislation+into+independently+testable+sections+before+authoring+begins.\u0026amp;theme=8bf0f477e473398bba2ffd21\u0026amp;signature=43d545f6f8a0277670e93ffde2faec91a5e2cecb5d470f6fedb0260c80a6a939\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/aethis/SGGPUd8DU2bg6KYY/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aethis\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#B96A2C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aethis.ai/authoring/section-discovery\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/authoring/section-discovery.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aethis.ai/#organization\",\"name\":\"Aethis\",\"url\":\"https://docs.aethis.ai\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aethis.ai#website\",\"name\":\"Aethis\",\"url\":\"https://docs.aethis.ai\",\"publisher\":{\"@id\":\"https://docs.aethis.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aethis.ai/authoring/section-discovery#webpage\",\"url\":\"https://docs.aethis.ai/authoring/section-discovery\",\"name\":\"Phase 1 — Section discovery\",\"description\":\"Split complex legislation into independently testable sections before authoring begins.\",\"dateModified\":\"2026-07-26T03:15:13.431Z\",\"isPartOf\":{\"@id\":\"https://docs.aethis.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aethis.ai/authoring/section-discovery#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aethis.ai/authoring/section-discovery#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Authoring (invite-only)\",\"item\":\"https://docs.aethis.ai/getting-started/author-first-ruleset\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Phase 1 — Section discovery\",\"item\":\"https://docs.aethis.ai/authoring/section-discovery\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.aethis.ai/authoring/section-discovery#article\",\"headline\":\"Phase 1 — Section discovery\",\"name\":\"Phase 1 — Section discovery\",\"description\":\"Split complex legislation into independently testable sections before authoring begins.\",\"url\":\"https://docs.aethis.ai/authoring/section-discovery\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aethis.ai/authoring/section-discovery#webpage\"},\"dateModified\":\"2026-07-26T03:15:13.431Z\",\"publisher\":{\"@id\":\"https://docs.aethis.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aethis.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aethis\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Aethis\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/authoring/section-discovery.md","siteName":"Aethis","nav":{"global":null,"groups":[{"group":"Getting started (no key)","pages":[{"title":"Introduction","href":"/getting-started/introduction"},{"title":"Your first decision","href":"/getting-started/first-decision"},{"title":"Try it","href":"/getting-started/try-it"},{"title":"How Aethis works","href":"/concepts/how-it-works"},{"title":"When to use Aethis","href":"/concepts/when-to-use"},{"title":"Nomenclature","href":"/concepts/nomenclature"},{"title":"Worked examples","href":"/getting-started/examples"}]},{"group":"AI coding agents","pages":[{"title":"AI coding agents","href":"/agents/index"},{"title":"Your first 20 minutes with an AI coding agent","href":"/agents/onboarding"},{"title":"Versions, regression and pinned replay","href":"/agents/versions-and-replay"}]},{"group":"Interfaces","pages":[{"title":"Which interface?","href":"/interfaces/which-to-use"},{"title":"MCP server overview","href":"/mcp-server/overview"},{"title":"Tools reference","href":"/mcp-server/tools"},{"title":"CLI","href":"/interfaces/cli"},{"title":"Python SDK","href":"/interfaces/python-sdk"},{"title":"REST API","href":"/interfaces/rest-api"}]},{"group":"Recipes","pages":[{"title":"Evaluate a case","href":"/recipes/evaluate-a-case"},{"title":"Author a rule from legislation","href":"/recipes/author-a-rule"},{"title":"Debug a failing decide","href":"/recipes/debug-a-decide"},{"title":"LangGraph integration","href":"/recipes/langgraph-integration"}]},{"group":"Authoring (invite-only)","pages":[{"title":"Author your first ruleset","description":"Create, review, generate, test, publish and decide a small private ruleset through the Aethis authoring API.","href":"/getting-started/author-first-ruleset"},{"title":"Phase 1 — Section discovery","href":"/authoring/section-discovery"},{"title":"Phase 2 — Field vocabulary","description":"Establish and validate the input field names before writing test cases.","href":"/authoring/field-vocabulary"},{"title":"Phase 3 — Rule generation","href":"/authoring/rule-generation"},{"title":"Input invariants","href":"/authoring/input-invariants"},{"title":"Provenance and citations","href":"/authoring/provenance"},{"title":"Review checks","href":"/authoring/review-checks"}]},{"group":"Reference","pages":[{"title":"Capabilities and access","href":"/reference/capabilities"},{"title":"Deployed contract status","href":"/reference/deployed-contract"},{"title":"API Reference","href":"/api-reference/introduction"},{"title":"Authentication \u0026 API keys","href":"/reference/authentication"},{"title":"Decision envelope","href":"/concepts/decision-envelope"},{"title":"Ruleset \u0026 rulebook graphs","href":"/reference/graph"},{"title":"Errors reference","href":"/reference/errors"},{"title":"Troubleshooting","href":"/getting-started/troubleshooting"}]},{"group":"Changelog","pages":[{"title":"Changelog","href":"/changelog/index"}]}]},"basePath":"","title":"Phase 1 — Section discovery - Aethis","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":[],"chunks":[]}