MAP Docs
MAX

CLI

`map invoke MAX` recipes for every operation.

The CLI is a Rust binary at services/map-cli. After map login you can dispatch any operation on MAX from the shell.

Common flags

FlagEffect
--input <json>Operation payload (or read from stdin)
--version v1.0.0Pin a specific protocol version
--idempotency-key <k>Required for safe retries of state-changing ops
--audit-tailPrint the audit record(s) produced
--output humanPretty-print response (default: json)

Recipes

audit_log_entry

map invoke MAX audit_log_entry --input '{"event_type":"demo","meta":{"note":"hello world"}}'

Append a record to the chain with hash chaining and signature.

Capability: map.max.audit_log_entry

audit_query

map invoke MAX audit_query --input '{"example":true}'

Query the chain by predicate; supports time-travel and structured filters.

Capability: map.max.audit_query

traceability_graph

map invoke MAX traceability_graph --input '{"example":true}'

Reconstruct the traceability graph for a request or decision.

Capability: map.max.traceability_graph

explainability_request

map invoke MAX explainability_request --input '{"example":true}'

Produce a human-readable explanation of a recorded decision.

Capability: map.max.explainability_request

compliance_report

map invoke MAX compliance_report --input '{"example":true}'

Generate a compliance report for a period and policy set.

Capability: map.max.compliance_report

health_check

map invoke MAX health_check --input '{"example":true}'

Audit-chain health: integrity, lag, partition status.

Capability: map.max.health_check

See CLI reference for global flags, login, MCP integration.

On this page