@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,170 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": { "type": "string", "const": "1" },
|
|
6
|
+
"state": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": ["qualified", "published", "verified"]
|
|
9
|
+
},
|
|
10
|
+
"package": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"name": { "type": "string", "const": "@davidahmann/mill" },
|
|
14
|
+
"version": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"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-]+)*)?$"
|
|
17
|
+
},
|
|
18
|
+
"tag": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^v\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": ["name", "version", "tag"],
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
},
|
|
26
|
+
"source": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {
|
|
29
|
+
"reviewedCandidateTree": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
32
|
+
},
|
|
33
|
+
"resultingMainCommit": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
36
|
+
},
|
|
37
|
+
"resultingMainTree": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
38
|
+
"tagCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" }
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"reviewedCandidateTree",
|
|
42
|
+
"resultingMainCommit",
|
|
43
|
+
"resultingMainTree",
|
|
44
|
+
"tagCommit"
|
|
45
|
+
],
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
},
|
|
48
|
+
"builders": {
|
|
49
|
+
"minItems": 2,
|
|
50
|
+
"maxItems": 2,
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"builder": { "type": "string", "minLength": 1 },
|
|
56
|
+
"filename": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"pattern": "^[A-Za-z0-9@._+-]+\\.tgz$"
|
|
59
|
+
},
|
|
60
|
+
"sha256": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
61
|
+
"npmIntegrity": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"pattern": "^sha512-[A-Za-z0-9+/]+={0,2}$"
|
|
64
|
+
},
|
|
65
|
+
"contentsDigest": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": [
|
|
71
|
+
"builder",
|
|
72
|
+
"filename",
|
|
73
|
+
"sha256",
|
|
74
|
+
"npmIntegrity",
|
|
75
|
+
"contentsDigest"
|
|
76
|
+
],
|
|
77
|
+
"additionalProperties": false
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"selectedArtifact": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"builder": { "type": "string", "minLength": 1 },
|
|
84
|
+
"filename": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"pattern": "^[A-Za-z0-9@._+-]+\\.tgz$"
|
|
87
|
+
},
|
|
88
|
+
"sha256": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
89
|
+
"npmIntegrity": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"pattern": "^sha512-[A-Za-z0-9+/]+={0,2}$"
|
|
92
|
+
},
|
|
93
|
+
"contentsDigest": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": [
|
|
99
|
+
"builder",
|
|
100
|
+
"filename",
|
|
101
|
+
"sha256",
|
|
102
|
+
"npmIntegrity",
|
|
103
|
+
"contentsDigest"
|
|
104
|
+
],
|
|
105
|
+
"additionalProperties": false
|
|
106
|
+
},
|
|
107
|
+
"qualificationDigest": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
110
|
+
},
|
|
111
|
+
"sbomDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
112
|
+
"registry": {
|
|
113
|
+
"anyOf": [
|
|
114
|
+
{
|
|
115
|
+
"type": "object",
|
|
116
|
+
"properties": {
|
|
117
|
+
"tarball": { "type": "string", "format": "uri" },
|
|
118
|
+
"integrity": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"pattern": "^sha512-[A-Za-z0-9+/]+={0,2}$"
|
|
121
|
+
},
|
|
122
|
+
"provenanceVerified": { "type": "boolean" }
|
|
123
|
+
},
|
|
124
|
+
"required": ["tarball", "integrity", "provenanceVerified"],
|
|
125
|
+
"additionalProperties": false
|
|
126
|
+
},
|
|
127
|
+
{ "type": "null" }
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
"githubRelease": {
|
|
131
|
+
"anyOf": [
|
|
132
|
+
{
|
|
133
|
+
"type": "object",
|
|
134
|
+
"properties": {
|
|
135
|
+
"url": { "type": "string", "format": "uri" },
|
|
136
|
+
"tag": { "type": "string", "minLength": 1 },
|
|
137
|
+
"artifactDigest": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"required": ["url", "tag", "artifactDigest"],
|
|
143
|
+
"additionalProperties": false
|
|
144
|
+
},
|
|
145
|
+
{ "type": "null" }
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"generatedAt": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"format": "date-time",
|
|
151
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"required": [
|
|
155
|
+
"schemaVersion",
|
|
156
|
+
"state",
|
|
157
|
+
"package",
|
|
158
|
+
"source",
|
|
159
|
+
"builders",
|
|
160
|
+
"selectedArtifact",
|
|
161
|
+
"qualificationDigest",
|
|
162
|
+
"sbomDigest",
|
|
163
|
+
"registry",
|
|
164
|
+
"githubRelease",
|
|
165
|
+
"generatedAt"
|
|
166
|
+
],
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"$id": "https://github.com/davidahmann/mill/schemas/release-evidence.schema.json",
|
|
169
|
+
"title": "ReleaseEvidence"
|
|
170
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": { "type": "string", "const": "1" },
|
|
6
|
+
"planDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
7
|
+
"generator": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"package": { "type": "string", "const": "@davidahmann/mill" },
|
|
11
|
+
"version": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"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-]+)*)?$"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["package", "version"],
|
|
17
|
+
"additionalProperties": false
|
|
18
|
+
},
|
|
19
|
+
"mode": { "type": "string", "enum": ["greenfield", "adoption"] },
|
|
20
|
+
"target": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"directoryName": { "type": "string", "minLength": 1 },
|
|
24
|
+
"canonicalPathDigest": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
27
|
+
},
|
|
28
|
+
"baseCommit": {
|
|
29
|
+
"anyOf": [
|
|
30
|
+
{ "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
31
|
+
{ "type": "null" }
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"scanDigest": {
|
|
35
|
+
"anyOf": [
|
|
36
|
+
{ "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
37
|
+
{ "type": "null" }
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"directoryName",
|
|
43
|
+
"canonicalPathDigest",
|
|
44
|
+
"baseCommit",
|
|
45
|
+
"scanDigest"
|
|
46
|
+
],
|
|
47
|
+
"additionalProperties": false
|
|
48
|
+
},
|
|
49
|
+
"productProposalDigest": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
52
|
+
},
|
|
53
|
+
"productContractDigest": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
56
|
+
},
|
|
57
|
+
"recipe": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"id": { "type": "string", "const": "node-typescript-next-web" },
|
|
61
|
+
"version": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"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-]+)*)?$"
|
|
64
|
+
},
|
|
65
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
66
|
+
"status": { "type": "string", "const": "supported" },
|
|
67
|
+
"verifierImage": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"pattern": "^[^@\\s]+@sha256:[a-f0-9]{64}$"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": ["id", "version", "digest", "status", "verifierImage"],
|
|
73
|
+
"additionalProperties": false
|
|
74
|
+
},
|
|
75
|
+
"approval": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"approvedBy": { "type": "string", "minLength": 1 },
|
|
79
|
+
"approvedAt": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"format": "date-time",
|
|
82
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"required": ["approvedBy", "approvedAt"],
|
|
86
|
+
"additionalProperties": false
|
|
87
|
+
},
|
|
88
|
+
"files": {
|
|
89
|
+
"minItems": 1,
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"properties": {
|
|
94
|
+
"path": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))[^*?[\\]\\\\]+(?:\\/\\*\\*)?$"
|
|
97
|
+
},
|
|
98
|
+
"ownership": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"enum": ["mill_only", "generated_once", "managed"]
|
|
101
|
+
},
|
|
102
|
+
"action": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": ["create", "retain_identical"]
|
|
105
|
+
},
|
|
106
|
+
"contentDigest": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
109
|
+
},
|
|
110
|
+
"preexistingDigest": {
|
|
111
|
+
"anyOf": [
|
|
112
|
+
{ "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
113
|
+
{ "type": "null" }
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"required": [
|
|
118
|
+
"path",
|
|
119
|
+
"ownership",
|
|
120
|
+
"action",
|
|
121
|
+
"contentDigest",
|
|
122
|
+
"preexistingDigest"
|
|
123
|
+
],
|
|
124
|
+
"additionalProperties": false
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"commandIds": {
|
|
128
|
+
"minItems": 1,
|
|
129
|
+
"type": "array",
|
|
130
|
+
"items": { "type": "string", "minLength": 1 }
|
|
131
|
+
},
|
|
132
|
+
"networkDisclosure": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": { "type": "string", "minLength": 1 }
|
|
135
|
+
},
|
|
136
|
+
"baseline": { "type": "string", "const": "unverified" }
|
|
137
|
+
},
|
|
138
|
+
"required": [
|
|
139
|
+
"schemaVersion",
|
|
140
|
+
"planDigest",
|
|
141
|
+
"generator",
|
|
142
|
+
"mode",
|
|
143
|
+
"target",
|
|
144
|
+
"productProposalDigest",
|
|
145
|
+
"productContractDigest",
|
|
146
|
+
"recipe",
|
|
147
|
+
"approval",
|
|
148
|
+
"files",
|
|
149
|
+
"commandIds",
|
|
150
|
+
"networkDisclosure",
|
|
151
|
+
"baseline"
|
|
152
|
+
],
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"$id": "https://github.com/davidahmann/mill/schemas/repository-integration-plan.schema.json",
|
|
155
|
+
"title": "RepositoryIntegrationPlan"
|
|
156
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": { "type": "string", "const": "1" },
|
|
6
|
+
"candidateCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
7
|
+
"summary": { "type": "string" },
|
|
8
|
+
"findings": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": { "type": "string", "minLength": 1 },
|
|
14
|
+
"severity": { "type": "string", "enum": ["P0", "P1", "P2", "P3"] },
|
|
15
|
+
"class": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"correctness",
|
|
19
|
+
"security",
|
|
20
|
+
"data-loss",
|
|
21
|
+
"provenance",
|
|
22
|
+
"compatibility",
|
|
23
|
+
"authority",
|
|
24
|
+
"maintainability",
|
|
25
|
+
"style"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"title": { "type": "string", "minLength": 1 },
|
|
29
|
+
"body": { "type": "string", "minLength": 1 },
|
|
30
|
+
"file": {
|
|
31
|
+
"anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }]
|
|
32
|
+
},
|
|
33
|
+
"line": {
|
|
34
|
+
"anyOf": [
|
|
35
|
+
{ "type": "integer", "minimum": 1, "maximum": 9007199254740991 },
|
|
36
|
+
{ "type": "null" }
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"id",
|
|
42
|
+
"severity",
|
|
43
|
+
"class",
|
|
44
|
+
"title",
|
|
45
|
+
"body",
|
|
46
|
+
"file",
|
|
47
|
+
"line"
|
|
48
|
+
],
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": ["schemaVersion", "candidateCommit", "summary", "findings"],
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"$id": "https://github.com/davidahmann/mill/schemas/review-result.schema.json",
|
|
56
|
+
"title": "ReviewResult"
|
|
57
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
"scenarios": {
|
|
11
|
+
"minItems": 1,
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": { "type": "string", "minLength": 1 },
|
|
17
|
+
"kind": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"normal",
|
|
21
|
+
"exception",
|
|
22
|
+
"degradation",
|
|
23
|
+
"recovery",
|
|
24
|
+
"authority",
|
|
25
|
+
"adversarial"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"given": {
|
|
29
|
+
"minItems": 1,
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": { "type": "string", "minLength": 1 }
|
|
32
|
+
},
|
|
33
|
+
"when": {
|
|
34
|
+
"minItems": 1,
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": { "type": "string", "minLength": 1 }
|
|
37
|
+
},
|
|
38
|
+
"then": {
|
|
39
|
+
"minItems": 1,
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": { "type": "string", "minLength": 1 }
|
|
42
|
+
},
|
|
43
|
+
"oracleOwner": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": ["repository", "human", "external"]
|
|
46
|
+
},
|
|
47
|
+
"acceptanceRefs": {
|
|
48
|
+
"default": [],
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": { "type": "string", "minLength": 1 }
|
|
51
|
+
},
|
|
52
|
+
"invariantRefs": {
|
|
53
|
+
"default": [],
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": { "type": "string", "pattern": "^INV-[A-Z0-9][A-Z0-9-]*$" }
|
|
56
|
+
},
|
|
57
|
+
"coverage": {
|
|
58
|
+
"default": "both",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": ["new_behavior", "preservation", "both"]
|
|
61
|
+
},
|
|
62
|
+
"visibility": {
|
|
63
|
+
"default": "builder_visible",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"enum": ["builder_visible", "reviewer_owned", "human_acceptance"]
|
|
66
|
+
},
|
|
67
|
+
"executionRef": { "type": "string", "minLength": 1 },
|
|
68
|
+
"recipeOracle": { "type": "string", "minLength": 1 },
|
|
69
|
+
"forbidden": {
|
|
70
|
+
"default": [],
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": { "type": "string", "minLength": 1 }
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": ["id", "kind", "given", "when", "then", "oracleOwner"],
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": ["schemaVersion", "productContractDigest", "scenarios"],
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"$id": "https://github.com/davidahmann/mill/schemas/scenario-set.schema.json",
|
|
83
|
+
"title": "ScenarioSet"
|
|
84
|
+
}
|
|
@@ -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
|
+
"trigger": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": ["bootstrap", "adoption_uncertainty", "approved_stack_change"]
|
|
9
|
+
},
|
|
10
|
+
"providers": {
|
|
11
|
+
"minItems": 1,
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": { "type": "string", "minLength": 1 },
|
|
17
|
+
"name": { "type": "string", "minLength": 1 },
|
|
18
|
+
"queries": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"id": { "type": "string", "minLength": 1 },
|
|
24
|
+
"text": { "type": "string", "minLength": 1 },
|
|
25
|
+
"purpose": { "type": "string", "minLength": 1 }
|
|
26
|
+
},
|
|
27
|
+
"required": ["id", "text", "purpose"],
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"networkDisclosure": { "type": "string", "minLength": 1 }
|
|
32
|
+
},
|
|
33
|
+
"required": ["id", "name", "queries", "networkDisclosure"],
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"sources": {
|
|
38
|
+
"minItems": 1,
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"id": { "type": "string", "pattern": "^SRC-[A-Z0-9][A-Z0-9-]*$" },
|
|
44
|
+
"class": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": [
|
|
47
|
+
"primary_documentation",
|
|
48
|
+
"official_registry",
|
|
49
|
+
"security_advisory",
|
|
50
|
+
"license",
|
|
51
|
+
"repository",
|
|
52
|
+
"user_evidence",
|
|
53
|
+
"operator_constraint"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"uri": { "type": "string", "minLength": 1 },
|
|
57
|
+
"revision": { "type": "string", "minLength": 1 },
|
|
58
|
+
"observedAt": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"format": "date-time",
|
|
61
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
62
|
+
},
|
|
63
|
+
"freshness": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"enum": ["current", "stale", "unknown"]
|
|
66
|
+
},
|
|
67
|
+
"authority": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"enum": ["evidence", "constraint", "approved_decision"]
|
|
70
|
+
},
|
|
71
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
72
|
+
"claims": {
|
|
73
|
+
"minItems": 1,
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": { "type": "string", "minLength": 1 }
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"required": [
|
|
79
|
+
"id",
|
|
80
|
+
"class",
|
|
81
|
+
"uri",
|
|
82
|
+
"revision",
|
|
83
|
+
"observedAt",
|
|
84
|
+
"freshness",
|
|
85
|
+
"authority",
|
|
86
|
+
"claims"
|
|
87
|
+
],
|
|
88
|
+
"additionalProperties": false
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": ["schemaVersion", "trigger", "providers", "sources"],
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"$id": "https://github.com/davidahmann/mill/schemas/source-manifest.schema.json",
|
|
95
|
+
"title": "SourceManifest"
|
|
96
|
+
}
|