owlrunkit 0.18.2 → 0.18.4

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 (40) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +159 -52
  3. package/docs/architecture/OWLCODA_RUNKIT_0184_EXTERNAL_DELIVERY_INTAKE_PRODUCT_DECISION_20260812.md +209 -0
  4. package/docs/architecture/OWLCODA_RUNKIT_018_PROJECT_DRIVER_PRODUCT_DEFINITION.md +16 -5
  5. package/docs/architecture/OWLCODA_RUNKIT_USAGE_MODE_SELECTION_PRODUCT_DECISION_20260811.md +54 -3
  6. package/docs/architecture/OWLCODA_RUN_KIT_CONTRACT_V0_2.md +7 -0
  7. package/integrations/codex/skills/owlcoda-runkit/SKILL.md +125 -74
  8. package/integrations/codex/skills/owlcoda-runkit/assets/templates/config.json +3 -3
  9. package/integrations/codex/skills/owlcoda-runkit/references/contract-v0.1.md +160 -0
  10. package/integrations/codex/skills/owlcoda-runkit/references/contract-v0.2.md +545 -0
  11. package/package.json +1 -1
  12. package/packages/attest/README.md +4 -3
  13. package/packages/attest/consumer-surface-v1.json +1 -0
  14. package/packages/attest/distribution-manifest-v1.json +12 -1
  15. package/packages/attest/schemas/quick-verification-receipt-v2.schema.json +232 -0
  16. package/packages/attest/src/index.mjs +4 -1
  17. package/packages/attest/src/quick-receipt-contract.mjs +16 -6
  18. package/packages/attest/src/quick.mjs +21 -2
  19. package/packages/attest/src/workspace-snapshot.mjs +10 -1
  20. package/registry-release-policy-v1.json +5 -5
  21. package/sbom.spdx.json +5 -5
  22. package/scripts/runkit-contract/assurance-router.mjs +25 -6
  23. package/scripts/runkit-contract/core-contract.mjs +10 -1
  24. package/scripts/runkit-contract/onboarding-doctor.mjs +1 -1
  25. package/scripts/runkit-contract/profile-onboarding.mjs +263 -15
  26. package/scripts/runkit-contract/project-cli-resolver.mjs +6 -0
  27. package/scripts/runkit-contract/project-external-delivery.mjs +707 -0
  28. package/scripts/runkit-contract/quick-metrics.mjs +3 -3
  29. package/scripts/runkit-contract/quick-receipt.mjs +79 -12
  30. package/scripts/runkit-contract/quick-verify.mjs +89 -12
  31. package/scripts/runkit-contract/runkit-bootstrap.mjs +6 -1
  32. package/scripts/runkit-contract/runkit-cli.mjs +363 -143
  33. package/scripts/runkit-contract/schemas/assurance-route-v2.schema.json +26 -0
  34. package/scripts/runkit-contract/schemas/profile-detection-v3.schema.json +170 -0
  35. package/scripts/runkit-contract/schemas/team-project-event-v2.schema.json +128 -0
  36. package/scripts/runkit-contract/schemas/team-project-event-v3.schema.json +146 -0
  37. package/scripts/runkit-contract/schemas/team-project-status-v2.schema.json +85 -0
  38. package/scripts/runkit-contract/schemas/usage-mode-recommendation-v2.schema.json +136 -0
  39. package/scripts/runkit-contract/team-project.mjs +782 -55
  40. package/scripts/runkit-contract/usage-mode.mjs +28 -7
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.dev/schemas/runkit/assurance-route-v2.json",
4
+ "title": "OwlCoda RunKit Assurance Route V2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "status", "lane", "riskMode", "reasonCodes", "nextCommand", "authorizationGranted"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "OwlCodaRunKitAssuranceRouteV2" },
10
+ "status": { "const": "routed" },
11
+ "lane": { "enum": ["none", "quick", "formal"] },
12
+ "riskMode": { "enum": ["lightweight", "standard", "full"] },
13
+ "reasonCodes": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
14
+ "nextCommand": { "oneOf": [{ "type": "null" }, { "enum": ["npx --no-install owlrunkit quick-verify", "npx --no-install owlrunkit formal start"] }] },
15
+ "authorizationGranted": { "const": false }
16
+ },
17
+ "examples": [{
18
+ "schemaVersion": "OwlCodaRunKitAssuranceRouteV2",
19
+ "status": "routed",
20
+ "lane": "quick",
21
+ "riskMode": "lightweight",
22
+ "reasonCodes": ["single_bounded_verification"],
23
+ "nextCommand": "npx --no-install owlrunkit quick-verify",
24
+ "authorizationGranted": false
25
+ }]
26
+ }
@@ -0,0 +1,170 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.dev/schemas/runkit/profile-detection-v3.json",
4
+ "title": "OwlCoda RunKit Profile Detection V3",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "status", "dryRun", "writesPerformed", "confidence", "applyStatus", "issueCodes", "proposedProfiles", "candidates", "primaryProfileId", "inputManifest", "toolBinding", "currentProfilesSha256", "detectedScripts", "detectedWorkspaces", "changedPaths", "uncoveredChangedPaths", "uncoveredSourcePaths", "primaryBlockers", "minimalSuggestedProfile", "repairCommands", "authorizationGranted", "detectionSha256"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "OwlCodaRunKitProfileDetectionV3" },
10
+ "status": { "enum": ["profiles_detected", "profiles_insufficient"] },
11
+ "dryRun": { "const": true },
12
+ "writesPerformed": { "const": 0 },
13
+ "confidence": { "enum": ["high", "review_required"] },
14
+ "applyStatus": { "enum": ["ready_to_apply", "review_required", "profiles_already_exists"] },
15
+ "issueCodes": { "$ref": "#/$defs/strings" },
16
+ "proposedProfiles": { "$ref": "#/$defs/profiles" },
17
+ "candidates": { "type": "array", "items": { "$ref": "#/$defs/profile" } },
18
+ "primaryProfileId": { "oneOf": [{ "type": "null" }, { "type": "string", "minLength": 1 }] },
19
+ "inputManifest": { "type": "array", "items": { "$ref": "#/$defs/input" } },
20
+ "toolBinding": { "$ref": "#/$defs/tool" },
21
+ "currentProfilesSha256": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/hash" }] },
22
+ "detectedScripts": { "$ref": "#/$defs/strings" },
23
+ "detectedWorkspaces": { "type": "array", "items": { "$ref": "#/$defs/workspace" } },
24
+ "changedPaths": { "$ref": "#/$defs/strings" },
25
+ "uncoveredChangedPaths": { "$ref": "#/$defs/strings" },
26
+ "uncoveredSourcePaths": { "$ref": "#/$defs/strings" },
27
+ "primaryBlockers": { "$ref": "#/$defs/strings" },
28
+ "minimalSuggestedProfile": {
29
+ "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/profile" }]
30
+ },
31
+ "repairCommands": {
32
+ "type": "object",
33
+ "additionalProperties": false,
34
+ "required": ["preview", "apply"],
35
+ "properties": {
36
+ "preview": { "type": "string", "minLength": 1 },
37
+ "apply": { "oneOf": [{ "type": "null" }, { "type": "string", "minLength": 1 }] }
38
+ }
39
+ },
40
+ "authorizationGranted": { "const": false },
41
+ "detectionSha256": { "$ref": "#/$defs/hash" }
42
+ },
43
+ "$defs": {
44
+ "hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
45
+ "strings": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
46
+ "command": {
47
+ "type": "object",
48
+ "additionalProperties": false,
49
+ "required": ["id", "cwd", "executable", "argv"],
50
+ "properties": {
51
+ "id": { "type": "string", "minLength": 1 },
52
+ "cwd": { "type": "string", "minLength": 1 },
53
+ "executable": { "oneOf": [{ "type": "null" }, { "type": "string", "minLength": 1 }] },
54
+ "argv": { "type": "array", "minItems": 1, "items": { "type": "string" } }
55
+ }
56
+ },
57
+ "profile": {
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": ["id", "paths", "role", "primary", "requiresProfileIds", "commands"],
61
+ "properties": {
62
+ "id": { "type": "string", "minLength": 1 },
63
+ "paths": { "$ref": "#/$defs/strings" },
64
+ "role": { "enum": ["primary", "supporting"] },
65
+ "primary": { "type": "boolean" },
66
+ "requiresProfileIds": { "$ref": "#/$defs/strings" },
67
+ "commands": { "type": "array", "items": { "$ref": "#/$defs/command" } }
68
+ }
69
+ },
70
+ "profiles": {
71
+ "type": "object",
72
+ "additionalProperties": false,
73
+ "required": ["schemaVersion", "profiles"],
74
+ "properties": {
75
+ "schemaVersion": { "const": "OwlCodaRunKitProfilesV1" },
76
+ "profiles": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/profile" } }
77
+ }
78
+ },
79
+ "input": {
80
+ "type": "object",
81
+ "additionalProperties": false,
82
+ "required": ["path", "sha256"],
83
+ "properties": {
84
+ "path": { "type": "string", "minLength": 1 },
85
+ "sha256": { "$ref": "#/$defs/hash" }
86
+ }
87
+ },
88
+ "tool": {
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "required": ["status", "confidence", "source", "packageManager", "executable", "argvPrefix", "version", "executableSha256", "launcherSha256"],
92
+ "properties": {
93
+ "status": { "enum": ["resolved", "invalid", "unavailable"] },
94
+ "confidence": { "enum": ["high", "review_required"] },
95
+ "source": { "type": "string", "minLength": 1 },
96
+ "packageManager": { "enum": ["npm", "pnpm", "yarn", "bun"] },
97
+ "executable": { "oneOf": [{ "type": "null" }, { "type": "string", "minLength": 1 }] },
98
+ "argvPrefix": { "type": "array", "items": { "type": "string", "minLength": 1 } },
99
+ "version": { "oneOf": [{ "type": "null" }, { "type": "string", "minLength": 1 }] },
100
+ "executableSha256": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/hash" }] },
101
+ "launcherSha256": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/hash" }] }
102
+ }
103
+ },
104
+ "workspace": {
105
+ "type": "object",
106
+ "additionalProperties": false,
107
+ "required": ["name", "path", "scripts"],
108
+ "properties": {
109
+ "name": { "type": "string", "minLength": 1 },
110
+ "path": { "type": "string", "minLength": 1 },
111
+ "scripts": { "$ref": "#/$defs/strings" }
112
+ }
113
+ }
114
+ },
115
+ "examples": [{
116
+ "schemaVersion": "OwlCodaRunKitProfileDetectionV3",
117
+ "status": "profiles_detected",
118
+ "dryRun": true,
119
+ "writesPerformed": 0,
120
+ "confidence": "high",
121
+ "applyStatus": "ready_to_apply",
122
+ "issueCodes": [],
123
+ "proposedProfiles": {
124
+ "schemaVersion": "OwlCodaRunKitProfilesV1",
125
+ "profiles": [{
126
+ "id": "node-quality",
127
+ "paths": ["package.json"],
128
+ "role": "primary",
129
+ "primary": true,
130
+ "requiresProfileIds": [],
131
+ "commands": [{ "id": "npm-test", "cwd": ".", "executable": "/usr/bin/node", "argv": ["/usr/lib/npm-cli.js", "run", "test"] }]
132
+ }]
133
+ },
134
+ "candidates": [{
135
+ "id": "node-quality",
136
+ "paths": ["package.json"],
137
+ "role": "primary",
138
+ "primary": true,
139
+ "requiresProfileIds": [],
140
+ "commands": [{ "id": "npm-test", "cwd": ".", "executable": "/usr/bin/node", "argv": ["/usr/lib/npm-cli.js", "run", "test"] }]
141
+ }],
142
+ "primaryProfileId": "node-quality",
143
+ "inputManifest": [{ "path": "package.json", "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }],
144
+ "toolBinding": {
145
+ "status": "resolved",
146
+ "confidence": "high",
147
+ "source": "project_lockfile",
148
+ "packageManager": "npm",
149
+ "executable": "/usr/bin/node",
150
+ "argvPrefix": ["/usr/lib/npm-cli.js"],
151
+ "version": "10.0.0",
152
+ "executableSha256": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
153
+ "launcherSha256": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
154
+ },
155
+ "currentProfilesSha256": null,
156
+ "detectedScripts": ["test"],
157
+ "detectedWorkspaces": [],
158
+ "changedPaths": [],
159
+ "uncoveredChangedPaths": [],
160
+ "uncoveredSourcePaths": [],
161
+ "primaryBlockers": [],
162
+ "minimalSuggestedProfile": null,
163
+ "repairCommands": {
164
+ "preview": "npx --no-install owlrunkit profiles detect --workspace . --dry-run",
165
+ "apply": "npx --no-install owlrunkit profiles detect --workspace . --apply"
166
+ },
167
+ "authorizationGranted": false,
168
+ "detectionSha256": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
169
+ }]
170
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-project-event-v2.schema.json",
4
+ "title": "OwlCoda RunKit Team Project Event V2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "eventId", "type", "occurredAt"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "OwlCodaRunKitTeamProjectEventV2" },
10
+ "eventId": { "$ref": "#/$defs/id" },
11
+ "type": { "enum": ["agent_assigned", "checkpoint_recorded", "handoff_recorded", "rework_returned", "decision_opened", "decision_resolved", "integration_gate_passed", "verification_deferred", "verification_closed", "data_candidate_recorded"] },
12
+ "occurredAt": { "type": "string", "minLength": 24 },
13
+ "assignmentId": { "$ref": "#/$defs/id" },
14
+ "supersedesAssignmentId": { "$ref": "#/$defs/id" },
15
+ "failedAssignmentId": { "$ref": "#/$defs/id" },
16
+ "failedCheckpointEventId": { "$ref": "#/$defs/id" },
17
+ "reworkId": { "$ref": "#/$defs/id" },
18
+ "workItemId": { "$ref": "#/$defs/id" },
19
+ "agentId": { "$ref": "#/$defs/id" },
20
+ "executionRunId": { "$ref": "#/$defs/id" },
21
+ "executionWorkItemId": { "$ref": "#/$defs/id" },
22
+ "state": { "enum": ["active", "waiting_dependency", "waiting_decision", "verifying", "ready_to_integrate", "completed", "failed"] },
23
+ "summary": { "type": "string", "minLength": 1 },
24
+ "completedUnits": { "type": "integer", "minimum": 0 },
25
+ "evidenceRefs": { "$ref": "#/$defs/strings" },
26
+ "blockerRefs": { "$ref": "#/$defs/strings" },
27
+ "decisionRefs": { "$ref": "#/$defs/strings" },
28
+ "nextAction": { "oneOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }] },
29
+ "sourceFingerprint": { "type": "string", "pattern": "^(sha256:)?[a-f0-9]{64}$" },
30
+ "fromAgentId": { "$ref": "#/$defs/id" },
31
+ "reviewerAgentId": { "$ref": "#/$defs/id" },
32
+ "toAgentId": { "$ref": "#/$defs/id" },
33
+ "reason": { "type": "string", "minLength": 1 },
34
+ "decisionId": { "$ref": "#/$defs/id" },
35
+ "title": { "type": "string", "minLength": 1 },
36
+ "question": { "type": "string", "minLength": 1 },
37
+ "ownerAgentId": { "$ref": "#/$defs/id" },
38
+ "blockingWorkItemIds": { "$ref": "#/$defs/strings" },
39
+ "options": { "$ref": "#/$defs/strings" },
40
+ "resolution": { "type": "string", "minLength": 1 },
41
+ "rationale": { "type": "string", "minLength": 1 },
42
+ "gateId": { "$ref": "#/$defs/id" },
43
+ "verificationId": { "$ref": "#/$defs/id" },
44
+ "checkIds": { "$ref": "#/$defs/ids" },
45
+ "dueGateId": { "$ref": "#/$defs/id" },
46
+ "disposition": { "enum": ["verified", "no_longer_required"] },
47
+ "decisionIds": { "$ref": "#/$defs/ids" },
48
+ "candidateId": { "$ref": "#/$defs/id" },
49
+ "sourceRef": { "type": "string", "minLength": 1 },
50
+ "rights": { "type": "string", "minLength": 1 },
51
+ "inputRef": { "type": "string", "minLength": 1 },
52
+ "outputRef": { "type": "string", "minLength": 1 },
53
+ "decisionRef": { "oneOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }] },
54
+ "verificationRefs": { "$ref": "#/$defs/strings" },
55
+ "outcomeRef": { "oneOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }] },
56
+ "version": { "type": "string", "minLength": 1 }
57
+ },
58
+ "allOf": [
59
+ {
60
+ "if": { "properties": { "type": { "const": "agent_assigned" } }, "required": ["type"] },
61
+ "then": {
62
+ "required": ["assignmentId", "workItemId", "agentId"],
63
+ "dependentRequired": {
64
+ "executionRunId": ["executionWorkItemId"],
65
+ "executionWorkItemId": ["executionRunId"]
66
+ }
67
+ }
68
+ },
69
+ {
70
+ "if": { "properties": { "type": { "const": "checkpoint_recorded" } }, "required": ["type"] },
71
+ "then": { "required": ["assignmentId", "workItemId", "state", "summary", "evidenceRefs", "blockerRefs", "decisionRefs", "nextAction"] }
72
+ },
73
+ {
74
+ "if": { "properties": { "type": { "const": "handoff_recorded" } }, "required": ["type"] },
75
+ "then": { "required": ["assignmentId", "workItemId", "fromAgentId", "toAgentId", "summary", "evidenceRefs", "nextAction"] }
76
+ },
77
+ {
78
+ "if": { "properties": { "type": { "const": "rework_returned" } }, "required": ["type"] },
79
+ "then": { "required": ["reworkId", "assignmentId", "failedAssignmentId", "failedCheckpointEventId", "workItemId", "fromAgentId", "reviewerAgentId", "toAgentId", "reason", "evidenceRefs", "nextAction"] }
80
+ },
81
+ {
82
+ "if": { "properties": { "type": { "const": "decision_opened" } }, "required": ["type"] },
83
+ "then": { "required": ["decisionId", "title", "question", "ownerAgentId", "blockingWorkItemIds", "options"] }
84
+ },
85
+ {
86
+ "if": { "properties": { "type": { "const": "decision_resolved" } }, "required": ["type"] },
87
+ "then": { "required": ["decisionId", "resolution", "rationale", "evidenceRefs"] }
88
+ },
89
+ {
90
+ "if": { "properties": { "type": { "const": "integration_gate_passed" } }, "required": ["type"] },
91
+ "then": { "required": ["gateId", "summary", "evidenceRefs"] }
92
+ },
93
+ {
94
+ "if": { "properties": { "type": { "const": "verification_deferred" } }, "required": ["type"] },
95
+ "then": { "required": ["verificationId", "workItemId", "ownerAgentId", "checkIds", "reason", "dueGateId"] }
96
+ },
97
+ {
98
+ "if": { "properties": { "type": { "const": "verification_closed" } }, "required": ["type"] },
99
+ "then": { "required": ["verificationId", "disposition", "summary", "evidenceRefs", "decisionIds"] }
100
+ },
101
+ {
102
+ "if": { "properties": { "type": { "const": "data_candidate_recorded" } }, "required": ["type"] },
103
+ "then": { "required": ["candidateId", "sourceRef", "rights", "inputRef", "outputRef", "decisionRef", "verificationRefs", "outcomeRef", "version"] }
104
+ }
105
+ ],
106
+ "$defs": {
107
+ "id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" },
108
+ "ids": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
109
+ "strings": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }
110
+ },
111
+ "examples": [{
112
+ "schemaVersion": "OwlCodaRunKitTeamProjectEventV2",
113
+ "eventId": "rework-returned-review-001",
114
+ "type": "rework_returned",
115
+ "occurredAt": "2026-08-12T00:00:00.000Z",
116
+ "reworkId": "review-001",
117
+ "assignmentId": "rework-review-001",
118
+ "failedAssignmentId": "assignment-001",
119
+ "failedCheckpointEventId": "checkpoint-failed-001",
120
+ "workItemId": "engine",
121
+ "fromAgentId": "agent-kimi",
122
+ "reviewerAgentId": "agent-control",
123
+ "toAgentId": "agent-kimi",
124
+ "reason": "The candidate violates its versioned contract.",
125
+ "evidenceRefs": ["receipt:quick-failed"],
126
+ "nextAction": "Repair the contract and rerun the focused check."
127
+ }]
128
+ }
@@ -0,0 +1,146 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-project-event-v3.schema.json",
4
+ "title": "OwlCoda RunKit Team Project Event V3",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "eventId",
10
+ "type",
11
+ "occurredAt",
12
+ "deliveryId",
13
+ "projectId",
14
+ "projectDefinitionSha256",
15
+ "assignmentId",
16
+ "workItemId",
17
+ "producerId",
18
+ "targetWorkspaceRef",
19
+ "targetHead",
20
+ "entrySnapshotRef",
21
+ "entrySnapshotSha256",
22
+ "deliveryPacketSha256",
23
+ "deliveryCandidateFingerprint",
24
+ "workspaceSnapshotFingerprint",
25
+ "overlayStatus",
26
+ "candidateFiles",
27
+ "changedPaths",
28
+ "toolCachePaths",
29
+ "dependencyEnvironmentPaths",
30
+ "unchangedPacketPaths",
31
+ "outOfScopeSourcePaths",
32
+ "targetSnapshot",
33
+ "proven",
34
+ "notProven",
35
+ "targetWritePerformed",
36
+ "authorizationGranted"
37
+ ],
38
+ "properties": {
39
+ "schemaVersion": { "const": "OwlCodaRunKitTeamProjectEventV3" },
40
+ "eventId": { "$ref": "#/$defs/id" },
41
+ "type": { "const": "source_delivery_imported" },
42
+ "occurredAt": { "type": "string", "minLength": 24 },
43
+ "deliveryId": { "$ref": "#/$defs/id" },
44
+ "projectId": { "$ref": "#/$defs/id" },
45
+ "projectDefinitionSha256": { "$ref": "#/$defs/sha256Ref" },
46
+ "assignmentId": { "$ref": "#/$defs/id" },
47
+ "workItemId": { "$ref": "#/$defs/id" },
48
+ "producerId": { "$ref": "#/$defs/id" },
49
+ "targetWorkspaceRef": { "type": "string", "minLength": 1 },
50
+ "targetHead": { "type": "string", "pattern": "^([a-f0-9]{40}|[a-f0-9]{64})$" },
51
+ "entrySnapshotRef": { "type": ["string", "null"] },
52
+ "entrySnapshotSha256": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" },
53
+ "deliveryPacketSha256": { "$ref": "#/$defs/sha256Ref" },
54
+ "deliveryCandidateFingerprint": { "$ref": "#/$defs/sha256" },
55
+ "workspaceSnapshotFingerprint": { "$ref": "#/$defs/sha256Ref" },
56
+ "overlayStatus": { "enum": ["candidate_only", "attested", "attested_with_non_source_changes"] },
57
+ "candidateFiles": {
58
+ "type": "array",
59
+ "minItems": 1,
60
+ "items": {
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "required": ["path", "sha256"],
64
+ "properties": {
65
+ "path": { "type": "string", "minLength": 1 },
66
+ "sha256": { "$ref": "#/$defs/sha256" }
67
+ }
68
+ }
69
+ },
70
+ "changedPaths": { "$ref": "#/$defs/strings" },
71
+ "toolCachePaths": { "$ref": "#/$defs/strings" },
72
+ "dependencyEnvironmentPaths": { "$ref": "#/$defs/strings" },
73
+ "unchangedPacketPaths": { "$ref": "#/$defs/strings" },
74
+ "outOfScopeSourcePaths": { "type": "array", "maxItems": 0 },
75
+ "targetSnapshot": {
76
+ "$ref": "https://owlcoda.dev/schemas/runkit/trust/workspace-snapshot-v1.schema.json"
77
+ },
78
+ "proven": { "$ref": "#/$defs/nonEmptyStrings" },
79
+ "notProven": { "$ref": "#/$defs/nonEmptyStrings" },
80
+ "targetWritePerformed": { "const": false },
81
+ "authorizationGranted": { "const": false }
82
+ },
83
+ "$defs": {
84
+ "id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" },
85
+ "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
86
+ "sha256Ref": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
87
+ "strings": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
88
+ "nonEmptyStrings": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }
89
+ },
90
+ "examples": [
91
+ {
92
+ "schemaVersion": "OwlCodaRunKitTeamProjectEventV3",
93
+ "eventId": "source-delivery-delivery-1",
94
+ "type": "source_delivery_imported",
95
+ "occurredAt": "2026-08-12T08:02:00.000Z",
96
+ "deliveryId": "delivery-1",
97
+ "projectId": "external-delivery-project",
98
+ "projectDefinitionSha256": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
99
+ "assignmentId": "assign-1",
100
+ "workItemId": "source-change",
101
+ "producerId": "luna-max",
102
+ "targetWorkspaceRef": "/workspace",
103
+ "targetHead": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
104
+ "entrySnapshotRef": null,
105
+ "entrySnapshotSha256": null,
106
+ "deliveryPacketSha256": "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
107
+ "deliveryCandidateFingerprint": "c851c3894a37a00c786719b252d2884606b28f2100bfc0e70acc32853b7ea720",
108
+ "workspaceSnapshotFingerprint": "sha256:ef3eb2c4af62ed5bf0c3fa9e46169fcf48204cc2e9580835f8849b94007a67f0",
109
+ "overlayStatus": "candidate_only",
110
+ "candidateFiles": [
111
+ {
112
+ "path": "src/main.mjs",
113
+ "sha256": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
114
+ }
115
+ ],
116
+ "changedPaths": [],
117
+ "toolCachePaths": [],
118
+ "dependencyEnvironmentPaths": [],
119
+ "unchangedPacketPaths": [],
120
+ "outOfScopeSourcePaths": [],
121
+ "targetSnapshot": {
122
+ "schemaVersion": "OwlCodaWorkspaceSnapshotV1",
123
+ "repositoryIdentity": "local:/workspace",
124
+ "headCommit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
125
+ "trackedTreeIdentity": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
126
+ "submodules": [],
127
+ "dirtyOverlay": [
128
+ {
129
+ "path": "src/main.mjs",
130
+ "state": "modified",
131
+ "sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
132
+ }
133
+ ],
134
+ "dependencyLockfiles": [],
135
+ "excludedRoots": [".owlcoda/runkit"],
136
+ "ignoredPathsBound": false,
137
+ "policyVersion": "workspace-snapshot-v1",
138
+ "sourceFingerprint": "sha256:ef3eb2c4af62ed5bf0c3fa9e46169fcf48204cc2e9580835f8849b94007a67f0"
139
+ },
140
+ "proven": ["The candidate file hashes match the target workspace."],
141
+ "notProven": ["Tests and integration were not proven."],
142
+ "targetWritePerformed": false,
143
+ "authorizationGranted": false
144
+ }
145
+ ]
146
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-project-status-v2.schema.json",
4
+ "title": "OwlCoda RunKit Team Project Status V2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "status", "projectId", "objective", "overall", "counts", "milestones", "workstreams", "workItems", "agents", "readyQueue", "criticalWorkItems", "openDecisions", "resolvedDecisions", "deferredVerifications", "openDeferredVerificationIds", "integrationGates", "dataCandidates", "sourceDeliveries", "projectTruthHash", "authorizationGranted", "headline", "dominantGap", "nextAction", "nextActorId", "exitCode"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "OwlCodaRunKitTeamProjectStatusV2" },
10
+ "status": { "const": "team_project_status" },
11
+ "projectId": { "type": "string", "minLength": 1 },
12
+ "objective": { "type": "string", "minLength": 1 },
13
+ "overall": { "enum": ["planned", "active", "active_with_blockers", "completed"] },
14
+ "counts": { "type": "object" },
15
+ "milestones": { "type": "array", "items": { "type": "object" } },
16
+ "workstreams": { "type": "array", "items": { "type": "object" } },
17
+ "workItems": { "type": "array", "items": { "type": "object" } },
18
+ "agents": { "type": "array", "items": { "type": "object" } },
19
+ "readyQueue": { "type": "array", "items": { "type": "string" } },
20
+ "criticalWorkItems": { "type": "array", "items": { "type": "string" } },
21
+ "openDecisions": { "type": "array", "items": { "type": "object" } },
22
+ "resolvedDecisions": { "type": "array", "items": { "type": "object" } },
23
+ "deferredVerifications": { "type": "array", "items": { "type": "object" } },
24
+ "openDeferredVerificationIds": { "type": "array", "items": { "type": "string" } },
25
+ "integrationGates": { "type": "array", "items": { "type": "object" } },
26
+ "dataCandidates": { "type": "array", "items": { "type": "object" } },
27
+ "sourceDeliveries": { "type": "array", "items": { "type": "object" } },
28
+ "projectTruthHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
29
+ "authorizationGranted": { "const": false },
30
+ "headline": { "type": "string", "minLength": 1 },
31
+ "dominantGap": {
32
+ "type": "object",
33
+ "additionalProperties": false,
34
+ "required": ["kind", "id", "title", "workItemId", "agentId", "reason", "truthRefs"],
35
+ "properties": {
36
+ "kind": { "enum": ["decision", "failed_work", "work_item", "deferred_verification", "integration_gate", "none"] },
37
+ "id": { "type": ["string", "null"] },
38
+ "title": { "type": ["string", "null"] },
39
+ "workItemId": { "type": ["string", "null"] },
40
+ "agentId": { "type": ["string", "null"] },
41
+ "reason": { "type": ["string", "null"] },
42
+ "truthRefs": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }
43
+ }
44
+ },
45
+ "nextAction": { "type": ["string", "null"] },
46
+ "nextActorId": { "type": ["string", "null"] },
47
+ "exitCode": { "const": 0 }
48
+ },
49
+ "examples": [{
50
+ "schemaVersion": "OwlCodaRunKitTeamProjectStatusV2",
51
+ "status": "team_project_status",
52
+ "projectId": "release-0184",
53
+ "objective": "Import a frozen external delivery",
54
+ "overall": "active",
55
+ "counts": {},
56
+ "milestones": [],
57
+ "workstreams": [],
58
+ "workItems": [],
59
+ "agents": [],
60
+ "readyQueue": [],
61
+ "criticalWorkItems": [],
62
+ "openDecisions": [],
63
+ "resolvedDecisions": [],
64
+ "deferredVerifications": [],
65
+ "openDeferredVerificationIds": [],
66
+ "integrationGates": [],
67
+ "dataCandidates": [],
68
+ "sourceDeliveries": [],
69
+ "projectTruthHash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
70
+ "authorizationGranted": false,
71
+ "headline": "Dominant gap: none; owner: unassigned; blocker: none; next: none.",
72
+ "dominantGap": {
73
+ "kind": "none",
74
+ "id": null,
75
+ "title": null,
76
+ "workItemId": null,
77
+ "agentId": null,
78
+ "reason": null,
79
+ "truthRefs": ["project/definition.json"]
80
+ },
81
+ "nextAction": null,
82
+ "nextActorId": null,
83
+ "exitCode": 0
84
+ }]
85
+ }