{
  "node": {
    "id": "block:battery-fault-qualifier",
    "type": "Block",
    "label": "Fault qualification timer",
    "properties": {
      "id": "battery-fault-qualifier",
      "name": "Fault qualification timer",
      "kind": "studio",
      "summary": "Qualifies persistent symptoms, leaks intermittent evidence and clears after a healthy interval.",
      "behavior": "Accumulates symptom time at accepted sample events, removes configured evidence during healthy samples, qualifies a persistent fault and clears it after a healthy interval. An explicit reset clears its memory. Initialization consumes no elapsed time.",
      "ports": [
        {
          "name": "symptom",
          "direction": "input",
          "unit": "true / false",
          "description": "Fault symptom; scalar.",
          "shape": [],
          "elementType": "bool",
          "quantity": "dimensionless"
        },
        {
          "name": "reset",
          "direction": "input",
          "unit": "true / false",
          "description": "Reset; scalar.",
          "shape": [],
          "elementType": "bool",
          "quantity": "dimensionless"
        },
        {
          "name": "fault",
          "direction": "output",
          "unit": "true / false",
          "description": "Qualified fault; scalar.",
          "shape": [],
          "elementType": "bool",
          "quantity": "dimensionless"
        },
        {
          "name": "accumulator",
          "direction": "output",
          "unit": "s",
          "description": "Symptom time (s); scalar.",
          "shape": [],
          "elementType": "real",
          "quantity": "dimensionless"
        },
        {
          "name": "healthy",
          "direction": "output",
          "unit": "s",
          "description": "Healthy time (s); scalar.",
          "shape": [],
          "elementType": "real",
          "quantity": "dimensionless"
        }
      ],
      "parameters": [
        {
          "key": "sampleTimeS",
          "label": "Sample interval (s)",
          "unit": "s",
          "default": 0.1,
          "description": "Positive sample interval. Initialization has zero elapsed time; subsequent accepted samples update memory."
        },
        {
          "key": "qualifyS",
          "label": "Fault qualification time (s)",
          "unit": "s",
          "default": 0.3,
          "description": "Fault qualification time (s). This is an editable model input; the default belongs to the synthetic worked example."
        },
        {
          "key": "decrementS",
          "label": "Evidence removed per healthy sample (s)",
          "unit": "s",
          "default": 0.1,
          "description": "Evidence removed per healthy sample (s). This is an editable model input; the default belongs to the synthetic worked example."
        },
        {
          "key": "clearS",
          "label": "Healthy clearing time (s)",
          "unit": "s",
          "default": 0.2,
          "description": "Healthy clearing time (s). This is an editable model input; the default belongs to the synthetic worked example."
        }
      ],
      "equations": [
        "fault qualifies when accumulated symptom time reaches qualifyS",
        "healthy clearing requires clearS elapsed without the symptom"
      ],
      "example": {
        "title": "Fault qualification timer worked example",
        "text": "Use the defaults below with Fault symptom = 1 true / false, Reset = 0 true / false. At 0.4 s, Qualified fault is 1 true / false. Additional checks are listed below.",
        "url": "https://design.lemonergy.com/cosim.html?example=block-battery-fault-qualifier",
        "label": "Open Studio example",
        "checks": [
          {
            "port": "fault",
            "atS": 0.4,
            "value": 1,
            "tolerance": 0,
            "label": "Qualified fault",
            "unit": "true / false"
          }
        ],
        "inputs": [
          {
            "port": "symptom",
            "label": "Fault symptom",
            "value": 1,
            "unit": "true / false"
          },
          {
            "port": "reset",
            "label": "Reset",
            "value": 0,
            "unit": "true / false"
          }
        ]
      },
      "limits": [
        "Qualification depends on sample interval and thresholds; it cannot detect a symptom that was never sampled.",
        "The example verifies numerical behavior for synthetic parameters. Cell characterization and validation for an intended use are separate tasks."
      ],
      "availability": {
        "status": "released",
        "label": "Available in Lemonergy Studio",
        "detail": "The bundled example is available in the production release verified on 28 October 2026. The parameters and examples here are synthetic teaching fixtures, not a characterized cell or a validated operating limit."
      },
      "references": [
        "ti-bms"
      ],
      "evidence": [
        "docs/glossary/native-block-verification.json"
      ],
      "sourceRepository": "Lemonergy Studio public contract",
      "sourceRevision": "verification-2026-10-27",
      "caseIds": [
        "native-battery-fault-qualifier"
      ],
      "exampleTraces": [
        {
          "id": "battery-fault-qualifier",
          "url": "https://lemonergy.com/learn/glossary/api/traces/battery-fault-qualifier.json?v=7df938ec67fe",
          "title": "Fault qualification timer recorded example",
          "exampleId": "block-battery-fault-qualifier",
          "source": "Executed synthetic Lemonergy Studio example",
          "recordedOn": "2026-10-28",
          "points": 11,
          "channels": 3,
          "omittedChannels": 0,
          "interpolation": "step",
          "solver": {
            "method": "dormand-prince-45",
            "reason": "no-continuous-states"
          }
        }
      ],
      "type": "battery-fault-qualifier",
      "implementationId": "battery-fault-qualifier",
      "url": "https://lemonergy.com/learn/glossary/blocks/battery-fault-qualifier/",
      "documentationUrl": "https://lemonergy.com/learn/glossary/blocks/battery-fault-qualifier/",
      "sourceFile": "block-library.json",
      "reviewed": "2026-10-27",
      "releaseEvidence": {
        "environment": "production",
        "status": "verified",
        "revision": "e76cadfc203e15eb41f3478d8b1044a5b851953d",
        "verifiedOn": "2026-10-28",
        "exampleUrls": [
          "https://design.lemonergy.com/cosim.html?example=block-battery-fault-qualifier"
        ]
      }
    }
  },
  "incoming": [
    {
      "id": "edge:usesBlock/native-battery-fault-qualifier/0",
      "type": "usesBlock",
      "source": "workflow:native-battery-fault-qualifier",
      "target": "block:battery-fault-qualifier",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 0,
        "name": "Fault qualification timer",
        "type": "battery-fault-qualifier",
        "role": "Accumulates symptom time at accepted sample events, removes configured evidence during healthy samples, qualifies a persistent fault and clears it after a healthy interval. An explicit reset clears its memory. Initialization consumes no elapsed time.",
        "settings": [
          "Use the parameter values in the block reference.",
          "Bundled example verified on the production release of 28 October 2026."
        ]
      }
    }
  ],
  "outgoing": [
    {
      "id": "edge:cites/block:battery-fault-qualifier/reference:ti-bms",
      "type": "cites",
      "source": "block:battery-fault-qualifier",
      "target": "reference:ti-bms",
      "properties": {
        "sourceFile": "block-library.json",
        "scope": "Scientific or mathematical background; implementation scope is stated by the block contract"
      }
    }
  ],
  "neighbors": [
    {
      "id": "workflow:native-battery-fault-qualifier",
      "type": "Workflow",
      "label": "Fault qualification timer worked example",
      "properties": {
        "id": "native-battery-fault-qualifier",
        "title": "Fault qualification timer worked example",
        "kind": "studio",
        "summary": "Qualifies persistent symptoms, leaks intermittent evidence and clears after a healthy interval.",
        "steps": [
          "Review the block inputs, units and model limits.",
          "Open the Studio example and run its bundled model.",
          "Compare the output channels with the numerical checks; change one input and run again."
        ],
        "example": "Use the defaults below with Fault symptom = 1 true / false, Reset = 0 true / false. At 0.4 s, Qualified fault is 1 true / false. Additional checks are listed below.",
        "observe": "Inspect the outputs and numerical checks on the block reference page.",
        "limits": "Qualification depends on sample interval and thresholds; it cannot detect a symptom that was never sampled. The example verifies numerical behavior for synthetic parameters. Cell characterization and validation for an intended use are separate tasks.",
        "url": "https://design.lemonergy.com/cosim.html?example=block-battery-fault-qualifier",
        "label": "Open Studio example",
        "evidence": [
          "docs/glossary/native-block-verification.json"
        ]
      }
    },
    {
      "id": "reference:ti-bms",
      "type": "Reference",
      "label": "Getting Started with the BQ76925",
      "properties": {
        "title": "Getting Started with the BQ76925",
        "publisher": "Texas Instruments",
        "url": "https://www.ti.com/lit/an/slua619b/slua619b.pdf",
        "type": "Application report",
        "scope": "A concrete BMS analog front-end example: cell voltage, current, temperature measurement and MCU integration.",
        "year": 2019,
        "accessed": "2026-10-27"
      }
    }
  ]
}
