owlrunkit 0.18.3 → 0.19.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 (59) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +223 -52
  3. package/docs/architecture/OWLCODA_RUNKIT_0184_EXTERNAL_DELIVERY_INTAKE_PRODUCT_DECISION_20260812.md +209 -0
  4. package/docs/architecture/OWLCODA_RUNKIT_0190_CONSOLIDATED_DAILY_USE_PRODUCT_DECISION_20260812.md +97 -0
  5. package/docs/architecture/OWLCODA_RUNKIT_USAGE_MODE_SELECTION_PRODUCT_DECISION_20260811.md +8 -7
  6. package/docs/architecture/OWLCODA_RUN_KIT_CONTRACT_V0_2.md +57 -0
  7. package/integrations/codex/skills/owlcoda-runkit/SKILL.md +133 -77
  8. package/integrations/codex/skills/owlcoda-runkit/assets/templates/config.json +3 -3
  9. package/integrations/codex/skills/owlcoda-runkit/references/contract-v0.2.md +57 -0
  10. package/package.json +1 -1
  11. package/packages/attest/README.md +9 -5
  12. package/packages/attest/consumer-surface-v2.json +263 -0
  13. package/packages/attest/distribution-manifest-v1.json +14 -1
  14. package/packages/attest/schemas/quick-verification-receipt-v3.schema.json +244 -0
  15. package/packages/attest/schemas/workspace-snapshot-v2.schema.json +114 -0
  16. package/packages/attest/src/dependency-environment.mjs +128 -0
  17. package/packages/attest/src/index.mjs +1 -0
  18. package/packages/attest/src/quick-receipt-contract.mjs +205 -12
  19. package/packages/attest/src/quick.mjs +45 -4
  20. package/packages/attest/src/workspace-snapshot.mjs +143 -7
  21. package/registry-release-policy-v1.json +5 -5
  22. package/sbom.spdx.json +5 -5
  23. package/scripts/runkit-contract/assurance-router.mjs +25 -6
  24. package/scripts/runkit-contract/core-contract.mjs +29 -1
  25. package/scripts/runkit-contract/efficiency-metrics.mjs +559 -0
  26. package/scripts/runkit-contract/evidence-store.mjs +130 -0
  27. package/scripts/runkit-contract/onboarding-bootstrap.mjs +685 -0
  28. package/scripts/runkit-contract/onboarding-doctor.mjs +3 -2
  29. package/scripts/runkit-contract/outcome-presentation.mjs +171 -0
  30. package/scripts/runkit-contract/profile-onboarding.mjs +285 -17
  31. package/scripts/runkit-contract/project-cli-resolver.mjs +29 -5
  32. package/scripts/runkit-contract/project-external-delivery.mjs +707 -0
  33. package/scripts/runkit-contract/quick-evidence-reuse.mjs +590 -0
  34. package/scripts/runkit-contract/quick-isolation.mjs +314 -0
  35. package/scripts/runkit-contract/quick-metrics.mjs +51 -3
  36. package/scripts/runkit-contract/quick-receipt.mjs +31 -1
  37. package/scripts/runkit-contract/quick-verify.mjs +217 -26
  38. package/scripts/runkit-contract/quick-workspace-snapshot.mjs +1 -0
  39. package/scripts/runkit-contract/runkit-bootstrap.mjs +7 -1
  40. package/scripts/runkit-contract/runkit-cli.mjs +602 -152
  41. package/scripts/runkit-contract/runtime-transition.mjs +478 -0
  42. package/scripts/runkit-contract/schemas/assurance-route-v2.schema.json +26 -0
  43. package/scripts/runkit-contract/schemas/efficiency-event-v1.schema.json +56 -0
  44. package/scripts/runkit-contract/schemas/efficiency-metrics-v1.schema.json +220 -0
  45. package/scripts/runkit-contract/schemas/external-runtime-report-v1.schema.json +125 -0
  46. package/scripts/runkit-contract/schemas/onboarding-bootstrap-plan-v1.schema.json +168 -0
  47. package/scripts/runkit-contract/schemas/onboarding-bootstrap-receipt-v1.schema.json +130 -0
  48. package/scripts/runkit-contract/schemas/outcome-summary-v1.schema.json +83 -0
  49. package/scripts/runkit-contract/schemas/profile-detection-v3.schema.json +170 -0
  50. package/scripts/runkit-contract/schemas/quick-evidence-reuse-plan-v1.schema.json +59 -0
  51. package/scripts/runkit-contract/schemas/quick-evidence-reuse-receipt-v1.schema.json +79 -0
  52. package/scripts/runkit-contract/schemas/runtime-transition-receipt-v1.schema.json +185 -0
  53. package/scripts/runkit-contract/schemas/team-project-event-v3.schema.json +146 -0
  54. package/scripts/runkit-contract/schemas/team-project-event-v4.schema.json +142 -0
  55. package/scripts/runkit-contract/schemas/team-project-status-v2.schema.json +85 -0
  56. package/scripts/runkit-contract/schemas/usage-mode-recommendation-v2.schema.json +136 -0
  57. package/scripts/runkit-contract/team-project.mjs +1172 -22
  58. package/scripts/runkit-contract/usage-mode.mjs +28 -7
  59. package/scripts/runkit-contract/verification-envelope.mjs +15 -18
