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,208 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-project-status-v4.schema.json",
4
+ "title": "OwlCoda RunKit Team Project Status V4",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion", "status", "projectId", "objective", "overall", "counts",
9
+ "milestones", "workstreams", "workItems", "agents", "readyQueue",
10
+ "criticalWorkItems", "openDecisions", "resolvedDecisions",
11
+ "deferredVerifications", "openDeferredVerificationIds", "integrationGates",
12
+ "dataCandidates", "sourceDeliveries", "warnings", "externalGates",
13
+ "deliveryLifecycle", "projectTruthHash", "authorizationGranted",
14
+ "deliveryDisposition", "headline", "dominantGap", "nextAction",
15
+ "nextActorId", "exitCode"
16
+ ],
17
+ "properties": {
18
+ "schemaVersion": { "const": "OwlCodaRunKitTeamProjectStatusV4" },
19
+ "status": { "const": "team_project_status" },
20
+ "projectId": { "$ref": "#/$defs/text" },
21
+ "objective": { "$ref": "#/$defs/text" },
22
+ "overall": { "enum": ["planned", "active", "active_with_blockers", "completed"] },
23
+ "counts": { "type": "object" },
24
+ "milestones": { "type": "array", "items": { "type": "object" } },
25
+ "workstreams": { "type": "array", "items": { "type": "object" } },
26
+ "workItems": { "type": "array", "items": { "type": "object" } },
27
+ "agents": { "type": "array", "items": { "type": "object" } },
28
+ "readyQueue": { "$ref": "#/$defs/strings" },
29
+ "criticalWorkItems": { "$ref": "#/$defs/strings" },
30
+ "openDecisions": { "type": "array", "items": { "type": "object" } },
31
+ "resolvedDecisions": { "type": "array", "items": { "type": "object" } },
32
+ "deferredVerifications": { "type": "array", "items": { "type": "object" } },
33
+ "openDeferredVerificationIds": { "$ref": "#/$defs/strings" },
34
+ "integrationGates": { "type": "array", "items": { "type": "object" } },
35
+ "dataCandidates": { "type": "array", "items": { "type": "object" } },
36
+ "sourceDeliveries": { "type": "array", "items": { "type": "object" } },
37
+ "warnings": { "type": "array", "items": { "type": "object" } },
38
+ "externalGates": { "type": "array", "items": { "$ref": "#/$defs/externalGate" } },
39
+ "deliveryLifecycle": { "$ref": "#/$defs/deliveryLifecycle" },
40
+ "projectTruthHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
41
+ "authorizationGranted": { "const": false },
42
+ "deliveryDisposition": {
43
+ "enum": [
44
+ "work_ledger_incomplete", "work_ledger_complete", "source_accepted",
45
+ "integrated", "materialized", "deployed", "live_readback_passed", "product_accepted"
46
+ ]
47
+ },
48
+ "headline": { "$ref": "#/$defs/text" },
49
+ "dominantGap": { "$ref": "#/$defs/dominantGap" },
50
+ "nextAction": { "$ref": "#/$defs/nullableText" },
51
+ "nextActorId": { "$ref": "#/$defs/nullableText" },
52
+ "exitCode": { "const": 0 }
53
+ },
54
+ "allOf": [
55
+ {
56
+ "if": { "properties": { "deliveryDisposition": { "const": "product_accepted" } }, "required": ["deliveryDisposition"] },
57
+ "then": {
58
+ "properties": {
59
+ "dominantGap": { "properties": { "kind": { "const": "none" } } },
60
+ "nextAction": { "type": "null" },
61
+ "nextActorId": { "type": "null" }
62
+ }
63
+ }
64
+ }
65
+ ],
66
+ "examples": [
67
+ {
68
+ "schemaVersion": "OwlCodaRunKitTeamProjectStatusV4",
69
+ "status": "team_project_status",
70
+ "projectId": "delivery-wave",
71
+ "objective": "Preserve delivery truth after source completion",
72
+ "overall": "completed",
73
+ "counts": {},
74
+ "milestones": [],
75
+ "workstreams": [],
76
+ "workItems": [],
77
+ "agents": [],
78
+ "readyQueue": [],
79
+ "criticalWorkItems": [],
80
+ "openDecisions": [],
81
+ "resolvedDecisions": [],
82
+ "deferredVerifications": [],
83
+ "openDeferredVerificationIds": [],
84
+ "integrationGates": [],
85
+ "dataCandidates": [],
86
+ "sourceDeliveries": [],
87
+ "warnings": [],
88
+ "externalGates": [],
89
+ "deliveryLifecycle": {
90
+ "schemaVersion": "OwlCodaRunKitDeliveryLifecycleV1",
91
+ "lifecycleStatus": "in_progress",
92
+ "currentStage": "work_ledger_complete",
93
+ "nextRequiredStage": "source",
94
+ "blockingStage": null,
95
+ "blockingExternalGateIds": [],
96
+ "stages": [
97
+ { "stage": "source", "status": "pending", "recordId": null, "ownerAgentId": null, "summary": null, "evidenceRefs": [], "externalGateIds": [], "occurredAt": null, "truthRef": null },
98
+ { "stage": "integration", "status": "pending", "recordId": null, "ownerAgentId": null, "summary": null, "evidenceRefs": [], "externalGateIds": [], "occurredAt": null, "truthRef": null },
99
+ { "stage": "materialization", "status": "pending", "recordId": null, "ownerAgentId": null, "summary": null, "evidenceRefs": [], "externalGateIds": [], "occurredAt": null, "truthRef": null },
100
+ { "stage": "deployment", "status": "pending", "recordId": null, "ownerAgentId": null, "summary": null, "evidenceRefs": [], "externalGateIds": [], "occurredAt": null, "truthRef": null },
101
+ { "stage": "live_readback", "status": "pending", "recordId": null, "ownerAgentId": null, "summary": null, "evidenceRefs": [], "externalGateIds": [], "occurredAt": null, "truthRef": null },
102
+ { "stage": "product_acceptance", "status": "pending", "recordId": null, "ownerAgentId": null, "summary": null, "evidenceRefs": [], "externalGateIds": [], "occurredAt": null, "truthRef": null }
103
+ ],
104
+ "authorizationGranted": false
105
+ },
106
+ "projectTruthHash": "0000000000000000000000000000000000000000000000000000000000000000",
107
+ "authorizationGranted": false,
108
+ "deliveryDisposition": "work_ledger_complete",
109
+ "headline": "Dominant gap: delivery stage source; next: Record delivery stage source.",
110
+ "dominantGap": {
111
+ "kind": "delivery_stage",
112
+ "id": "source",
113
+ "title": "Delivery stage source",
114
+ "workItemId": null,
115
+ "agentId": null,
116
+ "reason": "Delivery stage source has no evidence-bound record.",
117
+ "truthRefs": ["project/definition.json"]
118
+ },
119
+ "nextAction": "Record delivery stage source.",
120
+ "nextActorId": null,
121
+ "exitCode": 0
122
+ }
123
+ ],
124
+ "$defs": {
125
+ "text": { "type": "string", "minLength": 1 },
126
+ "nullableText": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/text" }] },
127
+ "strings": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
128
+ "nonemptyStrings": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
129
+ "stageName": { "enum": ["source", "integration", "materialization", "deployment", "live_readback", "product_acceptance"] },
130
+ "nullableStage": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/stageName" }] },
131
+ "timestamp": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$" },
132
+ "nullableTimestamp": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/timestamp" }] },
133
+ "externalGate": {
134
+ "type": "object",
135
+ "additionalProperties": false,
136
+ "required": ["schemaVersion", "gateId", "title", "requiredFor", "gateStatus", "blocking", "ownerAgentId", "source", "summary", "evidenceRefs", "occurredAt", "truthRefs", "authorizationGranted"],
137
+ "properties": {
138
+ "schemaVersion": { "const": "OwlCodaRunKitExternalGateV1" },
139
+ "gateId": { "$ref": "#/$defs/text" },
140
+ "title": { "$ref": "#/$defs/text" },
141
+ "requiredFor": { "$ref": "#/$defs/stageName" },
142
+ "gateStatus": { "enum": ["pending", "passed", "blocked", "deferred"] },
143
+ "blocking": { "type": "boolean" },
144
+ "ownerAgentId": { "$ref": "#/$defs/text" },
145
+ "source": {
146
+ "type": "object",
147
+ "additionalProperties": false,
148
+ "required": ["adapterId", "ref", "sha256"],
149
+ "properties": {
150
+ "adapterId": { "$ref": "#/$defs/text" },
151
+ "ref": { "$ref": "#/$defs/text" },
152
+ "sha256": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
153
+ }
154
+ },
155
+ "summary": { "$ref": "#/$defs/text" },
156
+ "evidenceRefs": { "$ref": "#/$defs/nonemptyStrings" },
157
+ "occurredAt": { "$ref": "#/$defs/timestamp" },
158
+ "truthRefs": { "$ref": "#/$defs/nonemptyStrings" },
159
+ "authorizationGranted": { "const": false }
160
+ }
161
+ },
162
+ "deliveryStage": {
163
+ "type": "object",
164
+ "additionalProperties": false,
165
+ "required": ["stage", "status", "recordId", "ownerAgentId", "summary", "evidenceRefs", "externalGateIds", "occurredAt", "truthRef"],
166
+ "properties": {
167
+ "stage": { "$ref": "#/$defs/stageName" },
168
+ "status": { "enum": ["pending", "accepted", "rejected", "integrated", "materialized", "deployed", "failed", "rolled_back", "passed", "deferred"] },
169
+ "recordId": { "$ref": "#/$defs/nullableText" },
170
+ "ownerAgentId": { "$ref": "#/$defs/nullableText" },
171
+ "summary": { "$ref": "#/$defs/nullableText" },
172
+ "evidenceRefs": { "$ref": "#/$defs/strings" },
173
+ "externalGateIds": { "$ref": "#/$defs/strings" },
174
+ "occurredAt": { "$ref": "#/$defs/nullableTimestamp" },
175
+ "truthRef": { "$ref": "#/$defs/nullableText" }
176
+ }
177
+ },
178
+ "deliveryLifecycle": {
179
+ "type": "object",
180
+ "additionalProperties": false,
181
+ "required": ["schemaVersion", "lifecycleStatus", "currentStage", "nextRequiredStage", "blockingStage", "blockingExternalGateIds", "stages", "authorizationGranted"],
182
+ "properties": {
183
+ "schemaVersion": { "const": "OwlCodaRunKitDeliveryLifecycleV1" },
184
+ "lifecycleStatus": { "enum": ["in_progress", "blocked", "completed"] },
185
+ "currentStage": { "enum": ["work_ledger_incomplete", "work_ledger_complete", "source_accepted", "integrated", "materialized", "deployed", "live_readback_passed", "product_accepted"] },
186
+ "nextRequiredStage": { "$ref": "#/$defs/nullableStage" },
187
+ "blockingStage": { "$ref": "#/$defs/nullableStage" },
188
+ "blockingExternalGateIds": { "$ref": "#/$defs/strings" },
189
+ "stages": { "type": "array", "minItems": 6, "maxItems": 6, "items": { "$ref": "#/$defs/deliveryStage" } },
190
+ "authorizationGranted": { "const": false }
191
+ }
192
+ },
193
+ "dominantGap": {
194
+ "type": "object",
195
+ "additionalProperties": false,
196
+ "required": ["kind", "id", "title", "workItemId", "agentId", "reason", "truthRefs"],
197
+ "properties": {
198
+ "kind": { "enum": ["decision", "failed_work", "work_item", "deferred_verification", "integration_gate", "release_authority", "external_gate", "delivery_stage", "none"] },
199
+ "id": { "$ref": "#/$defs/nullableText" },
200
+ "title": { "$ref": "#/$defs/nullableText" },
201
+ "workItemId": { "$ref": "#/$defs/nullableText" },
202
+ "agentId": { "$ref": "#/$defs/nullableText" },
203
+ "reason": { "$ref": "#/$defs/nullableText" },
204
+ "truthRefs": { "$ref": "#/$defs/strings" }
205
+ }
206
+ }
207
+ }
208
+ }
@@ -0,0 +1,121 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-recommendation-v1.schema.json",
4
+ "title": "OwlCoda RunKit Team Recommendation V1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion", "status", "project", "recommendedMode", "continuity",
9
+ "coordination", "assurance", "reasonCodes", "rejectedLighterModes", "lanes",
10
+ "pathConflicts", "acceptanceGaps", "ownerTransitions", "estimatedOverhead",
11
+ "nextCommand", "dispatch", "authorityBoundary", "authorizationGranted", "exitCode"
12
+ ],
13
+ "properties": {
14
+ "schemaVersion": { "const": "OwlCodaRunKitTeamRecommendationV1" },
15
+ "status": { "const": "team_delivery_recommended" },
16
+ "project": {
17
+ "type": "object",
18
+ "additionalProperties": false,
19
+ "required": ["present", "projectId", "projectTruthHash", "overall"],
20
+ "properties": {
21
+ "present": { "type": "boolean" },
22
+ "projectId": { "$ref": "#/$defs/nullableText" },
23
+ "projectTruthHash": { "oneOf": [{ "type": "null" }, { "type": "string", "pattern": "^[a-f0-9]{64}$" }] },
24
+ "overall": { "$ref": "#/$defs/nullableText" }
25
+ }
26
+ },
27
+ "recommendedMode": { "enum": ["off", "team"] },
28
+ "continuity": { "enum": ["none", "project_driver"] },
29
+ "coordination": { "enum": ["none", "project_driver_team"] },
30
+ "assurance": {
31
+ "type": "object",
32
+ "additionalProperties": false,
33
+ "required": ["changed", "selection", "reason"],
34
+ "properties": {
35
+ "changed": { "const": false },
36
+ "selection": { "const": "unchanged" },
37
+ "reason": { "const": "team_delivery_does_not_select_assurance" }
38
+ }
39
+ },
40
+ "reasonCodes": { "$ref": "#/$defs/strings" },
41
+ "rejectedLighterModes": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "object", "additionalProperties": false,
45
+ "required": ["mode", "reasonCodes"],
46
+ "properties": { "mode": { "const": "off" }, "reasonCodes": { "$ref": "#/$defs/nonemptyStrings" } }
47
+ }
48
+ },
49
+ "lanes": { "type": "array", "items": { "$ref": "#/$defs/lane" } },
50
+ "pathConflicts": { "type": "array", "items": { "$ref": "#/$defs/pathConflict" } },
51
+ "acceptanceGaps": { "type": "array", "items": { "$ref": "#/$defs/acceptanceGap" } },
52
+ "ownerTransitions": { "type": "array", "items": { "$ref": "#/$defs/ownerTransition" } },
53
+ "estimatedOverhead": {
54
+ "type": "object", "additionalProperties": false,
55
+ "required": ["additionalOperatorSteps", "potentialPortablePackets"],
56
+ "properties": {
57
+ "additionalOperatorSteps": { "type": "integer", "minimum": 0 },
58
+ "potentialPortablePackets": { "type": "integer", "minimum": 0 }
59
+ }
60
+ },
61
+ "nextCommand": { "$ref": "#/$defs/nullableText" },
62
+ "dispatch": { "$ref": "#/$defs/dispatch" },
63
+ "authorityBoundary": { "$ref": "#/$defs/authorityBoundary" },
64
+ "authorizationGranted": { "const": false },
65
+ "exitCode": { "const": 0 }
66
+ },
67
+ "$defs": {
68
+ "text": { "type": "string", "minLength": 1 },
69
+ "nullableText": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/text" }] },
70
+ "strings": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
71
+ "nonemptyStrings": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
72
+ "lane": {
73
+ "type": "object", "additionalProperties": false,
74
+ "required": ["workItemId", "title", "status", "agentId", "dependencies", "unresolvedDependencies", "ownedPaths", "actionable", "parallelEligible", "coordinationFacts"],
75
+ "properties": {
76
+ "workItemId": { "$ref": "#/$defs/text" }, "title": { "$ref": "#/$defs/text" },
77
+ "status": { "$ref": "#/$defs/text" }, "agentId": { "$ref": "#/$defs/nullableText" },
78
+ "dependencies": { "$ref": "#/$defs/strings" }, "unresolvedDependencies": { "$ref": "#/$defs/strings" },
79
+ "ownedPaths": { "$ref": "#/$defs/nonemptyStrings" }, "actionable": { "type": "boolean" },
80
+ "parallelEligible": { "type": "boolean" }, "coordinationFacts": { "$ref": "#/$defs/strings" }
81
+ }
82
+ },
83
+ "pathConflict": {
84
+ "type": "object", "additionalProperties": false,
85
+ "required": ["leftWorkItemId", "leftPath", "rightWorkItemId", "rightPath"],
86
+ "properties": { "leftWorkItemId": { "$ref": "#/$defs/text" }, "leftPath": { "$ref": "#/$defs/text" }, "rightWorkItemId": { "$ref": "#/$defs/text" }, "rightPath": { "$ref": "#/$defs/text" } }
87
+ },
88
+ "acceptanceGap": {
89
+ "type": "object", "additionalProperties": false,
90
+ "required": ["workItemId", "code", "message"],
91
+ "properties": { "workItemId": { "$ref": "#/$defs/text" }, "code": { "const": "verification_model_family_unbound" }, "message": { "$ref": "#/$defs/text" } }
92
+ },
93
+ "ownerTransition": {
94
+ "type": "object", "additionalProperties": false,
95
+ "required": ["workItemId", "facts"],
96
+ "properties": { "workItemId": { "$ref": "#/$defs/text" }, "facts": { "$ref": "#/$defs/nonemptyStrings" } }
97
+ },
98
+ "dispatch": {
99
+ "type": "object", "additionalProperties": false,
100
+ "required": ["mode", "permitted", "nextCommand"],
101
+ "properties": { "mode": { "const": "none" }, "permitted": { "const": false }, "nextCommand": { "type": "null" } }
102
+ },
103
+ "authorityBoundary": {
104
+ "type": "object", "additionalProperties": false,
105
+ "required": ["agentDispatch", "git", "release", "deployment", "production", "business", "automation", "money"],
106
+ "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 } }
107
+ }
108
+ },
109
+ "examples": [{
110
+ "schemaVersion": "OwlCodaRunKitTeamRecommendationV1", "status": "team_delivery_recommended",
111
+ "project": { "present": false, "projectId": null, "projectTruthHash": null, "overall": null },
112
+ "recommendedMode": "off", "continuity": "none", "coordination": "none",
113
+ "assurance": { "changed": false, "selection": "unchanged", "reason": "team_delivery_does_not_select_assurance" },
114
+ "reasonCodes": ["project_driver_not_initialized"], "rejectedLighterModes": [], "lanes": [],
115
+ "pathConflicts": [], "acceptanceGaps": [], "ownerTransitions": [],
116
+ "estimatedOverhead": { "additionalOperatorSteps": 0, "potentialPortablePackets": 0 },
117
+ "nextCommand": null, "dispatch": { "mode": "none", "permitted": false, "nextCommand": null },
118
+ "authorityBoundary": { "agentDispatch": false, "git": false, "release": false, "deployment": false, "production": false, "business": false, "automation": false, "money": false },
119
+ "authorizationGranted": false, "exitCode": 0
120
+ }]
121
+ }
@@ -0,0 +1,228 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-task-packet-v2.schema.json",
4
+ "title": "OwlCoda RunKit Team Task Packet V2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion", "packetId", "projectBinding", "gateId", "observableSuccess",
9
+ "workItem", "actor", "risk", "acceptance", "entry", "scope", "evidence",
10
+ "verificationCadence", "handoff", "escalationBudget", "stop",
11
+ "authorityBoundary", "authorizationGranted"
12
+ ],
13
+ "properties": {
14
+ "schemaVersion": { "const": "OwlCodaRunKitTeamTaskPacketV2" },
15
+ "packetId": { "$ref": "#/$defs/id" },
16
+ "projectBinding": { "$ref": "#/$defs/projectBinding" },
17
+ "gateId": { "$ref": "#/$defs/id" },
18
+ "observableSuccess": { "$ref": "#/$defs/text" },
19
+ "workItem": {
20
+ "type": "object",
21
+ "additionalProperties": false,
22
+ "required": ["workItemId", "title", "dependencies", "ownedPaths"],
23
+ "properties": {
24
+ "workItemId": { "$ref": "#/$defs/id" },
25
+ "title": { "$ref": "#/$defs/text" },
26
+ "dependencies": { "$ref": "#/$defs/strings" },
27
+ "ownedPaths": { "$ref": "#/$defs/nonemptyStrings" }
28
+ }
29
+ },
30
+ "actor": {
31
+ "type": "object",
32
+ "additionalProperties": false,
33
+ "required": ["executingAgent", "modelFamily", "modelVersion", "role"],
34
+ "properties": {
35
+ "executingAgent": { "$ref": "#/$defs/id" },
36
+ "modelFamily": { "$ref": "#/$defs/text" },
37
+ "modelVersion": { "$ref": "#/$defs/text" },
38
+ "role": { "$ref": "#/$defs/text" }
39
+ }
40
+ },
41
+ "risk": {
42
+ "type": "object",
43
+ "additionalProperties": false,
44
+ "required": [
45
+ "productJudgment", "semanticAmbiguity", "contextDepth", "surfaceWidth",
46
+ "determinism", "secondOrderRisk", "authoritySpan"
47
+ ],
48
+ "properties": {
49
+ "productJudgment": { "enum": ["low", "medium", "high"] },
50
+ "semanticAmbiguity": { "enum": ["low", "medium", "high"] },
51
+ "contextDepth": { "enum": ["local", "cross-module", "product-wide"] },
52
+ "surfaceWidth": { "enum": ["narrow", "multi-module", "product-wide"] },
53
+ "determinism": { "enum": ["deterministic", "mixed", "exploratory"] },
54
+ "secondOrderRisk": { "enum": ["low", "medium", "high"] },
55
+ "authoritySpan": { "enum": ["source-only", "integration", "runtime", "production"] }
56
+ }
57
+ },
58
+ "acceptance": {
59
+ "type": "object",
60
+ "additionalProperties": false,
61
+ "required": [
62
+ "requiredLevel", "implementationModelFamily", "implementationModelVersion",
63
+ "verificationModelFamily", "verificationModelVersion", "sameFamilyAllowed",
64
+ "freshAdversarialFamilies"
65
+ ],
66
+ "properties": {
67
+ "requiredLevel": { "$ref": "#/$defs/acceptanceLevel" },
68
+ "implementationModelFamily": { "$ref": "#/$defs/text" },
69
+ "implementationModelVersion": { "$ref": "#/$defs/text" },
70
+ "verificationModelFamily": { "$ref": "#/$defs/text" },
71
+ "verificationModelVersion": { "$ref": "#/$defs/text" },
72
+ "sameFamilyAllowed": { "type": "boolean" },
73
+ "freshAdversarialFamilies": { "$ref": "#/$defs/strings" }
74
+ }
75
+ },
76
+ "entry": {
77
+ "type": "object",
78
+ "additionalProperties": false,
79
+ "required": [
80
+ "worktreeMode", "worktree", "branch", "baseSha", "candidateIdentity",
81
+ "dirtyStateManifest", "soleWriter", "upstreamAcceptedPackets"
82
+ ],
83
+ "properties": {
84
+ "worktreeMode": { "enum": ["new_clean_worktree", "existing_dirty_candidate"] },
85
+ "worktree": { "$ref": "#/$defs/absolutePath" },
86
+ "branch": { "$ref": "#/$defs/text" },
87
+ "baseSha": { "$ref": "#/$defs/gitRef" },
88
+ "candidateIdentity": { "$ref": "#/$defs/sha256Ref" },
89
+ "dirtyStateManifest": { "$ref": "#/$defs/sha256Ref" },
90
+ "soleWriter": { "$ref": "#/$defs/id" },
91
+ "upstreamAcceptedPackets": { "$ref": "#/$defs/strings" }
92
+ }
93
+ },
94
+ "scope": {
95
+ "type": "object",
96
+ "additionalProperties": false,
97
+ "required": ["allowedChangedPaths", "prohibitedPathsAndActions", "protectedArtifactsAndAuthority"],
98
+ "properties": {
99
+ "allowedChangedPaths": { "$ref": "#/$defs/nonemptyStrings" },
100
+ "prohibitedPathsAndActions": { "$ref": "#/$defs/strings" },
101
+ "protectedArtifactsAndAuthority": { "$ref": "#/$defs/strings" }
102
+ }
103
+ },
104
+ "evidence": {
105
+ "type": "object",
106
+ "additionalProperties": false,
107
+ "required": ["positiveEvidence", "negativeAndSecondOrderTests", "deliveryPacketFields"],
108
+ "properties": {
109
+ "positiveEvidence": { "$ref": "#/$defs/strings" },
110
+ "negativeAndSecondOrderTests": { "$ref": "#/$defs/strings" },
111
+ "deliveryPacketFields": { "$ref": "#/$defs/strings" }
112
+ }
113
+ },
114
+ "verificationCadence": {
115
+ "type": "object",
116
+ "additionalProperties": false,
117
+ "required": [
118
+ "microBatchId", "closureHypothesis", "includedChanges", "implementationSmoke",
119
+ "frozenCandidateFocusedGate", "candidateCloseoutChecks", "independentAdversarialDelta",
120
+ "deferredTransitionGates", "trustedReceipts", "receiptInvalidationTriggers"
121
+ ],
122
+ "properties": {
123
+ "microBatchId": { "$ref": "#/$defs/id" },
124
+ "closureHypothesis": { "$ref": "#/$defs/text" },
125
+ "includedChanges": { "$ref": "#/$defs/strings" },
126
+ "implementationSmoke": { "$ref": "#/$defs/strings" },
127
+ "frozenCandidateFocusedGate": { "$ref": "#/$defs/strings" },
128
+ "candidateCloseoutChecks": { "$ref": "#/$defs/strings" },
129
+ "independentAdversarialDelta": { "$ref": "#/$defs/strings" },
130
+ "deferredTransitionGates": { "$ref": "#/$defs/strings" },
131
+ "trustedReceipts": { "$ref": "#/$defs/strings" },
132
+ "receiptInvalidationTriggers": { "$ref": "#/$defs/strings" }
133
+ }
134
+ },
135
+ "handoff": {
136
+ "type": "object",
137
+ "additionalProperties": false,
138
+ "required": ["required", "nextOwner"],
139
+ "properties": {
140
+ "required": { "type": "boolean" },
141
+ "nextOwner": { "$ref": "#/$defs/nullableText" }
142
+ }
143
+ },
144
+ "escalationBudget": {
145
+ "type": "object",
146
+ "additionalProperties": false,
147
+ "required": ["implementationAttempts", "narrowRework", "harnessFailure", "controllerIntervention", "semanticEscape"],
148
+ "properties": {
149
+ "implementationAttempts": { "type": "integer", "minimum": 1 },
150
+ "narrowRework": { "type": "integer", "minimum": 0 },
151
+ "harnessFailure": { "type": "integer", "minimum": 0 },
152
+ "controllerIntervention": { "type": "integer", "minimum": 0 },
153
+ "semanticEscape": { "const": 0 }
154
+ }
155
+ },
156
+ "stop": {
157
+ "type": "object",
158
+ "additionalProperties": false,
159
+ "required": ["exactStopPoint", "nextGateProhibited"],
160
+ "properties": {
161
+ "exactStopPoint": { "$ref": "#/$defs/text" },
162
+ "nextGateProhibited": { "$ref": "#/$defs/nullableText" }
163
+ }
164
+ },
165
+ "authorityBoundary": { "$ref": "#/$defs/authorityBoundary" },
166
+ "authorizationGranted": { "const": false }
167
+ },
168
+ "$defs": {
169
+ "id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$" },
170
+ "text": { "type": "string", "minLength": 1 },
171
+ "nullableText": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/text" }] },
172
+ "strings": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
173
+ "nonemptyStrings": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
174
+ "sha256Ref": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
175
+ "gitRef": { "type": "string", "pattern": "^git:[a-f0-9]{40}([a-f0-9]{24})?$" },
176
+ "absolutePath": { "type": "string", "pattern": "^(?:/|[A-Za-z]:[\\\\/]|\\\\\\\\)" },
177
+ "acceptanceLevel": { "enum": ["L0", "L1", "L2", "L3"] },
178
+ "projectBinding": {
179
+ "type": "object",
180
+ "additionalProperties": false,
181
+ "required": ["projectId", "projectTruthHash"],
182
+ "properties": {
183
+ "projectId": { "$ref": "#/$defs/id" },
184
+ "projectTruthHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
185
+ }
186
+ },
187
+ "authorityBoundary": {
188
+ "type": "object",
189
+ "additionalProperties": false,
190
+ "required": ["agentDispatch", "git", "release", "deployment", "production", "business", "automation", "money"],
191
+ "properties": {
192
+ "agentDispatch": { "const": false }, "git": { "const": false },
193
+ "release": { "const": false }, "deployment": { "const": false },
194
+ "production": { "const": false }, "business": { "const": false },
195
+ "automation": { "const": false }, "money": { "const": false }
196
+ }
197
+ }
198
+ },
199
+ "allOf": [{
200
+ "if": {
201
+ "properties": { "risk": { "properties": { "secondOrderRisk": { "enum": ["medium", "high"] } } } },
202
+ "required": ["risk"]
203
+ },
204
+ "then": {
205
+ "properties": { "acceptance": { "properties": { "sameFamilyAllowed": { "const": false } } } }
206
+ }
207
+ }],
208
+ "examples": [{
209
+ "schemaVersion": "OwlCodaRunKitTeamTaskPacketV2",
210
+ "packetId": "task-packet-001",
211
+ "projectBinding": { "projectId": "team-phase1", "projectTruthHash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" },
212
+ "gateId": "ready",
213
+ "observableSuccess": "One source candidate is ready for independent acceptance.",
214
+ "workItem": { "workItemId": "work-1", "title": "Implement Team Delivery", "dependencies": [], "ownedPaths": ["scripts/runkit-contract/**"] },
215
+ "actor": { "executingAgent": "agent-a", "modelFamily": "provider:family-a", "modelVersion": "model-a-1", "role": "implementation" },
216
+ "risk": { "productJudgment": "medium", "semanticAmbiguity": "medium", "contextDepth": "cross-module", "surfaceWidth": "narrow", "determinism": "deterministic", "secondOrderRisk": "medium", "authoritySpan": "source-only" },
217
+ "acceptance": { "requiredLevel": "L1", "implementationModelFamily": "provider:family-a", "implementationModelVersion": "model-a-1", "verificationModelFamily": "provider:family-b", "verificationModelVersion": "model-b-1", "sameFamilyAllowed": false, "freshAdversarialFamilies": ["authority boundary"] },
218
+ "entry": { "worktreeMode": "new_clean_worktree", "worktree": "/workspace/team-a", "branch": "codex/team-a", "baseSha": "git:1111111111111111111111111111111111111111", "candidateIdentity": "sha256:2222222222222222222222222222222222222222222222222222222222222222", "dirtyStateManifest": "sha256:3333333333333333333333333333333333333333333333333333333333333333", "soleWriter": "agent-a", "upstreamAcceptedPackets": [] },
219
+ "scope": { "allowedChangedPaths": ["scripts/runkit-contract/**"], "prohibitedPathsAndActions": ["git push", "deploy"], "protectedArtifactsAndAuthority": ["release", "production"] },
220
+ "evidence": { "positiveEvidence": ["focused contract tests"], "negativeAndSecondOrderTests": ["authority boundary"], "deliveryPacketFields": ["candidate identity"] },
221
+ "verificationCadence": { "microBatchId": "team-contract", "closureHypothesis": "Portable contracts retain project truth.", "includedChanges": ["TeamTaskPacketV2"], "implementationSmoke": ["focused test"], "frozenCandidateFocusedGate": ["runtime validation"], "candidateCloseoutChecks": ["schema parity"], "independentAdversarialDelta": ["authority boundary"], "deferredTransitionGates": ["L2 package consumer"], "trustedReceipts": [], "receiptInvalidationTriggers": ["project truth drift"] },
222
+ "handoff": { "required": true, "nextOwner": "control-tower" },
223
+ "escalationBudget": { "implementationAttempts": 2, "narrowRework": 1, "harnessFailure": 1, "controllerIntervention": 1, "semanticEscape": 0 },
224
+ "stop": { "exactStopPoint": "Source candidate ready for independent acceptance.", "nextGateProhibited": "release" },
225
+ "authorityBoundary": { "agentDispatch": false, "git": false, "release": false, "deployment": false, "production": false, "business": false, "automation": false, "money": false },
226
+ "authorizationGranted": false
227
+ }]
228
+ }