control_desk//data consistency console
ai ready · glm-5.2
← back to rules

products_stock_nonneg

products · detector structural_range warning enabled
+ new rule
activation · the human gate (ADR-005 B1)
Enabled — this rule projects into the live detector config and runs in every detection pass.
what this rule checks

Flag when 'stock' is below 0 in a single source's data.

parameters
paramvalue
fieldstock
min0
cases this rule produced (0)

No cases in the current run used this detector. It may be a structural rule that is silent on clean data, or no break of this shape was planted.

config & provenance
rule entry (config/detection_rules.yaml)
- id: products_stock_nonneg
  detector: structural_range
  params:
    field: stock
    min: 0
  severity: warning
  protected: false
  enabled: true
  source:
    kind: manual
    citation: stock cannot be negative (structural axis, ADR-006)
    author: claude
    at: '2026-07-07'
  • citationstock cannot be negative (structural axis, ADR-006)
  • authorclaude
  • recorded2026-07-07
  • produced bymanual