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 toRead
Run your first exchangeThe README example.
Inspect state from an agent clientMCP diagnostics: six read-only tools and an interactive MCP App.
Plan a deploymentProduction deployment: brokers, security, state directories, backups, health checks and service setup.
Respond to a failureRunbooks: held work, unknown outcomes, broker failures, storage pressure and restore recovery.
Upgrade an existing storeUpgrade notes: schema versions and rollback with a backup.
Check evidence and remaining gapsThe core acceptance ledger and adoption and recovery ledger.

References

DocumentWhat it covers
ConfigurationEvery command-line flag and ka2a.Config field.
MetricsMetric names, labels, meanings and alert guidance. Start with the example alert rules.
ErrorsError codes, broker failure classes, reason codes, exit codes and retry advice.
Output formatsVersioned JSON documents (ka2a.*/1) and compatibility rules.
Threat modelAssets, trust boundaries, attackers, mitigations and remaining risks.
VersioningPreview API stability, deprecation policy and supported Go versions.
ReleasingThe owner's manual release procedure.
Release artifactsBinaries, 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:

CodeMeaning
0Success.
1The command failed. The message names the error code.
2Usage error: unknown command, flag or argument.
3The checks found problems.
4The command is not available in this build.
5A running node owns the state directory.
6A 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.