{"id":"ACC-009","name":"Avoid directional text without structural anchor","domain":"accessibility","layer":"sentence","strength":"hard_constraint","human_logic":"IF instructions say above, below, left, right, or color-only location and layout can reflow, THEN name the control, section, or landmark ELSE retain stable spatial instruction.","when":{"all":[{"path":"sentence.spatial_reference","operator":"in","value":["above","below","left","right","color_only"]},{"path":"interface.layout_can_reflow","operator":"eq","value":true}]},"then":[{"action":"replace","target":"sentence.spatial_reference","with":"named_control_section_or_landmark"}],"else":[{"action":"retain","target":"current_text","reason":"No triggering condition is present."}],"unless":[],"because":"Responsive layouts and assistive presentation can change spatial relationships.","diagnostics":[],"examples":{},"source_ids":["WEB-005","WEB-007"],"laka":{"smallest_sufficient_intervention":true,"primary_axes":["scope","depth","magnitude","reversibility"]},"requires_facts":["sentence.spatial_reference","interface.layout_can_reflow"],"tests":[{"id":"TST-020","rule_id":"ACC-009","before":"Choose the green button on the right.","after":"Select Submit order.","reason":"The label survives color perception and reflow.","assertion":{"if":{"path":"output","operator":"eq","value":"Select Submit order."},"then":"pass","else":"review"}}],"sources":[{"id":"WEB-005","title":"Writing for Web Accessibility","creator":"W3C Web Accessibility Initiative","domain":"accessibility","type":"Web standard guidance","note":"Clear structure, descriptive labels, alternatives, and understandable content.","url":"https://www.w3.org/WAI/tips/writing/"},{"id":"WEB-007","title":"Web Content Accessibility Guidelines 2.2","creator":"W3C","domain":"accessibility","type":"W3C Recommendation","note":"Testable accessibility requirements for web content.","url":"https://www.w3.org/TR/WCAG22/"}],"defined_in":{"file":"17-accessibility-rules.json","title":"Accessible and Cognitively Usable Writing Rules","slug":"accessibility-rules"}}