{
  "version": "1.0",
  "parameters": [
    {
      "id": "conditions.milling_frequency",
      "scope": "conditions",
      "path": [
        "parameters",
        "milling_frequency"
      ],
      "type": "quantity",
      "label": "Milling frequency",
      "description": "Oscillation frequency of the milling process; not rotational speed.",
      "unit": "Hz",
      "units": {
        "Hz": 1,
        "kHz": 1000
      },
      "example": {
        "value": 30,
        "unit": "Hz"
      },
      "label_zh": "球磨频率",
      "operators": [
        "present",
        "missing",
        "equals",
        "range"
      ]
    },
    {
      "id": "conditions.milling_medium",
      "scope": "conditions",
      "path": [
        "parameters",
        "milling_medium"
      ],
      "type": "text",
      "label": "Milling medium",
      "description": "Reported material of the milling balls or beads.",
      "example": "zirconia",
      "label_zh": "研磨介质",
      "operators": [
        "present",
        "missing",
        "equals",
        "contains"
      ]
    },
    {
      "id": "materials.supplier_batch",
      "scope": "materials",
      "path": [
        "parameters",
        "supplier_batch"
      ],
      "type": "text",
      "label": "Supplier batch",
      "description": "Supplier batch identifier as reported for an input material.",
      "example": "LOT-2026-01",
      "label_zh": "供应商批号",
      "operators": [
        "present",
        "missing",
        "equals",
        "contains"
      ]
    },
    {
      "id": "conditions.milling_ball_diameter",
      "scope": "conditions",
      "path": [
        "parameters",
        "milling_ball_diameter"
      ],
      "type": "quantity",
      "label": "Milling ball diameter",
      "label_zh": "研磨球直径",
      "description": "Reported diameter of the milling balls; not vessel size.",
      "unit": "mm",
      "units": {
        "mm": 1,
        "cm": 10,
        "m": 1000
      },
      "example": {
        "value": 5,
        "unit": "mm"
      },
      "operators": [
        "present",
        "missing",
        "equals",
        "range"
      ]
    },
    {
      "id": "conditions.wavelength_center",
      "scope": "conditions",
      "path": [
        "parameters",
        "wavelength_center"
      ],
      "type": "quantity",
      "label": "Light-source center wavelength",
      "label_zh": "光源中心波长",
      "description": "Reported center wavelength; retain ranges or uncertainty when supplied.",
      "unit": "nm",
      "units": {
        "nm": 1,
        "μm": 1000,
        "um": 1000
      },
      "example": {
        "value": 450,
        "unit": "nm"
      },
      "operators": [
        "present",
        "missing",
        "equals",
        "range"
      ]
    },
    {
      "id": "conditions.light_input_power",
      "scope": "conditions",
      "path": [
        "parameters",
        "light_input_power"
      ],
      "type": "quantity",
      "label": "Light-source electrical input power",
      "label_zh": "光源输入电功率",
      "description": "Electrical input power of the light source, not optical power delivered to the sample.",
      "unit": "W",
      "units": {
        "W": 1,
        "mW": 0.001
      },
      "example": {
        "value": 10,
        "unit": "W"
      },
      "operators": [
        "present",
        "missing",
        "equals",
        "range"
      ]
    },
    {
      "id": "conditions.current",
      "scope": "conditions",
      "path": [
        "parameters",
        "current"
      ],
      "type": "quantity",
      "label": "Electrolysis current",
      "label_zh": "电解电流",
      "description": "Current applied during this stage.",
      "unit": "mA",
      "units": {
        "mA": 1,
        "A": 1000,
        "μA": 0.001,
        "uA": 0.001
      },
      "example": {
        "value": 10,
        "unit": "mA"
      },
      "operators": [
        "present",
        "missing",
        "equals",
        "range"
      ]
    },
    {
      "id": "conditions.potential",
      "scope": "conditions",
      "path": [
        "parameters",
        "potential"
      ],
      "type": "quantity",
      "label": "Electrode potential",
      "label_zh": "电极电位",
      "description": "Reported electrode potential. Preserve any reference-electrode wording in the source value; values with unresolved reference text are not coerced to a number.",
      "unit": "V",
      "units": {
        "V": 1,
        "mV": 0.001
      },
      "example": {
        "value": 1.2,
        "unit": "V"
      },
      "operators": [
        "present",
        "missing",
        "equals",
        "range"
      ]
    },
    {
      "id": "conditions.cell_voltage",
      "scope": "conditions",
      "path": [
        "parameters",
        "cell_voltage"
      ],
      "type": "quantity",
      "label": "Cell voltage",
      "label_zh": "槽电压",
      "description": "Voltage across the electrochemical cell; distinct from potential versus a reference electrode.",
      "unit": "V",
      "units": {
        "V": 1,
        "mV": 0.001
      },
      "example": {
        "value": 3,
        "unit": "V"
      },
      "operators": [
        "present",
        "missing",
        "equals",
        "range"
      ]
    },
    {
      "id": "conditions.light_source_type",
      "scope": "conditions",
      "path": [
        "parameters",
        "light_source_type"
      ],
      "type": "text",
      "label": "Light source type / colour",
      "label_zh": "光源类型 / 颜色",
      "description": "Reported source type or colour.",
      "example": "blue LEDs",
      "operators": [
        "present",
        "missing",
        "equals",
        "contains"
      ]
    },
    {
      "id": "conditions.electrolysis_mode",
      "scope": "conditions",
      "path": [
        "parameters",
        "electrolysis_mode"
      ],
      "type": "text",
      "label": "Electrolysis mode",
      "label_zh": "电解模式",
      "description": "Reported control mode, such as constant current or constant potential.",
      "example": "constant current",
      "operators": [
        "present",
        "missing",
        "equals",
        "contains"
      ]
    },
    {
      "id": "conditions.cell_type",
      "scope": "conditions",
      "path": [
        "parameters",
        "cell_type"
      ],
      "type": "text",
      "label": "Electrochemical cell type",
      "label_zh": "电解池类型",
      "description": "Reported divided or undivided cell configuration.",
      "example": "undivided",
      "operators": [
        "present",
        "missing",
        "equals",
        "contains"
      ]
    },
    {
      "id": "conditions.total_charge",
      "scope": "conditions",
      "path": [
        "parameters",
        "total_charge"
      ],
      "type": "text",
      "label": "Charge passed",
      "label_zh": "通电量",
      "description": "Source quantity with its basis, e.g. 2 F/mol or 100 C. Text preserves these different dimensions without inventing a reference amount for conversion.",
      "example": "2 F/mol",
      "operators": [
        "present",
        "missing",
        "equals",
        "contains"
      ]
    },
    {
      "id": "conditions.anode_material",
      "scope": "conditions",
      "path": [
        "parameters",
        "anode_material"
      ],
      "type": "text",
      "label": "Anode material",
      "label_zh": "阳极材料",
      "description": "Reported anode composition.",
      "example": "graphite",
      "operators": [
        "present",
        "missing",
        "equals",
        "contains"
      ]
    },
    {
      "id": "conditions.cathode_material",
      "scope": "conditions",
      "path": [
        "parameters",
        "cathode_material"
      ],
      "type": "text",
      "label": "Cathode material",
      "label_zh": "阴极材料",
      "description": "Reported cathode composition.",
      "example": "platinum",
      "operators": [
        "present",
        "missing",
        "equals",
        "contains"
      ]
    },
    {
      "id": "conditions.conditions_text",
      "scope": "conditions",
      "path": [
        "parameters",
        "conditions_text"
      ],
      "type": "text",
      "label": "Combined conditions text",
      "label_zh": "混合条件原文",
      "description": "Reported mixed conditions retained verbatim. List presentation does not assert material roles, charges, measurements or stage boundaries.",
      "example": "MeNH2.NaBH4.MeOH",
      "operators": [
        "present",
        "missing",
        "equals",
        "contains"
      ]
    }
  ],
  "authoring": "Use parameters for all additional structured values. Use note for supplementary wording and procedure_sequence for reaction operations. Use explicit names for additional metrics and identifiers instead of type=custom or a metric name in note. Contributors may submit keys without registration; published input/product and condition parameters are discovered as source-local search fields. Cross-source semantic equivalence requires review. Historical extension paths retain their original registered readers.",
  "examples": {
    "upload": "/examples/parameter-upload.json",
    "search": "/examples/parameter-query.json",
    "guide": "/en/guides/integration?task=search#custom-parameters"
  },
  "storage": "Custom values remain in the original reaction JSONB. A rebuildable typed projection indexes registered and discovered source-local values with their step or object ownership; new registrations need no new database columns or source upload.",
  "labels": "IDs and JSON paths are stable English codes. label is the English display name; label_zh is an optional reviewed Chinese translation. Uploading a key does not auto-register or translate it.",
  "numeric_operators": {
    "equals": "Match an explicitly reported point value after unit conversion. Reported intervals, approximations and inequalities do not count as equal.",
    "range": "Match reported points or intervals overlapping the requested closed interval; at least one bound is required. One bound gives an open-ended query. minimum=maximum tests interval containment, not exact reported equality."
  },
  "query": "Fetch get_parameter_catalog (GET /api/reactions/parameter-catalog) for current registered and discovered field IDs, types, units and operators before supplying parameter_filters. This static catalog lists only reviewed definitions. Numeric bounds use the returned canonical unit or dimensionless scale. All clauses for the same scope/selector match one stage or one object; built-in stage conditions with the same selector join that group. Different groups combine with AND. Each stage contains its own reported conditions. Omission means unreported; values never inherit and null is not supported.",
  "coverage": "Queries use typed values committed with the current search snapshot and registry digest. Unavailable or stale projections are excluded, including from missing filters; parameter_coverage reports availability. Unknown units or incompatible values remain stored but do not satisfy typed filters.",
  "registration": "Maintainers review an additive entry in backend/isynth_schema/parameter-registry.json, validate it with python -m isynth_schema.parameters, test queries and deploy. The reconciler rebuilds affected projections from stored documents; until complete, parameter_coverage reports them as unavailable. An existing ID keeps its meaning, scope, path, type and unit/scale conversions; breaking changes get a new ID/module version. This is a reviewed registry, not a public write endpoint.",
  "performance": "Registered values use shared B-tree indexes for explicit points, text equality and booleans, GiST for numeric interval overlap, and trigram GIN for text containment. Unit conversion happens during projection, not per query. Indexes retain scope and can be rebuilt from stored documents.",
  "unknown_parameters": "Unregistered values are preserved. Published input/product and condition parameters are discovered by source; numeric and boolean filters require consistent supported values and units, otherwise text filters are offered. Reaction-level metadata and complex arrays remain preserved without inferred scientific semantics. Acceptance of custom JSON does not establish scientific correctness."
}
