Skip to content

JSON Contracts

Agents should not reverse-engineer command output by trial and error. Jumpspace publishes schemas for agent-facing JSON output.

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.

Terminal window
npx jumpspace schema list --json
npx jumpspace schema show work --json
npx jumpspace schema show plan.save --json
npx jumpspace schema show verify --json
npx jumpspace schema coverage --json

schema coverage checks declared JSON commands, the schema catalog, generated schema artifacts, and SDK schema names for drift.

The npm package includes:

  • schemas/catalog.json
  • schemas/<name>.schema.json

Use those when you need static contracts without shelling out to the CLI.

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.

from jumpspace_sdk import SCHEMA_NAMES, assert_ok, is_error_envelope

The Python SDK is a small stdlib dataclass package under sdk/python. It mirrors the published schema names.

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.