Files
crosscode-platform/packages/contracts/schemas/agent-join-response.json
T
joshuaandClaude Opus 5.5 90a98a4306 contracts 1.3.0: agent jobs, reports, stats, join/poll, env templates, church export
Jobs of fixed types with strict argument schemas, signed by the Hub with
Ed25519 over canonical JSON. Agent requests signed with the server's
Ed25519 key. Config sealed to the server's X25519 key (X25519 + HKDF +
AES-256-GCM; Node has no XSalsa20). Exports encrypted with a key that
only travels in the download link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 12:02:24 +02:00

32 lines
708 B
JSON

{
"$id": "https://c-git.crosscode.co.za/joshua/crosscode-platform/raw/branch/main/packages/contracts/schemas/agent-join-response.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"serverId": {
"type": "string",
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
},
"hubJobKey": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$"
},
"pollSeconds": {
"type": "integer",
"minimum": 5,
"maximum": 600
},
"statsSeconds": {
"type": "integer",
"minimum": 15,
"maximum": 3600
}
},
"required": [
"serverId",
"hubJobKey",
"pollSeconds",
"statsSeconds"
]
}