You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: publish a stable JSON error and exit-code compatibility contract #25
The README calls JSON output stable and versioned, but usage errors and runtime failures currently emit ad-hoc objects that do not share the schemaVersion 1 result shape. Consumers such as session-peer need an explicit contract for success, refusal, unknown evidence, and operational errors.
Scope
publish JSON Schema artifacts for list, inspect, unlock, and CLI error results
define required and optional fields, enum values, nullability, and unknown-field compatibility
define the mapping between command outcomes and exit codes 0, 2, 3, and 64
document that live_owner is liveness evidence and is not equivalent to safeToUnlock
exclude raw transcript contents, secrets, and unnecessary sensitive paths from new error metadata
add golden fixtures and backward-compatibility tests against v0.1.1 output
Acceptance criteria
every --json invocation writes exactly one valid JSON value to stdout
JSON errors carry schemaVersion and a stable machine-readable code
schemas validate representative success, refusal, unknown, and error fixtures
existing schemaVersion 1 result fields remain backward compatible
Activity