@davidahmann/mill 0.1.4
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/LICENSE +202 -0
- package/README.md +335 -0
- package/dist/audit/repository.d.ts +8 -0
- package/dist/audit/repository.d.ts.map +1 -0
- package/dist/audit/repository.js +232 -0
- package/dist/audit/repository.js.map +1 -0
- package/dist/cli-program.d.ts +12 -0
- package/dist/cli-program.d.ts.map +1 -0
- package/dist/cli-program.js +1020 -0
- package/dist/cli-program.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +7 -0
- package/dist/cli.js.map +1 -0
- package/dist/config/lock.d.ts +12 -0
- package/dist/config/lock.d.ts.map +1 -0
- package/dist/config/lock.js +83 -0
- package/dist/config/lock.js.map +1 -0
- package/dist/contracts/canonical.d.ts +7 -0
- package/dist/contracts/canonical.d.ts.map +1 -0
- package/dist/contracts/canonical.js +30 -0
- package/dist/contracts/canonical.js.map +1 -0
- package/dist/contracts/schemas.d.ts +2705 -0
- package/dist/contracts/schemas.d.ts.map +1 -0
- package/dist/contracts/schemas.js +988 -0
- package/dist/contracts/schemas.js.map +1 -0
- package/dist/doctor.d.ts +21 -0
- package/dist/doctor.d.ts.map +1 -0
- package/dist/doctor.js +138 -0
- package/dist/doctor.js.map +1 -0
- package/dist/errors.d.ts +18 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +31 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/intake/prd.d.ts +14 -0
- package/dist/intake/prd.d.ts.map +1 -0
- package/dist/intake/prd.js +39 -0
- package/dist/intake/prd.js.map +1 -0
- package/dist/planning/impact.d.ts +59 -0
- package/dist/planning/impact.d.ts.map +1 -0
- package/dist/planning/impact.js +400 -0
- package/dist/planning/impact.js.map +1 -0
- package/dist/planning/specification.d.ts +42 -0
- package/dist/planning/specification.d.ts.map +1 -0
- package/dist/planning/specification.js +235 -0
- package/dist/planning/specification.js.map +1 -0
- package/dist/qualification/public-alpha.d.ts +16 -0
- package/dist/qualification/public-alpha.d.ts.map +1 -0
- package/dist/qualification/public-alpha.js +128 -0
- package/dist/qualification/public-alpha.js.map +1 -0
- package/dist/recipes/node-typescript-next-web.d.ts +19 -0
- package/dist/recipes/node-typescript-next-web.d.ts.map +1 -0
- package/dist/recipes/node-typescript-next-web.js +136 -0
- package/dist/recipes/node-typescript-next-web.js.map +1 -0
- package/dist/repository/integration.d.ts +58 -0
- package/dist/repository/integration.d.ts.map +1 -0
- package/dist/repository/integration.js +1385 -0
- package/dist/repository/integration.js.map +1 -0
- package/dist/repository/scan.d.ts +27 -0
- package/dist/repository/scan.d.ts.map +1 -0
- package/dist/repository/scan.js +388 -0
- package/dist/repository/scan.js.map +1 -0
- package/dist/result.d.ts +23 -0
- package/dist/result.d.ts.map +1 -0
- package/dist/result.js +24 -0
- package/dist/result.js.map +1 -0
- package/dist/runtime/codex.d.ts +28 -0
- package/dist/runtime/codex.d.ts.map +1 -0
- package/dist/runtime/codex.js +439 -0
- package/dist/runtime/codex.js.map +1 -0
- package/dist/runtime/context.d.ts +10 -0
- package/dist/runtime/context.d.ts.map +1 -0
- package/dist/runtime/context.js +151 -0
- package/dist/runtime/context.js.map +1 -0
- package/dist/runtime/delivery.d.ts +58 -0
- package/dist/runtime/delivery.d.ts.map +1 -0
- package/dist/runtime/delivery.js +1073 -0
- package/dist/runtime/delivery.js.map +1 -0
- package/dist/runtime/dependencies.d.ts +19 -0
- package/dist/runtime/dependencies.d.ts.map +1 -0
- package/dist/runtime/dependencies.js +495 -0
- package/dist/runtime/dependencies.js.map +1 -0
- package/dist/runtime/github.d.ts +112 -0
- package/dist/runtime/github.d.ts.map +1 -0
- package/dist/runtime/github.js +510 -0
- package/dist/runtime/github.js.map +1 -0
- package/dist/runtime/inputs.d.ts +24 -0
- package/dist/runtime/inputs.d.ts.map +1 -0
- package/dist/runtime/inputs.js +237 -0
- package/dist/runtime/inputs.js.map +1 -0
- package/dist/runtime/lease.d.ts +11 -0
- package/dist/runtime/lease.d.ts.map +1 -0
- package/dist/runtime/lease.js +52 -0
- package/dist/runtime/lease.js.map +1 -0
- package/dist/runtime/lifecycle.d.ts +87 -0
- package/dist/runtime/lifecycle.d.ts.map +1 -0
- package/dist/runtime/lifecycle.js +1024 -0
- package/dist/runtime/lifecycle.js.map +1 -0
- package/dist/runtime/process.d.ts +39 -0
- package/dist/runtime/process.d.ts.map +1 -0
- package/dist/runtime/process.js +304 -0
- package/dist/runtime/process.js.map +1 -0
- package/dist/runtime/repository.d.ts +36 -0
- package/dist/runtime/repository.d.ts.map +1 -0
- package/dist/runtime/repository.js +458 -0
- package/dist/runtime/repository.js.map +1 -0
- package/dist/runtime/state.d.ts +121 -0
- package/dist/runtime/state.d.ts.map +1 -0
- package/dist/runtime/state.js +1017 -0
- package/dist/runtime/state.js.map +1 -0
- package/dist/runtime/verifier.d.ts +31 -0
- package/dist/runtime/verifier.d.ts.map +1 -0
- package/dist/runtime/verifier.js +478 -0
- package/dist/runtime/verifier.js.map +1 -0
- package/dist/runtime/worker.d.ts +67 -0
- package/dist/runtime/worker.d.ts.map +1 -0
- package/dist/runtime/worker.js +34 -0
- package/dist/runtime/worker.js.map +1 -0
- package/dist/security/safe-path.d.ts +3 -0
- package/dist/security/safe-path.d.ts.map +1 -0
- package/dist/security/safe-path.js +102 -0
- package/dist/security/safe-path.js.map +1 -0
- package/dist/version.d.ts +4 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +4 -0
- package/dist/version.js.map +1 -0
- package/dist/workflows/founder.d.ts +33 -0
- package/dist/workflows/founder.d.ts.map +1 -0
- package/dist/workflows/founder.js +422 -0
- package/dist/workflows/founder.js.map +1 -0
- package/package.json +79 -0
- package/recipes/node-typescript-next-web/.github/workflows/ci.yml +34 -0
- package/recipes/node-typescript-next-web/.node-version +1 -0
- package/recipes/node-typescript-next-web/.tool-versions +1 -0
- package/recipes/node-typescript-next-web/AGENTS.md +44 -0
- package/recipes/node-typescript-next-web/README.md +16 -0
- package/recipes/node-typescript-next-web/WORKFLOW.md +6 -0
- package/recipes/node-typescript-next-web/app/api/health/route.ts +5 -0
- package/recipes/node-typescript-next-web/app/layout.tsx +19 -0
- package/recipes/node-typescript-next-web/app/page.tsx +12 -0
- package/recipes/node-typescript-next-web/app/styles.css +21 -0
- package/recipes/node-typescript-next-web/docs/development.md +16 -0
- package/recipes/node-typescript-next-web/eslint.config.mjs +9 -0
- package/recipes/node-typescript-next-web/gitignore.template +5 -0
- package/recipes/node-typescript-next-web/next-env.d.ts +7 -0
- package/recipes/node-typescript-next-web/next.config.ts +11 -0
- package/recipes/node-typescript-next-web/package-lock.json +7540 -0
- package/recipes/node-typescript-next-web/package.json +39 -0
- package/recipes/node-typescript-next-web/playwright.config.ts +23 -0
- package/recipes/node-typescript-next-web/recipe.yaml +71 -0
- package/recipes/node-typescript-next-web/scripts/check-package.mjs +3 -0
- package/recipes/node-typescript-next-web/src/health.ts +3 -0
- package/recipes/node-typescript-next-web/test/browser/home.spec.ts +14 -0
- package/recipes/node-typescript-next-web/test/integration/health-route.test.ts +11 -0
- package/recipes/node-typescript-next-web/test/unit/health.test.ts +9 -0
- package/recipes/node-typescript-next-web/tsconfig.json +33 -0
- package/schemas/README.md +64 -0
- package/schemas/audit-report.schema.json +59 -0
- package/schemas/blueprint.schema.json +34 -0
- package/schemas/context-manifest.schema.json +88 -0
- package/schemas/delivery-record.schema.json +266 -0
- package/schemas/impact-manifest.schema.json +146 -0
- package/schemas/managed-repository.schema.json +36 -0
- package/schemas/mill-config.schema.json +212 -0
- package/schemas/mill-lock.schema.json +96 -0
- package/schemas/outcome-plan.schema.json +51 -0
- package/schemas/product-contract.schema.json +181 -0
- package/schemas/public-alpha-qualification.schema.json +391 -0
- package/schemas/recipe-manifest.schema.json +187 -0
- package/schemas/release-evidence.schema.json +170 -0
- package/schemas/repository-integration-plan.schema.json +156 -0
- package/schemas/review-result.schema.json +57 -0
- package/schemas/scenario-set.schema.json +84 -0
- package/schemas/source-manifest.schema.json +96 -0
- package/schemas/specification-proposal.schema.json +406 -0
- package/schemas/support-tuple.schema.json +107 -0
- package/schemas/task-packet.schema.json +395 -0
- package/schemas/validation-evidence.schema.json +125 -0
- package/schemas/worker-invocation.schema.json +119 -0
- package/schemas/worker-profile.schema.json +53 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": { "type": "string", "const": "1" },
|
|
6
|
+
"mill": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"package": { "type": "string", "const": "@davidahmann/mill" },
|
|
10
|
+
"version": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-(?:0|[1-9]\\d*|\\d*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$"
|
|
13
|
+
},
|
|
14
|
+
"integrity": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
15
|
+
},
|
|
16
|
+
"required": ["package", "version"],
|
|
17
|
+
"additionalProperties": false
|
|
18
|
+
},
|
|
19
|
+
"schemaDigests": {
|
|
20
|
+
"default": {},
|
|
21
|
+
"type": "object",
|
|
22
|
+
"propertyNames": { "type": "string", "minLength": 1 },
|
|
23
|
+
"additionalProperties": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"recipe": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"id": { "type": "string", "minLength": 1 },
|
|
32
|
+
"version": { "type": "string", "minLength": 1 },
|
|
33
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
34
|
+
},
|
|
35
|
+
"required": ["id", "version", "digest"],
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
},
|
|
38
|
+
"integration": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"mode": { "type": "string", "enum": ["greenfield", "adoption"] },
|
|
42
|
+
"planDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
43
|
+
"baseCommit": {
|
|
44
|
+
"anyOf": [
|
|
45
|
+
{ "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
46
|
+
{ "type": "null" }
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"files": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"path": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))[^*?[\\]\\\\]+(?:\\/\\*\\*)?$"
|
|
57
|
+
},
|
|
58
|
+
"ownership": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": ["mill_only", "generated_once", "managed"]
|
|
61
|
+
},
|
|
62
|
+
"templateDigest": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
65
|
+
},
|
|
66
|
+
"installedDigest": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
69
|
+
},
|
|
70
|
+
"preexistingDigest": {
|
|
71
|
+
"anyOf": [
|
|
72
|
+
{ "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
73
|
+
{ "type": "null" }
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": [
|
|
78
|
+
"path",
|
|
79
|
+
"ownership",
|
|
80
|
+
"templateDigest",
|
|
81
|
+
"installedDigest",
|
|
82
|
+
"preexistingDigest"
|
|
83
|
+
],
|
|
84
|
+
"additionalProperties": false
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": ["mode", "planDigest", "baseCommit", "files"],
|
|
89
|
+
"additionalProperties": false
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": ["schemaVersion", "mill"],
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"$id": "https://github.com/davidahmann/mill/schemas/mill-lock.schema.json",
|
|
95
|
+
"title": "MillLock"
|
|
96
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": { "type": "string", "const": "1" },
|
|
6
|
+
"productContractDigest": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
9
|
+
},
|
|
10
|
+
"outcomes": {
|
|
11
|
+
"minItems": 1,
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": { "type": "string", "minLength": 1 },
|
|
17
|
+
"title": { "type": "string", "minLength": 1 },
|
|
18
|
+
"acceptance": {
|
|
19
|
+
"minItems": 1,
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": { "type": "string", "minLength": 1 }
|
|
22
|
+
},
|
|
23
|
+
"acceptanceIds": {
|
|
24
|
+
"minItems": 1,
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": { "type": "string", "minLength": 1 },
|
|
27
|
+
"uniqueItems": true
|
|
28
|
+
},
|
|
29
|
+
"dependsOn": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": { "type": "string", "minLength": 1 }
|
|
32
|
+
},
|
|
33
|
+
"status": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": ["proposed", "approved", "ready", "blocked", "closed"]
|
|
36
|
+
},
|
|
37
|
+
"taskRef": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))[^*?[\\]\\\\]+(?:\\/\\*\\*)?$"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": ["id", "title", "acceptance", "dependsOn", "status"],
|
|
43
|
+
"additionalProperties": false
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": ["schemaVersion", "productContractDigest", "outcomes"],
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"$id": "https://github.com/davidahmann/mill/schemas/outcome-plan.schema.json",
|
|
50
|
+
"title": "OutcomePlan"
|
|
51
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": { "type": "string", "const": "1" },
|
|
6
|
+
"id": { "type": "string", "minLength": 1 },
|
|
7
|
+
"title": { "type": "string", "minLength": 1 },
|
|
8
|
+
"primaryUser": { "type": "string", "minLength": 1 },
|
|
9
|
+
"jobToBeDone": { "type": "string", "minLength": 1 },
|
|
10
|
+
"outcomes": {
|
|
11
|
+
"minItems": 1,
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": { "type": "string", "pattern": "^OUT-[A-Z0-9][A-Z0-9-]*$" },
|
|
17
|
+
"statement": { "type": "string", "minLength": 1 },
|
|
18
|
+
"acceptanceIds": {
|
|
19
|
+
"minItems": 1,
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": { "type": "string", "minLength": 1 },
|
|
22
|
+
"uniqueItems": true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["id", "statement"],
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"nonGoals": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": { "type": "string", "minLength": 1 }
|
|
32
|
+
},
|
|
33
|
+
"assumptions": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": { "type": "string", "minLength": 1 }
|
|
36
|
+
},
|
|
37
|
+
"unknowns": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": { "type": "string", "minLength": 1 }
|
|
40
|
+
},
|
|
41
|
+
"sourceRefs": {
|
|
42
|
+
"minItems": 1,
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": { "type": "string", "minLength": 1 }
|
|
45
|
+
},
|
|
46
|
+
"acceptance": {
|
|
47
|
+
"default": [],
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"id": { "type": "string", "minLength": 1 },
|
|
53
|
+
"kind": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"enum": ["functional", "quality", "operational"]
|
|
56
|
+
},
|
|
57
|
+
"statement": { "type": "string", "minLength": 1 },
|
|
58
|
+
"sourceRefs": {
|
|
59
|
+
"minItems": 1,
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": { "type": "string", "pattern": "^SRC-[A-Z0-9][A-Z0-9-]*$" }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": ["id", "kind", "statement", "sourceRefs"],
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"invariants": {
|
|
69
|
+
"default": [],
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"id": { "type": "string", "pattern": "^INV-[A-Z0-9][A-Z0-9-]*$" },
|
|
75
|
+
"statement": { "type": "string", "minLength": 1 },
|
|
76
|
+
"owner": { "type": "string", "minLength": 1 },
|
|
77
|
+
"criticality": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"enum": ["low", "medium", "high", "critical"]
|
|
80
|
+
},
|
|
81
|
+
"surfaceRefs": {
|
|
82
|
+
"minItems": 1,
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": { "type": "string", "minLength": 1 }
|
|
85
|
+
},
|
|
86
|
+
"verification": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"properties": {
|
|
89
|
+
"mode": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"enum": ["command", "human", "unsupported"]
|
|
92
|
+
},
|
|
93
|
+
"ref": { "type": "string", "minLength": 1 }
|
|
94
|
+
},
|
|
95
|
+
"required": ["mode", "ref"],
|
|
96
|
+
"additionalProperties": false
|
|
97
|
+
},
|
|
98
|
+
"sourceRefs": {
|
|
99
|
+
"minItems": 1,
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": { "type": "string", "pattern": "^SRC-[A-Z0-9][A-Z0-9-]*$" }
|
|
102
|
+
},
|
|
103
|
+
"unknowns": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": { "type": "string", "minLength": 1 }
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": [
|
|
109
|
+
"id",
|
|
110
|
+
"statement",
|
|
111
|
+
"owner",
|
|
112
|
+
"criticality",
|
|
113
|
+
"surfaceRefs",
|
|
114
|
+
"verification",
|
|
115
|
+
"sourceRefs",
|
|
116
|
+
"unknowns"
|
|
117
|
+
],
|
|
118
|
+
"additionalProperties": false
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"decisions": {
|
|
122
|
+
"default": [],
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {
|
|
127
|
+
"id": { "type": "string", "pattern": "^DEC-[A-Z0-9][A-Z0-9-]*$" },
|
|
128
|
+
"kind": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"enum": [
|
|
131
|
+
"product",
|
|
132
|
+
"architecture",
|
|
133
|
+
"design",
|
|
134
|
+
"accessibility",
|
|
135
|
+
"research"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"question": { "type": "string", "minLength": 1 },
|
|
139
|
+
"decision": { "type": "string", "minLength": 1 },
|
|
140
|
+
"rationale": { "type": "string", "minLength": 1 },
|
|
141
|
+
"sourceRefs": {
|
|
142
|
+
"minItems": 1,
|
|
143
|
+
"type": "array",
|
|
144
|
+
"items": { "type": "string", "pattern": "^SRC-[A-Z0-9][A-Z0-9-]*$" }
|
|
145
|
+
},
|
|
146
|
+
"status": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"enum": ["proposed", "approved", "rejected"]
|
|
149
|
+
},
|
|
150
|
+
"costlyToReverse": { "type": "boolean" }
|
|
151
|
+
},
|
|
152
|
+
"required": [
|
|
153
|
+
"id",
|
|
154
|
+
"kind",
|
|
155
|
+
"question",
|
|
156
|
+
"decision",
|
|
157
|
+
"rationale",
|
|
158
|
+
"sourceRefs",
|
|
159
|
+
"status",
|
|
160
|
+
"costlyToReverse"
|
|
161
|
+
],
|
|
162
|
+
"additionalProperties": false
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": [
|
|
167
|
+
"schemaVersion",
|
|
168
|
+
"id",
|
|
169
|
+
"title",
|
|
170
|
+
"primaryUser",
|
|
171
|
+
"jobToBeDone",
|
|
172
|
+
"outcomes",
|
|
173
|
+
"nonGoals",
|
|
174
|
+
"assumptions",
|
|
175
|
+
"unknowns",
|
|
176
|
+
"sourceRefs"
|
|
177
|
+
],
|
|
178
|
+
"additionalProperties": false,
|
|
179
|
+
"$id": "https://github.com/davidahmann/mill/schemas/product-contract.schema.json",
|
|
180
|
+
"title": "ProductContract"
|
|
181
|
+
}
|