Files
gstack/schemas/handoff.schema.json
T
Garry Tan 1829f60596 feat: add JSON Schema definitions + COMPATIBILITY.md for cross-runtime contracts
Four schemas for the OpenClaw dispatch protocol:
- dispatch.schema.json (task dispatch with target_agent, source_signature)
- completion.schema.json (session completion report with retry_count)
- handoff.schema.json (cross-runtime context transfer with resume_prompt)
- activity-entry.schema.json (weekly activity index entries)

COMPATIBILITY.md defines breaking vs non-breaking changes so future
contributors don't guess under pressure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 21:24:22 -07:00

18 lines
798 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/garrytan/gstack/schemas/handoff.schema.json",
"title": "gstack Session Handoff",
"description": "Cross-runtime context transfer between gstack and an orchestrator (e.g., OpenClaw)",
"type": "object",
"required": ["from", "to", "project", "timestamp"],
"properties": {
"from": { "enum": ["gstack", "wintermute", "openclaw"] },
"to": { "enum": ["gstack", "wintermute", "openclaw"] },
"project": { "type": "string" },
"branch": { "type": "string" },
"timestamp": { "type": "string", "format": "date-time" },
"resume_prompt": { "type": "string", "maxLength": 4096, "description": "Exact prompt to resume session in the target runtime" }
},
"additionalProperties": false
}