ALL

For reading and verification only. You may not copy, use, modify or redistribute this code. Full notice on the main page.

contracts/schemas/surfaces-file.schema.json

SHA-256: 8222b1c680d4c14c492602ab56595ca86baf12aa835f9a4bed04a083adb5e590
16 lines · 923 bytes · View on GitHub

1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "$id": "https://all-mcp.fyi/contracts/v2/surfaces-file.schema.json",
4 "title": "state_dir()/surfaces.json (mode 0600), written by the agent when the E2E surface listens. The terminator dials only host:port after checking that pid is the agent, and proves the listener holds `secret` (surface identity proof) before it sends the first ChatGPT byte. The secret is new at every start.",
5 "type": "object",
6 "required": ["v", "pid", "host", "port", "secret", "started_at"],
7 "additionalProperties": false,
8 "properties": {
9 "v": {"const": 1},
10 "pid": {"type": "integer", "minimum": 1, "maximum": 4294967295},
11 "host": {"const": "127.0.0.1"},
12 "port": {"type": "integer", "minimum": 1024, "maximum": 65535},
13 "secret": {"type": "string", "pattern": "^[A-Za-z0-9_-]{43}$"},
14 "started_at": {"$ref": "common.schema.json#/$defs/epoch_s"}
15 }
16}