@@ -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,142 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.com/schemas/runkit/team-project-event-v4.schema.json",
4
+ "title": "OwlCoda RunKit Team Project Event V4",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "eventId", "type", "occurredAt"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "OwlCodaRunKitTeamProjectEventV4" },
10
+ "eventId": { "$ref": "#/$defs/id" },
11
+ "type": { "enum": ["upstream_reopened", "responsibility_transferred"] },
12
+ "occurredAt": { "type": "string", "minLength": 24 },
13
+ "reopenId": { "$ref": "#/$defs/id" },
14
+ "transferId": { "$ref": "#/$defs/id" },
15
+ "assignmentId": { "$ref": "#/$defs/id" },
16
+ "previousAssignmentId": { "$ref": "#/$defs/id" },
17
+ "previousCheckpointEventId": { "$ref": "#/$defs/id" },
18
+ "checkpointEventId": { "$ref": "#/$defs/id" },
19
+ "handoffEventId": { "$ref": "#/$defs/id" },
20
+ "assignmentEventId": { "$ref": "#/$defs/id" },
21
+ "workItemId": { "$ref": "#/$defs/id" },
22
+ "triggerWorkItemId": { "$ref": "#/$defs/id" },
23
+ "fromAgentId": { "$ref": "#/$defs/id" },
24
+ "reviewerAgentId": { "$ref": "#/$defs/id" },
25
+ "toAgentId": { "$ref": "#/$defs/id" },
26
+ "reason": { "type": "string", "minLength": 1 },
27
+ "summary": { "type": "string", "minLength": 1 },
28
+ "state": {
29
+ "enum": ["active", "waiting_dependency", "waiting_decision", "verifying", "ready_to_integrate"]
30
+ },
31
+ "completedUnits": { "type": "integer", "minimum": 0 },
32
+ "evidenceRefs": { "$ref": "#/$defs/nonEmptyStrings" },
33
+ "blockerRefs": { "$ref": "#/$defs/strings" },
34
+ "decisionRefs": { "$ref": "#/$defs/strings" },
35
+ "nextAction": { "type": "string", "minLength": 1 },
36
+ "sourceFingerprint": { "type": "string", "pattern": "^(sha256:)?[a-f0-9]{64}$" }
37
+ },
38
+ "allOf": [
39
+ {
40
+ "if": {
41
+ "properties": { "type": { "const": "upstream_reopened" } },
42
+ "required": ["type"]
43
+ },
44
+ "then": {
45
+ "required": [
46
+ "reopenId",
47
+ "assignmentId",
48
+ "previousAssignmentId",
49
+ "previousCheckpointEventId",
50
+ "workItemId",
51
+ "triggerWorkItemId",
52
+ "fromAgentId",
53
+ "reviewerAgentId",
54
+ "toAgentId",
55
+ "reason",
56
+ "evidenceRefs",
57
+ "nextAction"
58
+ ]
59
+ }
60
+ },
61
+ {
62
+ "if": {
63
+ "properties": { "type": { "const": "responsibility_transferred" } },
64
+ "required": ["type"]
65
+ },
66
+ "then": {
67
+ "required": [
68
+ "transferId",
69
+ "assignmentId",
70
+ "previousAssignmentId",
71
+ "checkpointEventId",
72
+ "handoffEventId",
73
+ "assignmentEventId",
74
+ "workItemId",
75
+ "fromAgentId",
76
+ "toAgentId",
77
+ "state",
78
+ "summary",
79
+ "evidenceRefs",
80
+ "blockerRefs",
81
+ "decisionRefs",
82
+ "nextAction"
83
+ ]
84
+ }
85
+ }
86
+ ],
87
+ "$defs": {
88
+ "id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" },
89
+ "strings": {
90
+ "type": "array",
91
+ "uniqueItems": true,
92
+ "items": { "type": "string", "minLength": 1 }
93
+ },
94
+ "nonEmptyStrings": {
95
+ "type": "array",
96
+ "minItems": 1,
97
+ "uniqueItems": true,
98
+ "items": { "type": "string", "minLength": 1 }
99
+ }
100
+ },
101
+ "examples": [
102
+ {
103
+ "schemaVersion": "OwlCodaRunKitTeamProjectEventV4",
104
+ "eventId": "upstream-reopened-source-defect-001",
105
+ "type": "upstream_reopened",
106
+ "occurredAt": "2026-08-12T10:07:00.000Z",
107
+ "reopenId": "source-defect-001",
108
+ "assignmentId": "reopen-source-defect-001",
109
+ "previousAssignmentId": "assign-source",
110
+ "previousCheckpointEventId": "checkpoint-source-done",
111
+ "workItemId": "source",
112
+ "triggerWorkItemId": "acceptance",
113
+ "fromAgentId": "source-writer",
114
+ "reviewerAgentId": "reviewer",
115
+ "toAgentId": "source-writer",
116
+ "reason": "Acceptance found a source defect.",
117
+ "evidenceRefs": ["receipt:acceptance-failure"],
118
+ "nextAction": "Repair source and produce a fresh candidate."
119
+ },
120
+ {
121
+ "schemaVersion": "OwlCodaRunKitTeamProjectEventV4",
122
+ "eventId": "responsibility-transferred-engine-a-to-b",
123
+ "type": "responsibility_transferred",
124
+ "occurredAt": "2026-08-12T11:01:00.000Z",
125
+ "transferId": "engine-a-to-b",
126
+ "assignmentId": "transfer-engine-a-to-b",
127
+ "previousAssignmentId": "assign-engine-a",
128
+ "checkpointEventId": "transfer-checkpoint-engine-a-to-b",
129
+ "handoffEventId": "transfer-handoff-engine-a-to-b",
130
+ "assignmentEventId": "transfer-assignment-engine-a-to-b",
131
+ "workItemId": "engine",
132
+ "fromAgentId": "agent-a",
133
+ "toAgentId": "agent-b",
134
+ "state": "active",
135
+ "summary": "Parser complete; serializer remains.",
136
+ "evidenceRefs": ["receipt:parser"],
137
+ "blockerRefs": [],
138
+ "decisionRefs": [],
139
+ "nextAction": "Implement serializer."
140
+ }
141
+ ]
142
+ }
@@ -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
+ }