@dogfood-lab/schemas 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/src/json/dogfood-doctrine.schema.json +86 -86
- package/src/json/dogfood-finding.schema.json +414 -414
- package/src/json/dogfood-pattern.schema.json +124 -124
- package/src/json/dogfood-recommendation.schema.json +107 -107
- package/src/json/dogfood-record-submission.schema.json +226 -226
- package/src/json/dogfood-record.schema.json +303 -303
- package/src/json/policy.schema.json +182 -182
- package/src/json/scenario.schema.json +143 -143
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dogfood-lab/schemas",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "JSON schemas for the testing-os contract spine — record, finding, pattern, recommendation, doctrine, policy, scenario, submission.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,13 +26,14 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=
|
|
29
|
+
"node": ">=22"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"ajv": "^8.18.0",
|
|
33
33
|
"ajv-formats": "^3.0.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
+
"@types/node": "^25.3.5",
|
|
36
37
|
"vitest": "^4.1.6"
|
|
37
38
|
},
|
|
38
39
|
"author": "mcp-tool-shop",
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://github.com/dogfood-lab/testing-os/packages/schemas/src/json/dogfood-doctrine.schema.json",
|
|
4
|
-
"title": "Dogfood Doctrine",
|
|
5
|
-
"description": "A hardened portfolio rule earned from repeated patterns. Doctrine represents durable operating law — the strongest tier of dogfood learning. Must be backed by multiple accepted patterns.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": [
|
|
8
|
-
"schema_version",
|
|
9
|
-
"doctrine_id",
|
|
10
|
-
"title",
|
|
11
|
-
"status",
|
|
12
|
-
"doctrine_kind",
|
|
13
|
-
"statement",
|
|
14
|
-
"rationale",
|
|
15
|
-
"based_on_pattern_ids",
|
|
16
|
-
"transfer_scope"
|
|
17
|
-
],
|
|
18
|
-
"additionalProperties": false,
|
|
19
|
-
"properties": {
|
|
20
|
-
"schema_version": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
23
|
-
},
|
|
24
|
-
"doctrine_id": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"pattern": "^ddoc-[a-z0-9][a-z0-9-]*$",
|
|
27
|
-
"minLength": 6
|
|
28
|
-
},
|
|
29
|
-
"title": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"minLength": 10,
|
|
32
|
-
"maxLength": 200
|
|
33
|
-
},
|
|
34
|
-
"status": {
|
|
35
|
-
"type": "string",
|
|
36
|
-
"enum": ["candidate", "accepted", "rejected"]
|
|
37
|
-
},
|
|
38
|
-
"doctrine_kind": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"enum": [
|
|
41
|
-
"rollout_law",
|
|
42
|
-
"evidence_law",
|
|
43
|
-
"surface_law",
|
|
44
|
-
"verification_law",
|
|
45
|
-
"calibration_law"
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
"statement": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"minLength": 20,
|
|
51
|
-
"maxLength": 500,
|
|
52
|
-
"description": "The doctrine rule itself. Must read as a directive, not a suggestion."
|
|
53
|
-
},
|
|
54
|
-
"rationale": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"minLength": 20,
|
|
57
|
-
"maxLength": 1000,
|
|
58
|
-
"description": "Why this doctrine exists. Must reference recurrence evidence."
|
|
59
|
-
},
|
|
60
|
-
"based_on_pattern_ids": {
|
|
61
|
-
"type": "array",
|
|
62
|
-
"minItems": 1,
|
|
63
|
-
"items": { "type": "string", "minLength": 1 }
|
|
64
|
-
},
|
|
65
|
-
"transfer_scope": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"enum": ["surface_archetype", "execution_mode", "org_wide"]
|
|
68
|
-
},
|
|
69
|
-
"strength": {
|
|
70
|
-
"type": "string",
|
|
71
|
-
"enum": ["emerging", "proven", "foundational"]
|
|
72
|
-
},
|
|
73
|
-
"review": {
|
|
74
|
-
"type": "object",
|
|
75
|
-
"additionalProperties": false,
|
|
76
|
-
"properties": {
|
|
77
|
-
"reviewed_by": { "type": "string" },
|
|
78
|
-
"reviewed_at": { "type": "string", "format": "date-time" },
|
|
79
|
-
"decision_reason": { "type": "string", "maxLength": 1000 },
|
|
80
|
-
"last_action": { "type": "string", "enum": ["accept", "reject", "edit"] }
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"created_at": { "type": "string", "format": "date-time" },
|
|
84
|
-
"updated_at": { "type": "string", "format": "date-time" }
|
|
85
|
-
}
|
|
86
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/dogfood-lab/testing-os/packages/schemas/src/json/dogfood-doctrine.schema.json",
|
|
4
|
+
"title": "Dogfood Doctrine",
|
|
5
|
+
"description": "A hardened portfolio rule earned from repeated patterns. Doctrine represents durable operating law — the strongest tier of dogfood learning. Must be backed by multiple accepted patterns.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"doctrine_id",
|
|
10
|
+
"title",
|
|
11
|
+
"status",
|
|
12
|
+
"doctrine_kind",
|
|
13
|
+
"statement",
|
|
14
|
+
"rationale",
|
|
15
|
+
"based_on_pattern_ids",
|
|
16
|
+
"transfer_scope"
|
|
17
|
+
],
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"properties": {
|
|
20
|
+
"schema_version": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
23
|
+
},
|
|
24
|
+
"doctrine_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"pattern": "^ddoc-[a-z0-9][a-z0-9-]*$",
|
|
27
|
+
"minLength": 6
|
|
28
|
+
},
|
|
29
|
+
"title": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 10,
|
|
32
|
+
"maxLength": 200
|
|
33
|
+
},
|
|
34
|
+
"status": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": ["candidate", "accepted", "rejected"]
|
|
37
|
+
},
|
|
38
|
+
"doctrine_kind": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": [
|
|
41
|
+
"rollout_law",
|
|
42
|
+
"evidence_law",
|
|
43
|
+
"surface_law",
|
|
44
|
+
"verification_law",
|
|
45
|
+
"calibration_law"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"statement": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 20,
|
|
51
|
+
"maxLength": 500,
|
|
52
|
+
"description": "The doctrine rule itself. Must read as a directive, not a suggestion."
|
|
53
|
+
},
|
|
54
|
+
"rationale": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"minLength": 20,
|
|
57
|
+
"maxLength": 1000,
|
|
58
|
+
"description": "Why this doctrine exists. Must reference recurrence evidence."
|
|
59
|
+
},
|
|
60
|
+
"based_on_pattern_ids": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"minItems": 1,
|
|
63
|
+
"items": { "type": "string", "minLength": 1 }
|
|
64
|
+
},
|
|
65
|
+
"transfer_scope": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"enum": ["surface_archetype", "execution_mode", "org_wide"]
|
|
68
|
+
},
|
|
69
|
+
"strength": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"enum": ["emerging", "proven", "foundational"]
|
|
72
|
+
},
|
|
73
|
+
"review": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"properties": {
|
|
77
|
+
"reviewed_by": { "type": "string" },
|
|
78
|
+
"reviewed_at": { "type": "string", "format": "date-time" },
|
|
79
|
+
"decision_reason": { "type": "string", "maxLength": 1000 },
|
|
80
|
+
"last_action": { "type": "string", "enum": ["accept", "reject", "edit"] }
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"created_at": { "type": "string", "format": "date-time" },
|
|
84
|
+
"updated_at": { "type": "string", "format": "date-time" }
|
|
85
|
+
}
|
|
86
|
+
}
|