owlrunkit 0.19.2 → 0.21.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 (51) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +94 -8
  3. package/docs/architecture/OWLCODA_RUNKIT_0201_RELEASE_TRUTH_AND_PROFILE_NORMALIZATION_PATCH_DECISION_20260813.md +95 -0
  4. package/docs/architecture/OWLCODA_RUNKIT_020_TEAM_DELIVERY_PHASE1_PRODUCT_DECISION_20260813.md +296 -0
  5. package/docs/architecture/OWLCODA_RUNKIT_021_TEAM_DELIVERY_PHASE2_PRODUCT_DECISION_20260813.md +249 -0
  6. package/integrations/codex/skills/owlcoda-runkit/SKILL.md +114 -12
  7. package/integrations/codex/skills/owlcoda-runkit/assets/templates/config.json +3 -3
  8. package/package.json +1 -1
  9. package/packages/attest/README.md +7 -1
  10. package/packages/attest/consumer-surface-v3.json +275 -0
  11. package/packages/attest/distribution-manifest-v1.json +19 -0
  12. package/packages/attest/schemas/canonical-candidate-identity-v1.schema.json +112 -0
  13. package/packages/attest/schemas/foreign-workspace-filesystem-identity-v1.schema.json +32 -0
  14. package/packages/attest/schemas/quick-verification-receipt-v4.schema.json +226 -0
  15. package/packages/attest/src/candidate-identity.mjs +454 -0
  16. package/packages/attest/src/index.mjs +11 -0
  17. package/packages/attest/src/quick-receipt-contract.mjs +126 -5
  18. package/packages/attest/src/quick.mjs +48 -8
  19. package/{registry-release-policy-v1.json → registry-release-policy-v2.json} +8 -9
  20. package/sbom.spdx.json +4 -4
  21. package/scripts/runkit-contract/core-contract.mjs +21 -1
  22. package/scripts/runkit-contract/fleet-skill-plan.mjs +223 -0
  23. package/scripts/runkit-contract/formal-workflow.mjs +3 -1
  24. package/scripts/runkit-contract/inspect-presentation.mjs +56 -0
  25. package/scripts/runkit-contract/install-codex-skill.mjs +1 -0
  26. package/scripts/runkit-contract/onboarding-bootstrap.mjs +15 -0
  27. package/scripts/runkit-contract/onboarding-doctor.mjs +201 -7
  28. package/scripts/runkit-contract/profile-onboarding.mjs +6 -0
  29. package/scripts/runkit-contract/project-cli-resolver.mjs +12 -1
  30. package/scripts/runkit-contract/quick-metrics.mjs +9 -5
  31. package/scripts/runkit-contract/quick-verify.mjs +108 -24
  32. package/scripts/runkit-contract/registry-adoption-gate.mjs +12 -3
  33. package/scripts/runkit-contract/registry-adoption.mjs +10 -5
  34. package/scripts/runkit-contract/runkit-cli.mjs +367 -20
  35. package/scripts/runkit-contract/schemas/candidate-transfer-packet-v1.schema.json +98 -0
  36. package/scripts/runkit-contract/schemas/delivery-lifecycle-v1.schema.json +91 -0
  37. package/scripts/runkit-contract/schemas/external-gate-v1.schema.json +68 -0
  38. package/scripts/runkit-contract/schemas/fleet-skill-upgrade-plan-v1.schema.json +140 -0
  39. package/scripts/runkit-contract/schemas/inspect-compact-v1.schema.json +93 -0
  40. package/scripts/runkit-contract/schemas/team-acceptance-packet-v2.schema.json +109 -0
  41. package/scripts/runkit-contract/schemas/team-delivery-status-v1.schema.json +72 -0
  42. package/scripts/runkit-contract/schemas/team-delivery-status-v2.schema.json +219 -0
  43. package/scripts/runkit-contract/schemas/team-packet-validation-v1.schema.json +33 -0
  44. package/scripts/runkit-contract/schemas/team-project-event-v6.schema.json +82 -0
  45. package/scripts/runkit-contract/schemas/team-project-event-v7.schema.json +80 -0
  46. package/scripts/runkit-contract/schemas/team-project-status-v4.schema.json +208 -0
  47. package/scripts/runkit-contract/schemas/team-recommendation-v1.schema.json +121 -0
  48. package/scripts/runkit-contract/schemas/team-task-packet-v2.schema.json +228 -0
  49. package/scripts/runkit-contract/sync-release-identity.mjs +87 -0
  50. package/scripts/runkit-contract/team-delivery.mjs +1031 -0
  51. package/scripts/runkit-contract/team-project.mjs +970 -9
