kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

CLI / validate / oq

kosa8 validate oq

Run an Operational Qualification protocol in a clone of a validated snapshot

Usage#

kosa8 validate oq SNAPSHOT --protocol FILE

Runs each step of a declared test protocol (YAML or JSON: a command, where to run it, and the expected exit code and output) inside a sandbox restored from SNAPSHOT under a new name, so the validated state is never modified. Records every step's result with timestamps and output digests, the protocol file by digest, and the snapshot's seal as verified at restore. The clone is removed afterwards unless --keep-clone.

A protocol (docs/design/gxp-validation.md has the full format):

id: OQ-STATS-001
version: "1.0"
title: R environment operational qualification
image: r-base:4.4.1
steps:
  - id: OQ-01
    title: R reports the validated version
    requirement: URS-12
    run: [R, --version]
    expect: {exit: 0, stdout_regex: 'R version 4\.4\.1'}

Options#

FlagTypeWhat it doesDefault
--htmlboolalso render RECORD.html—
--keep-cloneboolleave the clone the steps ran in, for investigating a failure—
-o, --outstringrecord package: .tar for a tar, else a directory (default <RECORD-ID>.tar)—
-p, --protocolstringthe OQ protocol to execute (YAML or JSON)—
--signerstringprinted name of the package signer—
--signer-keystringsign the package with this Ed25519 key file instead of the machine's key—

Example#

  kosa8 validate oq stats-validated --protocol oq-stats.yaml --out oq-2026-09.tar

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · Zero Trust cybersecurity infrastructure for AI agents · Local models served by llamay · Agent gateway: MAQPNA