handoff-check 0.8.0 → 0.10.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.
- package/CHANGELOG.md +18 -0
- package/README.md +81 -18
- package/dist/cli.js +671 -21
- package/docs/agent-integration.md +4 -4
- package/docs/architecture.md +12 -0
- package/docs/decisions/0009-independent-rule-review-maintenance.md +34 -0
- package/docs/decisions/0010-explicit-local-source-checks.md +39 -0
- package/docs/development-plan.md +24 -10
- package/docs/explainability.md +4 -4
- package/docs/first-check.md +6 -6
- package/docs/lifecycle.md +4 -4
- package/docs/local-sources.md +158 -0
- package/docs/project-context.md +6 -6
- package/docs/releasing.md +4 -4
- package/docs/roadmap.md +7 -0
- package/docs/rule-reviews.md +120 -0
- package/docs/snapshot-diff-and-setup.md +5 -5
- package/docs/verified-commands.md +2 -2
- package/examples/local-sources/bindings.json +9 -0
- package/examples/local-sources/config.json +9 -0
- package/examples/local-sources/constraints.json +27 -0
- package/examples/local-sources/policy.md +4 -0
- package/examples/local-sources/sources.json +21 -0
- package/examples/rule-reviews/config.json +9 -0
- package/examples/rule-reviews/constraints.json +27 -0
- package/examples/rule-reviews/reviews.json +22 -0
- package/package.json +1 -1
- package/schemas/review-registry.v1.schema.json +68 -0
- package/schemas/review-result.v1.schema.json +234 -0
- package/schemas/source-bindings.v1.schema.json +46 -0
- package/schemas/source-registry.v1.schema.json +67 -0
- package/schemas/source-result.v1.schema.json +278 -0
- package/skills/handoff-check/SKILL.md +33 -0
|
@@ -7,7 +7,7 @@ verifier as `verify`; the pure core and existing input formats are unchanged.
|
|
|
7
7
|
With Node.js 22 or newer, use an existing reviewed project configuration:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
npx handoff-check@0.
|
|
10
|
+
npx handoff-check@0.10.0 run --profile production -- node scripts/preflight-demo.js
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
The profile is an example: select the intended configured profile, or use
|
|
@@ -89,7 +89,7 @@ failure diagnostics after launch do not reclassify it as a launch failure.
|
|
|
89
89
|
In a disposable configured project with a reviewed active baseline:
|
|
90
90
|
|
|
91
91
|
```sh
|
|
92
|
-
npx handoff-check@0.
|
|
92
|
+
npx handoff-check@0.10.0 run --profile production -- node -e 'console.log("example command started")'
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
Edit a rule description in that disposable manifest without refreshing its saved
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 3,
|
|
3
|
+
"projectId": "source-demo",
|
|
4
|
+
"constraints": [
|
|
5
|
+
{
|
|
6
|
+
"id": "G-01",
|
|
7
|
+
"revision": 1,
|
|
8
|
+
"scope": "global",
|
|
9
|
+
"description": "Review the local policy before changing deployment routines",
|
|
10
|
+
"source": "policy.md"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "S-01",
|
|
14
|
+
"revision": 1,
|
|
15
|
+
"scope": "staging",
|
|
16
|
+
"description": "Use synthetic records in staging",
|
|
17
|
+
"source": "policy.md"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "P-01",
|
|
21
|
+
"revision": 1,
|
|
22
|
+
"scope": "production",
|
|
23
|
+
"description": "Obtain deployment review for production",
|
|
24
|
+
"source": "policy.md"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"projectId": "source-demo",
|
|
4
|
+
"capturedAt": "2026-11-27T08:00:00.000Z",
|
|
5
|
+
"sources": [
|
|
6
|
+
{
|
|
7
|
+
"id": "G-01",
|
|
8
|
+
"path": "policy.md",
|
|
9
|
+
"revision": 1,
|
|
10
|
+
"contentHash": "sha256:cd05c3572849d61eb0d47112ce96d6cd45891ed298f343b6835091f408ff41bf",
|
|
11
|
+
"fileHash": "sha256:6911d23420ff7f9a48bce1afed5b3f828315bacf573b977996b6c62664547206"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "S-01",
|
|
15
|
+
"path": "policy.md",
|
|
16
|
+
"revision": 1,
|
|
17
|
+
"contentHash": "sha256:fc1a72f7aa701886aa423037a3c4a22d8a455d2aa98dbcbabf6d04d53a17aab6",
|
|
18
|
+
"fileHash": "sha256:6911d23420ff7f9a48bce1afed5b3f828315bacf573b977996b6c62664547206"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 3,
|
|
3
|
+
"projectId": "review-demo",
|
|
4
|
+
"constraints": [
|
|
5
|
+
{
|
|
6
|
+
"id": "G-01",
|
|
7
|
+
"revision": 1,
|
|
8
|
+
"scope": "global",
|
|
9
|
+
"description": "Review migrations before applying them",
|
|
10
|
+
"source": "synthetic:review-policy"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "S-01",
|
|
14
|
+
"revision": 1,
|
|
15
|
+
"scope": "staging",
|
|
16
|
+
"description": "Use synthetic records in staging",
|
|
17
|
+
"source": "synthetic:staging-policy"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "P-01",
|
|
21
|
+
"revision": 1,
|
|
22
|
+
"scope": "production",
|
|
23
|
+
"description": "Obtain the designated deployment review",
|
|
24
|
+
"source": "synthetic:production-policy"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"projectId": "review-demo",
|
|
4
|
+
"rules": [
|
|
5
|
+
{
|
|
6
|
+
"id": "G-01",
|
|
7
|
+
"revision": 1,
|
|
8
|
+
"contentHash": "sha256:5ce323472413c1d2e932615aaed992ea565dec9833ea022ec92fb13fc37f8f5c",
|
|
9
|
+
"owner": "platform-team",
|
|
10
|
+
"reviewedAt": "2026-11-26T08:00:00.000Z",
|
|
11
|
+
"reviewBy": "2026-11-27T08:00:00.000Z"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "S-01",
|
|
15
|
+
"revision": 1,
|
|
16
|
+
"contentHash": "sha256:8f2041c107968fcd3933003541a6cc0dcd6ac67c0005dbd743dd266840af34bb",
|
|
17
|
+
"owner": "platform-team",
|
|
18
|
+
"reviewedAt": "2026-11-26T08:00:00.000Z",
|
|
19
|
+
"reviewBy": "2026-11-27T08:00:00.000Z"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/Larusajs/Handoff-Check/schemas/review-registry.v1.schema.json",
|
|
4
|
+
"title": "Handoff Check review registry v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "rules"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": {
|
|
10
|
+
"const": 1
|
|
11
|
+
},
|
|
12
|
+
"projectId": {
|
|
13
|
+
"$ref": "#/$defs/identifier"
|
|
14
|
+
},
|
|
15
|
+
"rules": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"uniqueItems": true,
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": [
|
|
22
|
+
"id",
|
|
23
|
+
"revision",
|
|
24
|
+
"contentHash",
|
|
25
|
+
"owner",
|
|
26
|
+
"reviewedAt",
|
|
27
|
+
"reviewBy"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"id": {
|
|
31
|
+
"$ref": "#/$defs/identifier"
|
|
32
|
+
},
|
|
33
|
+
"revision": {
|
|
34
|
+
"type": "integer",
|
|
35
|
+
"minimum": 1,
|
|
36
|
+
"maximum": 9007199254740991
|
|
37
|
+
},
|
|
38
|
+
"contentHash": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
41
|
+
},
|
|
42
|
+
"owner": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1,
|
|
45
|
+
"pattern": "\\S"
|
|
46
|
+
},
|
|
47
|
+
"reviewedAt": {
|
|
48
|
+
"$ref": "#/$defs/utc"
|
|
49
|
+
},
|
|
50
|
+
"reviewBy": {
|
|
51
|
+
"$ref": "#/$defs/utc"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"$defs": {
|
|
58
|
+
"identifier": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
61
|
+
},
|
|
62
|
+
"utc": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"format": "date-time",
|
|
65
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,3})?Z$"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/Larusajs/Handoff-Check/schemas/review-result.v1.schema.json",
|
|
4
|
+
"title": "Handoff Check rule review result v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"kind",
|
|
10
|
+
"status",
|
|
11
|
+
"scope",
|
|
12
|
+
"asOf",
|
|
13
|
+
"activeConstraintCount",
|
|
14
|
+
"currentReviewCount",
|
|
15
|
+
"registryEntryCount",
|
|
16
|
+
"ignoredEntryCount",
|
|
17
|
+
"rules",
|
|
18
|
+
"findings",
|
|
19
|
+
"notice"
|
|
20
|
+
],
|
|
21
|
+
"properties": {
|
|
22
|
+
"schemaVersion": {
|
|
23
|
+
"const": 1
|
|
24
|
+
},
|
|
25
|
+
"kind": {
|
|
26
|
+
"const": "rule-review"
|
|
27
|
+
},
|
|
28
|
+
"status": {
|
|
29
|
+
"enum": ["current", "attention"]
|
|
30
|
+
},
|
|
31
|
+
"scope": {
|
|
32
|
+
"$ref": "#/$defs/identifier"
|
|
33
|
+
},
|
|
34
|
+
"asOf": {
|
|
35
|
+
"$ref": "#/$defs/utc"
|
|
36
|
+
},
|
|
37
|
+
"projectId": {
|
|
38
|
+
"$ref": "#/$defs/identifier"
|
|
39
|
+
},
|
|
40
|
+
"activeConstraintCount": {
|
|
41
|
+
"type": "integer",
|
|
42
|
+
"minimum": 0
|
|
43
|
+
},
|
|
44
|
+
"currentReviewCount": {
|
|
45
|
+
"type": "integer",
|
|
46
|
+
"minimum": 0
|
|
47
|
+
},
|
|
48
|
+
"registryEntryCount": {
|
|
49
|
+
"type": "integer",
|
|
50
|
+
"minimum": 0
|
|
51
|
+
},
|
|
52
|
+
"ignoredEntryCount": {
|
|
53
|
+
"type": "integer",
|
|
54
|
+
"minimum": 0
|
|
55
|
+
},
|
|
56
|
+
"notice": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"rules": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": ["id", "status", "expected"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"id": {
|
|
67
|
+
"$ref": "#/$defs/identifier"
|
|
68
|
+
},
|
|
69
|
+
"status": {
|
|
70
|
+
"enum": [
|
|
71
|
+
"CURRENT",
|
|
72
|
+
"MISSING_REVIEW",
|
|
73
|
+
"STALE_REVIEW",
|
|
74
|
+
"FUTURE_REVIEW",
|
|
75
|
+
"OVERDUE_REVIEW"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"expected": {
|
|
79
|
+
"$ref": "#/$defs/reference"
|
|
80
|
+
},
|
|
81
|
+
"recorded": {
|
|
82
|
+
"$ref": "#/$defs/reference"
|
|
83
|
+
},
|
|
84
|
+
"owner": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"pattern": "\\S"
|
|
88
|
+
},
|
|
89
|
+
"reviewedAt": {
|
|
90
|
+
"$ref": "#/$defs/utc"
|
|
91
|
+
},
|
|
92
|
+
"reviewBy": {
|
|
93
|
+
"$ref": "#/$defs/utc"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"allOf": [
|
|
97
|
+
{
|
|
98
|
+
"if": {
|
|
99
|
+
"properties": {
|
|
100
|
+
"status": {
|
|
101
|
+
"const": "MISSING_REVIEW"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"then": {
|
|
106
|
+
"not": {
|
|
107
|
+
"anyOf": [
|
|
108
|
+
{
|
|
109
|
+
"required": ["recorded"]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"required": ["owner"]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"required": ["reviewedAt"]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"required": ["reviewBy"]
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"else": {
|
|
124
|
+
"required": ["recorded", "owner", "reviewedAt", "reviewBy"]
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"findings": {
|
|
131
|
+
"type": "array",
|
|
132
|
+
"items": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"additionalProperties": false,
|
|
135
|
+
"required": ["code"],
|
|
136
|
+
"properties": {
|
|
137
|
+
"code": {
|
|
138
|
+
"enum": [
|
|
139
|
+
"MISSING_REVIEW",
|
|
140
|
+
"STALE_REVIEW",
|
|
141
|
+
"FUTURE_REVIEW",
|
|
142
|
+
"OVERDUE_REVIEW",
|
|
143
|
+
"UNKNOWN_RULE",
|
|
144
|
+
"NO_ACTIVE_CONSTRAINTS"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"id": {
|
|
148
|
+
"$ref": "#/$defs/identifier"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"allOf": [
|
|
152
|
+
{
|
|
153
|
+
"if": {
|
|
154
|
+
"properties": {
|
|
155
|
+
"code": {
|
|
156
|
+
"const": "NO_ACTIVE_CONSTRAINTS"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"then": {
|
|
161
|
+
"not": {
|
|
162
|
+
"required": ["id"]
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"else": {
|
|
166
|
+
"required": ["id"]
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"allOf": [
|
|
174
|
+
{
|
|
175
|
+
"if": {
|
|
176
|
+
"properties": {
|
|
177
|
+
"status": {
|
|
178
|
+
"const": "current"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"then": {
|
|
183
|
+
"properties": {
|
|
184
|
+
"findings": {
|
|
185
|
+
"maxItems": 0,
|
|
186
|
+
"type": "array"
|
|
187
|
+
},
|
|
188
|
+
"activeConstraintCount": {
|
|
189
|
+
"minimum": 1,
|
|
190
|
+
"type": "integer"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"else": {
|
|
195
|
+
"properties": {
|
|
196
|
+
"findings": {
|
|
197
|
+
"minItems": 1,
|
|
198
|
+
"type": "array"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"$defs": {
|
|
205
|
+
"identifier": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
208
|
+
},
|
|
209
|
+
"utc": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"format": "date-time",
|
|
212
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,3})?Z$"
|
|
213
|
+
},
|
|
214
|
+
"reference": {
|
|
215
|
+
"type": "object",
|
|
216
|
+
"additionalProperties": false,
|
|
217
|
+
"required": ["id", "revision", "contentHash"],
|
|
218
|
+
"properties": {
|
|
219
|
+
"id": {
|
|
220
|
+
"$ref": "#/$defs/identifier"
|
|
221
|
+
},
|
|
222
|
+
"revision": {
|
|
223
|
+
"type": "integer",
|
|
224
|
+
"minimum": 1,
|
|
225
|
+
"maximum": 9007199254740991
|
|
226
|
+
},
|
|
227
|
+
"contentHash": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"$id": "https://github.com/Larusajs/Handoff-Check/schemas/source-bindings.v1.schema.json",
|
|
6
|
+
"title": "Handoff Check source binding plan v1",
|
|
7
|
+
"required": ["schemaVersion", "bindings"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": {
|
|
10
|
+
"const": 1
|
|
11
|
+
},
|
|
12
|
+
"projectId": {
|
|
13
|
+
"$ref": "#/$defs/identifier"
|
|
14
|
+
},
|
|
15
|
+
"bindings": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"maxItems": 256,
|
|
18
|
+
"uniqueItems": true,
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"required": ["id", "path"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"id": {
|
|
25
|
+
"$ref": "#/$defs/identifier"
|
|
26
|
+
},
|
|
27
|
+
"path": {
|
|
28
|
+
"$ref": "#/$defs/sourcePath"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"$defs": {
|
|
35
|
+
"identifier": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
38
|
+
},
|
|
39
|
+
"sourcePath": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1,
|
|
42
|
+
"maxLength": 1024,
|
|
43
|
+
"description": "Portable relative POSIX file path. Runtime additionally validates components/reserved names/containment and rejects symlinks."
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"$id": "https://github.com/Larusajs/Handoff-Check/schemas/source-registry.v1.schema.json",
|
|
6
|
+
"title": "Handoff Check local source registry v1",
|
|
7
|
+
"required": ["schemaVersion", "capturedAt", "sources"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": {
|
|
10
|
+
"const": 1
|
|
11
|
+
},
|
|
12
|
+
"projectId": {
|
|
13
|
+
"$ref": "#/$defs/identifier"
|
|
14
|
+
},
|
|
15
|
+
"capturedAt": {
|
|
16
|
+
"$ref": "#/$defs/utc"
|
|
17
|
+
},
|
|
18
|
+
"sources": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"maxItems": 256,
|
|
21
|
+
"uniqueItems": true,
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": ["id", "path", "revision", "contentHash", "fileHash"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"id": {
|
|
28
|
+
"$ref": "#/$defs/identifier"
|
|
29
|
+
},
|
|
30
|
+
"revision": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 1,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"contentHash": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
38
|
+
},
|
|
39
|
+
"path": {
|
|
40
|
+
"$ref": "#/$defs/sourcePath"
|
|
41
|
+
},
|
|
42
|
+
"fileHash": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"$defs": {
|
|
51
|
+
"identifier": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(?![\\s\\S])"
|
|
54
|
+
},
|
|
55
|
+
"utc": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"format": "date-time",
|
|
58
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,3})?Z$"
|
|
59
|
+
},
|
|
60
|
+
"sourcePath": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1,
|
|
63
|
+
"maxLength": 1024,
|
|
64
|
+
"description": "Portable relative POSIX file path. Runtime additionally validates components/reserved names/containment and rejects symlinks."
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|