# `orxaq filing validate`

Post-generation validator for CECL/CCAR regulatory filing packages.

## Usage

```bash
orxaq filing validate [OUTPUT_DIR]
orxaq filing validate [OUTPUT_DIR] --json
```

**Arguments**

| Argument | Description | Default |
|---|---|---|
| `OUTPUT_DIR` | Path to the filing output directory | `.` (current directory) |
| `--json` | Emit structured JSON result | false |

## What it checks

| Check | Description |
|---|---|
| `files_present` | All 8 canonical output files exist |
| `manifest_parseable` | `manifest.json` is valid JSON |
| `sha256_checksums` | Every file's SHA-256 matches the manifest |
| `cecl_schema` | `cecl_disclosure.json` has required ASC 326 fields |
| `ccar_schema` | `ccar_export.json` has required FR Y-14A fields |

## Exit codes

| Code | Meaning |
|---|---|
| `0` | All checks passed |
| `1` | One or more checks failed |

## JSON output

```json
{
  "status": "pass",
  "checks": [
    {"name": "files_present", "passed": true, "detail": "All 8 files present"},
    {"name": "sha256_checksums", "passed": true, "detail": "7 checksums verified"},
    ...
  ],
  "files_verified": 7,
  "generated_at": "2026-01-01T00:00:00Z"
}
```

## Typical workflow

```bash
# Generate a filing package
orxaq filing generate --output ./filings/2026Q1

# Validate before submission
orxaq filing validate ./filings/2026Q1
```
