{
  "schema_version": "sf-assessment-rules-v1",
  "version": "1",
  "candidate_categories": [
    "access_alignment",
    "join_grain",
    "privacy_requirements",
    "selective_scan",
    "warehouse_queue",
    "warehouse_size",
    "warehouse_suspend"
  ],
  "rules": [
    {
      "rule_id": "W1_WAREHOUSE::INSUFFICIENT_EVIDENCE",
      "version": "1",
      "query_id": "W1_WAREHOUSE",
      "assessment_code": "INSUFFICIENT_EVIDENCE",
      "classification": "insufficient_evidence",
      "candidate_categories": [],
      "control_id": "WAREHOUSE-01",
      "control_ids": [
        "WAREHOUSE-01"
      ],
      "assessment_question": "Does the observed workload justify reviewing warehouse size, suspension or queuing?",
      "observation": "Insufficient evidence. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Owner-approved response-time and workload targets",
        "Representative volume, concurrency and cold/warm cache context"
      ],
      "alternatives": [
        "Retain configuration where schedule and service requirements justify it",
        "Evaluate workload separation before capacity changes"
      ],
      "future_acceptance": "Compare correctness, owner-agreed latency and recurring consumption under comparable volume/cache/concurrency; no target is invented.",
      "proposed_owner_role": "Platform and workload owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "WAREHOUSE"
      ]
    },
    {
      "rule_id": "W1_WAREHOUSE::LARGE_LOW_DEMAND_AND_SUSPEND_REVIEW",
      "version": "1",
      "query_id": "W1_WAREHOUSE",
      "assessment_code": "LARGE_LOW_DEMAND_AND_SUSPEND_REVIEW",
      "classification": "candidate",
      "candidate_categories": [
        "warehouse_size",
        "warehouse_suspend"
      ],
      "control_id": "WAREHOUSE-01",
      "control_ids": [
        "WAREHOUSE-01",
        "WAREHOUSE-04"
      ],
      "assessment_question": "Does the observed workload justify reviewing warehouse size, suspension or queuing?",
      "observation": "Large low demand and suspend review. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Review low-demand size against business schedules and representative useful work; propose a separately authorized comparison before any resize.",
        "Review suspension against workload schedules, resume latency and dependencies; agree any proposed setting with the owner."
      ],
      "prerequisites": [
        "Owner-approved response-time and workload targets",
        "Representative volume, concurrency and cold/warm cache context"
      ],
      "alternatives": [
        "Retain configuration where schedule and service requirements justify it",
        "Evaluate workload separation before capacity changes"
      ],
      "future_acceptance": "Compare correctness, owner-agreed latency and recurring consumption under comparable volume/cache/concurrency; no target is invented.",
      "proposed_owner_role": "Platform and workload owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "WAREHOUSE"
      ]
    },
    {
      "rule_id": "W1_WAREHOUSE::LARGE_LOW_DEMAND_REVIEW",
      "version": "1",
      "query_id": "W1_WAREHOUSE",
      "assessment_code": "LARGE_LOW_DEMAND_REVIEW",
      "classification": "candidate",
      "candidate_categories": [
        "warehouse_size"
      ],
      "control_id": "WAREHOUSE-01",
      "control_ids": [
        "WAREHOUSE-01"
      ],
      "assessment_question": "Does the observed workload justify reviewing warehouse size, suspension or queuing?",
      "observation": "Large low demand review. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Review low-demand size against business schedules and representative useful work; propose a separately authorized comparison before any resize."
      ],
      "prerequisites": [
        "Owner-approved response-time and workload targets",
        "Representative volume, concurrency and cold/warm cache context"
      ],
      "alternatives": [
        "Retain configuration where schedule and service requirements justify it",
        "Evaluate workload separation before capacity changes"
      ],
      "future_acceptance": "Compare correctness, owner-agreed latency and recurring consumption under comparable volume/cache/concurrency; no target is invented.",
      "proposed_owner_role": "Platform and workload owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "WAREHOUSE"
      ]
    },
    {
      "rule_id": "W1_WAREHOUSE::NO_OBSERVED_CANDIDATE",
      "version": "1",
      "query_id": "W1_WAREHOUSE",
      "assessment_code": "NO_OBSERVED_CANDIDATE",
      "classification": "strength",
      "candidate_categories": [],
      "control_id": "WAREHOUSE-01",
      "control_ids": [
        "WAREHOUSE-01"
      ],
      "assessment_question": "Does the observed workload justify reviewing warehouse size, suspension or queuing?",
      "observation": "No observed candidate. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Owner-approved response-time and workload targets",
        "Representative volume, concurrency and cold/warm cache context"
      ],
      "alternatives": [
        "Retain configuration where schedule and service requirements justify it",
        "Evaluate workload separation before capacity changes"
      ],
      "future_acceptance": "Compare correctness, owner-agreed latency and recurring consumption under comparable volume/cache/concurrency; no target is invented.",
      "proposed_owner_role": "Platform and workload owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "WAREHOUSE"
      ]
    },
    {
      "rule_id": "W1_WAREHOUSE::QUEUING_AND_MIXED_WORKLOAD_REVIEW",
      "version": "1",
      "query_id": "W1_WAREHOUSE",
      "assessment_code": "QUEUING_AND_MIXED_WORKLOAD_REVIEW",
      "classification": "candidate",
      "candidate_categories": [
        "warehouse_queue"
      ],
      "control_id": "WAREHOUSE-01",
      "control_ids": [
        "WAREHOUSE-01",
        "WAREHOUSE-02",
        "WAREHOUSE-03"
      ],
      "assessment_question": "Does the observed workload justify reviewing warehouse size, suspension or queuing?",
      "observation": "Queuing and mixed workload review. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Review arrival patterns, mixed workload isolation, provisioning and blocking before recommending capacity."
      ],
      "prerequisites": [
        "Owner-approved response-time and workload targets",
        "Representative volume, concurrency and cold/warm cache context"
      ],
      "alternatives": [
        "Retain configuration where schedule and service requirements justify it",
        "Evaluate workload separation before capacity changes"
      ],
      "future_acceptance": "Compare correctness, owner-agreed latency and recurring consumption under comparable volume/cache/concurrency; no target is invented.",
      "proposed_owner_role": "Platform and workload owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "WAREHOUSE"
      ]
    },
    {
      "rule_id": "W1_WAREHOUSE::QUEUING_REVIEW",
      "version": "1",
      "query_id": "W1_WAREHOUSE",
      "assessment_code": "QUEUING_REVIEW",
      "classification": "candidate",
      "candidate_categories": [
        "warehouse_queue"
      ],
      "control_id": "WAREHOUSE-01",
      "control_ids": [
        "WAREHOUSE-01",
        "WAREHOUSE-02",
        "WAREHOUSE-03"
      ],
      "assessment_question": "Does the observed workload justify reviewing warehouse size, suspension or queuing?",
      "observation": "Queuing review. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Review arrival patterns, mixed workload isolation, provisioning and blocking before recommending capacity."
      ],
      "prerequisites": [
        "Owner-approved response-time and workload targets",
        "Representative volume, concurrency and cold/warm cache context"
      ],
      "alternatives": [
        "Retain configuration where schedule and service requirements justify it",
        "Evaluate workload separation before capacity changes"
      ],
      "future_acceptance": "Compare correctness, owner-agreed latency and recurring consumption under comparable volume/cache/concurrency; no target is invented.",
      "proposed_owner_role": "Platform and workload owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "WAREHOUSE"
      ]
    },
    {
      "rule_id": "W1_WAREHOUSE::SUSPEND_CONFIGURATION_REVIEW",
      "version": "1",
      "query_id": "W1_WAREHOUSE",
      "assessment_code": "SUSPEND_CONFIGURATION_REVIEW",
      "classification": "candidate",
      "candidate_categories": [
        "warehouse_suspend"
      ],
      "control_id": "WAREHOUSE-01",
      "control_ids": [
        "WAREHOUSE-01",
        "WAREHOUSE-04"
      ],
      "assessment_question": "Does the observed workload justify reviewing warehouse size, suspension or queuing?",
      "observation": "Suspend configuration review. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Review suspension against workload schedules, resume latency and dependencies; agree any proposed setting with the owner."
      ],
      "prerequisites": [
        "Owner-approved response-time and workload targets",
        "Representative volume, concurrency and cold/warm cache context"
      ],
      "alternatives": [
        "Retain configuration where schedule and service requirements justify it",
        "Evaluate workload separation before capacity changes"
      ],
      "future_acceptance": "Compare correctness, owner-agreed latency and recurring consumption under comparable volume/cache/concurrency; no target is invented.",
      "proposed_owner_role": "Platform and workload owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "WAREHOUSE"
      ]
    },
    {
      "rule_id": "W1_RBAC::INSUFFICIENT_EVIDENCE",
      "version": "1",
      "query_id": "W1_RBAC",
      "assessment_code": "INSUFFICIENT_EVIDENCE",
      "classification": "insufficient_evidence",
      "candidate_categories": [],
      "control_id": "RBAC-02",
      "control_ids": [
        "RBAC-02"
      ],
      "assessment_question": "Do bounded inherited grants match approved required and forbidden access?",
      "observation": "Insufficient evidence. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Owner-approved personas, duties and service dependencies",
        "Review omitted database roles, future grants, shares, secondary roles and session behavior"
      ],
      "alternatives": [
        "Retain required service paths",
        "Use narrower job-aligned roles only after dependency review"
      ],
      "future_acceptance": "Independently validate approved persona access and retained service operation in a separately authorized test.",
      "proposed_owner_role": "Security and platform owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "RBAC-BEST"
      ]
    },
    {
      "rule_id": "W1_RBAC::NO_OBSERVED_UNEXPECTED_PATH",
      "version": "1",
      "query_id": "W1_RBAC",
      "assessment_code": "NO_OBSERVED_UNEXPECTED_PATH",
      "classification": "strength",
      "candidate_categories": [],
      "control_id": "RBAC-02",
      "control_ids": [
        "RBAC-02"
      ],
      "assessment_question": "Do bounded inherited grants match approved required and forbidden access?",
      "observation": "No observed unexpected path. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Owner-approved personas, duties and service dependencies",
        "Review omitted database roles, future grants, shares, secondary roles and session behavior"
      ],
      "alternatives": [
        "Retain required service paths",
        "Use narrower job-aligned roles only after dependency review"
      ],
      "future_acceptance": "Independently validate approved persona access and retained service operation in a separately authorized test.",
      "proposed_owner_role": "Security and platform owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "RBAC-BEST"
      ]
    },
    {
      "rule_id": "W1_RBAC::OBJECT_GRANT_WITHOUT_USAGE",
      "version": "1",
      "query_id": "W1_RBAC",
      "assessment_code": "OBJECT_GRANT_WITHOUT_USAGE",
      "classification": "contextual",
      "candidate_categories": [],
      "control_id": "RBAC-02",
      "control_ids": [
        "RBAC-02"
      ],
      "assessment_question": "Do bounded inherited grants match approved required and forbidden access?",
      "observation": "Object grant without usage. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Owner-approved personas, duties and service dependencies",
        "Review omitted database roles, future grants, shares, secondary roles and session behavior"
      ],
      "alternatives": [
        "Retain required service paths",
        "Use narrower job-aligned roles only after dependency review"
      ],
      "future_acceptance": "Independently validate approved persona access and retained service operation in a separately authorized test.",
      "proposed_owner_role": "Security and platform owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "RBAC-BEST"
      ]
    },
    {
      "rule_id": "W1_RBAC::REQUIRED_PATH_GAP_REVIEW",
      "version": "1",
      "query_id": "W1_RBAC",
      "assessment_code": "REQUIRED_PATH_GAP_REVIEW",
      "classification": "candidate",
      "candidate_categories": [
        "access_alignment"
      ],
      "control_id": "RBAC-02",
      "control_ids": [
        "RBAC-02"
      ],
      "assessment_question": "Do bounded inherited grants match approved required and forbidden access?",
      "observation": "Required path gap review. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Review approved access expectations and dependencies with security and service owners; propose a scoped design change only after validation. No automatic grant removal."
      ],
      "prerequisites": [
        "Owner-approved personas, duties and service dependencies",
        "Review omitted database roles, future grants, shares, secondary roles and session behavior"
      ],
      "alternatives": [
        "Retain required service paths",
        "Use narrower job-aligned roles only after dependency review"
      ],
      "future_acceptance": "Independently validate approved persona access and retained service operation in a separately authorized test.",
      "proposed_owner_role": "Security and platform owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "RBAC-BEST"
      ]
    },
    {
      "rule_id": "W1_RBAC::REQUIRED_SERVICE_OR_BUSINESS_PATH_PRESERVED",
      "version": "1",
      "query_id": "W1_RBAC",
      "assessment_code": "REQUIRED_SERVICE_OR_BUSINESS_PATH_PRESERVED",
      "classification": "strength",
      "candidate_categories": [],
      "control_id": "RBAC-02",
      "control_ids": [
        "RBAC-02"
      ],
      "assessment_question": "Do bounded inherited grants match approved required and forbidden access?",
      "observation": "Required service or business path preserved. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Owner-approved personas, duties and service dependencies",
        "Review omitted database roles, future grants, shares, secondary roles and session behavior"
      ],
      "alternatives": [
        "Retain required service paths",
        "Use narrower job-aligned roles only after dependency review"
      ],
      "future_acceptance": "Independently validate approved persona access and retained service operation in a separately authorized test.",
      "proposed_owner_role": "Security and platform owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "RBAC-BEST"
      ]
    },
    {
      "rule_id": "W1_RBAC::UNEXPECTED_POTENTIAL_ACCESS_REVIEW",
      "version": "1",
      "query_id": "W1_RBAC",
      "assessment_code": "UNEXPECTED_POTENTIAL_ACCESS_REVIEW",
      "classification": "candidate",
      "candidate_categories": [
        "access_alignment"
      ],
      "control_id": "RBAC-02",
      "control_ids": [
        "RBAC-02"
      ],
      "assessment_question": "Do bounded inherited grants match approved required and forbidden access?",
      "observation": "Unexpected potential access review. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Review approved access expectations and dependencies with security and service owners; propose a scoped design change only after validation. No automatic grant removal."
      ],
      "prerequisites": [
        "Owner-approved personas, duties and service dependencies",
        "Review omitted database roles, future grants, shares, secondary roles and session behavior"
      ],
      "alternatives": [
        "Retain required service paths",
        "Use narrower job-aligned roles only after dependency review"
      ],
      "future_acceptance": "Independently validate approved persona access and retained service operation in a separately authorized test.",
      "proposed_owner_role": "Security and platform owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "RBAC-BEST"
      ]
    },
    {
      "rule_id": "W1_PRIVACY::APPROVED_ALTERNATIVE_OR_EXCEPTION",
      "version": "1",
      "query_id": "W1_PRIVACY",
      "assessment_code": "APPROVED_ALTERNATIVE_OR_EXCEPTION",
      "classification": "contextual",
      "candidate_categories": [],
      "control_id": "PRIVACY-02",
      "control_ids": [
        "PRIVACY-02"
      ],
      "assessment_question": "Does approved sensitive-population policy configuration match requirements and downstream-copy context?",
      "observation": "Approved alternative or exception. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Privacy-owner-approved population, purposes, requirements and exceptions",
        "Authorized persona effectiveness evidence and downstream-copy inventory"
      ],
      "alternatives": [
        "Owner-approved alternative controls or time-bounded exceptions",
        "Review feature availability; do not mandate a paid feature"
      ],
      "future_acceptance": "Privacy owner agrees authorized persona and copy checks; policy presence alone cannot prove effectiveness or compliance.",
      "proposed_owner_role": "Privacy and data governance owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "COLUMN-SEC"
      ]
    },
    {
      "rule_id": "W1_PRIVACY::DOWNSTREAM_COPY_REVIEW_CANDIDATE",
      "version": "1",
      "query_id": "W1_PRIVACY",
      "assessment_code": "DOWNSTREAM_COPY_REVIEW_CANDIDATE",
      "classification": "candidate",
      "candidate_categories": [
        "privacy_requirements"
      ],
      "control_id": "PRIVACY-04",
      "control_ids": [
        "PRIVACY-04"
      ],
      "assessment_question": "Does approved sensitive-population policy configuration match requirements and downstream-copy context?",
      "observation": "Downstream copy review candidate. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Review required policy/copy protection with privacy owners, approved exceptions and alternatives; propose separately authorized remediation only after validation."
      ],
      "prerequisites": [
        "Privacy-owner-approved population, purposes, requirements and exceptions",
        "Authorized persona effectiveness evidence and downstream-copy inventory"
      ],
      "alternatives": [
        "Owner-approved alternative controls or time-bounded exceptions",
        "Review feature availability; do not mandate a paid feature"
      ],
      "future_acceptance": "Privacy owner agrees authorized persona and copy checks; policy presence alone cannot prove effectiveness or compliance.",
      "proposed_owner_role": "Privacy and data governance owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "COLUMN-SEC"
      ]
    },
    {
      "rule_id": "W1_PRIVACY::INSUFFICIENT_EVIDENCE",
      "version": "1",
      "query_id": "W1_PRIVACY",
      "assessment_code": "INSUFFICIENT_EVIDENCE",
      "classification": "insufficient_evidence",
      "candidate_categories": [],
      "control_id": "PRIVACY-02",
      "control_ids": [
        "PRIVACY-02"
      ],
      "assessment_question": "Does approved sensitive-population policy configuration match requirements and downstream-copy context?",
      "observation": "Insufficient evidence. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Privacy-owner-approved population, purposes, requirements and exceptions",
        "Authorized persona effectiveness evidence and downstream-copy inventory"
      ],
      "alternatives": [
        "Owner-approved alternative controls or time-bounded exceptions",
        "Review feature availability; do not mandate a paid feature"
      ],
      "future_acceptance": "Privacy owner agrees authorized persona and copy checks; policy presence alone cannot prove effectiveness or compliance.",
      "proposed_owner_role": "Privacy and data governance owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "COLUMN-SEC"
      ]
    },
    {
      "rule_id": "W1_PRIVACY::MISSING_REQUIRED_PROTECTION_CANDIDATE",
      "version": "1",
      "query_id": "W1_PRIVACY",
      "assessment_code": "MISSING_REQUIRED_PROTECTION_CANDIDATE",
      "classification": "candidate",
      "candidate_categories": [
        "privacy_requirements"
      ],
      "control_id": "PRIVACY-02",
      "control_ids": [
        "PRIVACY-02",
        "PRIVACY-03"
      ],
      "assessment_question": "Does approved sensitive-population policy configuration match requirements and downstream-copy context?",
      "observation": "Missing required protection candidate. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Review required policy/copy protection with privacy owners, approved exceptions and alternatives; propose separately authorized remediation only after validation."
      ],
      "prerequisites": [
        "Privacy-owner-approved population, purposes, requirements and exceptions",
        "Authorized persona effectiveness evidence and downstream-copy inventory"
      ],
      "alternatives": [
        "Owner-approved alternative controls or time-bounded exceptions",
        "Review feature availability; do not mandate a paid feature"
      ],
      "future_acceptance": "Privacy owner agrees authorized persona and copy checks; policy presence alone cannot prove effectiveness or compliance.",
      "proposed_owner_role": "Privacy and data governance owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "COLUMN-SEC"
      ]
    },
    {
      "rule_id": "W1_PRIVACY::PROTECTION_CONFIGURED_NOT_EFFECTIVENESS_PROVEN",
      "version": "1",
      "query_id": "W1_PRIVACY",
      "assessment_code": "PROTECTION_CONFIGURED_NOT_EFFECTIVENESS_PROVEN",
      "classification": "configured",
      "candidate_categories": [],
      "control_id": "PRIVACY-02",
      "control_ids": [
        "PRIVACY-02",
        "PRIVACY-03"
      ],
      "assessment_question": "Does approved sensitive-population policy configuration match requirements and downstream-copy context?",
      "observation": "Protection configured not effectiveness proven. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Privacy-owner-approved population, purposes, requirements and exceptions",
        "Authorized persona effectiveness evidence and downstream-copy inventory"
      ],
      "alternatives": [
        "Owner-approved alternative controls or time-bounded exceptions",
        "Review feature availability; do not mandate a paid feature"
      ],
      "future_acceptance": "Privacy owner agrees authorized persona and copy checks; policy presence alone cannot prove effectiveness or compliance.",
      "proposed_owner_role": "Privacy and data governance owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "COLUMN-SEC"
      ]
    },
    {
      "rule_id": "W1_SQL::INSUFFICIENT_EVIDENCE",
      "version": "1",
      "query_id": "W1_SQL",
      "assessment_code": "INSUFFICIENT_EVIDENCE",
      "classification": "insufficient_evidence",
      "candidate_categories": [],
      "control_id": "SQL-01",
      "control_ids": [
        "SQL-01"
      ],
      "assessment_question": "Do representative selective scans and join operators warrant design review against approved purpose and grain?",
      "observation": "Insufficient evidence. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Owner-approved query purpose, grain and representative workload",
        "Comparable profile, cache, volume and correctness evidence"
      ],
      "alternatives": [
        "Retain justified full aggregations and valid many-to-many joins",
        "Compare query design and capacity explanations before sizing"
      ],
      "future_acceptance": "Reconcile result correctness and owner-agreed selective-scan/join/latency measures under comparable volume and cache conditions.",
      "proposed_owner_role": "Analytics engineering owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "QUERY-TIME"
      ]
    },
    {
      "rule_id": "W1_SQL::JOIN_GRAIN_REVIEW_CANDIDATE",
      "version": "1",
      "query_id": "W1_SQL",
      "assessment_code": "JOIN_GRAIN_REVIEW_CANDIDATE",
      "classification": "candidate",
      "candidate_categories": [
        "join_grain"
      ],
      "control_id": "SQL-01",
      "control_ids": [
        "SQL-01",
        "SQL-03"
      ],
      "assessment_question": "Do representative selective scans and join operators warrant design review against approved purpose and grain?",
      "observation": "Join grain review candidate. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Review join keys, expected grain and aggregate reconciliation; validate legitimate multiplicity before recommending a rewrite."
      ],
      "prerequisites": [
        "Owner-approved query purpose, grain and representative workload",
        "Comparable profile, cache, volume and correctness evidence"
      ],
      "alternatives": [
        "Retain justified full aggregations and valid many-to-many joins",
        "Compare query design and capacity explanations before sizing"
      ],
      "future_acceptance": "Reconcile result correctness and owner-agreed selective-scan/join/latency measures under comparable volume and cache conditions.",
      "proposed_owner_role": "Analytics engineering owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "QUERY-TIME"
      ]
    },
    {
      "rule_id": "W1_SQL::NO_OBSERVED_CANDIDATE",
      "version": "1",
      "query_id": "W1_SQL",
      "assessment_code": "NO_OBSERVED_CANDIDATE",
      "classification": "strength",
      "candidate_categories": [],
      "control_id": "SQL-01",
      "control_ids": [
        "SQL-01"
      ],
      "assessment_question": "Do representative selective scans and join operators warrant design review against approved purpose and grain?",
      "observation": "No observed candidate. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Owner-approved query purpose, grain and representative workload",
        "Comparable profile, cache, volume and correctness evidence"
      ],
      "alternatives": [
        "Retain justified full aggregations and valid many-to-many joins",
        "Compare query design and capacity explanations before sizing"
      ],
      "future_acceptance": "Reconcile result correctness and owner-agreed selective-scan/join/latency measures under comparable volume and cache conditions.",
      "proposed_owner_role": "Analytics engineering owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "QUERY-TIME"
      ]
    },
    {
      "rule_id": "W1_SQL::SELECTIVE_SCAN_AND_JOIN_GRAIN_REVIEW",
      "version": "1",
      "query_id": "W1_SQL",
      "assessment_code": "SELECTIVE_SCAN_AND_JOIN_GRAIN_REVIEW",
      "classification": "candidate",
      "candidate_categories": [
        "selective_scan",
        "join_grain"
      ],
      "control_id": "SQL-01",
      "control_ids": [
        "SQL-01",
        "SQL-03"
      ],
      "assessment_question": "Do representative selective scans and join operators warrant design review against approved purpose and grain?",
      "observation": "Selective scan and join grain review. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Inspect selective predicates and pruning in approved code/profile review; compare correctness and representative work before recommending a rewrite.",
        "Review join keys, expected grain and aggregate reconciliation; validate legitimate multiplicity before recommending a rewrite."
      ],
      "prerequisites": [
        "Owner-approved query purpose, grain and representative workload",
        "Comparable profile, cache, volume and correctness evidence"
      ],
      "alternatives": [
        "Retain justified full aggregations and valid many-to-many joins",
        "Compare query design and capacity explanations before sizing"
      ],
      "future_acceptance": "Reconcile result correctness and owner-agreed selective-scan/join/latency measures under comparable volume and cache conditions.",
      "proposed_owner_role": "Analytics engineering owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "QUERY-TIME"
      ]
    },
    {
      "rule_id": "W1_SQL::SELECTIVE_SCAN_REVIEW_CANDIDATE",
      "version": "1",
      "query_id": "W1_SQL",
      "assessment_code": "SELECTIVE_SCAN_REVIEW_CANDIDATE",
      "classification": "candidate",
      "candidate_categories": [
        "selective_scan"
      ],
      "control_id": "SQL-01",
      "control_ids": [
        "SQL-01"
      ],
      "assessment_question": "Do representative selective scans and join operators warrant design review against approved purpose and grain?",
      "observation": "Selective scan review candidate. This is a bounded metadata observation.",
      "untested_hypothesis": "Business impact and cause remain unverified; owner review may confirm or reject this candidate.",
      "proposed_remediation": [
        "Inspect selective predicates and pruning in approved code/profile review; compare correctness and representative work before recommending a rewrite."
      ],
      "prerequisites": [
        "Owner-approved query purpose, grain and representative workload",
        "Comparable profile, cache, volume and correctness evidence"
      ],
      "alternatives": [
        "Retain justified full aggregations and valid many-to-many joins",
        "Compare query design and capacity explanations before sizing"
      ],
      "future_acceptance": "Reconcile result correctness and owner-agreed selective-scan/join/latency measures under comparable volume and cache conditions.",
      "proposed_owner_role": "Analytics engineering owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "QUERY-TIME"
      ]
    },
    {
      "rule_id": "W1_SQL::SPILL_CONTEXT_REVIEW_ONLY",
      "version": "1",
      "query_id": "W1_SQL",
      "assessment_code": "SPILL_CONTEXT_REVIEW_ONLY",
      "classification": "contextual",
      "candidate_categories": [],
      "control_id": "SQL-04",
      "control_ids": [
        "SQL-04"
      ],
      "assessment_question": "Do representative selective scans and join operators warrant design review against approved purpose and grain?",
      "observation": "Spill context review only. This is a bounded metadata observation.",
      "untested_hypothesis": "No effective protection, complete estate health or causal claim follows from this bounded observation.",
      "proposed_remediation": [],
      "prerequisites": [
        "Owner-approved query purpose, grain and representative workload",
        "Comparable profile, cache, volume and correctness evidence"
      ],
      "alternatives": [
        "Retain justified full aggregations and valid many-to-many joins",
        "Compare query design and capacity explanations before sizing"
      ],
      "future_acceptance": "Reconcile result correctness and owner-agreed selective-scan/join/latency measures under comparable volume and cache conditions.",
      "proposed_owner_role": "Analytics engineering owner",
      "severity": "unassigned_pending_owner_context",
      "source_ids": [
        "QUERY-TIME"
      ]
    }
  ]
}
