JSON Contracts
Agents should not reverse-engineer command output by trial and error. Jumpspace publishes schemas for agent-facing JSON output.
Standard Error Envelope
Section titled “Standard Error Envelope”JSON failures use this shape:
{ "ok": false, "errors": [ { "code": "UNKNOWN_TASK", "message": "Task DOC-404 was not found.", "taskId": "DOC-404" } ]}Human-readable commands still print useful messages, but scripts should use --json and schema contracts.
Discover Schemas
Section titled “Discover Schemas”npx jumpspace schema list --jsonnpx jumpspace schema show work --jsonnpx jumpspace schema show plan.save --jsonnpx jumpspace schema show verify --jsonnpx jumpspace schema coverage --jsonschema coverage checks declared JSON commands, the schema catalog, generated schema artifacts, and SDK schema names for drift.
Generated Artifacts
Section titled “Generated Artifacts”The npm package includes:
schemas/catalog.jsonschemas/<name>.schema.json
Use those when you need static contracts without shelling out to the CLI.
TypeScript SDK
Section titled “TypeScript SDK”import { assertOk, getSdkSchema, isJumpspaceErrorEnvelope } from 'jumpspace/sdk';
const workSchema = getSdkSchema('work');The TypeScript SDK exposes schema names, contract version, command result aliases, and error helpers.
Python SDK
Section titled “Python SDK”from jumpspace_sdk import SCHEMA_NAMES, assert_ok, is_error_envelopeThe Python SDK is a small stdlib dataclass package under sdk/python. It mirrors the published schema names.
When To Use JSON
Section titled “When To Use JSON”Use --json for:
- agent orchestration
- CI checks
- PR comments
- scripts that parse task, plan, drift, or verification state
- schema-aware integrations
Use human output when a developer is reading the result directly.