ka2a · documentation
ka2a operator documentation
This guide describes ka2a at revision a34b8bc9d319502002f104d28f90d18c325a5d26. Source: docs/README.md. Source links require repository access. The App examples on the product page use reviewed revision a7c8ac4a85f5.
Contents
These guides explain how to configure, inspect and recover a ka2a endpoint.
Choose a starting point
| You need to | Read |
|---|---|
| Run your first exchange | The README example. |
| Inspect state from an agent client | MCP diagnostics: six read-only tools and an interactive MCP App. |
| Plan a deployment | Production deployment: brokers, security, state directories, backups, health checks and service setup. |
| Respond to a failure | Runbooks: held work, unknown outcomes, broker failures, storage pressure and restore recovery. |
| Upgrade an existing store | Upgrade notes: schema versions and rollback with a backup. |
| Check evidence and remaining gaps | The core acceptance ledger and adoption and recovery ledger. |
References
| Document | What it covers |
|---|---|
| Configuration | Every command-line flag and ka2a.Config field. |
| Metrics | Metric names, labels, meanings and alert guidance. Start with the example alert rules. |
| Errors | Error codes, broker failure classes, reason codes, exit codes and retry advice. |
| Output formats | Versioned JSON documents (ka2a.*/1) and compatibility rules. |
| Threat model | Assets, trust boundaries, attackers, mitigations and remaining risks. |
| Versioning | Preview API stability, deprecation policy and supported Go versions. |
| Releasing | The owner's manual release procedure. |
| Release artifacts | Binaries, software bills of materials (SBOMs), checksums, reproducible builds and vulnerability scans. |
Tests keep the configuration, metrics, error and output references complete. Release tools publish nothing. The owner decides whether to publish a release.
Exit codes
The ka2a command uses these stable exit codes:
| Code | Meaning |
|---|---|
| 0 | Success. |
| 1 | The command failed. The message names the error code. |
| 2 | Usage error: unknown command, flag or argument. |
| 3 | The checks found problems. |
| 4 | The command is not available in this build. |
| 5 | A running node owns the state directory. |
| 6 | A request is admitted, but its outcome is not known yet. |
Exit code 6 does not cancel the operation or establish a remote failure. Inspect the same operation again to read any later result.