{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/metagraph-sh/json-schema/metagraph-sh-subnet-miner-fairness-artifact-schema.json",
  "title": "SubnetMinerFairnessArtifact",
  "description": "Whether a subnet's registered miners actually earn, measured over a 7d/30d/90d window rather than from a snapshot. Reports the daily zero-emission rate, how many days each miner UID earned on (persistent-zero and occasionally-zero are different facts a snapshot collapses), and emission concentration across controlling entities as the headline lens with the per-UID lens beside it. DESCRIPTIVE ONLY — there is no fairness score and no grade: a high Gini on a subnet whose task genuinely has one best answer is not misconduct, and that context is not in this data. A subnet with no daily rollup resolves to a schema-stable empty series (days_covered 0), never null. Mirrors GET /api/v1/subnets/{netuid}/miner-fairness.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/metagraph-sh-openapi.json#/components/schemas/SubnetMinerFairnessArtifact",
  "additionalProperties": false,
  "properties": {
    "burn_uid": {
      "anyOf": [
        {
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "The UID excluded from every figure above as the subnet's BURN SINK (#11094): the chain routes `SubtensorModule.MinerBurned` of miner incentive to the `SubtensorModule.SubnetOwnerHotkey` UID, so it is not a miner and counting it would inflate each distribution by 1/(1-burn). Null when the subnet burns nothing -- no row was excluded."
    },
    "concentration": {
      "additionalProperties": false,
      "properties": {
        "entity": {
          "$ref": "#/$defs/ConcentrationMetrics",
          "description": "THE HEADLINE LENS: emission concentration across controlling entities (coldkeys), with each entity's UIDs summed. A subnet with three operators behind 256 UIDs is not diverse, and the per-UID lens alone hides exactly that. The distribution is each entity's miner emission summed across the window's `days_covered` days, where each day contributes that day's captured PER-TEMPO alpha rate (the `emission_tao` convention) -- so `total` is a within-subnet ranking mass, not a window payout total, and never TAO."
        },
        "uid": {
          "$ref": "#/$defs/ConcentrationMetrics",
          "description": "The same measures per UID, published beside the entity lens rather than instead of it. Where the two diverge, several UIDs share an operator. Same distribution and unit as the entity lens: window-summed daily per-tempo alpha samples."
        }
      },
      "type": "object"
    },
    "days_covered": {
      "description": "How many days the series actually covers. Published beside every distribution figure: a distribution over 3 days and one over 31 are not the same claim, and `neuron_daily` is only ~27-33 days deep, so a 90d window is answered with the depth found rather than refused.",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "entity_count": {
      "description": "Distinct controlling addresses behind those UIDs, keyed on the `coldkey` field. A UID with no owner recorded counts as its own entity, so this never under-counts unknown owners — merging them would make a subnet look more concentrated than it is.",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "field_sources": {
      "additionalProperties": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "enum": [
              "measured",
              "reconstructed"
            ],
            "type": "string"
          },
          "read_at": {
            "enum": [
              "capture",
              "chain_state.block"
            ],
            "type": "string"
          },
          "storage": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "kind",
          "storage"
        ],
        "type": "object"
      },
      "description": "Per-field { kind, storage } provenance map: every value is labelled measured (with the pallet-qualified storage item it was read from) or reconstructed (our arithmetic over measurements, storage null). ADR 0023 decision 5.",
      "propertyNames": {
        "type": "string"
      },
      "type": "object"
    },
    "live": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "block_number": {
              "anyOf": [
                {
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "captured_at": {
              "description": "Epoch-ms stamp of the newest current-metagraph row the lenses below were computed from -- read this against the window: these lenses are NOW, the ones under `concentration` are the whole window.",
              "type": [
                "number",
                "null"
              ]
            },
            "entity": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ConcentrationMetrics"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The entity lens over the CURRENT per-UID incentive distribution (miners only). Incentive is the chain's live ranking and already a share, so `total` is the miners' summed incentive. Null when no miner carries any."
            },
            "uid": {
              "anyOf": [
                {
                  "$ref": "#/$defs/ConcentrationMetrics"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The per-UID lens over the same current incentive distribution."
            }
          },
          "required": [
            "captured_at",
            "block_number",
            "entity",
            "uid"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "THE CAPTURE TRIPWIRE: the same two lenses over the CURRENT metagraph, beside the windowed ones -- because a window aggregate smooths away a mid-window capture event. SN75 reported a 30d uid gini of 0.77 while one UID held incentive 0.9908 live; when these lenses diverge violently from `concentration`, trust these. Null when the current-metagraph store has no rows for this subnet."
    },
    "miner_uid_count": {
      "description": "Distinct non-validator UIDs seen anywhere in the window — the denominator for the persistence block.",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "netuid": {
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "persistence": {
      "additionalProperties": false,
      "properties": {
        "earned_every_day_count": {
          "description": "Miner UIDs that earned on every day they were registered for.",
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "max_earning_days": {
          "type": [
            "number",
            "null"
          ]
        },
        "median_earning_days": {
          "description": "The typical miner's earning days across the window. Null on an empty population — the median of nothing is not zero, and zero would read as 'the typical miner earned on no days'.",
          "type": [
            "number",
            "null"
          ]
        },
        "never_earned_count": {
          "description": "Miner UIDs that earned on ZERO days of the window. Distinct from the daily zero rate: this is the population that is not in the game at all, rather than the one that missed a tempo.",
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "never_earned_count",
        "earned_every_day_count"
      ],
      "type": "object"
    },
    "point_count": {
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "points": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "earning_miner_count": {
            "description": "How many of them recorded emission above zero. Against `miner_count` this is the fact a miner count alone hides — on the median subnet almost none of the registered miners earn on a given day.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "miner_count": {
            "description": "Non-validator UIDs registered on this day. This is the number every leaderboard publishes as 'miners'.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "snapshot_date": {
            "type": "string"
          },
          "zero_emission_pct": {
            "description": "Fraction of this day's miner UIDs that earned nothing. Null — never 0 — on a day with no miner UIDs at all, because 0% over an empty population reads as 'everybody earned'. A SINGLE DAY OVERSTATES this: emission is a per-tempo rate and a UID paid on a different tempo reads as a zero here. Use the persistence block for the durable version.",
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "snapshot_date",
          "miner_count",
          "earning_miner_count"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "schema_version": {
      "maximum": 9007199254740991,
      "minimum": -9007199254740991,
      "type": "integer"
    },
    "uids_per_entity": {
      "description": "Miner UIDs per controlling entity. 1.0 = every UID a distinct owner; higher = fewer operators each running many hotkeys. The network median is ~3.08 and the maximum ~21.3, so '256 miners' is routinely far fewer operators.",
      "type": [
        "number",
        "null"
      ]
    },
    "window": {
      "description": "The resolved window label (7d/30d/90d).",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "schema_version",
    "netuid",
    "point_count",
    "points",
    "days_covered",
    "miner_uid_count",
    "entity_count"
  ],
  "type": "object",
  "$defs": {
    "ConcentrationMetrics": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "entropy": {
              "type": [
                "number",
                "null"
              ]
            },
            "entropy_normalized": {
              "type": [
                "number",
                "null"
              ]
            },
            "gini": {
              "type": [
                "number",
                "null"
              ]
            },
            "hhi": {
              "type": [
                "number",
                "null"
              ]
            },
            "hhi_normalized": {
              "type": [
                "number",
                "null"
              ]
            },
            "holders": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "nakamoto_coefficient": {
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            "top_10pct_share": {
              "type": [
                "number",
                "null"
              ]
            },
            "top_1pct_share": {
              "type": [
                "number",
                "null"
              ]
            },
            "top_20pct_share": {
              "type": [
                "number",
                "null"
              ]
            },
            "top_5pct_share": {
              "type": [
                "number",
                "null"
              ]
            },
            "total": {
              "description": "The sum of the distribution this lens was computed over, in that distribution's own unit and window -- the FIELD EMBEDDING this lens names both (window-summed per-tempo alpha samples on miner-fairness, incentive shares on performance, block counts on blocks-summary). Never comparable across routes: two lenses over different distributions share these measures, not a unit.",
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "holders",
            "nakamoto_coefficient"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "One concentration lens over a single value distribution: holder count, total, and the Gini, HHI (raw and holder-count-normalized), Nakamoto coefficient, top-percentile cumulative shares, and Shannon entropy (raw and normalized) measures. Null when the distribution is empty (a cold store or an all-zero column)."
    }
  }
}