gitvouch 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1 @@
1
+ """Bundled Draft 2020-12 JSON Schemas for gitvouch."""
@@ -0,0 +1,35 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "gitvouch Configuration",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["schema_version", "project_name", "profile", "entrypoint", "control", "memory"],
7
+ "properties": {
8
+ "schema_version": { "const": 1 },
9
+ "project_name": { "type": "string", "minLength": 1 },
10
+ "profile": {
11
+ "enum": ["general", "application", "infrastructure", "migration"]
12
+ },
13
+ "entrypoint": { "type": "string", "minLength": 1 },
14
+ "control": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "required": ["enabled", "root"],
18
+ "properties": {
19
+ "enabled": { "type": "boolean" },
20
+ "root": { "type": "string", "minLength": 1 },
21
+ "require_snapshot_from": { "type": "string", "format": "date-time" }
22
+ }
23
+ },
24
+ "memory": {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "required": ["enabled", "root", "warn_after_days"],
28
+ "properties": {
29
+ "enabled": { "type": "boolean" },
30
+ "root": { "type": "string", "minLength": 1 },
31
+ "warn_after_days": { "type": "integer", "minimum": 1 }
32
+ }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,200 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "gitvouch Task Event Record",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["schema_version", "event_id", "task_id", "occurred_at", "actor", "type", "details"],
7
+ "properties": {
8
+ "schema_version": { "const": 2 },
9
+ "event_id": { "type": "string", "pattern": "^EVT-[A-Z0-9][A-Z0-9-]{0,62}$" },
10
+ "task_id": { "type": "string", "pattern": "^T-[0-9]{3,}$" },
11
+ "occurred_at": { "type": "string", "format": "date-time" },
12
+ "actor": { "type": "string", "minLength": 1 },
13
+ "type": {
14
+ "enum": [
15
+ "task_created",
16
+ "state_transition",
17
+ "blocker_added",
18
+ "blocker_resolved",
19
+ "assignment_changed",
20
+ "scope_changed",
21
+ "weight_changed"
22
+ ]
23
+ },
24
+ "details": { "type": "object" }
25
+ },
26
+ "allOf": [
27
+ {
28
+ "if": { "properties": { "type": { "const": "task_created" } } },
29
+ "then": {
30
+ "properties": {
31
+ "details": {
32
+ "type": "object",
33
+ "additionalProperties": false,
34
+ "required": ["state", "scope", "weight", "owners"],
35
+ "properties": {
36
+ "state": { "const": "proposed" },
37
+ "scope": { "type": "string", "minLength": 1 },
38
+ "weight": { "type": "integer", "minimum": 1 },
39
+ "owners": {
40
+ "type": "array",
41
+ "uniqueItems": true,
42
+ "items": { "type": "string", "minLength": 1 }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ },
49
+ {
50
+ "if": { "properties": { "type": { "const": "state_transition" } } },
51
+ "then": {
52
+ "properties": {
53
+ "details": {
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": ["from", "to", "evidence_ids"],
57
+ "properties": {
58
+ "from": { "$ref": "#/$defs/state" },
59
+ "to": { "$ref": "#/$defs/state" },
60
+ "evidence_ids": {
61
+ "type": "array",
62
+ "uniqueItems": true,
63
+ "items": { "type": "string", "pattern": "^E-[0-9]{3,}$" }
64
+ },
65
+ "dependency_ids": {
66
+ "type": "array",
67
+ "uniqueItems": true,
68
+ "items": { "type": "string", "pattern": "^T-[0-9]{3,}$" }
69
+ },
70
+ "acceptance_criteria_ids": {
71
+ "type": "array",
72
+ "minItems": 1,
73
+ "uniqueItems": true,
74
+ "items": { "type": "string", "pattern": "^AC-[0-9]{1,}$" }
75
+ },
76
+ "acceptance_criteria_snapshot": {
77
+ "type": "array",
78
+ "minItems": 1,
79
+ "items": { "$ref": "#/$defs/criterionSnapshot" }
80
+ }
81
+ },
82
+ "allOf": [
83
+ {
84
+ "if": { "properties": { "to": { "const": "ready" } } },
85
+ "then": {
86
+ "required": [
87
+ "dependency_ids",
88
+ "acceptance_criteria_ids",
89
+ "acceptance_criteria_snapshot"
90
+ ]
91
+ }
92
+ }
93
+ ]
94
+ }
95
+ }
96
+ }
97
+ },
98
+ {
99
+ "if": { "properties": { "type": { "const": "blocker_added" } } },
100
+ "then": {
101
+ "properties": {
102
+ "details": {
103
+ "type": "object",
104
+ "additionalProperties": false,
105
+ "required": ["blocker_id", "summary"],
106
+ "properties": {
107
+ "blocker_id": { "$ref": "#/$defs/blockerId" },
108
+ "summary": { "type": "string", "minLength": 1 }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ },
114
+ {
115
+ "if": { "properties": { "type": { "const": "blocker_resolved" } } },
116
+ "then": {
117
+ "properties": {
118
+ "details": {
119
+ "type": "object",
120
+ "additionalProperties": false,
121
+ "required": ["blocker_id", "resolution"],
122
+ "properties": {
123
+ "blocker_id": { "$ref": "#/$defs/blockerId" },
124
+ "resolution": { "type": "string", "minLength": 1 }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ },
130
+ {
131
+ "if": { "properties": { "type": { "const": "assignment_changed" } } },
132
+ "then": { "properties": { "details": { "$ref": "#/$defs/ownersChange" } } }
133
+ },
134
+ {
135
+ "if": { "properties": { "type": { "const": "scope_changed" } } },
136
+ "then": { "properties": { "details": { "$ref": "#/$defs/scopeChange" } } }
137
+ },
138
+ {
139
+ "if": { "properties": { "type": { "const": "weight_changed" } } },
140
+ "then": { "properties": { "details": { "$ref": "#/$defs/weightChange" } } }
141
+ }
142
+ ],
143
+ "$defs": {
144
+ "state": {
145
+ "enum": [
146
+ "proposed",
147
+ "ready",
148
+ "in_progress",
149
+ "implemented",
150
+ "verifying",
151
+ "verified",
152
+ "cancelled",
153
+ "superseded"
154
+ ]
155
+ },
156
+ "blockerId": { "type": "string", "pattern": "^B-[A-Z0-9][A-Z0-9-]{0,62}$" },
157
+ "owners": {
158
+ "type": "array",
159
+ "uniqueItems": true,
160
+ "items": { "type": "string", "minLength": 1 }
161
+ },
162
+ "ownersChange": {
163
+ "type": "object",
164
+ "additionalProperties": false,
165
+ "required": ["before", "after"],
166
+ "properties": {
167
+ "before": { "$ref": "#/$defs/owners" },
168
+ "after": { "$ref": "#/$defs/owners" }
169
+ }
170
+ },
171
+ "scopeChange": {
172
+ "type": "object",
173
+ "additionalProperties": false,
174
+ "required": ["before", "after"],
175
+ "properties": {
176
+ "before": { "type": "string", "minLength": 1 },
177
+ "after": { "type": "string", "minLength": 1 }
178
+ }
179
+ },
180
+ "criterionSnapshot": {
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "required": ["id", "description"],
184
+ "properties": {
185
+ "id": { "type": "string", "pattern": "^AC-[0-9]{1,}$" },
186
+ "description": { "type": "string", "minLength": 1 },
187
+ "max_age_days": { "type": "integer", "minimum": 1 }
188
+ }
189
+ },
190
+ "weightChange": {
191
+ "type": "object",
192
+ "additionalProperties": false,
193
+ "required": ["before", "after"],
194
+ "properties": {
195
+ "before": { "type": "integer", "minimum": 1 },
196
+ "after": { "type": "integer", "minimum": 1 }
197
+ }
198
+ }
199
+ }
200
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "gitvouch Evidence Record",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "schema_version",
8
+ "id",
9
+ "task_id",
10
+ "criterion_id",
11
+ "result",
12
+ "applicable",
13
+ "collected_at",
14
+ "collector",
15
+ "summary",
16
+ "provenance"
17
+ ],
18
+ "properties": {
19
+ "schema_version": { "const": 1 },
20
+ "id": { "type": "string", "pattern": "^E-[0-9]{3,}$" },
21
+ "task_id": { "type": "string", "pattern": "^T-[0-9]{3,}$" },
22
+ "criterion_id": { "type": "string", "pattern": "^AC-[0-9]{1,}$" },
23
+ "result": { "enum": ["pass", "fail", "inconclusive"] },
24
+ "applicable": { "type": "boolean" },
25
+ "collected_at": { "type": "string", "format": "date-time" },
26
+ "expires_at": { "type": "string", "format": "date-time" },
27
+ "collector": { "type": "string", "minLength": 1 },
28
+ "summary": { "type": "string", "minLength": 1, "maxLength": 2000 },
29
+ "provenance": {
30
+ "type": "object",
31
+ "additionalProperties": false,
32
+ "minProperties": 1,
33
+ "properties": {
34
+ "commit": { "type": "string", "minLength": 7 },
35
+ "working_tree_dirty": { "type": "boolean" },
36
+ "command": { "type": "string", "minLength": 1 },
37
+ "exit_code": { "type": "integer" },
38
+ "ci_job": { "type": "string", "minLength": 1 },
39
+ "url": { "type": "string", "format": "uri" },
40
+ "artifact_sha256": { "type": "string", "pattern": "^[a-fA-F0-9]{64}$" }
41
+ }
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "gitvouch Milestone Record",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["schema_version", "id", "title", "description", "status", "task_ids", "created_at", "updated_at"],
7
+ "properties": {
8
+ "schema_version": { "const": 1 },
9
+ "id": { "type": "string", "pattern": "^M-[0-9]{3,}$" },
10
+ "title": { "type": "string", "minLength": 1 },
11
+ "description": { "type": "string" },
12
+ "status": { "enum": ["planned", "active", "completed", "cancelled"] },
13
+ "task_ids": {
14
+ "type": "array",
15
+ "uniqueItems": true,
16
+ "items": { "type": "string", "pattern": "^T-[0-9]{3,}$" }
17
+ },
18
+ "created_at": { "type": "string", "format": "date-time" },
19
+ "updated_at": { "type": "string", "format": "date-time" }
20
+ }
21
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "gitvouch Project Record",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["schema_version", "id", "name", "description", "milestone_ids", "created_at", "updated_at"],
7
+ "properties": {
8
+ "schema_version": { "const": 1 },
9
+ "id": { "type": "string", "pattern": "^P-[A-Z0-9][A-Z0-9-]{0,62}$" },
10
+ "name": { "type": "string", "minLength": 1 },
11
+ "description": { "type": "string" },
12
+ "milestone_ids": {
13
+ "type": "array",
14
+ "uniqueItems": true,
15
+ "items": { "type": "string", "pattern": "^M-[0-9]{3,}$" }
16
+ },
17
+ "created_at": { "type": "string", "format": "date-time" },
18
+ "updated_at": { "type": "string", "format": "date-time" }
19
+ }
20
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "gitvouch Durable Memory State Snapshot",
4
+ "type": "object",
5
+ "required": ["schema_version", "last_reviewed", "project"],
6
+ "properties": {
7
+ "schema_version": {
8
+ "oneOf": [
9
+ { "type": "integer", "minimum": 1 },
10
+ { "type": "string", "minLength": 1 }
11
+ ]
12
+ },
13
+ "last_reviewed": { "type": "string", "format": "date" },
14
+ "freshness": {
15
+ "type": "object",
16
+ "properties": {
17
+ "basis": { "type": "string", "minLength": 1 }
18
+ },
19
+ "additionalProperties": true
20
+ },
21
+ "project": {
22
+ "type": "object",
23
+ "required": ["name"],
24
+ "properties": {
25
+ "name": { "type": "string", "minLength": 1 }
26
+ },
27
+ "additionalProperties": true
28
+ }
29
+ },
30
+ "additionalProperties": true
31
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "gitvouch Task Record",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "schema_version",
8
+ "id",
9
+ "milestone_id",
10
+ "title",
11
+ "scope",
12
+ "state",
13
+ "weight",
14
+ "dependencies",
15
+ "owners",
16
+ "acceptance_criteria",
17
+ "active_blockers",
18
+ "created_at",
19
+ "updated_at"
20
+ ],
21
+ "properties": {
22
+ "schema_version": { "const": 1 },
23
+ "id": { "type": "string", "pattern": "^T-[0-9]{3,}$" },
24
+ "milestone_id": { "type": "string", "pattern": "^M-[0-9]{3,}$" },
25
+ "title": { "type": "string", "minLength": 1 },
26
+ "scope": { "type": "string", "minLength": 1 },
27
+ "state": {
28
+ "enum": [
29
+ "proposed",
30
+ "ready",
31
+ "in_progress",
32
+ "implemented",
33
+ "verifying",
34
+ "verified",
35
+ "cancelled",
36
+ "superseded"
37
+ ]
38
+ },
39
+ "weight": { "type": "integer", "minimum": 1 },
40
+ "dependencies": {
41
+ "type": "array",
42
+ "uniqueItems": true,
43
+ "items": { "type": "string", "pattern": "^T-[0-9]{3,}$" }
44
+ },
45
+ "owners": {
46
+ "type": "array",
47
+ "uniqueItems": true,
48
+ "items": { "type": "string", "minLength": 1 }
49
+ },
50
+ "acceptance_criteria": {
51
+ "type": "array",
52
+ "items": { "$ref": "#/$defs/criterion" }
53
+ },
54
+ "active_blockers": {
55
+ "type": "array",
56
+ "uniqueItems": true,
57
+ "items": { "type": "string", "pattern": "^B-[A-Z0-9][A-Z0-9-]{0,62}$" }
58
+ },
59
+ "created_at": { "type": "string", "format": "date-time" },
60
+ "updated_at": { "type": "string", "format": "date-time" }
61
+ },
62
+ "$defs": {
63
+ "criterion": {
64
+ "type": "object",
65
+ "additionalProperties": false,
66
+ "required": ["id", "description"],
67
+ "properties": {
68
+ "id": { "type": "string", "pattern": "^AC-[0-9]{1,}$" },
69
+ "description": { "type": "string", "minLength": 1 },
70
+ "max_age_days": { "type": "integer", "minimum": 1 }
71
+ }
72
+ }
73
+ }
74
+ }