owlrunkit 0.19.1 → 0.20.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 (42) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +107 -3
  3. package/docs/architecture/OWLCODA_RUNKIT_0191_PROFILE_RECONCILE_PATCH_PRODUCT_DECISION_20260813.md +11 -5
  4. package/docs/architecture/OWLCODA_RUNKIT_0192_FORMAL_USABILITY_PRODUCT_DECISION_20260813.md +141 -0
  5. package/docs/architecture/OWLCODA_RUNKIT_020_TEAM_DELIVERY_PHASE1_PRODUCT_DECISION_20260813.md +296 -0
  6. package/integrations/codex/skills/owlcoda-runkit/SKILL.md +74 -9
  7. package/integrations/codex/skills/owlcoda-runkit/assets/templates/config.json +3 -3
  8. package/package.json +1 -1
  9. package/packages/attest/distribution-manifest-v1.json +10 -0
  10. package/packages/attest/src/quick.mjs +42 -4
  11. package/registry-release-policy-v1.json +5 -5
  12. package/sbom.spdx.json +5 -5
  13. package/scripts/runkit-contract/core-contract.mjs +42 -2
  14. package/scripts/runkit-contract/efficiency-metrics.mjs +9 -7
  15. package/scripts/runkit-contract/formal-preflight.mjs +352 -0
  16. package/scripts/runkit-contract/formal-supplemental-evidence.mjs +713 -0
  17. package/scripts/runkit-contract/formal-workflow.mjs +529 -59
  18. package/scripts/runkit-contract/onboarding-doctor.mjs +32 -13
  19. package/scripts/runkit-contract/project-cli-resolver.mjs +33 -3
  20. package/scripts/runkit-contract/project-external-delivery.mjs +16 -9
  21. package/scripts/runkit-contract/quick-attest.mjs +24 -0
  22. package/scripts/runkit-contract/runkit-cli.mjs +445 -52
  23. package/scripts/runkit-contract/schemas/candidate-transfer-packet-v1.schema.json +98 -0
  24. package/scripts/runkit-contract/schemas/formal-check-v2.schema.json +231 -0
  25. package/scripts/runkit-contract/schemas/formal-envelope-preflight-v1.schema.json +212 -0
  26. package/scripts/runkit-contract/schemas/formal-evidence-summary-v1.schema.json +114 -0
  27. package/scripts/runkit-contract/schemas/formal-supplemental-evidence-v1.schema.json +103 -0
  28. package/scripts/runkit-contract/schemas/team-acceptance-packet-v2.schema.json +109 -0
  29. package/scripts/runkit-contract/schemas/team-delivery-status-v1.schema.json +72 -0
  30. package/scripts/runkit-contract/schemas/team-packet-validation-v1.schema.json +33 -0
  31. package/scripts/runkit-contract/schemas/team-project-event-v5.schema.json +89 -0
  32. package/scripts/runkit-contract/schemas/team-project-status-v3.schema.json +173 -0
  33. package/scripts/runkit-contract/schemas/team-recommendation-v1.schema.json +121 -0
  34. package/scripts/runkit-contract/schemas/team-task-packet-v2.schema.json +228 -0
  35. package/scripts/runkit-contract/snapshot.mjs +125 -5
  36. package/scripts/runkit-contract/source-candidate.mjs +271 -69
  37. package/scripts/runkit-contract/sync-release-identity.mjs +39 -4
  38. package/scripts/runkit-contract/team-delivery.mjs +906 -0
  39. package/scripts/runkit-contract/team-project-successor.mjs +7 -4
  40. package/scripts/runkit-contract/team-project.mjs +440 -28
  41. package/scripts/runkit-contract/usage-mode.mjs +9 -3
  42. package/scripts/runkit-contract/verification-envelope.mjs +425 -37
