@agentswf/lab 0.0.0-stage → 0.3.0

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.
Files changed (125) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +15 -2
  3. package/package.json +46 -4
  4. package/schema/case-check.schema.json +64 -0
  5. package/schema/case-config.schema.json +187 -0
  6. package/schema/case-final.schema.json +48 -0
  7. package/schema/case-good-record.schema.json +70 -0
  8. package/schema/case-grade.schema.json +49 -0
  9. package/schema/case-key.schema.json +117 -0
  10. package/schema/case-label.schema.json +32 -0
  11. package/schema/case-loop-report.schema.json +210 -0
  12. package/schema/case-loop.schema.json +141 -0
  13. package/schema/case-plan.schema.json +117 -0
  14. package/schema/case-previous.schema.json +70 -0
  15. package/schema/case-proposal.schema.json +52 -0
  16. package/schema/case-report.schema.json +892 -0
  17. package/schema/case-run.schema.json +253 -0
  18. package/schema/case-runs.schema.json +125 -0
  19. package/schema/case-score.schema.json +319 -0
  20. package/schema/case-spread.schema.json +110 -0
  21. package/schema/case-trial.schema.json +543 -0
  22. package/schema/case-try.schema.json +113 -0
  23. package/schema/local.json +155 -0
  24. package/src/cli.ts +9 -0
  25. package/src/env/capture.ts +48 -0
  26. package/src/env/compare.ts +201 -0
  27. package/src/env/facts.ts +51 -0
  28. package/src/env/fetch.ts +57 -0
  29. package/src/env/files.ts +228 -0
  30. package/src/env/grade-case.ts +80 -0
  31. package/src/env/grade-helper.ts +352 -0
  32. package/src/env/grader.ts +128 -0
  33. package/src/env/index.ts +727 -0
  34. package/src/env/mock.ts +374 -0
  35. package/src/env/routes.ts +90 -0
  36. package/src/env/sources.ts +19 -0
  37. package/src/env/state.ts +79 -0
  38. package/src/env/trial.ts +182 -0
  39. package/src/format/key.ts +144 -0
  40. package/src/format/loop.ts +178 -0
  41. package/src/format/output.ts +481 -0
  42. package/src/format/records.ts +440 -0
  43. package/src/format/schema-files.ts +64 -0
  44. package/src/format/settings.ts +552 -0
  45. package/src/format/trial-env.ts +64 -0
  46. package/src/format/trial-file.ts +134 -0
  47. package/src/help/awf-lab.txt +29 -0
  48. package/src/help/case.txt +38 -0
  49. package/src/help/config.txt +14 -0
  50. package/src/help/label.txt +12 -0
  51. package/src/help/loop.txt +44 -0
  52. package/src/help/report.txt +20 -0
  53. package/src/help/run.txt +60 -0
  54. package/src/help/runs.txt +10 -0
  55. package/src/help/score.txt +27 -0
  56. package/src/judge/criteria.workflow.ts +237 -0
  57. package/src/judge/version.ts +6 -0
  58. package/src/lab/answer.ts +47 -0
  59. package/src/lab/blame.ts +204 -0
  60. package/src/lab/box.ts +249 -0
  61. package/src/lab/capture-command.ts +298 -0
  62. package/src/lab/capture.ts +234 -0
  63. package/src/lab/check-command.ts +187 -0
  64. package/src/lab/cli.ts +324 -0
  65. package/src/lab/code-graders.ts +108 -0
  66. package/src/lab/columns.ts +138 -0
  67. package/src/lab/command-context.ts +436 -0
  68. package/src/lab/compare.ts +123 -0
  69. package/src/lab/config-command.ts +278 -0
  70. package/src/lab/criteria.ts +69 -0
  71. package/src/lab/dataset.ts +356 -0
  72. package/src/lab/eval-files.ts +185 -0
  73. package/src/lab/expect.ts +79 -0
  74. package/src/lab/facts.ts +59 -0
  75. package/src/lab/families.ts +32 -0
  76. package/src/lab/folders.ts +153 -0
  77. package/src/lab/git.ts +128 -0
  78. package/src/lab/good.ts +224 -0
  79. package/src/lab/grading-stub.txt +8 -0
  80. package/src/lab/grading.ts +332 -0
  81. package/src/lab/inspect.ts +226 -0
  82. package/src/lab/labels.ts +206 -0
  83. package/src/lab/loop-code.ts +255 -0
  84. package/src/lab/loop-command.ts +770 -0
  85. package/src/lab/loop-records.ts +144 -0
  86. package/src/lab/loop.ts +859 -0
  87. package/src/lab/marker.ts +23 -0
  88. package/src/lab/outcome.ts +196 -0
  89. package/src/lab/pooled.ts +106 -0
  90. package/src/lab/project-env.ts +39 -0
  91. package/src/lab/rates.ts +150 -0
  92. package/src/lab/reach.ts +111 -0
  93. package/src/lab/record-copies.ts +202 -0
  94. package/src/lab/refusal.ts +2 -0
  95. package/src/lab/report-command.ts +156 -0
  96. package/src/lab/report.ts +838 -0
  97. package/src/lab/reuse.ts +126 -0
  98. package/src/lab/run-command.ts +853 -0
  99. package/src/lab/run-logs.ts +89 -0
  100. package/src/lab/run-report.ts +259 -0
  101. package/src/lab/runs-command.ts +163 -0
  102. package/src/lab/runs.ts +172 -0
  103. package/src/lab/scaffold.ts +91 -0
  104. package/src/lab/score-command.ts +189 -0
  105. package/src/lab/score.ts +396 -0
  106. package/src/lab/store.ts +383 -0
  107. package/src/lab/text.ts +29 -0
  108. package/src/lab/trial-settings.ts +100 -0
  109. package/src/lab/trial-stub.txt +18 -0
  110. package/src/lab/trial.ts +443 -0
  111. package/src/lab/usage.ts +273 -0
  112. package/src/lab/verdict.ts +161 -0
  113. package/src/lab/workflow-graders.ts +161 -0
  114. package/src/lab/workspace.ts +489 -0
  115. package/src/loop/propose.workflow.ts +84 -0
  116. package/src/shared/allowance.ts +185 -0
  117. package/src/shared/compare/index.ts +3 -0
  118. package/src/shared/compare/paired.ts +397 -0
  119. package/src/shared/compare/stats.ts +139 -0
  120. package/src/shared/compare/types.ts +75 -0
  121. package/src/shared/config.ts +15 -0
  122. package/src/shared/runner.ts +321 -0
  123. package/src/shared/validate.ts +181 -0
  124. package/src/shared/version.ts +41 -0
  125. package/src/write-schemas.ts +10 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 the agents.wf authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,16 @@
