SLA CLI Commands (commands/sla_cmd.py)

bernstein · src/bernstein/cli/commands/sla_cmd.py · python · Apache-2.0
cli, infra, pos, security, tag:sla, tag:ed25519

CLI commands to add, list, show, verify, and report per-goal SLA contracts, wrapping the SLA store, evaluators, and signed receipts. Reuse for SLA management and offline compliance verification.

# Source: https://github.com/sipyourdrink-ltd/bernstein | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""CLI commands for per-goal SLA contracts (#2549).

Commands:

- ``bernstein sla add --subject-type <t> --subject <id> [axes...]``
- ``bernstein sla list [--json]``
- ``bernstein sla show <id> [--json]``
- ``bernstein sla verify <receipt.json>``
- ``bernstein sla report <id> [--json]``

The CLI is a thin shell around
:class:`bernstein.core.planning.sla_store.SLAStore`, the pure evaluators in
:mod:`bernstein.core.observability.sla_eval`, and the signed receipt in
:mod:`bernstein.core.orchestration.sla_receipt`. ``verify`` reads nothing but
the receipt file itself: it recomputes t

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key