Repository navigation
Expand file tree
/
Copy pathexecution-target.schema.json
More file actions
46 lines (46 loc) · 1.72 KB
/
Copy pathexecution-target.schema.json
File metadata and controls
46 lines (46 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/melodic-software/claude-code-plugins/main/docs/contracts/execution-target/execution-target.schema.json",
"title": "Execution target",
"description": "Schema for docs/conventions/execution-target.yaml: which host runs each local-lane stage. Contract: docs/contracts/execution-target/README.md.",
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": { "type": "string" },
"default": {
"$ref": "#/$defs/target",
"description": "Host for any stage no class or skill key names. Absent means local-worktree."
},
"class": {
"type": "object",
"description": "Host per work-class label, read as class.<label>.",
"additionalProperties": false,
"properties": {
"read-only": { "$ref": "#/$defs/target" },
"mechanical": { "$ref": "#/$defs/target" },
"scoped": { "$ref": "#/$defs/target" },
"structural": { "$ref": "#/$defs/target" },
"untrusted-provenance": { "$ref": "#/$defs/target" }
}
},
"skill": {
"type": "object",
"description": "Host per stage skill: a map keyed by plugin, then by skill, read as skill.<plugin>.<skill>.",
"propertyNames": { "$ref": "#/$defs/segment" },
"additionalProperties": {
"type": "object",
"propertyNames": { "$ref": "#/$defs/segment" },
"additionalProperties": { "$ref": "#/$defs/target" }
}
}
},
"$defs": {
"target": {
"enum": ["local-worktree", "local-background", "cloud-session", "cloud-routine", "cloud-project"]
},
"segment": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]*$"
}
}
}