Files
gstack/schemas/activity-entry.schema.json
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
887 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/garrytan/gstack/schemas/activity-entry.schema.json",
"title": "gstack Activity Entry",
"description": "Single entry in the weekly activity index (activity-YYYY-WNN.jsonl)",
"type": "object",
"required": ["ts", "project", "skill", "duration"],
"properties": {
"ts": { "type": "string", "format": "date-time" },
"project": { "type": "string" },
"skill": { "type": "string" },
"artifacts": { "type": "array", "items": { "type": "string" }, "description": "References to produced artifacts (e.g., pr:47, review-log.jsonl, learnings:3)" },
"duration": { "type": "integer", "description": "Session duration in seconds" },
"dispatch": { "type": "string", "description": "Orchestrator identity if this was a dispatched session" }
},
"additionalProperties": false
}