Skip to main content
Glama
README.md
<!-- SPDX-License-Identifier: Apache-2.0 OR MIT -->
<!--
README layout: ~/Code/README-TEMPLATE.md. scripts/readme-check.sh (make
readme-check, run by make ci) fails on any drift from its headings, badge
row and demo block.
-->

<p align="center">
  <img src="logo.svg" alt="AskISO logo" width="128" />
</p>

<h1 align="center">AskISO</h1>

<p align="center">
  The ISO 20022 command line: search, inspect, validate, lint, convert and generate ISO 20022 messages from your terminal, your editor, an AI assistant or CI.
</p>

<p align="center">
  <a href="https://github.com/sebastienrousseau/askiso/actions"><img src="https://img.shields.io/github/actions/workflow/status/sebastienrousseau/askiso/ci.yml?style=for-the-badge&logo=github" alt="Build" height="28" /></a>
  <a href="https://pkg.go.dev/github.com/sebastienrousseau/askiso"><img src="https://img.shields.io/github/v/release/sebastienrousseau/askiso?style=for-the-badge&color=fc8d62&logo=go" alt="Registry" height="28" /></a>
  <a href="https://pkg.go.dev/github.com/sebastienrousseau/askiso/pkg/iso20022"><img src="https://img.shields.io/badge/docs-pkg.go.dev-007d9c?style=for-the-badge&labelColor=555555&logo=go" alt="Docs" height="28" /></a>
  <a href="https://scorecard.dev/viewer/?uri=github.com/sebastienrousseau/askiso"><img src="https://img.shields.io/ossf-scorecard/github.com/sebastienrousseau/askiso?style=for-the-badge&label=OpenSSF%20Scorecard&logo=openssf" alt="OpenSSF Scorecard" height="28" /></a>
  <a href="LICENSE-APACHE"><img src="https://img.shields.io/badge/license-Apache--2.0%20OR%20MIT-blue.svg?style=for-the-badge" alt="License: Apache-2.0 OR MIT" height="28" /></a>
  <a href="go.mod"><img src="https://img.shields.io/badge/go-1.26.11%2B-93450a.svg?style=for-the-badge&logo=go" alt="Go 1.26.11+" height="28" /></a>
  <a href="https://glama.ai/mcp/servers/sebastienrousseau/askiso"><img src="https://glama.ai/mcp/servers/sebastienrousseau/askiso/badges/score.svg" alt="Glama MCP server score" height="28" /></a>
</p>

<p align="center">
  <img src=".github/demo.gif" alt="A terminal running askiso search pacs.008 against the embedded index, askiso lint payment.xml --profile cbpr-2026 reporting three structured-address errors, and askiso translate payment.mt103 --report showing the field-by-field fidelity report" width="100%" />
</p>

---

## Contents

**Getting started**