1
- # Temporary Holding Version
1
+ # @agentswf/lab
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `awf-lab` tells you whether a change made a workflow better. It runs the workflow, with its real
4
+ agents, on cases whose right answer you know, grades each result, and compares two versions of the
5
+ code or two settings case by case. `awf-lab loop` lets an agent propose changes and keeps one only
6
+ when it is shown better.
7
+
8
+ - [Evals](https://agents.wf/guide/evals): cases, graders, and comparing versions.
9
+ - [Autoresearch](https://agents.wf/guide/autoresearch): the loop.
10
+ - [awf-lab reference](https://agents.wf/reference/awf-lab): every command, file and rule, and how
11
+ to install it.
12
+
13
+ The same pages are in this repository under [`site/`](../../site/guide/evals.md). A worked example
14
+ is [`examples/refund-desk`](../../examples/refund-desk/README.md).
15
+ [`AGENTS.md`](AGENTS.md) says how the package is laid out; story
16
+ [044](../../docs/stories/044-cases-for-a-workflow.md) says why it works this way.
package/package.json CHANGED
@@ -1,6 +1,48 @@
1
1
  {
2
2
  "name": "@agentswf/lab",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.0",
4
+ "description": "agents.wf's lab: run a workflow on cases whose answers are known, grade every trial, compare versions and run the improvement loop. Gives you awf-lab and @agentswf/lab",
5
+ "license": "MIT",
6
+ "homepage": "https://agents.wf/reference/awf-lab",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/romanlv/agentswf.git",
10
+ "directory": "packages/lab"
11
+ },
12
+ "type": "module",
13
+ "engines": {
14
+ "bun": ">=1.4.0"
15
+ },
16
+ "bin": {
17
+ "awf-lab": "./src/cli.ts"
18
+ },
19
+ "exports": {
20
+ ".": "./src/env/index.ts",
21
+ "./fetch": "./src/env/fetch.ts"
22
+ },
23
+ "files": [
24
+ "src",
25
+ "schema",
26
+ "!src/**/*.test.ts",
27
+ "!src/**/*.eval.ts",
28
+ "!src/**/*.typecheck.ts",
29
+ "!src/**/*.fixture.ts",
30
+ "!src/**/fixtures",
31
+ "README.md",
32
+ "LICENSE"
33
+ ],
34
+ "dependencies": {
35
+ "@agentswf/contract": "0.3.0",
36
+ "typebox": "^1.3.34",
37
+ "yaml": "^2.9.1"
38
+ },
39
+ "peerDependencies": {
40
+ "agentswf": "^0.3.0"
41
+ },
42
+ "devDependencies": {
43
+ "agentswf": "0.3.0"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ }
48
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "awf-lab case check --json",
4
+ "type": "object",
5
+ "required": ["kind", "datasets"],
6
+ "properties": {
7
+ "kind": {
8
+ "type": "string",
9
+ "const": "awf.case-check/1"
10
+ },
11
+ "datasets": {
12
+ "type": "array",
13
+ "items": {
14
+ "type": "object",
15
+ "required": ["dataset", "checked", "good", "failing", "cases"],
16
+ "properties": {
17
+ "dataset": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "checked": {
22
+ "type": "integer",
23
+ "minimum": 0
24
+ },
25
+ "good": {
26
+ "type": "integer",
27
+ "minimum": 0
28
+ },
29
+ "failing": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ }
35
+ },
36
+ "cases": {
37
+ "type": "array",
38
+ "items": {
39
+ "type": "object",
40
+ "required": ["case", "passed", "said"],
41
+ "properties": {
42
+ "case": {
43
+ "type": "string",
44
+ "minLength": 1
45
+ },
46
+ "passed": {
47
+ "type": "boolean"
48
+ },
49
+ "said": {
50
+ "type": "string",
51
+ "minLength": 1
52
+ }
53
+ },
54
+ "additionalProperties": false
55
+ }
56
+ }
57
+ },
58
+ "additionalProperties": false
59
+ }
60
+ }
61
+ },
62
+ "additionalProperties": false,
63
+ "description": "awf-lab case check --json."
64
+ }
@@ -0,0 +1,187 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "awf-lab config --json",
4
+ "type": "object",
5
+ "required": ["kind", "project", "config", "local", "datasets", "loops"],
6
+ "properties": {
7
+ "kind": {
8
+ "type": "string",
9
+ "const": "awf.case-config/1"
10
+ },
11
+ "project": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "config": {
16
+ "anyOf": [
17
+ {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ {
22
+ "type": "null"
23
+ }
24
+ ]
25
+ },
26
+ "local": {
27
+ "anyOf": [
28
+ {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ {
33
+ "type": "null"
34
+ }
35
+ ]
36
+ },
37
+ "datasets": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "object",
41
+ "required": ["name", "eval", "data", "definedIn"],
42
+ "properties": {
43
+ "name": {
44
+ "type": "string",
45
+ "minLength": 1
46
+ },
47
+ "eval": {
48
+ "type": "string",
49
+ "minLength": 1
50
+ },
51
+ "data": {
52
+ "type": "string",
53
+ "minLength": 1
54
+ },
55
+ "definedIn": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "string",
59
+ "minLength": 1
60
+ }
61
+ }
62
+ },
63
+ "additionalProperties": false
64
+ }
65
+ },
66
+ "loops": {
67
+ "type": "array",
68
+ "items": {
69
+ "type": "object",
70
+ "required": ["name", "dataset", "definedIn"],
71
+ "properties": {
72
+ "name": {
73
+ "type": "string",
74
+ "minLength": 1
75
+ },
76
+ "dataset": {
77
+ "type": "string",
78
+ "minLength": 1
79
+ },
80
+ "definedIn": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string",
84
+ "minLength": 1
85
+ }
86
+ }
87
+ },
88
+ "additionalProperties": false
89
+ }
90
+ },
91
+ "dataset": {
92
+ "type": "object",
93
+ "required": ["name", "values"],
94
+ "properties": {
95
+ "name": {
96
+ "type": "string",
97
+ "minLength": 1
98
+ },
99
+ "values": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "object",
103
+ "required": ["name", "value", "from"],
104
+ "properties": {
105
+ "name": {
106
+ "type": "string",
107
+ "minLength": 1
108
+ },
109
+ "value": {
110
+ "type": "string"
111
+ },
112
+ "from": {
113
+ "type": "string"
114
+ }
115
+ },
116
+ "additionalProperties": false
117
+ }
118
+ }
119
+ },
120
+ "additionalProperties": false
121
+ },
122
+ "case": {
123
+ "type": "object",
124
+ "required": ["name", "values"],
125
+ "properties": {
126
+ "name": {
127
+ "type": "string",
128
+ "minLength": 1
129
+ },
130
+ "values": {
131
+ "type": "array",
132
+ "items": {
133
+ "type": "object",
134
+ "required": ["name", "value", "from"],
135
+ "properties": {
136
+ "name": {
137
+ "type": "string",
138
+ "minLength": 1
139
+ },
140
+ "value": {
141
+ "type": "string"
142
+ },
143
+ "from": {
144
+ "type": "string"
145
+ }
146
+ },
147
+ "additionalProperties": false
148
+ }
149
+ }
150
+ },
151
+ "additionalProperties": false
152
+ },
153
+ "loop": {
154
+ "type": "object",
155
+ "required": ["name", "values"],
156
+ "properties": {
157
+ "name": {
158
+ "type": "string",
159
+ "minLength": 1
160
+ },
161
+ "values": {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "object",
165
+ "required": ["name", "value", "from"],
166
+ "properties": {
167
+ "name": {
168
+ "type": "string",
169
+ "minLength": 1
170
+ },
171
+ "value": {
172
+ "type": "string"
173
+ },
174
+ "from": {
175
+ "type": "string"
176
+ }
177
+ },
178
+ "additionalProperties": false
179
+ }
180
+ }
181
+ },
182
+ "additionalProperties": false
183
+ }
184
+ },
185
+ "additionalProperties": false,
186
+ "description": "awf-lab config --json."
187
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "awf-lab loop's final check",
4
+ "type": "object",
5
+ "required": ["kind", "k", "at", "incumbent", "runId", "verdict", "why", "spend"],
6
+ "properties": {
7
+ "kind": {
8
+ "type": "string",
9
+ "const": "awf.case-final/1"
10
+ },
11
+ "k": {
12
+ "type": "integer",
13
+ "minimum": 1
14
+ },
15
+ "at": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "incumbent": {
20
+ "type": "integer",
21
+ "minimum": 1
22
+ },
23
+ "runId": {
24
+ "type": "string",
25
+ "minLength": 1
26
+ },
27
+ "verdict": {
28
+ "anyOf": [
29
+ {
30
+ "type": "string",
31
+ "minLength": 1
32
+ },
33
+ {
34
+ "type": "null"
35
+ }
36
+ ]
37
+ },
38
+ "why": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "spend": {
43
+ "type": "number",
44
+ "minimum": 0
45
+ }
46
+ },
47
+ "additionalProperties": false
48
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "awf-lab case's known good record, key/good/record.json",
4
+ "type": "object",
5
+ "properties": {
6
+ "result": {},
7
+ "stages": {
8
+ "type": "object",
9
+ "patternProperties": {
10
+ "^.*$": {}
11
+ }
12
+ },
13
+ "stubbedStages": {
14
+ "type": "object",
15
+ "patternProperties": {
16
+ "^.*$": {}
17
+ }
18
+ },
19
+ "stoppedAfter": {
20
+ "type": "string"
21
+ },
22
+ "calls": {
23
+ "type": "object",
24
+ "patternProperties": {
25
+ "^.*$": {
26
+ "type": "object",
27
+ "patternProperties": {
28
+ "^.*$": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "array",
32
+ "items": {}
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
38
+ },
39
+ "requests": {
40
+ "type": "array",
41
+ "items": {
42
+ "type": "object",
43
+ "required": ["method", "url"],
44
+ "properties": {
45
+ "method": {
46
+ "type": "string"
47
+ },
48
+ "url": {
49
+ "type": "string"
50
+ },
51
+ "body": {
52
+ "type": "string"
53
+ },
54
+ "unix": {
55
+ "type": "string"
56
+ }
57
+ },
58
+ "additionalProperties": false
59
+ }
60
+ },
61
+ "values": {},
62
+ "files": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "string"
66
+ }
67
+ }
68
+ },
69
+ "additionalProperties": false
70
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "awf-lab grade folder's grade.json",
4
+ "type": "object",
5
+ "required": ["kind", "case", "scratch", "params", "reads"],
6
+ "properties": {
7
+ "kind": {
8
+ "type": "string",
9
+ "const": "awf.case-grade/1"
10
+ },
11
+ "case": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "scratch": {
16
+ "anyOf": [
17
+ {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ {
22
+ "type": "null"
23
+ }
24
+ ]
25
+ },
26
+ "params": {
27
+ "type": "object",
28
+ "patternProperties": {
29
+ "^[A-Za-z][A-Za-z0-9_-]*$": {
30
+ "type": "string",
31
+ "minLength": 1
32
+ }
33
+ }
34
+ },
35
+ "reads": {
36
+ "anyOf": [
37
+ {
38
+ "type": "string",
39
+ "const": "facts"
40
+ },
41
+ {
42
+ "type": "string",
43
+ "const": "trial"
44
+ }
45
+ ]
46
+ }
47
+ },
48
+ "additionalProperties": false
49
+ }
@@ -0,0 +1,117 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "awf-lab case key, its frontmatter",
4
+ "type": "object",
5
+ "required": ["marker"],
6
+ "properties": {
7
+ "marker": {
8
+ "type": "string",
9
+ "pattern": "^[a-z]+(-[a-z]+){2,}$"
10
+ },
11
+ "expect": {
12
+ "type": "object",
13
+ "patternProperties": {
14
+ "^[A-Za-z][A-Za-z0-9_]*$": {
15
+ "anyOf": [
16
+ {
17
+ "type": "string"
18
+ },
19
+ {
20
+ "type": "number"
21
+ },
22
+ {
23
+ "type": "boolean"
24
+ },
25
+ {
26
+ "type": "null"
27
+ },
28
+ {
29
+ "type": "object",
30
+ "properties": {
31
+ "min": {
32
+ "type": "number"
33
+ },
34
+ "max": {
35
+ "type": "number"
36
+ }
37
+ },
38
+ "additionalProperties": false
39
+ }
40
+ ]
41
+ }
42
+ }
43
+ },
44
+ "must": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "string",
48
+ "minLength": 1
49
+ },
50
+ "minItems": 1
51
+ },
52
+ "must-not": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "string",
56
+ "minLength": 1
57
+ },
58
+ "minItems": 1
59
+ },
60
+ "known-failing": {
61
+ "type": "boolean",
62
+ "const": true
63
+ },
64
+ "pass": {
65
+ "type": "string",
66
+ "pattern": "^(all|[1-9][0-9]*/[1-9][0-9]*)$",
67
+ "description": "\"all\", or the fraction of trials that must pass, such as \"2/3\"."
68
+ },
69
+ "draft": {
70
+ "type": "boolean",
71
+ "const": true
72
+ },
73
+ "holdout": {
74
+ "type": "boolean",
75
+ "const": true,
76
+ "description": "Set aside for a final check: run, --failed and history leave it out, run --holdout runs it alone, and a loop's proposer never sees it."
77
+ },
78
+ "tags": {
79
+ "type": "array",
80
+ "items": {
81
+ "type": "string",
82
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
83
+ },
84
+ "minItems": 1,
85
+ "uniqueItems": true,
86
+ "description": "Plain words the report groups cases by, and --tags picks them by; no grader reads them."
87
+ },
88
+ "captured": {
89
+ "type": "object",
90
+ "required": ["run", "mark"],
91
+ "properties": {
92
+ "run": {
93
+ "type": "string",
94
+ "minLength": 1
95
+ },
96
+ "mark": {
97
+ "anyOf": [
98
+ {
99
+ "type": "string",
100
+ "const": "good"
101
+ },
102
+ {
103
+ "type": "string",
104
+ "const": "needs-work"
105
+ }
106
+ ]
107
+ },
108
+ "note": {
109
+ "type": "string"
110
+ }
111
+ },
112
+ "additionalProperties": false
113
+ }
114
+ },
115
+ "additionalProperties": false,
116
+ "description": "What a good result looks like for one case."
117
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "awf-lab label",
4
+ "type": "object",
5
+ "required": ["kind", "runId", "case", "mark", "at"],
6
+ "properties": {
7
+ "kind": {
8
+ "type": "string",
9
+ "const": "awf.case-label/1"
10
+ },
11
+ "runId": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "case": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "mark": {
20
+ "enum": ["good", "needs-work", "cleared"]
21
+ },
22
+ "note": {
23
+ "type": "string",
24
+ "minLength": 1
25
+ },
26
+ "at": {
27
+ "type": "string",
28
+ "format": "date-time"
29
+ }
30
+ },
31
+ "additionalProperties": false
32
+ }