@@ -0,0 +1,72 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-delivery-status-v1.schema.json",
4
+ "title": "OwlCoda RunKit Team Delivery Status V1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion", "status", "graphSource", "persistedTeamGraph", "projectId",
9
+ "projectTruthHash", "projectOverall", "recommendation", "lanes", "pathConflicts",
10
+ "acceptanceGaps", "ownerTransitions", "nextAction", "dispatch",
11
+ "authorityBoundary", "authorizationGranted", "exitCode"
12
+ ],
13
+ "properties": {
14
+ "schemaVersion": { "const": "OwlCodaRunKitTeamDeliveryStatusV1" },
15
+ "status": { "const": "team_delivery_status" },
16
+ "graphSource": { "const": "project_driver" },
17
+ "persistedTeamGraph": { "const": false },
18
+ "projectId": { "$ref": "#/$defs/nullableText" },
19
+ "projectTruthHash": { "oneOf": [{ "type": "null" }, { "type": "string", "pattern": "^[a-f0-9]{64}$" }] },
20
+ "projectOverall": { "type": "string", "minLength": 1 },
21
+ "recommendation": {
22
+ "type": "object", "additionalProperties": false,
23
+ "required": ["recommendedMode", "coordination", "reasonCodes"],
24
+ "properties": {
25
+ "recommendedMode": { "enum": ["off", "team"] },
26
+ "coordination": { "enum": ["none", "project_driver_team"] },
27
+ "reasonCodes": { "$ref": "#/$defs/strings" }
28
+ }
29
+ },
30
+ "lanes": { "type": "array", "items": { "$ref": "#/$defs/lane" } },
31
+ "pathConflicts": { "type": "array", "items": { "$ref": "#/$defs/pathConflict" } },
32
+ "acceptanceGaps": { "type": "array", "items": { "$ref": "#/$defs/acceptanceGap" } },
33
+ "ownerTransitions": { "type": "array", "items": { "$ref": "#/$defs/ownerTransition" } },
34
+ "nextAction": { "$ref": "#/$defs/nullableText" },
35
+ "dispatch": { "$ref": "#/$defs/dispatch" },
36
+ "authorityBoundary": { "$ref": "#/$defs/authorityBoundary" },
37
+ "authorizationGranted": { "const": false },
38
+ "exitCode": { "const": 0 }
39
+ },
40
+ "$defs": {
41
+ "text": { "type": "string", "minLength": 1 },
42
+ "nullableText": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/text" }] },
43
+ "strings": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
44
+ "nonemptyStrings": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
45
+ "lane": {
46
+ "type": "object", "additionalProperties": false,
47
+ "required": ["workItemId", "title", "status", "agentId", "dependencies", "unresolvedDependencies", "ownedPaths", "actionable", "parallelEligible", "coordinationFacts"],
48
+ "properties": {
49
+ "workItemId": { "$ref": "#/$defs/text" }, "title": { "$ref": "#/$defs/text" },
50
+ "status": { "$ref": "#/$defs/text" }, "agentId": { "$ref": "#/$defs/nullableText" },
51
+ "dependencies": { "$ref": "#/$defs/strings" }, "unresolvedDependencies": { "$ref": "#/$defs/strings" },
52
+ "ownedPaths": { "$ref": "#/$defs/nonemptyStrings" }, "actionable": { "type": "boolean" },
53
+ "parallelEligible": { "type": "boolean" }, "coordinationFacts": { "$ref": "#/$defs/strings" }
54
+ }
55
+ },
56
+ "pathConflict": { "type": "object", "additionalProperties": false, "required": ["leftWorkItemId", "leftPath", "rightWorkItemId", "rightPath"], "properties": { "leftWorkItemId": { "$ref": "#/$defs/text" }, "leftPath": { "$ref": "#/$defs/text" }, "rightWorkItemId": { "$ref": "#/$defs/text" }, "rightPath": { "$ref": "#/$defs/text" } } },
57
+ "acceptanceGap": { "type": "object", "additionalProperties": false, "required": ["workItemId", "code", "message"], "properties": { "workItemId": { "$ref": "#/$defs/text" }, "code": { "const": "verification_model_family_unbound" }, "message": { "$ref": "#/$defs/text" } } },
58
+ "ownerTransition": { "type": "object", "additionalProperties": false, "required": ["workItemId", "facts"], "properties": { "workItemId": { "$ref": "#/$defs/text" }, "facts": { "$ref": "#/$defs/nonemptyStrings" } } },
59
+ "dispatch": { "type": "object", "additionalProperties": false, "required": ["mode", "permitted", "nextCommand"], "properties": { "mode": { "const": "none" }, "permitted": { "const": false }, "nextCommand": { "type": "null" } } },
60
+ "authorityBoundary": { "type": "object", "additionalProperties": false, "required": ["agentDispatch", "git", "release", "deployment", "production", "business", "automation", "money"], "properties": { "agentDispatch": { "const": false }, "git": { "const": false }, "release": { "const": false }, "deployment": { "const": false }, "production": { "const": false }, "business": { "const": false }, "automation": { "const": false }, "money": { "const": false } } }
61
+ },
62
+ "examples": [{
63
+ "schemaVersion": "OwlCodaRunKitTeamDeliveryStatusV1", "status": "team_delivery_status",
64
+ "graphSource": "project_driver", "persistedTeamGraph": false, "projectId": null,
65
+ "projectTruthHash": null, "projectOverall": "not_initialized",
66
+ "recommendation": { "recommendedMode": "off", "coordination": "none", "reasonCodes": ["project_driver_not_initialized"] },
67
+ "lanes": [], "pathConflicts": [], "acceptanceGaps": [], "ownerTransitions": [], "nextAction": null,
68
+ "dispatch": { "mode": "none", "permitted": false, "nextCommand": null },
69
+ "authorityBoundary": { "agentDispatch": false, "git": false, "release": false, "deployment": false, "production": false, "business": false, "automation": false, "money": false },
70
+ "authorizationGranted": false, "exitCode": 0
71
+ }]
72
+ }
@@ -0,0 +1,219 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-delivery-status-v2.schema.json",
4
+ "title": "OwlCoda RunKit Team Delivery Status V2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion", "status", "graphSource", "persistedTeamGraph", "projectId",
9
+ "projectTruthHash", "projectOverall", "recommendation", "lanes", "pathConflicts",
10
+ "acceptanceGaps", "ownerTransitions", "externalGates", "deliveryLifecycle",
11
+ "unmodeledCandidateLanes", "warnings", "warningSummary", "nextAction", "dispatch",
12
+ "authorityBoundary", "authorizationGranted", "exitCode"
13
+ ],
14
+ "properties": {
15
+ "schemaVersion": { "const": "OwlCodaRunKitTeamDeliveryStatusV2" },
16
+ "status": { "const": "team_delivery_status" },
17
+ "graphSource": { "const": "project_driver" },
18
+ "persistedTeamGraph": { "const": false },
19
+ "projectId": { "$ref": "#/$defs/nullableText" },
20
+ "projectTruthHash": { "oneOf": [{ "type": "null" }, { "type": "string", "pattern": "^[a-f0-9]{64}$" }] },
21
+ "projectOverall": { "$ref": "#/$defs/text" },
22
+ "recommendation": {
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": ["recommendedMode", "coordination", "reasonCodes"],
26
+ "properties": {
27
+ "recommendedMode": { "enum": ["off", "team"] },
28
+ "coordination": { "enum": ["none", "project_driver_team"] },
29
+ "reasonCodes": { "$ref": "#/$defs/strings" }
30
+ }
31
+ },
32
+ "lanes": { "type": "array", "items": { "$ref": "#/$defs/lane" } },
33
+ "pathConflicts": { "type": "array", "items": { "$ref": "#/$defs/pathConflict" } },
34
+ "acceptanceGaps": { "type": "array", "items": { "$ref": "#/$defs/acceptanceGap" } },
35
+ "ownerTransitions": { "type": "array", "items": { "$ref": "#/$defs/ownerTransition" } },
36
+ "externalGates": { "type": "array", "items": { "$ref": "#/$defs/externalGate" } },
37
+ "deliveryLifecycle": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/deliveryLifecycle" }] },
38
+ "unmodeledCandidateLanes": { "type": "array", "items": { "$ref": "#/$defs/candidateLane" } },
39
+ "warnings": { "type": "array", "items": { "$ref": "#/$defs/warning" } },
40
+ "warningSummary": {
41
+ "type": "object",
42
+ "additionalProperties": false,
43
+ "required": ["count", "groups"],
44
+ "properties": {
45
+ "count": { "type": "integer", "minimum": 0 },
46
+ "groups": { "type": "array", "items": { "$ref": "#/$defs/warningGroup" } }
47
+ }
48
+ },
49
+ "nextAction": { "$ref": "#/$defs/nullableText" },
50
+ "dispatch": { "$ref": "#/$defs/dispatch" },
51
+ "authorityBoundary": { "$ref": "#/$defs/authorityBoundary" },
52
+ "authorizationGranted": { "const": false },
53
+ "exitCode": { "const": 0 }
54
+ },
55
+ "examples": [
56
+ {
57
+ "schemaVersion": "OwlCodaRunKitTeamDeliveryStatusV2",
58
+ "status": "team_delivery_status",
59
+ "graphSource": "project_driver",
60
+ "persistedTeamGraph": false,
61
+ "projectId": null,
62
+ "projectTruthHash": null,
63
+ "projectOverall": "not_initialized",
64
+ "recommendation": {
65
+ "recommendedMode": "off",
66
+ "coordination": "none",
67
+ "reasonCodes": ["project_driver_not_initialized"]
68
+ },
69
+ "lanes": [],
70
+ "pathConflicts": [],
71
+ "acceptanceGaps": [],
72
+ "ownerTransitions": [],
73
+ "externalGates": [],
74
+ "deliveryLifecycle": null,
75
+ "unmodeledCandidateLanes": [],
76
+ "warnings": [],
77
+ "warningSummary": { "count": 0, "groups": [] },
78
+ "nextAction": null,
79
+ "dispatch": { "mode": "none", "permitted": false, "nextCommand": null },
80
+ "authorityBoundary": {
81
+ "agentDispatch": false,
82
+ "git": false,
83
+ "release": false,
84
+ "deployment": false,
85
+ "production": false,
86
+ "business": false,
87
+ "automation": false,
88
+ "money": false
89
+ },
90
+ "authorizationGranted": false,
91
+ "exitCode": 0
92
+ }
93
+ ],
94
+ "$defs": {
95
+ "text": { "type": "string", "minLength": 1 },
96
+ "nullableText": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/text" }] },
97
+ "strings": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
98
+ "nonemptyStrings": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
99
+ "stageName": { "enum": ["source", "integration", "materialization", "deployment", "live_readback", "product_acceptance"] },
100
+ "nullableStage": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/stageName" }] },
101
+ "lane": {
102
+ "type": "object",
103
+ "additionalProperties": false,
104
+ "required": ["workItemId", "title", "status", "agentId", "dependencies", "unresolvedDependencies", "ownedPaths", "actionable", "parallelEligible", "coordinationFacts"],
105
+ "properties": {
106
+ "workItemId": { "$ref": "#/$defs/text" },
107
+ "title": { "$ref": "#/$defs/text" },
108
+ "status": { "$ref": "#/$defs/text" },
109
+ "agentId": { "$ref": "#/$defs/nullableText" },
110
+ "dependencies": { "$ref": "#/$defs/strings" },
111
+ "unresolvedDependencies": { "$ref": "#/$defs/strings" },
112
+ "ownedPaths": { "$ref": "#/$defs/nonemptyStrings" },
113
+ "actionable": { "type": "boolean" },
114
+ "parallelEligible": { "type": "boolean" },
115
+ "coordinationFacts": { "$ref": "#/$defs/strings" }
116
+ }
117
+ },
118
+ "pathConflict": { "type": "object", "additionalProperties": false, "required": ["leftWorkItemId", "leftPath", "rightWorkItemId", "rightPath"], "properties": { "leftWorkItemId": { "$ref": "#/$defs/text" }, "leftPath": { "$ref": "#/$defs/text" }, "rightWorkItemId": { "$ref": "#/$defs/text" }, "rightPath": { "$ref": "#/$defs/text" } } },
119
+ "acceptanceGap": { "type": "object", "additionalProperties": false, "required": ["workItemId", "code", "message"], "properties": { "workItemId": { "$ref": "#/$defs/text" }, "code": { "const": "verification_model_family_unbound" }, "message": { "$ref": "#/$defs/text" } } },
120
+ "ownerTransition": { "type": "object", "additionalProperties": false, "required": ["workItemId", "facts"], "properties": { "workItemId": { "$ref": "#/$defs/text" }, "facts": { "$ref": "#/$defs/nonemptyStrings" } } },
121
+ "externalGate": {
122
+ "type": "object",
123
+ "additionalProperties": false,
124
+ "required": ["schemaVersion", "gateId", "title", "requiredFor", "gateStatus", "blocking", "ownerAgentId", "source", "summary", "evidenceRefs", "occurredAt", "truthRefs", "authorizationGranted"],
125
+ "properties": {
126
+ "schemaVersion": { "const": "OwlCodaRunKitExternalGateV1" },
127
+ "gateId": { "$ref": "#/$defs/text" },
128
+ "title": { "$ref": "#/$defs/text" },
129
+ "requiredFor": { "$ref": "#/$defs/stageName" },
130
+ "gateStatus": { "enum": ["pending", "passed", "blocked", "deferred"] },
131
+ "blocking": { "type": "boolean" },
132
+ "ownerAgentId": { "$ref": "#/$defs/text" },
133
+ "source": { "type": "object", "additionalProperties": false, "required": ["adapterId", "ref", "sha256"], "properties": { "adapterId": { "$ref": "#/$defs/text" }, "ref": { "$ref": "#/$defs/text" }, "sha256": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" } } },
134
+ "summary": { "$ref": "#/$defs/text" },
135
+ "evidenceRefs": { "$ref": "#/$defs/nonemptyStrings" },
136
+ "occurredAt": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$" },
137
+ "truthRefs": { "$ref": "#/$defs/nonemptyStrings" },
138
+ "authorizationGranted": { "const": false }
139
+ }
140
+ },
141
+ "deliveryStage": {
142
+ "type": "object",
143
+ "additionalProperties": false,
144
+ "required": ["stage", "status", "recordId", "ownerAgentId", "summary", "evidenceRefs", "externalGateIds", "occurredAt", "truthRef"],
145
+ "properties": {
146
+ "stage": { "$ref": "#/$defs/stageName" },
147
+ "status": { "enum": ["pending", "accepted", "rejected", "integrated", "materialized", "deployed", "failed", "rolled_back", "passed", "deferred"] },
148
+ "recordId": { "$ref": "#/$defs/nullableText" },
149
+ "ownerAgentId": { "$ref": "#/$defs/nullableText" },
150
+ "summary": { "$ref": "#/$defs/nullableText" },
151
+ "evidenceRefs": { "$ref": "#/$defs/strings" },
152
+ "externalGateIds": { "$ref": "#/$defs/strings" },
153
+ "occurredAt": { "oneOf": [{ "type": "null" }, { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$" }] },
154
+ "truthRef": { "$ref": "#/$defs/nullableText" }
155
+ }
156
+ },
157
+ "deliveryLifecycle": {
158
+ "type": "object",
159
+ "additionalProperties": false,
160
+ "required": ["schemaVersion", "lifecycleStatus", "currentStage", "nextRequiredStage", "blockingStage", "blockingExternalGateIds", "stages", "authorizationGranted"],
161
+ "properties": {
162
+ "schemaVersion": { "const": "OwlCodaRunKitDeliveryLifecycleV1" },
163
+ "lifecycleStatus": { "enum": ["in_progress", "blocked", "completed"] },
164
+ "currentStage": { "enum": ["work_ledger_incomplete", "work_ledger_complete", "source_accepted", "integrated", "materialized", "deployed", "live_readback_passed", "product_accepted"] },
165
+ "nextRequiredStage": { "$ref": "#/$defs/nullableStage" },
166
+ "blockingStage": { "$ref": "#/$defs/nullableStage" },
167
+ "blockingExternalGateIds": { "$ref": "#/$defs/strings" },
168
+ "stages": { "type": "array", "minItems": 6, "maxItems": 6, "items": { "$ref": "#/$defs/deliveryStage" } },
169
+ "authorizationGranted": { "const": false }
170
+ }
171
+ },
172
+ "candidateLane": {
173
+ "type": "object",
174
+ "additionalProperties": false,
175
+ "required": ["laneId", "kind", "artifactId", "status", "sourceRef", "actionable", "modeledWorkItemId", "truthRefs"],
176
+ "properties": {
177
+ "laneId": { "$ref": "#/$defs/text" },
178
+ "kind": { "enum": ["data_candidate", "external_gate", "target_snapshot", "source_delivery"] },
179
+ "artifactId": { "$ref": "#/$defs/text" },
180
+ "status": { "$ref": "#/$defs/text" },
181
+ "sourceRef": { "$ref": "#/$defs/text" },
182
+ "actionable": { "type": "boolean" },
183
+ "modeledWorkItemId": { "$ref": "#/$defs/nullableText" },
184
+ "truthRefs": { "$ref": "#/$defs/nonemptyStrings" }
185
+ }
186
+ },
187
+ "warning": {
188
+ "type": "object",
189
+ "additionalProperties": false,
190
+ "required": ["code", "workItemId", "message", "truthRefs", "severity", "blocking", "requiredAtGate", "recommendedAction"],
191
+ "properties": {
192
+ "code": { "const": "no_bound_verification_receipt" },
193
+ "workItemId": { "$ref": "#/$defs/text" },
194
+ "message": { "$ref": "#/$defs/text" },
195
+ "truthRefs": { "$ref": "#/$defs/nonemptyStrings" },
196
+ "severity": { "const": "warning" },
197
+ "blocking": { "const": false },
198
+ "requiredAtGate": { "const": false },
199
+ "recommendedAction": { "enum": ["no_retroactive_action_required", "bind_quick_or_formal_receipt_if_reusable_evidence_is_required"] }
200
+ }
201
+ },
202
+ "warningGroup": {
203
+ "type": "object",
204
+ "additionalProperties": false,
205
+ "required": ["code", "severity", "blocking", "count", "workItemIds", "requiredAtGate", "recommendedAction"],
206
+ "properties": {
207
+ "code": { "const": "no_bound_verification_receipt" },
208
+ "severity": { "const": "warning" },
209
+ "blocking": { "const": false },
210
+ "count": { "type": "integer", "minimum": 1 },
211
+ "workItemIds": { "$ref": "#/$defs/nonemptyStrings" },
212
+ "requiredAtGate": { "const": false },
213
+ "recommendedAction": { "enum": ["no_retroactive_action_required", "bind_quick_or_formal_receipt_if_reusable_evidence_is_required", "review_individual_warning_actions"] }
214
+ }
215
+ },
216
+ "dispatch": { "type": "object", "additionalProperties": false, "required": ["mode", "permitted", "nextCommand"], "properties": { "mode": { "const": "none" }, "permitted": { "const": false }, "nextCommand": { "type": "null" } } },
217
+ "authorityBoundary": { "type": "object", "additionalProperties": false, "required": ["agentDispatch", "git", "release", "deployment", "production", "business", "automation", "money"], "properties": { "agentDispatch": { "const": false }, "git": { "const": false }, "release": { "const": false }, "deployment": { "const": false }, "production": { "const": false }, "business": { "const": false }, "automation": { "const": false }, "money": { "const": false } } }
218
+ }
219
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-packet-validation-v1.schema.json",
4
+ "title": "OwlCoda RunKit Team Packet Validation V1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "status", "packetKind", "packetSchemaVersion", "issueCodes", "authorityBoundary", "authorizationGranted", "exitCode"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "OwlCodaRunKitTeamPacketValidationV1" },
10
+ "status": { "enum": ["team_packet_valid", "team_packet_invalid"] },
11
+ "packetKind": { "enum": ["task", "acceptance", "transfer", "unknown"] },
12
+ "packetSchemaVersion": { "oneOf": [{ "type": "null" }, { "type": "string", "minLength": 1 }] },
13
+ "issueCodes": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
14
+ "authorityBoundary": {
15
+ "type": "object", "additionalProperties": false,
16
+ "required": ["agentDispatch", "git", "release", "deployment", "production", "business", "automation", "money"],
17
+ "properties": { "agentDispatch": { "const": false }, "git": { "const": false }, "release": { "const": false }, "deployment": { "const": false }, "production": { "const": false }, "business": { "const": false }, "automation": { "const": false }, "money": { "const": false } }
18
+ },
19
+ "authorizationGranted": { "const": false },
20
+ "exitCode": { "enum": [0, 2] }
21
+ },
22
+ "allOf": [{
23
+ "if": { "properties": { "status": { "const": "team_packet_valid" } }, "required": ["status"] },
24
+ "then": { "properties": { "issueCodes": { "maxItems": 0 }, "exitCode": { "const": 0 } } },
25
+ "else": { "properties": { "issueCodes": { "minItems": 1 }, "exitCode": { "const": 2 } } }
26
+ }],
27
+ "examples": [{
28
+ "schemaVersion": "OwlCodaRunKitTeamPacketValidationV1", "status": "team_packet_valid",
29
+ "packetKind": "task", "packetSchemaVersion": "OwlCodaRunKitTeamTaskPacketV2", "issueCodes": [],
30
+ "authorityBoundary": { "agentDispatch": false, "git": false, "release": false, "deployment": false, "production": false, "business": false, "automation": false, "money": false },
31
+ "authorizationGranted": false, "exitCode": 0
32
+ }]
33
+ }
@@ -0,0 +1,82 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-project-event-v6.schema.json",
4
+ "title": "OwlCoda RunKit Team Project Event V6",
5
+ "oneOf": [
6
+ {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": [
10
+ "schemaVersion", "eventId", "type", "occurredAt", "reconciliationId",
11
+ "gateId", "title", "requiredFor", "gateStatus", "ownerAgentId",
12
+ "sourceAdapterId", "sourceRef", "sourceSha256", "summary",
13
+ "evidenceRefs", "authorizationGranted"
14
+ ],
15
+ "properties": {
16
+ "schemaVersion": { "const": "OwlCodaRunKitTeamProjectEventV6" },
17
+ "eventId": { "$ref": "#/$defs/id" },
18
+ "type": { "const": "external_gate_reconciled" },
19
+ "occurredAt": { "$ref": "#/$defs/timestamp" },
20
+ "reconciliationId": { "$ref": "#/$defs/id" },
21
+ "supersedesReconciliationId": { "$ref": "#/$defs/id" },
22
+ "gateId": { "$ref": "#/$defs/id" },
23
+ "title": { "$ref": "#/$defs/text" },
24
+ "requiredFor": { "$ref": "#/$defs/stage" },
25
+ "gateStatus": { "enum": ["pending", "passed", "blocked", "deferred"] },
26
+ "ownerAgentId": { "$ref": "#/$defs/id" },
27
+ "sourceAdapterId": { "$ref": "#/$defs/id" },
28
+ "sourceRef": { "$ref": "#/$defs/text" },
29
+ "sourceSha256": { "$ref": "#/$defs/sha256" },
30
+ "summary": { "$ref": "#/$defs/text" },
31
+ "evidenceRefs": { "$ref": "#/$defs/nonemptyStrings" },
32
+ "authorizationGranted": { "const": false }
33
+ }
34
+ },
35
+ {
36
+ "type": "object",
37
+ "additionalProperties": false,
38
+ "required": [
39
+ "schemaVersion", "eventId", "type", "occurredAt", "recordId",
40
+ "stage", "stageStatus", "ownerAgentId", "summary", "evidenceRefs",
41
+ "externalGateIds", "authorizationGranted"
42
+ ],
43
+ "properties": {
44
+ "schemaVersion": { "const": "OwlCodaRunKitTeamProjectEventV6" },
45
+ "eventId": { "$ref": "#/$defs/id" },
46
+ "type": { "const": "delivery_lifecycle_recorded" },
47
+ "occurredAt": { "$ref": "#/$defs/timestamp" },
48
+ "recordId": { "$ref": "#/$defs/id" },
49
+ "supersedesRecordId": { "$ref": "#/$defs/id" },
50
+ "stage": { "$ref": "#/$defs/stage" },
51
+ "stageStatus": {
52
+ "enum": [
53
+ "accepted", "rejected", "integrated", "materialized", "deployed", "failed",
54
+ "rolled_back", "passed", "deferred"
55
+ ]
56
+ },
57
+ "ownerAgentId": { "$ref": "#/$defs/id" },
58
+ "summary": { "$ref": "#/$defs/text" },
59
+ "evidenceRefs": { "$ref": "#/$defs/nonemptyStrings" },
60
+ "externalGateIds": { "$ref": "#/$defs/strings" },
61
+ "authorizationGranted": { "const": false }
62
+ },
63
+ "allOf": [
64
+ { "if": { "properties": { "stage": { "const": "source" } }, "required": ["stage"] }, "then": { "properties": { "stageStatus": { "enum": ["accepted", "rejected"] } } } },
65
+ { "if": { "properties": { "stage": { "const": "integration" } }, "required": ["stage"] }, "then": { "properties": { "stageStatus": { "enum": ["integrated", "rejected"] } } } },
66
+ { "if": { "properties": { "stage": { "const": "materialization" } }, "required": ["stage"] }, "then": { "properties": { "stageStatus": { "enum": ["materialized", "failed"] } } } },
67
+ { "if": { "properties": { "stage": { "const": "deployment" } }, "required": ["stage"] }, "then": { "properties": { "stageStatus": { "enum": ["deployed", "failed", "rolled_back"] } } } },
68
+ { "if": { "properties": { "stage": { "const": "live_readback" } }, "required": ["stage"] }, "then": { "properties": { "stageStatus": { "enum": ["passed", "failed"] } } } },
69
+ { "if": { "properties": { "stage": { "const": "product_acceptance" } }, "required": ["stage"] }, "then": { "properties": { "stageStatus": { "enum": ["accepted", "rejected", "deferred"] } } } }
70
+ ]
71
+ }
72
+ ],
73
+ "$defs": {
74
+ "id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" },
75
+ "text": { "type": "string", "minLength": 1 },
76
+ "timestamp": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$" },
77
+ "sha256": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
78
+ "stage": { "enum": ["source", "integration", "materialization", "deployment", "live_readback", "product_acceptance"] },
79
+ "strings": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
80
+ "nonemptyStrings": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/text" } }
81
+ }
82
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-project-event-v7.schema.json",
4
+ "title": "OwlCoda RunKit Team Project Event V7",
5
+ "oneOf": [
6
+ {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": [
10
+ "schemaVersion", "eventId", "type", "occurredAt", "policyId",
11
+ "workItemId", "ownerAgentId", "requirement", "reason",
12
+ "evidenceRefs", "authorizationGranted"
13
+ ],
14
+ "properties": {
15
+ "schemaVersion": { "const": "OwlCodaRunKitTeamProjectEventV7" },
16
+ "eventId": { "$ref": "#/$defs/id" },
17
+ "type": { "const": "work_item_evidence_requirement_set" },
18
+ "occurredAt": { "$ref": "#/$defs/timestamp" },
19
+ "policyId": { "$ref": "#/$defs/id" },
20
+ "supersedesPolicyId": { "$ref": "#/$defs/id" },
21
+ "workItemId": { "$ref": "#/$defs/id" },
22
+ "ownerAgentId": { "$ref": "#/$defs/id" },
23
+ "requirement": { "enum": ["none", "quick"] },
24
+ "reason": { "$ref": "#/$defs/text" },
25
+ "evidenceRefs": { "$ref": "#/$defs/nonemptyStrings" },
26
+ "authorizationGranted": { "const": false }
27
+ }
28
+ },
29
+ {
30
+ "type": "object",
31
+ "additionalProperties": false,
32
+ "required": [
33
+ "schemaVersion", "eventId", "type", "occurredAt", "checkpointId",
34
+ "assignmentId", "workItemId", "state", "summary", "evidenceRefs",
35
+ "blockerRefs", "decisionRefs", "nextAction", "sourceFingerprint",
36
+ "receiptBinding", "authorizationGranted"
37
+ ],
38
+ "properties": {
39
+ "schemaVersion": { "const": "OwlCodaRunKitTeamProjectEventV7" },
40
+ "eventId": { "$ref": "#/$defs/id" },
41
+ "type": { "const": "checkpoint_receipt_bound" },
42
+ "occurredAt": { "$ref": "#/$defs/timestamp" },
43
+ "checkpointId": { "$ref": "#/$defs/id" },
44
+ "assignmentId": { "$ref": "#/$defs/id" },
45
+ "workItemId": { "$ref": "#/$defs/id" },
46
+ "state": { "enum": ["active", "waiting_dependency", "waiting_decision", "verifying", "ready_to_integrate", "completed", "failed"] },
47
+ "summary": { "$ref": "#/$defs/text" },
48
+ "completedUnits": { "type": "integer", "minimum": 0 },
49
+ "evidenceRefs": { "$ref": "#/$defs/strings" },
50
+ "blockerRefs": { "$ref": "#/$defs/strings" },
51
+ "decisionRefs": { "$ref": "#/$defs/strings" },
52
+ "nextAction": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/text" }] },
53
+ "sourceFingerprint": { "$ref": "#/$defs/sha256" },
54
+ "receiptBinding": {
55
+ "type": "object",
56
+ "additionalProperties": false,
57
+ "required": ["kind", "receiptId", "receiptRef", "receiptSha256", "sourceFingerprint", "attestationDecision", "issueCodes"],
58
+ "properties": {
59
+ "kind": { "const": "quick" },
60
+ "receiptId": { "$ref": "#/$defs/id" },
61
+ "receiptRef": { "$ref": "#/$defs/text" },
62
+ "receiptSha256": { "$ref": "#/$defs/sha256" },
63
+ "sourceFingerprint": { "$ref": "#/$defs/sha256" },
64
+ "attestationDecision": { "const": "GO" },
65
+ "issueCodes": { "$ref": "#/$defs/strings" }
66
+ }
67
+ },
68
+ "authorizationGranted": { "const": false }
69
+ }
70
+ }
71
+ ],
72
+ "$defs": {
73
+ "id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" },
74
+ "text": { "type": "string", "minLength": 1 },
75
+ "timestamp": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$" },
76
+ "sha256": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
77
+ "strings": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
78
+ "nonemptyStrings": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/text" } }
79
+ }
80
+ }