- [Install](#install) - `go install`, signed release archives, Linux packages, or the browser with nothing installed
- [Requirements](#requirements) - toolchain floor, platforms
- [Quick Start](#quick-start) - search, lint for the structured-address requirement, and convert an MT103, with no catalogue

**The AskISO ecosystem**

- [The AskISO ecosystem](#the-askiso-ecosystem) - CLI and TUI, MCP server, language server, HTTP server, Go SDK, website, GitHub Action

**Library reference**

- [Capabilities at a glance](#capabilities-at-a-glance) - the current surface by theme
- [Ecosystem comparison](#ecosystem-comparison) - what AskISO is measured against
- [Benchmarks](#benchmarks) - what has been measured, and what has not
- [Features](#features) - commands, rule profiles, validation, private CBPR+ guidelines
- [Configuration](#configuration) - the catalogue, environment variables, editor settings
- [Examples](#examples) - runnable example index

**Operational**

- [When not to use AskISO](#when-not-to-use-askiso) - limitations
- [Development](#development) - make targets, fuzzing, CI
- [Security](#security) - guarantees and compliance
- [Documentation](#documentation) - all reference docs
- [Stability guarantees](#stability-guarantees) - versioning, output stability, minimum toolchain discipline
- [License](#license)

---

## Install

### As a Go module

```bash
go install github.com/sebastienrousseau/askiso/cmd/askiso@latest
go install github.com/sebastienrousseau/askiso/cmd/askiso-mcp@latest
go install github.com/sebastienrousseau/askiso/cmd/askiso-lsp@latest
go install github.com/sebastienrousseau/askiso/cmd/askiso-server@latest
```

`go install` builds from source and is the quickest way in. The Go SDK is
`github.com/sebastienrousseau/askiso/pkg/iso20022` (see [Go SDK](#go-sdk)).

### Build from source

```bash
git clone https://github.com/sebastienrousseau/askiso
cd askiso && make build
```

No external dependencies. Validation is pure Go, so there is no libxml2 or cgo to
install and results are identical on every platform. `xmllint`, if you have it, can be
used as a cross-check with `--engine libxml2`.

### Release archives and packages

Every [release](https://github.com/sebastienrousseau/askiso/releases) attaches
archives for Linux, macOS and Windows on amd64 and arm64, `.deb`, `.rpm`, `.apk`
and Arch `.pkg.tar.zst` packages for Linux, an SBOM per archive, and a Sigstore
signature over the checksums. Each archive and package carries all four binaries:
`askiso` (CLI and TUI), `askiso-mcp` (Model Context Protocol server), `askiso-lsp`
(language server) and `askiso-server` (HTTP server). AskISO redistributes no
ISO 20022 specification content.

From 0.0.8 the macOS binaries are signed with a Developer ID certificate and
notarised by Apple, so Gatekeeper runs them without a prompt. Homebrew and Scoop
install the same archives:

```bash
# macOS and Linux
brew install --cask sebastienrousseau/tap/askiso

# Windows
scoop bucket add sebastienrousseau https://github.com/sebastienrousseau/scoop-bucket
scoop install askiso
```

The signing certificate records the workflow and the commit that produced the
artifact, so it can be verified without trusting a key anyone had to store. The
bundle carries both the signature and the certificate:

```bash
cosign verify-blob checksums.txt \
  --bundle checksums.txt.sigstore.json \
  --certificate-identity-regexp 'https://github.com/sebastienrousseau/askiso/.*' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com
```

The release workflow also records SLSA build provenance, which `gh` verifies against
this repository. Up to and including 0.0.6 it covers `checksums.txt`, so verify that
file and then check the archive's hash against it:

```bash
gh attestation verify checksums.txt --owner sebastienrousseau
shasum -a 256 --ignore-missing -c checksums.txt
```

From 0.0.7 every artifact listed in `checksums.txt` carries its own provenance, so
an archive can be verified directly:

```bash
gh attestation verify askiso_0.0.7_linux_amd64.tar.gz --owner sebastienrousseau
```

### Without installing anything

**[The web version](https://askiso.io)** runs the same engine compiled to
WebAssembly. Lint, generate, browse, convert, look up codes and check
IBAN/BIC/UETR values in the browser.

Your messages never leave the tab: there is no server to send them to. That
matters when the payload is a real payment instruction.

Or run the identical bundle locally with `make web-serve`.

---

## Requirements

- **Go 1.26.11 or newer** to build from source or `go install`. That is a floor
  rather than a preference: 1.26.11 is the first release that fixes
  [GO-2026-6859](https://pkg.go.dev/vuln/GO-2026-6859), a crash in `net/http`'s
  `MaxBytesReader`, which `askiso-server` and `askiso mock` use to bound request
  bodies. It also carries every earlier standard library fix, such as
  [GO-2026-6088](https://pkg.go.dev/vuln/GO-2026-6088), which guards `encoding/xml`
  against unbounded decode recursion on the path every `validate`, `lint` and
  `convert` takes through untrusted input. The `go` directive in `go.mod` enforces
  it.
- **Platforms:** Linux, macOS and Windows. CI tests all three on every push to
  `main` and every pull request, and releases ship amd64 and arm64 builds of each.
- **A catalogue is optional.** The index of the standard is embedded; only the
  commands that read XSD text need the message sets you download from
  iso20022.org (see [Configuration](#configuration)).
- **Optional tools:** `xmllint` for the libxml2 cross-check; Poppler's `pdftotext`
  for reading CBPR+ PDF guidelines; `node` for the website smoke test; `vhs` to
  re-render the demo.

---

## Quick Start

```bash
go install github.com/sebastienrousseau/askiso/cmd/askiso@latest

askiso search pacs.008                           # every version, from the embedded index
askiso lint payment.xml --profile cbpr-2026      # structured-address readiness
askiso translate payment.mt103 --report          # MT103 to pacs.008, with a fidelity report
askiso generate pacs.008                         # a template message, no catalogue needed
askiso doctor                                    # what AskISO found on this machine
```

None of these needs a download or the network: search, lint, translate and
template generation run from the index embedded in the binary. The demo above runs
the first three against `testdata/sessions/`. Exit status is non-zero when a check
fails, so every command drops straight into a script or CI job.

---

## The AskISO ecosystem

AskISO is a single Go engine for working with ISO 20022 financial messages, served
through several front ends. It gives you fuzzy search across the whole message
catalogue, a Bubble Tea TUI, schema and sample viewers, a semantic business-rule
linter, synthetic message generation, MT ⇄ MX cross-references, and a mock clearing
rail, without leaving the terminal.

**AskISO does not redistribute ISO 20022 specifications.** The Registration Authority
publishes them free of charge at [iso20022.org](https://www.iso20022.org/); you download
what you need and point AskISO at it. That keeps the binary small, keeps your schemas
current, and means the specification content you validate against comes from the source
of truth rather than a mirror of unknown age.

> This is not the official ISO 20022 site. The sole source of up-to-date ISO 20022
> material is <https://www.iso20022.org/>

| Component | Purpose | Use case |
| :--- | :--- | :--- |
| `askiso` | CLI and interactive TUI | Search, inspect, lint, validate, convert and generate messages in a terminal |
| `askiso-mcp` | Model Context Protocol server | Let an AI assistant check the specification instead of recalling it |
| `askiso-lsp` | Language server for ISO 20022 XML | Diagnostics, hover, completion and outline in an editor |
| `askiso-server` | HTTP server you run yourself | Lint, validate, translate and look up messages from any language over HTTP |
| `pkg/iso20022` | Go SDK, the shared core | Embed the same checks in a Go service |
| [askiso.io](https://askiso.io) | The engine compiled to WebAssembly | Check a message in the browser, nothing sent anywhere |
| `action.yml` | Composite GitHub Action | Annotate pull requests that introduce non-compliant messages |

### Using AskISO from an AI assistant

`askiso-mcp` serves the same engine over the [Model Context Protocol](https://modelcontextprotocol.io),
so an assistant can check the specification instead of recalling it. Ten tools:
search, info, lint, profile check, validate, generate, MT translation, code
lookup, schema diff, and XML/JSON conversion.

```json
{
  "mcpServers": {
    "askiso": { "command": "askiso-mcp" }
  }
}
```

It speaks newline-delimited JSON-RPC 2.0 on stdin and stdout and writes nothing
else to stdout. Seven tools need no catalogue; `askiso_generate` needs one only
for messages beyond its four templates, and `askiso_validate` and `askiso_diff`
always do. `askiso-mcp --tools` lists what it exposes.

### Using AskISO from an editor

`askiso-lsp` is a language server for ISO 20022 XML. It publishes diagnostics as
you type (business rules, schema validation against your own downloaded XSDs,
and optional CBPR+ structured-address readiness checks) and adds hover,
completion and a document outline driven by the schema.

Neovim:

```lua
vim.api.nvim_create_autocmd('FileType', {
  pattern = 'xml',
  callback = function()
    vim.lsp.start({ name = 'askiso', cmd = { 'askiso-lsp' }, root_dir = vim.fn.getcwd() })
  end,
})
```

Completion lists the elements the schema allows at the cursor, **in schema
order**: ISO 20022 content models are ordered sequences, so an alphabetical
list would suggest invalid documents. Inside an enumerated element it offers the
code set instead. Without a catalogue it offers nothing rather than guessing.
The rule profile is set as described under [Configuration](#configuration).

### Go SDK

```go
import "github.com/sebastienrousseau/askiso/pkg/iso20022"

xml, _ := iso20022.Generate(iso20022.GeneratorOptions{
    MsgType: "pacs.008",
    Preset:  "sepa",
    Amount:  "25000.00",
})

res, _ := iso20022.Lint([]byte(xml), "transfer.xml")
fmt.Printf("passed: %d  errors: %d\n", res.Passed, res.Errors)

jsonBytes, _ := iso20022.XMLToJSON([]byte(xml))
```

`pkg/iso20022` is the shared core. The CLI, the website's WebAssembly build, and any Go
service that imports it all run the same code.

Everything above works with no catalogue. To read schema text, open one:

```go
cat, err := iso20022.OpenCatalogue("")     // searches the conventional locations
info, _ := cat.Lookup("pacs.008.001.10")   // works with a nil *Catalogue too

if !info.Installed {
    // info.Sets names the message sets that publish it, each with a DownloadURL()
    for _, s := range info.Sets {
        fmt.Printf("download %s from %s\n", s, s.DownloadURL())
    }
}
```

The API reports `Installed: false` rather than failing, so callers can always tell the
user what to download.

### As an HTTP service

`askiso-server` serves the engine over HTTP, which is how a service that is not written
in Go calls it.
You run it yourself; nothing is sent to an AskISO-operated service.

```bash
askiso-server -addr 127.0.0.1:8080 -catalog ~/iso20022-catalogue

curl -s 'http://127.0.0.1:8080/v1/lookup?id=pacs.008.001.10'
curl -s -X POST http://127.0.0.1:8080/v1/lint -d '{"xml":"<Document>...</Document>","profile":"cbpr-2026"}'
```

`POST /v1/dispatch` takes `{"op": ..., "payload": ...}` for any operation in
[`docs/ABI.md`](docs/ABI.md); `/v1/lint`, `/v1/validate`, `/v1/translate/mt`,
`/v1/translate/mx`, `/v1/classify-addresses`, `/v1/lookup`, `/v1/search` and
`/v1/healthz` are shortcuts. Request bodies are capped at 8 MiB. The server reads only
the catalogue named by `-catalog` (or found by the usual search), never a path in a
request, and its responses give file paths relative to that catalogue.

### The website

`web/site` is a static page that loads `pkg/iso20022` compiled to WebAssembly, so the
browser runs byte-for-byte the same logic as the CLI. A message linted on the website
gets the identical verdict to one linted in a terminal or a CI pipeline.

```bash
make web         # build the WebAssembly bundle
make web-test    # 74-check smoke test of the Go/JS bridge (needs node)
make web-serve   # http://127.0.0.1:8765
```

The site is light mode only: it carries the embedded index of the standard, never any
schema content. Anything needing the XSD text links to the official download and points
at the CLI. The deploy workflow enforces that: it fails if an `.xsd`, `.pdf` or `.docx`
ever reaches `web/site`.

It publishes to <https://askiso.io> on every push to `main`, and the Go/JS smoke test
gates the deploy: a renamed API or a field that stopped serialising would otherwise
break the page silently.

### In continuous integration

The repository ships a composite action, so a pull request that introduces a
non-compliant message is annotated rather than merged silently:

```yaml
permissions:
  contents: read
  security-events: write

jobs:
  iso20022:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: actions/setup-go@v6
      - uses: sebastienrousseau/askiso@v0.0.8
        with:
          path: ./messages
          profile: cbpr-2026
```

Findings are uploaded as SARIF, so they appear on the diff. Nothing is
downloaded from iso20022.org: linting and the rule profiles run from the
embedded index.

---

## Capabilities at a glance

| Area | Capability | Status |
| :--- | :--- | :--- |
| Discovery | Search, info, statistics and the TUI across all 2,845 message definitions in 285 published message sets | Built; search and info need no catalogue |
| Validation | Pure-Go XSD validation, buffered and streaming, with imported external code sets | Built; agrees with libxml2 on 4,746 of 4,746 catalogue documents; needs a catalogue |
| Business rules | Semantic linter and scheme rule profiles (`base`, `cbpr-plus`, `cbpr-2026`, `cbpr-2027`, `investigations`, `verification-of-payee`) | Built; embedded, no catalogue |
| Conversion | MT ⇄ MX for seven MT pairs with a fidelity report; MT n92/n95/n96 to MX one way; XML ⇄ JSON | Built; see [When not to use AskISO](#when-not-to-use-askiso) for what is lossy |
| Generation | Templates with rail presets for four messages; schema-driven generation for the rest | Built; schema-driven needs a catalogue |
| Change analysis | Path-level schema diff with breaking-change classification | Built; needs a catalogue |
| Private CBPR+ | Local rule packs and versioned workspaces from an institution's own MyStandards exports | Built; nothing leaves the machine |
| Integrations | MCP server, language server, HTTP server, Go SDK, WebAssembly website, GitHub Action with SARIF | Built |
| Simulation | Lifecycle flows, sequence diagrams and a local mock clearing rail | Built |

---

## Ecosystem comparison

AskISO has not been benchmarked or feature-audited against other ISO 20022 tools, so
this section makes no claim about them. The one comparison it does make is measured:
schema validation against libxml2, the reference implementation, across the whole
catalogue (`make differential`).

| Project | XSD validation | ISO 20022 business rules and scheme profiles | MT ⇄ MX conversion |
| :--- | :---: | :---: | :---: |
| **AskISO** | Pure Go; agrees with libxml2 on 4,746 of 4,746 documents | Yes | Seven MT pairs, both ways |
| `xmllint` (libxml2) | Yes, the reference | No | No |

---

## Benchmarks

No throughput or latency benchmarks are recorded in this repository, so none are
quoted. [`docs/BENCHMARKS.md`](docs/BENCHMARKS.md) describes how streaming validation
bounds its memory and which tests hold it to that. The only resource figures the
project states are the memory cost of streaming validation, also listed under
[Known limitations](#known-limitations):

| Scenario | Result | Environment |
| :--- | ---: | :--- |
| Streaming validation of a file of 8 MiB or more | about 120 bytes per transaction | Not recorded |
| A 39 MB statement, streamed | about 2.4 MB of memory | Not recorded |

---

## Features

### Commands

Commands marked ◆ need a catalogue; the rest work standalone.

| Command | Description |
| :--- | :--- |
| `askiso ask [prompt]` | Ask the assistant (Ollama or an OpenAI-compatible provider), or search private CBPR+ material with `--cbpr-pack` |
| `askiso audit <xml\|dir>...` | Score SR2027 structured-address readiness across messages (`--format text/json/html`) |
| `askiso list` ◆ | List the message set categories in your catalogue, with version and schema counts |
| `askiso catalog fetch <msg\|set>` | Open the right download page, then import the archive when it lands |
| `askiso catalog add <zip\|dir>...` | Import message sets downloaded from iso20022.org (`--dry-run`, `--to`) |
| `askiso catalog status` | Compare what you have installed against all 285 published sets (`--all`) |
| `askiso catalog where` | Show every location AskISO searches, and which one it picked |
| `askiso` ◆ | Interactive TUI: live search, message table, schema and sample viewers |
| `askiso search <query>` | Search by ID, domain, code, or keyword (`--json`); uses the embedded registry when no catalogue is installed |
| `askiso info <msg-id>` | Metadata and schema paths (`--json`); without a catalogue, names the message set to download |
| `askiso schema <msg-id>` ◆ | Syntax-highlighted XSD (`--copy`, `--raw`) |
| `askiso sample <msg-id>` ◆ | Syntax-highlighted sample XML (`--copy`, `--raw`) |
| `askiso stats` ◆ | Catalogue metrics and domain distribution (`--json`) |
| `askiso diff <from> <to>` ◆ | Path-level schema comparison with breaking-change classification (`--breaking`, `--strict`, `--json`) |
| `askiso validate <xml> [xsd]` | XSD and imported external-code validation (`--external-codes`, `--json`, `--stream`) |
| `askiso lint <xml>` | Business rules plus scheme profiles (`--profile all`, `--strict`, `--json`, `--format sarif`) |
| `askiso generate <type>` | Any of the 2,845 messages: templates with rail presets for four, schema-driven for the rest (`--from-schema`, `--optional`) |
| `askiso convert <file>` | ISO 20022 XML ⇄ JSON (`--to-json`, `--to-xml`) |
| `askiso format <xml>` | Pretty-print or minify (`--minify`, `--copy`) |
| `askiso code [query]` | Look up codes: curated, from your schemas, and from an imported publication (`--sets`, `--set`, `--import`) |
| `askiso translate <code>` | SWIFT MT ⇄ ISO 20022 MX field-mapping reference (`--matrix`) |
| `askiso translate <file>` | Convert a real message either way, with a fidelity report (`--out`, `--report`, `--format json`) |
| `askiso translate --matrix` | The full MT ⇄ MX cross-reference, field by field |
| `askiso batch <dir\|glob>` | Lint, validate and profile many messages at once (`--format sarif`, `--workers`) |
| `askiso cbpr-pack compile <dir>` | Compile locally licensed CBPR+ PDFs into a private reusable rule pack |
| `askiso cbpr-pack import <dir>` | Build a release-pinned private workspace, completeness manifest and local sample suite |
| `askiso cbpr-pack status <workspace>` | Report exactly which local Usage Guideline variants are present or missing |
| `askiso cbpr-pack generations <workspace>` | List retained immutable workspace snapshots and their integrity state |
| `askiso cbpr-pack activate <workspace> <fingerprint>` | Atomically roll back to a validated retained snapshot |
| `askiso cbpr-pack prune <workspace> --keep N --confirm` | Explicitly remove old inactive snapshots after operator confirmation |
| `askiso cbpr-pack verify <dir>` | Verify pinned local samples against matching schemas and imported external codes |
| `askiso cbpr-pack export-invalid-samples <dir>` | Derive eight classes of synthetic rejection fixture locally |
| `askiso cbpr-pack audit-samples <dir>` | Check provenance, duplicates, pairing and common live-data patterns |
| `askiso cbpr-pack diff <old> <new>` | Produce a content-free SR2025-to-SR2026 release delta |
| `askiso flow [type]` | Simulate a `pain.001` → `pacs.008` → `pacs.002` → `camt.053` lifecycle |
| `askiso graph [type]` | Sequence diagrams (`--format mermaid/ascii`) |
| `askiso mock` | Local HTTP mock clearing rail (`--port`) |
| `askiso doctor` | Diagnostics: catalogue, toolchain, AI connectivity |
| `askiso completion <shell>` | Shell completions for zsh, bash, fish, powershell |
| `askiso version` | Build version and metadata |

### TUI keys

Type any text to filter the catalogue: **every plain letter belongs to the
filter**, so the shortcuts are modified. `Enter` opens the sample, `ctrl+s` the
schema, `ctrl+k` checks the message (business rules, schema, and the November
2026 address rules in one pane), `ctrl+y` copies, `ctrl+a` opens the assistant,
`?` shows help, `q` quits.

`/catalog` shows what you have installed against the whole published standard,
with a download link beside anything missing. `/check` is the same as `ctrl+k`.

### Rule profiles

| Profile | What it checks |
| :--- | :--- |
| `base` | Structural sanity, applicable to any message |
| `cbpr-plus` | Live SR2025 CBPR+: message/Usage Identifier dispatch, BAH consistency, address and party rules, totals, UETRs, currencies, and pacs.009 variants |
| `cbpr-2026` | Readiness for the deferred structured-address requirement; no replacement date is asserted |
| `cbpr-2027` | The 2026 rules plus enhanced data: purpose codes, structured remittance, LEIs, UETRs |
| `investigations` | camt.110 / camt.111: every investigation identifies its payment, every response quotes its request |
| `verification-of-payee` | acmt.023 / acmt.024: a request says what to check, a failed report says why |
| `all` | Every rule AskISO currently implements; use dated profiles to interpret future-rule severity |

Dates that have not arrived produce **warnings**, not errors, so `--profile
cbpr-2027` tells you what to fix without failing a build for something that is
not yet required. The exception is `ENH-LEI-001`: a legal entity identifier that
fails its own ISO 7064 checksum is not a field awaiting a deadline, it is a
wrong one, and it is reported as an error today.

`cbpr-plus` is the embedded, catalogue-free cross-message layer. Exact element
cardinalities, restricted code sets and patterns remain defined by each Swift
MyStandards Usage Guideline. A base ISO 20022 XSD is not a substitute for a
CBPR+ Usage Guideline.

### The deferred structured-address requirement

Swift deferred the planned **14 November 2026** cutover on 27 August 2026 and
will confirm replacement timing. The requirement remains, and AskISO checks readiness:

```bash
askiso lint payment.xml --profile cbpr-2026
```

```text
  ❌ [CBPR-ADDR-002] the address is fully unstructured (3 address line(s), no structured element)
     at       /Document/CdtTrfTxInf/Dbtr/PstlAdr
     expected hybrid or structured
     fix      Move the town into <TwnNm> and the country into <Ctry>; keep the
              remainder in at most two <AdrLine> elements.

  ❌ [CBPR-ADDR-003] "France" is not an ISO 3166-1 alpha-2 country code
     at       /Document/CdtTrfTxInf/Cdtr/PstlAdr/Ctry
     expected "FR" (the code for France)
```

The pack enforces town and country presence, the ISO 3166-1 alpha-2 code format, the
two-line/70-character hybrid limit, and flags hybrid addresses as workable but less
durable. The exempt message types (`camt.052`, `camt.053`, `camt.054`, `camt.060`,
`camt.025`, `admi.024`) are skipped and reported as out of scope rather than passing.

This matters because schema validation cannot catch it: ISO 20022 constrains `<Ctry>` to
`[A-Z]{2,2}` and nothing more, so `XX` validates. AskISO checks against the 249 assigned
ISO 3166-1 codes.

Available as `--profile cbpr-2026` in the CLI and as the **Nov 2026** tab on the website.
Neither needs a catalogue: the rules are embedded.

### Validation

`askiso validate` implements the XML Schema subset ISO 20022 uses (element order,
cardinality, choices, wildcards, patterns, enumerations, length and numeric facets) in
pure Go.

It is checked against the reference implementation: over the whole catalogue AskISO and
libxml2 agree on **4,746 of 4,746** documents, accepting the same 1,035 and rejecting the
same 3,711. `make differential` reproduces that.

Diagnostics say more than the reference does:

```text
  payment.xml:20:7
    [pattern]  "EURO" does not match the required format
    at       /Document/FIToFICstmrCdtTrf/CdtTrfTxInf/IntrBkSttlmAmt/@Ccy
    expected [A-Z]{3,3}
    found    EURO
```

The schema is resolved from the document's own namespace, so the second argument is
optional. Exit status is 0 when valid, 1 when not, so it drops straight into CI.

### Bring your own CBPR+ guidelines

AskISO does not distribute Swift publications. Users who are authorised to use
their organisation's MyStandards exports can apply them locally:

In MyStandards, open **CBPR+ SR2025 (Combined)**, select all 31 Usage
Guidelines, add them to **My Selection**, and request the **XML Schema Package**
export. The resulting `MySelection_XMLSchemaPackage_...` package contains a
separate directory for each selected Usage Guideline, with its payload and BAH
XSDs. The browser downloads an already-built export immediately; otherwise
MyStandards queues it under the **MyDownloads** icon at the top right. If the
multi-selection export is unavailable to an account, open each Usage
Guideline's **Documentation** page and choose **Export** with the XML Schema
format. Keep each variant directory intact so STP, COV, ADV, MLP and COL remain
distinguishable.

The availability of XML-schema export is controlled by the specification owner
and the user's MyStandards access. Swift documents both downloading XML schemas
for shared FI-owned Usage Guidelines and retrieval of queued exports from
MyDownloads; AskISO cannot grant access or automate an authenticated session.

```bash
# Compile in memory and check one message. Nothing is persisted or uploaded.
askiso lint payment.xml --cbpr-pack /secure/CBPRPlus-SR2025

# Ask for evidence from the private PDFs. This bypasses every model provider.
askiso ask "Where is UETR mandatory in pacs.008?" \
  --cbpr-pack /secure/CBPRPlus-SR2025

# Check a local message directory against the same private source directory.
askiso batch ./messages --cbpr-pack /secure/CBPRPlus-SR2025 --format json

# Optional: make repeated checks faster with a private, content-minimised pack.
askiso cbpr-pack compile /secure/CBPRPlus-SR2025 \
  --output ~/.local/share/cbpr-sr2025.cbpr-pack.json
askiso lint payment.xml --cbpr-pack ~/.local/share/cbpr-sr2025.cbpr-pack.json

# Build a versioned workspace without copying any source artefact.
askiso cbpr-pack import /secure/CBPRPlus-SR2025 \
  --workspace ~/.askiso-cbpr/sr2025 \
  --release SR2025 \
  --external-codes ~/Downloads/2Q2026_externalcodesets_v3.json \
  --generate-samples \
  --acknowledge-entitlement
askiso cbpr-pack status ~/.askiso-cbpr/sr2025
askiso cbpr-pack generations ~/.askiso-cbpr/sr2025
askiso cbpr-pack verify /secure/CBPRPlus-SR2025 \
  --workspace ~/.askiso-cbpr/sr2025

# Enforce independent operator samples and externally recorded evidence.
make cbpr-strict-conformance \
  CBPR_SOURCE=/secure/CBPRPlus-SR2025 \
  CBPR_WORKSPACE=~/.askiso-cbpr/sr2025 \
  CBPR_EVIDENCE=/secure/CBPRPlus-SR2025/evidence.json

# Roll back locally if a later import is unsuitable.
askiso cbpr-pack activate ~/.askiso-cbpr/sr2025 <24-character-fingerprint>

# Prune old snapshots. This is destructive and always requires --confirm.
askiso cbpr-pack prune ~/.askiso-cbpr/sr2025 --keep 2 --confirm

# Materialise one locally generated valid BAH+Document fixture per variant.
askiso cbpr-pack export-valid-samples /secure/CBPRPlus-SR2025 \
  --workspace ~/.askiso-cbpr/sr2025 \
  --output '/secure/CBPRPlus-SR2025/04 Conformance Samples/Valid'

# Derive validated rejection fixtures. Re-import afterwards to pin their hashes.
askiso cbpr-pack export-invalid-samples /secure/CBPRPlus-SR2025 \
  --workspace ~/.askiso-cbpr/sr2025 \
  --output '/secure/CBPRPlus-SR2025/04 Conformance Samples/Invalid (Synthetic)'

# Create the 31-positive/31-negative independent-review work queue.
askiso cbpr-pack review-checklist ~/.askiso-cbpr/sr2025 \
  --output '/secure/CBPRPlus-SR2025/05 Conformance Evidence/Independent Sample Review Checklist.json'

# Inspect user-provided samples before a human reviewer attests to them.
askiso cbpr-pack audit-samples /secure/CBPRPlus-SR2025 \
  --workspace ~/.askiso-cbpr/sr2025

# Optional precautionary copies. The result remains synthetic and needs review.
askiso cbpr-pack anonymise-samples /secure/CBPRPlus-SR2025 \
  --workspace ~/.askiso-cbpr/sr2025 \
  --output '/secure/CBPRPlus-SR2025/04 Conformance Samples/Anonymised (Review Required)'

askiso cbpr-pack conformance /secure/CBPRPlus-SR2025 \
  --workspace ~/.askiso-cbpr/sr2025 \
  --as-of 2026-09-05 \
  --require-user-samples=true

# Reuse the verified, version-pinned workspace for day-to-day checks.
askiso lint payment.xml --cbpr-workspace ~/.askiso-cbpr/sr2025
askiso batch ./messages --cbpr-workspace ~/.askiso-cbpr/sr2025 --schema

# Enforce the same quarterly code publication during a one-off validation.
askiso validate payment.xml pacs.008.001.08.xsd \
  --external-codes ~/Downloads/2Q2026_externalcodesets_v3.json

# Select an effective-dated publication from a private history directory.
askiso cbpr-pack import /secure/CBPRPlus-SR2025 \
  --workspace ~/.askiso-cbpr/sr2025 \
  --external-codes /secure/External-Code-Publications \
  --external-codes-as-of 2026-09-05

# Compare entitled exports when the SR2026 package becomes available.
askiso cbpr-pack diff /secure/CBPRPlus-SR2025 /secure/CBPRPlus-SR2026 \
  --from-release SR2025 --to-release SR2026 \
  --output ~/.askiso-cbpr/sr2025-to-sr2026.json
```

The PDF path requires Poppler's `pdftotext`. AskISO invokes it directly without
a shell, reads the extracted text in memory, and records source filenames and
SHA-256 fingerprints, not PDF prose or absolute paths. It does not contact a
network service or create a cache. A compiled file is written only when the
user explicitly requests `--output`, with owner-only permissions; the standard
`*.cbpr-pack.json` name is gitignored by this repository.

"Local only" describes AskISO's behaviour: it does not send, copy into the
application, or upload the source artefacts. Filesystem providers remain outside
AskISO's control; a source folder in iCloud Drive, OneDrive or another synced
location is still synchronised by that provider according to the user's system
settings.

`ask --cbpr-pack` is an extractive local evidence search, not a connected AI
answer. It searches PDF, MyStandards JSON, XML/XSD and XLSX content in memory;
legacy `.xls` files are inventoried but must be saved as `.xlsx` to be searched.
Its control flow returns before AskISO creates an OpenAI or Ollama client, so
configured provider credentials cannot cause private passages to be sent
elsewhere. Results name relative local filenames and PDF pages where applicable.

PDF extraction covers explicit hierarchy/cardinality tables and supported
lexical types. Results identify themselves as **PDF-derived** and list any
coverage warnings; they do not claim equivalence with Swift's Readiness Portal.
Users remain responsible for their right to use the supplied documents and for
protecting both source and compiled packs. Do not publish or redistribute a
compiled pack unless the source licence permits it.

The importer recognises local PDF, Excel (`.xlsx`/`.xls`), MyStandards
Usage Guideline JSON Schema, and XML inputs. Guideline JSON metadata is used to
pin the exact message and Business Service variant, but a JSON Schema is not
misrepresented as an XML Schema. ZIP archives are deliberately ignored; export
the needed XML/XSD material as ordinary files if it should participate in the
local XML conformance suite.

`--generate-samples` closes the repeatable validator-evidence gap once entitled
XML/XSD Usage Guideline exports are present. For every executable XSD, AskISO
creates one schema-valid message and one well-formed wrong-namespace negative,
validates both before admitting them to the suite, and stores them only under
the owner-readable private workspace. External simple types use a value from
the imported Registration Authority publication when available. These are
explicitly labelled `origin: generated` with their negative mutation; they are
AskISO engine self-tests, not Swift-authored examples or certification evidence.

`export-valid-samples` combines each generated positive payload with a
schema-valid `head.001.001.02` Business Application Header from the paired
private BAH XSD. It validates every header, payload and header-to-payload binding
before writing the collection under the selected source directory. Filenames
include `askiso-generated`, and a later import preserves that provenance so the
fixtures cannot satisfy strict independent user-sample gates.

`export-invalid-samples` derives missing-mandatory, forbidden-element,
cardinality, lexical, restricted-code, external-code, Business Service and
BAH/payload mismatch cases, and admits a file only after the local validator
actually rejects it. Availability varies by schema: an external-code mutation
is emitted only when a suitable external type exists. The filenames retain
`askiso-generated`, so these engine tests cannot satisfy independent evidence
gates either.

The valid exporter supports `--transport envelope`, `--transport
request-payload`, and `--transport swift-datapdu`. DataPDU requires explicit
`--sender-dn` and `--receiver-dn`; its network service defaults to
`swift.finplus`. This is a local transport template, not a claim of validation
against an entitled Swift interface/network schema or a network acceptance
test.

Narrative conditions are never guessed from proprietary prose. An operator can
translate an entitled rule into `askiso-cbpr-rule-overlay/v1`, compile it with
`cbpr-pack compile-overlay`, and merge it during import with `--rule-overlay`.
Conditional constraints use `when_path`, `when_values`, or `when_absent`; their
source hash is retained in the resulting private pack.

The status output separates overall Usage Guideline inventory from executable
XML coverage. An XSD counts toward an exact message/Business Service pair only
when that service or specialised variant is explicit in its export content/path;
an unqualified export must at least identify itself as CBPRPlus before it can map
to the core service. This prevents an unconstrained base ISO XSD from being
reported as the pacs.008 STP or pacs.009 COV Usage Guideline. Add
representative user-held XML messages alongside their matching XSDs to test
business scenarios; use `.invalid.`, `-invalid`, or `_invalid` in expected-
rejection filenames.

The strict `conformance` command fails unless the workspace is local-only and
owner-readable, entitlement was acknowledged at import, all 31 executable
message/Business Service variants are present, the pinned suite passes, and an
external-code publication is appropriate for the requested validation quarter.
By default it also requires user-provided positive and negative samples for all
31 variants plus collection-level missing-mandatory, forbidden-element,
cardinality, lexical, restricted-code, external-code, Business Service and
BAH/payload scenarios. Put those scenario words in invalid filenames so the
content-free suite can classify them without storing message bodies.

Wrapped FINplus fixtures are supported: AskISO extracts and validates the
`Document`, then checks the `head.001.001.02` header namespace, From, To,
BizMsgIdr, MsgDefIdr, BizSvc and CreDt bindings. Bare `Document` fixtures remain
supported for schema-focused unit cases.

Independent portal results can be pinned without retaining proprietary request
or response bodies. Pass `--evidence evidence.json` and optionally
`--require-external-evidence`; the JSON must use
`askiso-cbpr-external-evidence/v1` and contain only provider, workspace/suite
fingerprints, RFC 3339 test time, case count and the passed verdict.
The `record-external-evidence` command requires an explicit acknowledgement and
records only a verdict the operator already obtained. AskISO neither invokes
nor impersonates the portal. Likewise, `attest-samples` records sample hashes
only after `audit-samples` is clean and a named human explicitly acknowledges
the independent review; it cannot create a reviewer or provider assertion.

The workspace manifest records only relative filenames, SHA-256 fingerprints,
message/service identifiers, counts and locally compiled rules. Source PDFs,
schemas, spreadsheets and samples stay in the directory selected by the user.
Manifest, suite, code index and pack files are owner-readable only. XML samples
are paired with matching local XSDs; `.invalid.`, `-invalid` and `_invalid` in a
sample filename mean rejection is expected. These local expectations are not
Swift Readiness Portal verdicts and the report says so explicitly.

Each refresh is built in a private staging directory and published as an
immutable `.generations/<manifest-fingerprint>` snapshot. A same-directory,
fsynced `current.json` replacement activates the complete snapshot; an OS file
lock serialises the compatibility mirror and pointer across processes. Failed
imports leave the previously active generation readable. Retained generations
can be integrity-checked with `generations` and selected with `activate` without
re-reading or copying any entitled source artefact.

Registration Authority external-code publications are accepted as XLSX,
record/group JSON, or the v3 JSON Schema representation. Imported values are
enforced during both buffered and streaming validation when a schema references
the corresponding external simple type. The source publication name, release
marker and SHA-256 fingerprint are retained so quarterly code-set changes cannot
silently alter a test baseline.
When `--external-codes` points to a directory, AskISO inventories every
recognised publication and selects the newest quarter effective on
`--external-codes-as-of`. The history is hash-pinned in the manifest while only
the selected publication is compiled into the runtime index.

`cbpr-pack diff` compares two local exports by relative path, message/service
identifier and SHA-256. It writes no source content. This gives an actionable
SR2025-to-SR2026 migration inventory once the user supplies the entitled target
export; it does not substitute for target-release Usage Guidelines or release
notes. Swift lists **14 November 2026** as the SR2026 live date and directs
users to MyStandards for final Usage Guidelines and schemas; AskISO deliberately
does not embed those artefacts.

`lint --cbpr-workspace` and `batch --cbpr-workspace` verify those fingerprints
before loading the compiled rules. With `batch --schema`, a workspace's pinned
external-code index also overrides the catalogue's built-in code list for matching
types. `--cbpr-workspace` and `--cbpr-pack` are mutually exclusive so a run cannot
silently mix two different baselines.

AskISO is an independent project and is not affiliated with, endorsed by, or
certified by Swift. Swift and MyStandards are trademarks of S.W.I.F.T. SC.
See Swift's [standards IPR policy](https://www.swift.com/about-us/legal/intellectual-property-rights-ipr-policies)
and [MyStandards access options](https://www.swift.com/products/mystandards);
this project documentation is not legal advice.

---

## Configuration

### The catalogue

AskISO knows about all **2,845 message definitions across 285 published message sets**
out of the box: that index is embedded, so `search`, `info`, `code`, `translate`,
`lint` and `generate` work the moment you install it, with no download and no network.
That includes converting a real SWIFT MT message: `translate payment.mt103` needs no
schemas, because the target document is built rather than read.

Commands that read the actual XSD files (`schema`, `sample`, `diff`, `stats`,
`code --sets`, and full `validate`) need a catalogue. Download the message sets you
want from the
[ISO 20022 catalogue of messages](https://www.iso20022.org/iso-20022-message-definitions)
and import them:

```bash
askiso catalog fetch pacs.008        # opens the right page, imports what lands
askiso code --import ~/Downloads/2Q2026_externalcodesets_v3.json # XLSX or JSON Schema
askiso catalog add ~/Downloads/PaymentsClearingAndSettlement_v11.zip
askiso catalog add ~/Downloads/*.zip
askiso catalog add ~/Downloads --dry-run     # see what would happen first
```

`catalog add` unpacks nested archives (the RA ships zips inside zips), sorts every file
into the right place, and matches the archive against the official set names so
`PaymentsClearingAndSettlement_v11.zip` and `payments-clearing-and-settlement.zip` both
land in one canonical directory.

Not sure what you have? `askiso catalog status` compares your install against the full
published standard; `askiso catalog where` shows every location AskISO searches.

The layout it produces, which you can also create by hand:

```text
<catalogue root>/
└── Payments Clearing and Settlement/
    ├── Version 11.0/
    │   ├── Schemas/                    ← required
    │   │   ├── pacs.008.001.10.xsd
    │   │   └── pacs.009.001.10.xsd
    │   ├── Sample Messages/            ← optional
    │   └── Message Definition Reports/ ← optional
    └── Version 12.0/
```

AskISO looks for the catalogue in this order:

| # | Location |
| :-- | :--- |
| 1 | `--catalog <path>` |
| 2 | `$ASKISO_CATALOG` |
| 3 | `$XDG_DATA_HOME/askiso/catalog`, when that variable is set |
| 4 | `~/Library/Application Support/askiso/catalog` (macOS) |
| 5 | `%LocalAppData%\askiso\catalog` (Windows) |
| 6 | `~/.local/share/askiso/catalog` |
| 7 | The working directory and its parents |

`HOME` wins over the operating system's own idea of your home directory wherever it is
set, which matters on Windows, where it is otherwise ignored entirely.

`catalog add` writes to whichever of those already holds a catalogue, so importing more
message sets extends your existing one rather than quietly starting a second.

```bash
askiso doctor    # confirms what AskISO found, and fails if it found nothing
```

If no catalogue is present, commands that need one tell you where AskISO looked and exit
non-zero. It never reports an empty catalogue as a healthy one.

> **Keep the catalogue out of cloud-synced folders.** iCloud Drive, Dropbox and OneDrive
> evict cold files and leave placeholders behind. AskISO detects iCloud placeholders and
> refuses to parse them, but the local data directory is the reliable home.

### Environment variables

| Variable | Effect |
| :--- | :--- |
| `ASKISO_CATALOG` | Catalogue location, after `--catalog` (see the search order above) |
| `XDG_DATA_HOME` | Base of the default catalogue location when set |
| `HOME` | Home directory used for the default locations, on every platform |
| `NO_COLOR` | Any value, like `TERM=dumb`, turns off colour and syntax highlighting in `ask`, `schema` and `sample` |
| `ASKISO_SHOW_LOGO` | `0` hides the logo in the TUI |
| `OLLAMA_HOST`, `OLLAMA_MODEL` | Local Ollama endpoint for the assistant (default `http://localhost:11434`, model `llama3`) |
| `OPENAI_API_KEY`, `OPENAI_BASE_URL`, `OPENAI_MODEL` | OpenAI-compatible provider for the assistant, used when the key is set (default base URL `https://api.openai.com/v1`, model `gpt-4o-mini`) |

`askiso doctor` reports which assistant provider it can reach.

### Language server profile

`askiso-lsp --profile` selects the rule profile (default `cbpr-2026`); an empty
value turns scheme rules off. A client can change it at runtime by sending
`workspace/didChangeConfiguration` with `{"askiso": {"profile": "cbpr-plus"}}`.

---

## Examples

Runnable programs, one per flow, in [`examples/`](examples/README.md). Every one is
built and exercised by `go test ./examples/...`, so none of them can rot without the
build noticing. The [documentation examples](https://pkg.go.dev/github.com/sebastienrousseau/askiso/pkg/iso20022#pkg-examples)
on pkg.go.dev show single calls.

| Example | Question it answers | Needs a catalogue |
| --- | --- | --- |
| [`remediate`](examples/remediate) | What is wrong with this message, and what do I change? | No |
| [`cbpr-2026`](examples/cbpr-2026) | Will this still be accepted after 14 November 2026? | No |
| [`mt-to-mx`](examples/mt-to-mx) | What does this SWIFT MT message look like as ISO 20022, and what was lost? | No |
| [`lookup`](examples/lookup) | What is this message, and what converts into it? | No |
| [`ci-sarif`](examples/ci-sarif) | How do I fail a build on bad messages? | No |
| [`batch-audit`](examples/batch-audit) | Across everything we send, which rule do we fail most? | No |
| [`validate`](examples/validate) | Is this message valid against its XML Schema? | **Yes** |

```bash
go run ./examples/remediate  payment.xml
go run ./examples/mt-to-mx   payment.mt103
go run ./examples/validate   payment.xml ~/iso20022-catalogue
```

---

## When not to use AskISO

**AskISO is a developer tool, not regulatory advice.** It reports what it can verify
against the schemas and rules it was given. A clean result is not an assurance that a
scheme, a correspondent or a market infrastructure will accept the message: the
Registration Authority and your scheme operator remain authoritative on that. Where a
mapping cannot be verified against a published source, AskISO reports the gap rather
than guessing.

Do not use it as a substitute for a CBPR+ Usage Guideline, a Swift Readiness Portal
verdict, or a network acceptance test; it is not affiliated with or certified by Swift.

### Known limitations

Stated plainly, because a validation tool that overstates itself is worse than no tool.

- **`generate` covers every message, two ways.** `pacs.008`, `pacs.009`, `pain.001` and
  `camt.053` come from templates with rail-aware defaults and need no catalogue. Every
  other message is built by walking its schema, which needs one installed. All 4,746
  installed schemas were generated, validated against themselves, and linted clean;
  that is asserted by `make conformance`, not claimed. A schema-built message is
  minimal and synthetic: it shows the shape, not a realistic payment.
- **`translate` covers seven pairs, both ways.** MT101, MT103, MT104, MT107, MT202, MT204
  and MT940 become `pain.001`, `pacs.008`, `pain.008`, `pacs.009`, `pacs.010` and
  `camt.053`, and each of those converts back. Statements carry their entries in both
  directions. Everything produced validates against its schema and lints clean, and every
  pair round-trips. The rest of the MT suite is a reference table only.
- **The exception family converts one way only.** MT n92, n95 and n96 become `camt.056`,
  `camt.110` and `camt.111` for every category (MT192, MT292, MT592 and the rest). The
  new messages want coded investigation types and reasons where MT carries prose, and
  AskISO will not invent a code it cannot verify: the proprietary branch of the choice
  names the source message and the prose becomes the narrative. Converting back is not
  implemented.
- **The two directions lose different things, and both say so.** MT to MX produces
  unstructured addresses, which CBPR+ stops accepting once the deferred requirement takes
  effect. MX to MT loses purpose codes, legal entity identifiers and structured remittance
  outright, flattens structured addresses into free text, and cuts a 35-character
  reference to the 16 an MT field allows. A statement entry keeps its amount, dates and
  references, but MT940 wants a four-character transaction type from its own vocabulary
  and no verifiable mapping from the ISO 20022 bank transaction code exists, so a
  structured code becomes `NMSC` and the report names what was lost. A proprietary code
  already shaped like an MT type is passed through exactly, which is how a statement
  generated from an MT940 gets its own codes back.
- **Conversion is lossy, by nature and by design.** MT addresses are unstructured, so a
  converted message will not satisfy the deferred CBPR+ address requirement until the
  addresses are enriched. Every source field appears in the fidelity report; nothing is
  dropped silently.
- **`diff` compares patterns conservatively.** Deciding whether one regular expression
  accepts everything another does is not decidable in general, so any pattern change is
  reported as breaking.
- **`code` searches three sources.** A curated dictionary of 33 codes that needs nothing
  installed; every code set enumerated in the schemas you downloaded; and the Registration
  Authority's external code set publication once you import it with
  `askiso code --import <ExternalCodeSets.xlsx-or-json>`. AskISO ships none of the last
  two: they are your download, stored beside your catalogue.
- **`askiso-lsp` synchronises whole documents**, not incremental edits, and offers no
  code actions or formatting. Completion and hover need an installed catalogue; without
  one they say so rather than guessing.
- **Streaming validation releases transaction subtrees, not everything.** A file of
  8 MiB or more is validated as it is read, at roughly 120 bytes per transaction rather
  than the whole document: a 39 MB statement costs about 2.4 MB. The verdict is identical
  to the buffered path, asserted against every sample message in the catalogue. Positions
  beyond the last 16,384 lines are reported as byte offsets rather than line numbers.
- **`catalog fetch` guides a download; it does not perform one.** It finds the right
  message set, opens the Registration Authority's page, and imports the archive when it
  appears in your downloads folder. It never accepts the RA's terms on your behalf, and it
  will not, because those terms are yours to accept.
- **`convert` refuses names that are not valid XML.** Go's XML decoder is more lenient
  than the specification, and a name AskISO accepted on the way in would be one it could
  not emit on the way back. Found by fuzzing, along with an attribute-escaping bug.
- **Non-adjacent repeated elements cannot be converted to JSON.** A JSON object cannot
  express that ordering, so `convert` reports it rather than silently reordering the
  document. No message in the catalogue hits this.

### What is built, and what is next

Everything on the original roadmap is built. What follows is what it would take
next, listed so the gaps are visible rather than implied.

| Next | Why it is not there yet |
| :--- | :--- |
| A published bank-transaction-code mapping | MT940 field 61 wants MT's own four-character vocabulary. A mapping exists in scheme documentation; AskISO will carry one when it can be verified against a source, not before |
| Realistic schema-driven output | A schema walk produces a minimal, synthetic message with plausible identifiers. Making one read like a real trade (consistent parties, matching references across a lifecycle) needs domain data AskISO does not carry |

---

## Development

```bash
make build         # build the binary
make test          # unit tests
make cover         # tests with a coverage floor
make ci            # the full gate: fmt, vet, lint, no-binaries, readme-check, test,
                   # cover, vuln, build, sessions, web-test, mcp-check, lsp-check
make conformance   # generate, convert and validate against your own catalogue
make differential  # agreement with libxml2 across the whole catalogue
make fuzz          # fuzz the parsers (FUZZTIME=5m for a longer run)
make web           # build the WebAssembly bundle for the website
make web-test      # smoke-test the Go/JS bridge
make readme-check  # this README against the portfolio template
make demo          # re-render .github/demo.gif from .github/demo.tape (needs vhs)
```

CI runs the test suite on Linux, macOS and Windows on every push to `main` and every
pull request, plus `govulncheck`, gosec and CodeQL. Coverage is enforced at 97.5% on
a runner with no catalogue installed, which is a stricter measurement than a developer
machine gives you: anything reachable only when a catalogue happens to be present does
not count towards it.

`make conformance` and `make differential` are not run in CI, because CI has no
catalogue. Run them before tagging a release. Conformance records known defects
explicitly, so fixing one turns the suite red until the expectation is removed.

The demo is rendered, never recorded by hand: `.github/demo.tape` runs the binary
`make demo` builds against `testdata/sessions/`, with no catalogue and no network.

See [CONTRIBUTING.md](CONTRIBUTING.md) for the workflow and versioning rules.

---

## Security

Report vulnerabilities privately through a
[GitHub security advisory](https://github.com/sebastienrousseau/askiso/security/advisories/new),
never a public issue. [`SECURITY.md`](SECURITY.md) states the response timescales and
the safe-harbour terms.

- **Local processing.** The CLI runs on your machine, the website is static, and the
  browser build runs in the tab: there is no AskISO-operated service that receives your
  messages. `askiso-server` runs wherever you deploy it, reads only the catalogue its
  operator configures, and keeps host paths out of its responses. Private CBPR+
  material is read in place and never uploaded (see
  [Bring your own CBPR+ guidelines](#bring-your-own-cbpr-guidelines)).
- **Untrusted input.** The pure-Go XML parser rejects DTD entity references before any
  external tool is invoked, and `xmllint`, when used, runs with `--nonet`. Native fuzz
  targets cover the parsers; CI runs a fuzz smoke campaign, race-detector repetitions,
  `checkptr`, AddressSanitizer and MemorySanitizer on every push to `main` and every
  pull request.
- **No bundled specifications.** AskISO reads schemas you obtained from the Registration
  Authority, so a compromised release cannot substitute altered schemas for yours.
- **Supply chain.** `govulncheck`, gosec (SARIF to code scanning), CodeQL and dependency
  review run in CI, and the OpenSSF Scorecard is tracked by the badge above. Releases
  carry a Sigstore-signed checksum file, an SBOM per archive and SLSA build provenance,
  and release tags are SSH-signed annotated tags.

---

## Documentation

- **Website and user guide:** <https://askiso.io>, with the [docs](https://askiso.io/docs/)
  and the [news and release notes](https://askiso.io/news/)
- **API reference:** [pkg.go.dev](https://pkg.go.dev/github.com/sebastienrousseau/askiso/pkg/iso20022)
- **Developer docs:** [CONTRIBUTING.md](CONTRIBUTING.md), [Development](#development)
  and [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)
- **Reference:** [docs/ABI.md](docs/ABI.md) (the JSON contract behind the HTTP server), [docs/SECURITY.md](docs/SECURITY.md),
  [docs/COMPLIANCE.md](docs/COMPLIANCE.md), [docs/BENCHMARKS.md](docs/BENCHMARKS.md)
  and [docs/COMPARISON.md](docs/COMPARISON.md)
- **Examples:** [examples/README.md](examples/README.md)
- **Releases:** [GitHub releases](https://github.com/sebastienrousseau/askiso/releases),
  [CHANGELOG.md](CHANGELOG.md), and the highlights each release page is
  written from in [docs/releases/](docs/releases/)
- **Security policy:** [SECURITY.md](SECURITY.md)
- **Code of conduct:** [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
- **Notices:** [NOTICE](NOTICE)

---

## Stability guarantees

- **Versioning.** AskISO is at `0.0.x`. Every release increments by exactly `0.0.1`,
  and `v0.1.0` follows `v0.0.999`; see [CONTRIBUTING.md](CONTRIBUTING.md). No release
  so far promises API or output stability: a `0.0.x` release may change
  `pkg/iso20022`, a command's flags, or what a command prints, and its release notes
  say what changed.
- **Rule profiles are dated.** A dated profile reports a requirement whose date has not
  arrived as a warning, so upgrading AskISO does not fail a build for something not yet
  required.
- **Minimum toolchain.** The floor is the `go` directive in `go.mod` (Go 1.26.11 today).
  So far it has only risen to a Go patch release that fixes standard-library
  advisories `govulncheck` reported, and each release that raised it named them.

---

## License

Dual-licensed at your option:

- **Apache License 2.0** ([LICENSE-APACHE](LICENSE-APACHE))
- **MIT License** ([LICENSE-MIT](LICENSE-MIT))

ISO 20022 is a registered standard of the International Organization for Standardization.
AskISO bundles no ISO 20022 specification content; see [NOTICE](NOTICE).

TDQS

A3.8/5.0

Scored across 10 tools

Disambiguation4/5

Each tool targets a distinct operation, but three verification tools (askiso_lint, askiso_validate, askiso_check_profile) sit close together and an agent must read carefully to pick the right one; the same mild overlap exists between askiso_translate and askiso_convert. Descriptions do draw the boundaries (semantic vs XSD vs scheme profile; MT/MX vs XML/JSON), so misselection is possible but recoverable.

Naming Consistency4/5

All names share a consistent askiso_ prefix and snake_case form, with no style mixing. Most are verbs (search, lint, validate, generate, translate, convert, diff) but a few are bare nouns (info, code, check_profile), which is a minor deviation from a strict verb_noun pattern rather than an inconsistency.

Tool Count5/5

Ten tools is squarely in the well-scoped range, and each one maps to a recognizable task in the ISO 20022 workflow: discover, inspect, lint, profile-check, validate, generate, translate, look up codes, diff versions, convert formats. No tool appears redundant or filler.

Completeness4/5

The surface covers the full authoring-to-migration lifecycle, including discovery, generation, validation, translation, and version diffing. The notable gap is schema/catalogue management: validate, diff, and generate depend on user-installed schemas, yet no tool lists, installs, or refreshes them, so agents hit a dead end when nothing is installed.

Maintenance

ActivityActive
ResponsivenessNo recent community issues