owlrunkit 0.18.3 → 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 (29) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +125 -52
  3. package/docs/architecture/OWLCODA_RUNKIT_0184_EXTERNAL_DELIVERY_INTAKE_PRODUCT_DECISION_20260812.md +209 -0
  4. package/docs/architecture/OWLCODA_RUNKIT_USAGE_MODE_SELECTION_PRODUCT_DECISION_20260811.md +8 -7
  5. package/integrations/codex/skills/owlcoda-runkit/SKILL.md +109 -77
  6. package/integrations/codex/skills/owlcoda-runkit/assets/templates/config.json +3 -3
  7. package/package.json +1 -1
  8. package/packages/attest/distribution-manifest-v1.json +5 -0
  9. package/packages/attest/src/quick-receipt-contract.mjs +3 -3
  10. package/packages/attest/src/quick.mjs +5 -0
  11. package/packages/attest/src/workspace-snapshot.mjs +10 -1
  12. package/registry-release-policy-v1.json +5 -5
  13. package/sbom.spdx.json +5 -5
  14. package/scripts/runkit-contract/assurance-router.mjs +25 -6
  15. package/scripts/runkit-contract/core-contract.mjs +9 -1
  16. package/scripts/runkit-contract/onboarding-doctor.mjs +1 -1
  17. package/scripts/runkit-contract/profile-onboarding.mjs +263 -15
  18. package/scripts/runkit-contract/project-cli-resolver.mjs +6 -0
  19. package/scripts/runkit-contract/project-external-delivery.mjs +707 -0
  20. package/scripts/runkit-contract/quick-verify.mjs +1 -1
  21. package/scripts/runkit-contract/runkit-bootstrap.mjs +6 -1
  22. package/scripts/runkit-contract/runkit-cli.mjs +278 -140
  23. package/scripts/runkit-contract/schemas/assurance-route-v2.schema.json +26 -0
  24. package/scripts/runkit-contract/schemas/profile-detection-v3.schema.json +170 -0
  25. package/scripts/runkit-contract/schemas/team-project-event-v3.schema.json +146 -0
  26. package/scripts/runkit-contract/schemas/team-project-status-v2.schema.json +85 -0
  27. package/scripts/runkit-contract/schemas/usage-mode-recommendation-v2.schema.json +136 -0
  28. package/scripts/runkit-contract/team-project.mjs +477 -15
  29. 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,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
+ }
@@ -0,0 +1,136 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.dev/schemas/runkit/usage-mode-recommendation-v2.json",
4
+ "title": "OwlCoda RunKit Usage Mode Recommendation V2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "status",
10
+ "requestedMode",
11
+ "recommendedMode",
12
+ "continuity",
13
+ "assurance",
14
+ "triggerReasons",
15
+ "rejectedLighterModes",
16
+ "estimatedOverhead",
17
+ "nextCommand",
18
+ "downgrade",
19
+ "authorityBoundary",
20
+ "authorizationGranted"
21
+ ],
22
+ "properties": {
23
+ "schemaVersion": { "const": "OwlCodaRunKitUsageModeRecommendationV2" },
24
+ "status": { "enum": ["mode_recommended", "mode_status"] },
25
+ "requestedMode": { "enum": ["auto", "off", "light", "managed", "formal"] },
26
+ "recommendedMode": { "enum": ["off", "light", "managed", "formal"] },
27
+ "continuity": { "enum": ["none", "project_driver"] },
28
+ "assurance": { "enum": ["none", "quick", "formal"] },
29
+ "triggerReasons": {
30
+ "type": "array",
31
+ "minItems": 1,
32
+ "uniqueItems": true,
33
+ "items": { "type": "string", "minLength": 1 }
34
+ },
35
+ "rejectedLighterModes": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "required": ["mode", "reasonCodes"],
41
+ "properties": {
42
+ "mode": { "enum": ["off", "light", "managed"] },
43
+ "reasonCodes": {
44
+ "type": "array",
45
+ "minItems": 1,
46
+ "uniqueItems": true,
47
+ "items": { "type": "string", "minLength": 1 }
48
+ }
49
+ }
50
+ }
51
+ },
52
+ "estimatedOverhead": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "required": ["additionalSteps", "evidenceArtifacts"],
56
+ "properties": {
57
+ "additionalSteps": { "type": "integer", "minimum": 0 },
58
+ "evidenceArtifacts": { "type": "integer", "minimum": 0 }
59
+ }
60
+ },
61
+ "nextCommand": {
62
+ "oneOf": [
63
+ { "type": "null" },
64
+ { "type": "string", "minLength": 1 }
65
+ ]
66
+ },
67
+ "downgrade": {
68
+ "type": "object",
69
+ "additionalProperties": false,
70
+ "required": ["allowed", "reasonCodes"],
71
+ "properties": {
72
+ "allowed": { "type": "boolean" },
73
+ "reasonCodes": {
74
+ "type": "array",
75
+ "uniqueItems": true,
76
+ "items": { "type": "string", "minLength": 1 }
77
+ }
78
+ }
79
+ },
80
+ "authorityBoundary": {
81
+ "type": "object",
82
+ "additionalProperties": false,
83
+ "required": ["authorizationGranted", "git", "release", "deployment", "production", "business"],
84
+ "properties": {
85
+ "authorizationGranted": { "const": false },
86
+ "git": { "const": false },
87
+ "release": { "const": false },
88
+ "deployment": { "const": false },
89
+ "production": { "const": false },
90
+ "business": { "const": false }
91
+ }
92
+ },
93
+ "authorizationGranted": { "const": false },
94
+ "preferenceSource": { "const": "default_auto" },
95
+ "persistedPreference": { "type": "null" }
96
+ },
97
+ "examples": [
98
+ {
99
+ "schemaVersion": "OwlCodaRunKitUsageModeRecommendationV2",
100
+ "status": "mode_recommended",
101
+ "requestedMode": "auto",
102
+ "recommendedMode": "managed",
103
+ "continuity": "project_driver",
104
+ "assurance": "quick",
105
+ "triggerReasons": ["cross_session_continuity", "single_bounded_verification"],
106
+ "rejectedLighterModes": [
107
+ {
108
+ "mode": "off",
109
+ "reasonCodes": ["cross_session_continuity", "single_bounded_verification"]
110
+ },
111
+ {
112
+ "mode": "light",
113
+ "reasonCodes": ["cross_session_continuity", "single_bounded_verification"]
114
+ }
115
+ ],
116
+ "estimatedOverhead": {
117
+ "additionalSteps": 3,
118
+ "evidenceArtifacts": 2
119
+ },
120
+ "nextCommand": "npx --no-install owlrunkit project status --workspace '.'",
121
+ "downgrade": {
122
+ "allowed": true,
123
+ "reasonCodes": []
124
+ },
125
+ "authorityBoundary": {
126
+ "authorizationGranted": false,
127
+ "git": false,
128
+ "release": false,
129
+ "deployment": false,
130
+ "production": false,
131
+ "business": false
132
+ },
133
+ "authorizationGranted": false
134
+ }
135
+ ]
136
+ }