Repository navigation
Expand file tree
/
Copy pathwork-plan-v1.schema.json
More file actions
149 lines (149 loc) · 5.28 KB
/
Copy pathwork-plan-v1.schema.json
File metadata and controls
149 lines (149 loc) · 5.28 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:frontier-systems:schema:work-plan:v1",
"title": "Frontier Systems Work Plan v1",
"description": "Canonical player-owned plan draft; approval and work-order creation are separate server transactions.",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"plan_id",
"world_id",
"author_principal_id",
"revision_author_principal_id",
"revision",
"title",
"objective",
"status",
"visibility",
"assumptions",
"tasks",
"created_at",
"updated_at"
],
"properties": {
"schema_version": { "const": 1 },
"plan_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"world_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"colony_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"author_principal_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"revision_author_principal_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"revision": { "type": "integer", "minimum": 1 },
"title": { "type": "string", "minLength": 1, "maxLength": 160 },
"objective": { "type": "string", "minLength": 1, "maxLength": 4000 },
"rationale": { "type": "string", "maxLength": 8000 },
"status": {
"enum": ["draft", "review", "approved", "in_progress", "completed", "failed", "archived"]
},
"visibility": {
"type": "object",
"additionalProperties": false,
"required": ["mode"],
"properties": {
"mode": {
"enum": ["private", "named_principals", "crew_group", "colony_board"]
},
"principal_ids": {
"type": "array",
"uniqueItems": true,
"maxItems": 256,
"items": { "type": "string", "minLength": 1, "maxLength": 128 }
},
"group_id": { "type": "string", "minLength": 1, "maxLength": 128 }
}
},
"assumptions": {
"type": "array",
"maxItems": 128,
"items": { "type": "string", "minLength": 1, "maxLength": 1000 }
},
"constraints": {
"type": "array",
"maxItems": 128,
"items": { "type": "string", "minLength": 1, "maxLength": 1000 }
},
"tasks": {
"type": "array",
"minItems": 1,
"maxItems": 256,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["task_id", "kind", "description", "dependencies", "preconditions"],
"properties": {
"task_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"kind": {
"enum": ["inspect", "repair", "fetch_material", "build_blueprint", "operate_device", "research", "other"]
},
"description": { "type": "string", "minLength": 1, "maxLength": 2000 },
"target_entity_ids": {
"type": "array",
"uniqueItems": true,
"maxItems": 128,
"items": { "type": "string", "minLength": 1, "maxLength": 128 }
},
"dependencies": {
"type": "array",
"uniqueItems": true,
"maxItems": 128,
"items": { "type": "string", "minLength": 1, "maxLength": 128 }
},
"preconditions": {
"type": "array",
"maxItems": 128,
"items": { "type": "string", "minLength": 1, "maxLength": 1000 }
},
"required_roles": {
"type": "array",
"uniqueItems": true,
"maxItems": 32,
"items": { "type": "string", "minLength": 1, "maxLength": 128 }
},
"required_tool_ids": {
"type": "array",
"uniqueItems": true,
"maxItems": 64,
"items": { "type": "string", "minLength": 1, "maxLength": 128 }
},
"blueprint_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"estimated_resources": {
"type": "array",
"maxItems": 128,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["material_id", "quantity", "unit"],
"properties": {
"material_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"quantity": { "type": "number", "minimum": 0 },
"unit": { "type": "string", "minLength": 1, "maxLength": 32 }
}
}
},
"hazards": {
"type": "array",
"maxItems": 64,
"items": { "type": "string", "minLength": 1, "maxLength": 1000 }
},
"generated_work_order_id": { "type": "string", "minLength": 1, "maxLength": 128 }
}
}
},
"linked_entity_ids": {
"type": "array",
"uniqueItems": true,
"maxItems": 256,
"items": { "type": "string", "minLength": 1, "maxLength": 128 }
},
"source_context_revision_ids": {
"type": "array",
"uniqueItems": true,
"maxItems": 256,
"items": { "type": "string", "minLength": 1, "maxLength": 128 }
},
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"parent_revision": { "type": "integer", "minimum": 1 },
"change_summary": { "type": "string", "maxLength": 500 }
}
}