{
  "jira_key": "AN-37",
  "summary": "Account Segment Picklist Enforcement",
  "approach": "Implement a custom picklist field 'Account Segment' on the Account object with values Enterprise, Mid-Market, SMB (default: Mid-Market). Add the field to all Account page layouts. Enforce that Customer accounts cannot be saved without a value in this field via a validation rule. All configuration is within the v1 allowlist metadata types.",
  "metadata_plan": [
    {
      "metadata_type": "CustomField",
      "api_name": "Account_Segment__c",
      "action": "create",
      "object": "Account",
      "notes": "Data type: Picklist. Field label: Account Segment. Picklist values: Enterprise, Mid-Market, SMB. Default value: Mid-Market. Required-at-definition: false (enforced via validation rule)."
    },
    {
      "metadata_type": "ValidationRule",
      "api_name": "Account_Segment_Required_For_Customer",
      "action": "create",
      "object": "Account",
      "notes": "Purpose: Prevent saving Customer accounts with blank Account Segment. Formula: AND(ISPICKVAL(Type, \"Customer\"), ISBLANK(TEXT(Account_Segment__c))). Error message: 'Account Segment is required for Customer accounts.' Error location: Account_Segment__c field."
    }
  ],
  "dependencies": [
    "Account object must have Type field with value 'Customer' for validation rule to function as intended."
  ],
  "risks_or_escalations": [
    "Page Layout configuration is out of v1 allowlist and must be escalated."
  ],
  "out_of_allowlist": true,
  "confidence": 1.0,
  "notes": "All required implementation details are present. Page layout changes are not in the v1 allowlist and require escalation."
}