@@ -0,0 +1,173 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-project-status-v3.schema.json",
4
+ "title": "OwlCoda RunKit Team Project Status V3",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "status",
10
+ "projectId",
11
+ "objective",
12
+ "overall",
13
+ "counts",
14
+ "milestones",
15
+ "workstreams",
16
+ "workItems",
17
+ "agents",
18
+ "readyQueue",
19
+ "criticalWorkItems",
20
+ "openDecisions",
21
+ "resolvedDecisions",
22
+ "deferredVerifications",
23
+ "openDeferredVerificationIds",
24
+ "integrationGates",
25
+ "dataCandidates",
26
+ "sourceDeliveries",
27
+ "warnings",
28
+ "projectTruthHash",
29
+ "authorizationGranted",
30
+ "deliveryDisposition",
31
+ "headline",
32
+ "dominantGap",
33
+ "nextAction",
34
+ "nextActorId",
35
+ "exitCode"
36
+ ],
37
+ "properties": {
38
+ "schemaVersion": { "const": "OwlCodaRunKitTeamProjectStatusV3" },
39
+ "status": { "const": "team_project_status" },
40
+ "projectId": { "type": "string", "minLength": 1 },
41
+ "objective": { "type": "string", "minLength": 1 },
42
+ "overall": { "enum": ["planned", "active", "active_with_blockers", "completed"] },
43
+ "counts": { "type": "object" },
44
+ "milestones": { "type": "array", "items": { "type": "object" } },
45
+ "workstreams": { "type": "array", "items": { "type": "object" } },
46
+ "workItems": { "type": "array", "items": { "type": "object" } },
47
+ "agents": { "type": "array", "items": { "type": "object" } },
48
+ "readyQueue": { "type": "array", "items": { "type": "string" } },
49
+ "criticalWorkItems": { "type": "array", "items": { "type": "string" } },
50
+ "openDecisions": { "type": "array", "items": { "type": "object" } },
51
+ "resolvedDecisions": { "type": "array", "items": { "type": "object" } },
52
+ "deferredVerifications": { "type": "array", "items": { "type": "object" } },
53
+ "openDeferredVerificationIds": { "type": "array", "items": { "type": "string" } },
54
+ "integrationGates": { "type": "array", "items": { "type": "object" } },
55
+ "dataCandidates": { "type": "array", "items": { "type": "object" } },
56
+ "sourceDeliveries": { "type": "array", "items": { "type": "object" } },
57
+ "warnings": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "required": ["code", "workItemId", "message", "truthRefs"],
63
+ "properties": {
64
+ "code": { "const": "no_bound_verification_receipt" },
65
+ "workItemId": { "type": "string", "minLength": 1 },
66
+ "message": { "type": "string", "minLength": 1 },
67
+ "truthRefs": {
68
+ "type": "array",
69
+ "uniqueItems": true,
70
+ "items": { "type": "string", "minLength": 1 }
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "projectTruthHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
76
+ "authorizationGranted": { "const": false },
77
+ "deliveryDisposition": {
78
+ "enum": ["work_in_progress", "code_complete_without_release_authority"]
79
+ },
80
+ "headline": { "type": "string", "minLength": 1 },
81
+ "dominantGap": {
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": ["kind", "id", "title", "workItemId", "agentId", "reason", "truthRefs"],
85
+ "properties": {
86
+ "kind": {
87
+ "enum": [
88
+ "decision",
89
+ "failed_work",
90
+ "work_item",
91
+ "deferred_verification",
92
+ "integration_gate",
93
+ "release_authority",
94
+ "none"
95
+ ]
96
+ },
97
+ "id": { "type": ["string", "null"] },
98
+ "title": { "type": ["string", "null"] },
99
+ "workItemId": { "type": ["string", "null"] },
100
+ "agentId": { "type": ["string", "null"] },
101
+ "reason": { "type": ["string", "null"] },
102
+ "truthRefs": {
103
+ "type": "array",
104
+ "uniqueItems": true,
105
+ "items": { "type": "string", "minLength": 1 }
106
+ }
107
+ }
108
+ },
109
+ "nextAction": { "type": ["string", "null"] },
110
+ "nextActorId": { "type": ["string", "null"] },
111
+ "exitCode": { "const": 0 }
112
+ },
113
+ "examples": [
114
+ {
115
+ "schemaVersion": "OwlCodaRunKitTeamProjectStatusV3",
116
+ "status": "team_project_status",
117
+ "projectId": "g13-canary",
118
+ "objective": "Repair the bounded G13 canary contract",
119
+ "overall": "planned",
120
+ "counts": {},
121
+ "milestones": [],
122
+ "workstreams": [],
123
+ "workItems": [],
124
+ "agents": [],
125
+ "readyQueue": [],
126
+ "criticalWorkItems": [],
127
+ "openDecisions": [],
128
+ "resolvedDecisions": [],
129
+ "deferredVerifications": [],
130
+ "openDeferredVerificationIds": [],
131
+ "integrationGates": [],
132
+ "dataCandidates": [],
133
+ "sourceDeliveries": [],
134
+ "warnings": [],
135
+ "projectTruthHash": "0000000000000000000000000000000000000000000000000000000000000000",
136
+ "authorizationGranted": false,
137
+ "deliveryDisposition": "work_in_progress",
138
+ "headline": "Project is planned; assign the first ready WorkItem.",
139
+ "dominantGap": {
140
+ "kind": "none",
141
+ "id": null,
142
+ "title": null,
143
+ "workItemId": null,
144
+ "agentId": null,
145
+ "reason": null,
146
+ "truthRefs": []
147
+ },
148
+ "nextAction": null,
149
+ "nextActorId": null,
150
+ "exitCode": 0
151
+ }
152
+ ],
153
+ "allOf": [
154
+ {
155
+ "if": {
156
+ "properties": { "overall": { "const": "completed" } },
157
+ "required": ["overall"]
158
+ },
159
+ "then": {
160
+ "properties": {
161
+ "deliveryDisposition": { "const": "code_complete_without_release_authority" },
162
+ "nextAction": { "type": "string", "minLength": 1 },
163
+ "dominantGap": {
164
+ "properties": { "kind": { "const": "release_authority" } }
165
+ }
166
+ }
167
+ },
168
+ "else": {
169
+ "properties": { "deliveryDisposition": { "const": "work_in_progress" } }
170
+ }
171
+ }
172
+ ]
173
+ }
@@ -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
+ }