*Continent · 2 territory* ## Summary A rule may condition on a fact that is neither required nor defaulted when its does selector is closed and every action or tool it resolves to lists the fact in requires, and the changelog records the same rule with the same named cases. ## Explanation - In SPEC.md, a rule's when is optional conditions, AND-ed, and absent or empty means always, and each fact it names must be required or have a default. - A rule's `when` is optional conditions (§ 3.2), AND-ed, and absent or empty means always; each fact named MUST be required or have a default. - In SPEC.md, a rule's history is optional history conditions, AND-ed with when, and history is needed only when a rule in scope has history conditions. - A rule's `history` is optional history conditions (§ 3.4), AND-ed with `when`. - `history` is needed only when a rule in scope has history conditions (§ 6 step 3). - The specification also says a rule may condition on a fact that is neither required nor defaulted when its does selector is closed and every action or tool it resolves to lists the fact in requires. - A rule may condition on a fact that is neither required nor defaulted when its does selector is closed and every action it resolves to lists the fact in requir… - A rule may condition on a fact that is required, has a default, or — when the rule's does selector is closed (no *, so it never matches an undeclared action/to… - The changelog records the same rule, with the cases p4-rule-on-action-required-fact-decides, p4-rule-on-action-required-fact-missing-refuses and p4-rule-on-action-required-fact-open-does-rejected, where an open does is still refused. - The cases are p4-rule-on-action-required-fact-decides, p4-rule-on-action-required-fact-missing-refuses and p4-rule-on-action-required-fact-open-does-rejected,… - A rule may condition on a fact that is neither required nor defaulted when its `does` selector is closed and every action or tool it resolves to lists the fact… - In robot-domain-rules-CHANGELOG.md, a rule in scope that needs history and does not get it is refused as a missing required fact. - A rule in scope that needs history and does not get it is required_facts. - The records do not say how the closed-selector exception stands against the requirement that every fact named in when be required or have a default. - A rule may condition on a fact that is neither required nor defaulted when its does selector is closed and every action it resolves to lists the fact in requir… - A rule may condition on a fact that is required, has a default, or — when the rule's does selector is closed (no *, so it never matches an undeclared action/to… - A rule's `when` is optional conditions (§ 3.2), AND-ed, and absent or empty means always; each fact named MUST be required or have a default. ## Threads - How a rule's when conditions work: optional, AND-ed, empty means always, and each fact named must be required or have a default. - A rule's `when` is optional conditions (§ 3.2), AND-ed, and absent or empty means always; each fact named MUST be required or have a default. - History conditions: optional, AND-ed with when, needed only when a rule in scope has them, and refused as a missing required fact when absent. - `history` is needed only when a rule in scope has history conditions (§ 6 step 3). - A rule's `history` is optional history conditions (§ 3.4), AND-ed with `when`. - A rule in scope that needs history and does not get it is required_facts. ## Consultant **Where it shows up** — The closed-selector exception keeps coming up: SPEC.md and the changelog both say a rule may condition on a fact that is neither required nor defaulted when its does selector is closed and every action or tool it resolves to lists the fact in requires. **A question to sit with** — When a rule's does selector is closed, what makes a fact safe to condition on even though it is neither required nor defaulted? **A way forward** — Keep the three named cases — p4-rule-on-action-required-fact-decides, p4-rule-on-action-required-fact-missing-refuses and p4-rule-on-action-required-fact-open-does-rejected — beside the closed-selector sentence in SPEC.md so the exception and its refusals read together. ## Ideas - A rule may condition on a fact that is neither required nor defaulted when its does selector is closed and every action or tool it resolves to lists the fact in requires. - An open does selector is still refused even when the rule conditions on a fact that is neither required nor defaulted. - A rule that needs history and does not get it should be refused by naming the missing fact rather than evaluated as if history were present. ## Territories - [[Bevia/World/Territories/Closed does selector and required facts|Closed does selector and required facts]] - [[Bevia/World/Territories/Optional history conditions and the missing-history refusal|Optional history conditions and the missing-history refusal]]