# Advanced Templates — Multi-Condition, Hierarchy, Unauthorable Each template is a verified shape from a passing test fixture. Copy, then change names/values. --- ## Multi-Condition with Custom Conjunction (AND/OR mix) Source: `conjunctionExpressionSteelthread` ```xml UNLESS CONTAINS_ANY TAG UNLESS CONTAINS_NONE TAG (AND 1 2) ``` > Note: `` blocks are **not UI-editable** — silently dropped on first save. Prefer WHEN + negated operator for UI-compatible policies. --- ## Hierarchy Traversal Source: `conditionWithHierarchy` ```xml WHEN HIERARCHICALLY_BELOW RECORDFIELD testDMO__dlm:name__c testHierarchyRLS HIERARCHY ``` > Not UI-editable (`HIERARCHICALLY_BELOW` and `valueReferenceType=HIERARCHY` are not in the UI dropdowns). --- ## IDENTIFIED_RECORD — Not Authorable via MDAPI `IDENTIFIED_RECORD` policies cannot be authored as XML. The required `RuleContextPath.SESSION_CONSUMER_ID` is not in `RuleContextPathType`. To author one: write a runtime `RuleProvider` using `AgenticPolicyRuleProviderService.java:130-260` as the canonical builder. **Do not** synthesize a placeholder XML using `SESSION_CONSUMER_ID` — the value is not in `RuleContextPathType` and the deploy will fail.