owlrunkit 0.15.0 → 0.16.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 (76) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/README.md +274 -66
  3. package/integrations/codex/skills/owlcoda-runkit/SKILL.md +223 -117
  4. package/integrations/codex/skills/owlcoda-runkit/assets/templates/config.json +3 -3
  5. package/integrations/codex/skills/owlcoda-runkit/assets/templates/ready-for-commit-request.json +2 -2
  6. package/package.json +2 -2
  7. package/packages/attest/distribution-manifest-v1.json +10 -0
  8. package/packages/attest/src/quick.mjs +10 -0
  9. package/registry-release-policy-v1.json +8 -2
  10. package/sbom.spdx.json +5 -5
  11. package/scripts/runkit-contract/assurance-router.mjs +119 -0
  12. package/scripts/runkit-contract/core-contract.mjs +250 -115
  13. package/scripts/runkit-contract/core-successor.mjs +2043 -0
  14. package/scripts/runkit-contract/deployment-workflow.mjs +2040 -0
  15. package/scripts/runkit-contract/finalize.mjs +242 -21
  16. package/scripts/runkit-contract/fleet-discovery.mjs +456 -0
  17. package/scripts/runkit-contract/formal-workflow.mjs +850 -0
  18. package/scripts/runkit-contract/human-status.mjs +553 -0
  19. package/scripts/runkit-contract/inspect-presentation.mjs +25 -8
  20. package/scripts/runkit-contract/install-codex-skill.mjs +73 -30
  21. package/scripts/runkit-contract/lease-lifecycle.mjs +8 -2
  22. package/scripts/runkit-contract/lifecycle-orchestration.mjs +135 -12
  23. package/scripts/runkit-contract/onboarding-doctor.mjs +43 -90
  24. package/scripts/runkit-contract/owner-authority-trust.mjs +230 -0
  25. package/scripts/runkit-contract/owner-deployment-decision.mjs +385 -0
  26. package/scripts/runkit-contract/profile-onboarding.mjs +841 -13
  27. package/scripts/runkit-contract/project-cli-resolver.mjs +701 -0
  28. package/scripts/runkit-contract/project-control-parser.mjs +830 -0
  29. package/scripts/runkit-contract/project-control-state.mjs +28 -0
  30. package/scripts/runkit-contract/provenance-common.mjs +19 -2
  31. package/scripts/runkit-contract/ready-for-commit.mjs +330 -18
  32. package/scripts/runkit-contract/remote-deployment.mjs +1596 -0
  33. package/scripts/runkit-contract/remote-process-adapter.mjs +177 -0
  34. package/scripts/runkit-contract/runkit-bootstrap.mjs +131 -0
  35. package/scripts/runkit-contract/runkit-cli.mjs +1097 -21
  36. package/scripts/runkit-contract/schemas/assurance-route-v1.schema.json +26 -0
  37. package/scripts/runkit-contract/schemas/core-successor-batch-receipt-v1.schema.json +126 -0
  38. package/scripts/runkit-contract/schemas/core-successor-plan-v1.schema.json +155 -0
  39. package/scripts/runkit-contract/schemas/core-successor-project-success-receipt-v1.schema.json +72 -0
  40. package/scripts/runkit-contract/schemas/deployment-execute-request-v1.schema.json +63 -0
  41. package/scripts/runkit-contract/schemas/deployment-lineage-v1.schema.json +292 -0
  42. package/scripts/runkit-contract/schemas/deployment-prepare-receipt-v1.schema.json +140 -0
  43. package/scripts/runkit-contract/schemas/fleet-discovery-v1.schema.json +31 -0
  44. package/scripts/runkit-contract/schemas/fleet-manifest-v1.schema.json +20 -0
  45. package/scripts/runkit-contract/schemas/fleet-root-registry-v1.schema.json +34 -0
  46. package/scripts/runkit-contract/schemas/human-status-v1.schema.json +102 -0
  47. package/scripts/runkit-contract/schemas/owner-authority-trust-v1.schema.json +66 -0
  48. package/scripts/runkit-contract/schemas/owner-deployment-authority-v1.schema.json +46 -0
  49. package/scripts/runkit-contract/schemas/owner-deployment-authority-v2.schema.json +94 -0
  50. package/scripts/runkit-contract/schemas/owner-deployment-decision-v1.schema.json +102 -0
  51. package/scripts/runkit-contract/schemas/owner-migration-authority-v1.schema.json +33 -0
  52. package/scripts/runkit-contract/schemas/owner-migration-authority-v2.schema.json +67 -0
  53. package/scripts/runkit-contract/schemas/profile-apply-receipt-v1.schema.json +32 -0
  54. package/scripts/runkit-contract/schemas/profile-detection-v2.schema.json +145 -0
  55. package/scripts/runkit-contract/schemas/ready-for-commit-v2.schema.json +37 -0
  56. package/scripts/runkit-contract/schemas/remote-deployment-manifest-v1.schema.json +379 -0
  57. package/scripts/runkit-contract/schemas/remote-deployment-result-v1.schema.json +153 -0
  58. package/scripts/runkit-contract/schemas/remote-deployment-stage-journal-v1.schema.json +183 -0
  59. package/scripts/runkit-contract/schemas/remote-target-v1.schema.json +32 -0
  60. package/scripts/runkit-contract/schemas/source-candidate-v2.schema.json +152 -0
  61. package/scripts/runkit-contract/schemas/verification-receipt-v2.schema.json +13 -0
  62. package/scripts/runkit-contract/snapshot.mjs +1 -1
  63. package/scripts/runkit-contract/source-candidate.mjs +1382 -0
  64. package/scripts/runkit-contract/ssh-remote-adapter.mjs +1184 -0
  65. package/scripts/runkit-contract/sync-core016-release-identity.mjs +161 -0
  66. package/scripts/runkit-contract/templates/assurance-request.json +13 -0
  67. package/scripts/runkit-contract/templates/core-successor-owner-authority.json +15 -0
  68. package/scripts/runkit-contract/templates/deployment-execute-request.json +39 -0
  69. package/scripts/runkit-contract/templates/deployment-owner-authority.json +23 -0
  70. package/scripts/runkit-contract/templates/deployment-owner-decision.json +26 -0
  71. package/scripts/runkit-contract/templates/fleet-manifest.json +8 -0
  72. package/scripts/runkit-contract/templates/fleet-root-registry.json +8 -0
  73. package/scripts/runkit-contract/templates/owner-authority-trust.json +16 -0
  74. package/scripts/runkit-contract/templates/ready-for-commit-request.json +2 -2
  75. package/scripts/runkit-contract/templates/remote-deployment-manifest.json +108 -0
  76. package/scripts/runkit-contract/verification-receipt-gate.mjs +28 -0
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.dev/schemas/runkit/assurance-route-v1.json",
4
+ "title": "OwlCoda RunKit Assurance Route V1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "status", "lane", "riskMode", "reasonCodes", "nextCommand", "authorizationGranted"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "OwlCodaRunKitAssuranceRouteV1" },
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": ["owlrunkit quick-verify", "owlrunkit formal start"] }] },
15
+ "authorizationGranted": { "const": false }
16
+ },
17
+ "examples": [{
18
+ "schemaVersion": "OwlCodaRunKitAssuranceRouteV1",
19
+ "status": "routed",
20
+ "lane": "quick",
21
+ "riskMode": "lightweight",
22
+ "reasonCodes": ["single_bounded_verification"],
23
+ "nextCommand": "owlrunkit quick-verify",
24
+ "authorizationGranted": false
25
+ }]
26
+ }
@@ -0,0 +1,126 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.dev/schemas/runkit/core-successor-batch-receipt-v1.json",
4
+ "title": "OwlCoda RunKit Core Successor Batch Receipt V1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "receiptId", "attemptNumber", "receiptBasePath", "priorAttemptReceiptPath", "priorAttemptReceiptSha256", "planId", "planSha256", "ownerAuthorityId", "ownerAuthoritySha256", "ownerAuthoritySignerKeyId", "ownerAuthorityTrustStoreSha256", "fromCore", "fromCoreMode", "fromCoreSetSha256", "fleetCoreBindings", "toCore", "fleetManifestSha256", "sourceCandidateSha256", "status", "migrationAttempted", "migratedCount", "projectCount", "orphanRecovery", "orphanSuccessReceiptCount", "projects", "projectSuccessReceipts", "repositoryActions", "authorizationGranted", "receiptSha256"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "OwlCodaRunKitCoreSuccessorBatchReceiptV1" },
10
+ "receiptId": { "type": "string", "minLength": 1 },
11
+ "attemptNumber": { "type": "integer", "minimum": 1 },
12
+ "receiptBasePath": { "type": "string", "minLength": 1 },
13
+ "priorAttemptReceiptPath": { "oneOf": [{ "type": "null" }, { "type": "string", "minLength": 1 }] },
14
+ "priorAttemptReceiptSha256": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/hash" }] },
15
+ "planId": { "type": "string", "minLength": 1 },
16
+ "planSha256": { "$ref": "#/$defs/hash" },
17
+ "ownerAuthorityId": { "type": "string", "minLength": 1 },
18
+ "ownerAuthoritySha256": { "$ref": "#/$defs/hash" },
19
+ "ownerAuthoritySignerKeyId": { "type": "string", "minLength": 1 },
20
+ "ownerAuthorityTrustStoreSha256": { "$ref": "#/$defs/hash" },
21
+ "fromCore": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/core" }] },
22
+ "fromCoreMode": { "enum": ["uniform", "per_project"] },
23
+ "fromCoreSetSha256": { "$ref": "#/$defs/hash" },
24
+ "fleetCoreBindings": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/coreBinding" } },
25
+ "toCore": { "$ref": "#/$defs/core" },
26
+ "fleetManifestSha256": { "$ref": "#/$defs/hash" },
27
+ "sourceCandidateSha256": { "$ref": "#/$defs/hash" },
28
+ "status": { "enum": ["applied", "blocked_preflight", "partial_failure"] },
29
+ "migrationAttempted": { "type": "boolean" },
30
+ "migratedCount": { "type": "integer", "minimum": 0 },
31
+ "projectCount": { "type": "integer", "minimum": 1 },
32
+ "orphanRecovery": { "type": "boolean" },
33
+ "orphanSuccessReceiptCount": { "type": "integer", "minimum": 0 },
34
+ "projects": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/project" } },
35
+ "projectSuccessReceipts": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/projectSuccessReceipt" } },
36
+ "repositoryActions": { "$ref": "#/$defs/actions" },
37
+ "authorizationGranted": { "const": false },
38
+ "receiptSha256": { "$ref": "#/$defs/hash" }
39
+ },
40
+ "$defs": {
41
+ "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
42
+ "core": {
43
+ "type": "object",
44
+ "additionalProperties": false,
45
+ "required": ["contractVersion", "coreVersion", "coreManifestSha256", "coreSourceRef"],
46
+ "properties": {
47
+ "contractVersion": { "type": "string", "minLength": 1 },
48
+ "coreVersion": { "type": "string", "minLength": 1 },
49
+ "coreManifestSha256": { "$ref": "#/$defs/hash" },
50
+ "coreSourceRef": { "type": "string", "minLength": 1 }
51
+ }
52
+ },
53
+ "project": {
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": ["workspaceRoot", "fromCore", "status", "issueCodes", "migrationAttempted"],
57
+ "properties": {
58
+ "workspaceRoot": { "type": "string", "minLength": 1 },
59
+ "fromCore": { "$ref": "#/$defs/core" },
60
+ "status": { "enum": ["safe", "unsafe", "core_drift", "already_migrated", "migrated", "skipped_as_already_migrated", "migration_failed", "not_attempted_after_failure"] },
61
+ "issueCodes": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
62
+ "migrationAttempted": { "type": "boolean" },
63
+ "migrationStatus": { "enum": ["upgraded", "initialized"] },
64
+ "migrationReceipt": { "oneOf": [{ "type": "null" }, { "type": "string", "minLength": 1 }] },
65
+ "migrationReceiptSha256": { "$ref": "#/$defs/hash" },
66
+ "projectSuccessReceiptPath": { "type": "string", "minLength": 1 },
67
+ "projectSuccessReceiptSha256": { "$ref": "#/$defs/hash" }
68
+ }
69
+ },
70
+ "projectSuccessReceipt": {
71
+ "type": "object",
72
+ "additionalProperties": false,
73
+ "required": ["workspaceRoot", "receiptBasePath", "receiptPath", "receiptSha256"],
74
+ "properties": {
75
+ "workspaceRoot": { "type": "string", "minLength": 1 },
76
+ "receiptBasePath": { "type": "string", "minLength": 1 },
77
+ "receiptPath": { "type": "string", "minLength": 1 },
78
+ "receiptSha256": { "$ref": "#/$defs/hash" }
79
+ }
80
+ },
81
+ "coreBinding": {
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": ["workspaceRoot", "fromCore"],
85
+ "properties": { "workspaceRoot": { "type": "string", "minLength": 1 }, "fromCore": { "$ref": "#/$defs/core" } }
86
+ },
87
+ "actions": {
88
+ "type": "object",
89
+ "additionalProperties": false,
90
+ "required": ["stage", "commit", "push", "publish", "deploy"],
91
+ "properties": { "stage": { "const": false }, "commit": { "const": false }, "push": { "const": false }, "publish": { "const": false }, "deploy": { "const": false } }
92
+ }
93
+ },
94
+ "examples": [{
95
+ "schemaVersion": "OwlCodaRunKitCoreSuccessorBatchReceiptV1",
96
+ "receiptId": "apply-001",
97
+ "attemptNumber": 1,
98
+ "receiptBasePath": ".owlcoda/runkit/core-successors/successor-001/apply-receipts/apply-001.json",
99
+ "priorAttemptReceiptPath": null,
100
+ "priorAttemptReceiptSha256": null,
101
+ "planId": "successor-001",
102
+ "planSha256": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
103
+ "ownerAuthorityId": "owner-001",
104
+ "ownerAuthoritySha256": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
105
+ "ownerAuthoritySignerKeyId": "owner-key-001",
106
+ "ownerAuthorityTrustStoreSha256": "sha256:abababababababababababababababababababababababababababababababab",
107
+ "fromCore": { "contractVersion": "0.2", "coreVersion": "0.15.1", "coreManifestSha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "coreSourceRef": "artifact:sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" },
108
+ "fromCoreMode": "uniform",
109
+ "fromCoreSetSha256": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
110
+ "fleetCoreBindings": [{ "workspaceRoot": "/fleet/project", "fromCore": { "contractVersion": "0.2", "coreVersion": "0.15.1", "coreManifestSha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "coreSourceRef": "artifact:sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" } }],
111
+ "toCore": { "contractVersion": "0.2", "coreVersion": "0.16.0", "coreManifestSha256": "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", "coreSourceRef": "artifact:sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" },
112
+ "fleetManifestSha256": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
113
+ "sourceCandidateSha256": "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
114
+ "status": "applied",
115
+ "migrationAttempted": true,
116
+ "migratedCount": 1,
117
+ "projectCount": 1,
118
+ "orphanRecovery": false,
119
+ "orphanSuccessReceiptCount": 0,
120
+ "projects": [{ "workspaceRoot": "/fleet/project", "fromCore": { "contractVersion": "0.2", "coreVersion": "0.15.1", "coreManifestSha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "coreSourceRef": "artifact:sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" }, "status": "migrated", "issueCodes": [], "migrationAttempted": true, "migrationStatus": "upgraded", "migrationReceipt": ".owlcoda/runkit/config-migration-receipts/upgrade.json", "migrationReceiptSha256": "sha256:1212121212121212121212121212121212121212121212121212121212121212", "projectSuccessReceiptPath": ".owlcoda/runkit/core-successors/successor-001/apply-receipts/apply-001-project-success/apply-001-project.json", "projectSuccessReceiptSha256": "sha256:1313131313131313131313131313131313131313131313131313131313131313" }],
121
+ "projectSuccessReceipts": [{ "workspaceRoot": "/fleet/project", "receiptBasePath": ".owlcoda/runkit/core-successors/successor-001/apply-receipts/apply-001.json", "receiptPath": ".owlcoda/runkit/core-successors/successor-001/apply-receipts/apply-001-project-success/apply-001-project.json", "receiptSha256": "sha256:1313131313131313131313131313131313131313131313131313131313131313" }],
122
+ "repositoryActions": { "stage": false, "commit": false, "push": false, "publish": false, "deploy": false },
123
+ "authorizationGranted": false,
124
+ "receiptSha256": "sha256:1111111111111111111111111111111111111111111111111111111111111111"
125
+ }]
126
+ }
@@ -0,0 +1,155 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.dev/schemas/runkit/core-successor-plan-v1.json",
4
+ "title": "OwlCoda RunKit Core Successor Plan V1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "planId", "status", "fromCore", "fromCoreMode", "fromCoreSetSha256", "fleetCoreBindings", "toCore", "sourceCandidate", "fleetDiscoveryRequest", "fleetDiscovery", "migrationContract", "repositoryActions", "authorizationGranted", "planSha256"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "OwlCodaRunKitCoreSuccessorPlanV1" },
10
+ "planId": { "type": "string", "minLength": 1 },
11
+ "status": { "const": "frozen" },
12
+ "fromCore": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/core" }] },
13
+ "fromCoreMode": { "enum": ["uniform", "per_project"] },
14
+ "fromCoreSetSha256": { "$ref": "#/$defs/hash" },
15
+ "fleetCoreBindings": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/coreBinding" } },
16
+ "toCore": { "$ref": "#/$defs/core" },
17
+ "sourceCandidate": { "$ref": "#/$defs/source" },
18
+ "fleetDiscoveryRequest": { "$ref": "#/$defs/fleetRequest" },
19
+ "fleetDiscovery": { "$ref": "#/$defs/discovery" },
20
+ "migrationContract": { "$ref": "#/$defs/migration" },
21
+ "repositoryActions": { "$ref": "#/$defs/actions" },
22
+ "authorizationGranted": { "const": false },
23
+ "planSha256": { "$ref": "#/$defs/hash" }
24
+ },
25
+ "$defs": {
26
+ "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
27
+ "core": {
28
+ "type": "object",
29
+ "additionalProperties": false,
30
+ "required": ["contractVersion", "coreVersion", "coreManifestSha256", "coreSourceRef"],
31
+ "properties": {
32
+ "contractVersion": { "type": "string", "minLength": 1 },
33
+ "coreVersion": { "type": "string", "minLength": 1 },
34
+ "coreManifestSha256": { "$ref": "#/$defs/hash" },
35
+ "coreSourceRef": { "type": "string", "pattern": "^artifact:sha256:[a-f0-9]{64}$" }
36
+ }
37
+ },
38
+ "source": {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "required": ["candidatePath", "candidateSha256", "sourceFingerprint", "pathClosure", "materializationProof"],
42
+ "properties": {
43
+ "candidatePath": { "type": "string", "minLength": 1 },
44
+ "candidateSha256": { "$ref": "#/$defs/hash" },
45
+ "sourceFingerprint": { "type": "string", "pattern": "^(?:sha256:)?[a-f0-9]{64}$" },
46
+ "deliveryPacketPath": { "type": "string", "minLength": 1 },
47
+ "pathClosure": { "$ref": "#/$defs/pathClosure" },
48
+ "materializationProof": { "$ref": "#/$defs/materializationProof" }
49
+ }
50
+ },
51
+ "coreBinding": {
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "required": ["workspaceRoot", "fromCore"],
55
+ "properties": {
56
+ "workspaceRoot": { "type": "string", "minLength": 1 },
57
+ "fromCore": { "$ref": "#/$defs/core" }
58
+ }
59
+ },
60
+ "pathClosure": {
61
+ "type": "object",
62
+ "required": ["schemaVersion", "status", "exitCode", "includedPaths", "issueCodes", "closureSha256", "authorizationGranted"],
63
+ "properties": {
64
+ "schemaVersion": { "const": "OwlCodaRunKitSourceCandidatePathClosureV1" },
65
+ "status": { "const": "valid" },
66
+ "exitCode": { "const": 0 },
67
+ "includedPaths": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
68
+ "includedDirtyPaths": { "type": "array", "items": { "type": "string" } },
69
+ "candidateCoveredPaths": { "type": "array", "items": { "type": "string" } },
70
+ "uncoveredDirtyPaths": { "type": "array", "maxItems": 0, "items": { "type": "string" } },
71
+ "issueCodes": { "type": "array", "maxItems": 0, "items": { "type": "string" } },
72
+ "candidateSha256": { "$ref": "#/$defs/hash" },
73
+ "payloadSha256": { "$ref": "#/$defs/hash" },
74
+ "closureSha256": { "$ref": "#/$defs/hash" },
75
+ "authorizationGranted": { "const": false }
76
+ }
77
+ },
78
+ "materializationProof": {
79
+ "type": "object",
80
+ "additionalProperties": false,
81
+ "required": ["candidateSha256", "payloadSha256", "materializedCore", "matchesToCore"],
82
+ "properties": {
83
+ "candidateSha256": { "$ref": "#/$defs/hash" },
84
+ "payloadSha256": { "$ref": "#/$defs/hash" },
85
+ "materializedCore": { "$ref": "#/$defs/core" },
86
+ "matchesToCore": { "const": true }
87
+ }
88
+ },
89
+ "fleetRequest": {
90
+ "type": "object",
91
+ "properties": {
92
+ "workspaceRoots": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
93
+ "fleetRoots": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
94
+ "fleetManifestPath": { "type": "string", "minLength": 1 }
95
+ }
96
+ },
97
+ "discovery": {
98
+ "type": "object",
99
+ "additionalProperties": false,
100
+ "required": ["schemaVersion", "source", "coverageRoots", "unreachableRoots", "workspaceRoots", "complete", "frozenManifestSha256", "authorizationGranted"],
101
+ "properties": {
102
+ "schemaVersion": { "const": "OwlCodaRunKitFleetDiscoveryV1" },
103
+ "source": { "type": "string", "minLength": 1 },
104
+ "manifestPath": { "type": "string", "minLength": 1 },
105
+ "coverageRoots": { "type": "array", "items": { "type": "string" } },
106
+ "unreachableRoots": { "type": "array", "items": { "type": "string" } },
107
+ "workspaceRoots": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
108
+ "complete": { "const": true },
109
+ "frozenManifestSha256": { "$ref": "#/$defs/hash" },
110
+ "authorizationGranted": { "const": false }
111
+ }
112
+ },
113
+ "migration": {
114
+ "type": "object",
115
+ "additionalProperties": false,
116
+ "required": ["completeFleetRequired", "globalPreflightBeforeWrites", "ownerMigrationAuthorityRequired", "migrationScope", "projectOrder"],
117
+ "properties": {
118
+ "completeFleetRequired": { "const": true },
119
+ "globalPreflightBeforeWrites": { "const": true },
120
+ "ownerMigrationAuthorityRequired": { "const": true },
121
+ "migrationScope": { "const": "project_runkit_config_and_local_migration_receipt_only" },
122
+ "projectOrder": { "const": "canonical_workspace_root" }
123
+ }
124
+ },
125
+ "actions": {
126
+ "type": "object",
127
+ "additionalProperties": false,
128
+ "required": ["stage", "commit", "push", "publish", "deploy"],
129
+ "properties": { "stage": { "const": false }, "commit": { "const": false }, "push": { "const": false }, "publish": { "const": false }, "deploy": { "const": false } }
130
+ }
131
+ },
132
+ "examples": [{
133
+ "schemaVersion": "OwlCodaRunKitCoreSuccessorPlanV1",
134
+ "planId": "successor-001",
135
+ "status": "frozen",
136
+ "fromCore": { "contractVersion": "0.2", "coreVersion": "0.15.1", "coreManifestSha256": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "coreSourceRef": "artifact:sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" },
137
+ "fromCoreMode": "uniform",
138
+ "fromCoreSetSha256": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
139
+ "fleetCoreBindings": [{ "workspaceRoot": "/fleet/project", "fromCore": { "contractVersion": "0.2", "coreVersion": "0.15.1", "coreManifestSha256": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "coreSourceRef": "artifact:sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } }],
140
+ "toCore": { "contractVersion": "0.2", "coreVersion": "0.16.0", "coreManifestSha256": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "coreSourceRef": "artifact:sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" },
141
+ "sourceCandidate": {
142
+ "candidatePath": ".owlcoda/runkit/source.json",
143
+ "candidateSha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
144
+ "sourceFingerprint": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
145
+ "pathClosure": { "schemaVersion": "OwlCodaRunKitSourceCandidatePathClosureV1", "status": "valid", "exitCode": 0, "includedPaths": ["scripts/runkit-contract/**"], "issueCodes": [], "closureSha256": "sha256:2222222222222222222222222222222222222222222222222222222222222222", "authorizationGranted": false },
146
+ "materializationProof": { "candidateSha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "payloadSha256": "sha256:3333333333333333333333333333333333333333333333333333333333333333", "materializedCore": { "contractVersion": "0.2", "coreVersion": "0.16.0", "coreManifestSha256": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "coreSourceRef": "artifact:sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" }, "matchesToCore": true }
147
+ },
148
+ "fleetDiscoveryRequest": { "fleetRoots": ["/fleet"] },
149
+ "fleetDiscovery": { "schemaVersion": "OwlCodaRunKitFleetDiscoveryV1", "source": "fleet_roots", "coverageRoots": ["/fleet"], "unreachableRoots": [], "workspaceRoots": ["/fleet/project"], "complete": true, "frozenManifestSha256": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", "authorizationGranted": false },
150
+ "migrationContract": { "completeFleetRequired": true, "globalPreflightBeforeWrites": true, "ownerMigrationAuthorityRequired": true, "migrationScope": "project_runkit_config_and_local_migration_receipt_only", "projectOrder": "canonical_workspace_root" },
151
+ "repositoryActions": { "stage": false, "commit": false, "push": false, "publish": false, "deploy": false },
152
+ "authorizationGranted": false,
153
+ "planSha256": "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
154
+ }]
155
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.dev/schemas/runkit/core-successor-project-success-receipt-v1.json",
4
+ "title": "OwlCoda RunKit Core Successor Project Success Receipt V1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "receiptId", "attemptNumber", "priorAttemptReceiptSha256", "workspaceRoot", "fromCore", "toCore", "planSha256", "ownerAuthoritySha256", "fleetManifestSha256", "migrationStatus", "migrationReceiptPath", "migrationReceiptSha256", "postConfigSha256", "repositoryActions", "authorizationGranted", "receiptSha256"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "OwlCodaRunKitCoreSuccessorProjectSuccessReceiptV1" },
10
+ "receiptId": { "type": "string", "minLength": 1 },
11
+ "attemptNumber": { "type": "integer", "minimum": 1 },
12
+ "priorAttemptReceiptSha256": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/hash" }] },
13
+ "workspaceRoot": { "type": "string", "minLength": 1 },
14
+ "fromCore": { "$ref": "#/$defs/core" },
15
+ "toCore": { "$ref": "#/$defs/core" },
16
+ "planSha256": { "$ref": "#/$defs/hash" },
17
+ "ownerAuthoritySha256": { "$ref": "#/$defs/hash" },
18
+ "fleetManifestSha256": { "$ref": "#/$defs/hash" },
19
+ "migrationStatus": { "enum": ["upgraded", "initialized"] },
20
+ "migrationReceiptPath": { "type": "string", "minLength": 1 },
21
+ "migrationReceiptSha256": { "$ref": "#/$defs/hash" },
22
+ "postConfigSha256": { "$ref": "#/$defs/hash" },
23
+ "repositoryActions": { "$ref": "#/$defs/actions" },
24
+ "authorizationGranted": { "const": false },
25
+ "receiptSha256": { "$ref": "#/$defs/hash" }
26
+ },
27
+ "$defs": {
28
+ "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
29
+ "core": {
30
+ "type": "object",
31
+ "additionalProperties": false,
32
+ "required": ["contractVersion", "coreVersion", "coreManifestSha256", "coreSourceRef"],
33
+ "properties": {
34
+ "contractVersion": { "type": "string", "minLength": 1 },
35
+ "coreVersion": { "type": "string", "minLength": 1 },
36
+ "coreManifestSha256": { "$ref": "#/$defs/hash" },
37
+ "coreSourceRef": { "type": "string", "minLength": 1 }
38
+ }
39
+ },
40
+ "actions": {
41
+ "type": "object",
42
+ "additionalProperties": false,
43
+ "required": ["stage", "commit", "push", "publish", "deploy"],
44
+ "properties": {
45
+ "stage": { "const": false },
46
+ "commit": { "const": false },
47
+ "push": { "const": false },
48
+ "publish": { "const": false },
49
+ "deploy": { "const": false }
50
+ }
51
+ }
52
+ },
53
+ "examples": [{
54
+ "schemaVersion": "OwlCodaRunKitCoreSuccessorProjectSuccessReceiptV1",
55
+ "receiptId": "apply-001",
56
+ "attemptNumber": 1,
57
+ "priorAttemptReceiptSha256": null,
58
+ "workspaceRoot": "/fleet/project",
59
+ "fromCore": { "contractVersion": "0.2", "coreVersion": "0.15.1", "coreManifestSha256": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "coreSourceRef": "artifact:sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" },
60
+ "toCore": { "contractVersion": "0.2", "coreVersion": "0.16.0", "coreManifestSha256": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "coreSourceRef": "artifact:sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" },
61
+ "planSha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
62
+ "ownerAuthoritySha256": "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
63
+ "fleetManifestSha256": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
64
+ "migrationStatus": "upgraded",
65
+ "migrationReceiptPath": ".owlcoda/runkit/config-migration-receipts/upgrade.json",
66
+ "migrationReceiptSha256": "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
67
+ "postConfigSha256": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
68
+ "repositoryActions": { "stage": false, "commit": false, "push": false, "publish": false, "deploy": false },
69
+ "authorizationGranted": false,
70
+ "receiptSha256": "sha256:2222222222222222222222222222222222222222222222222222222222222222"
71
+ }]
72
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.dev/schemas/runkit/deployment-execute-request-v1.json",
4
+ "title": "OwlCoda RunKit Deployment Execute Request V1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "executeRunId", "executeGoal", "prepareReceiptSha256", "target", "ownerAuthority", "ownerDecision", "ownerDecisionSnapshot", "workItemId", "profileId", "resourcePreflight", "deploy", "destructive"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "OwlCodaRunKitDeploymentExecuteRequestV1" },
10
+ "executeRunId": { "$ref": "#/$defs/id" },
11
+ "executeGoal": { "$ref": "#/$defs/descriptor" },
12
+ "prepareReceiptSha256": { "$ref": "#/$defs/hash" },
13
+ "target": { "$ref": "#/$defs/target" },
14
+ "ownerAuthority": { "$ref": "#/$defs/descriptor" },
15
+ "ownerDecision": { "$ref": "#/$defs/descriptor" },
16
+ "ownerDecisionSnapshot": { "$ref": "#/$defs/descriptor" },
17
+ "workItemId": { "$ref": "#/$defs/id" },
18
+ "profileId": { "$ref": "#/$defs/id" },
19
+ "resourcePreflight": { "$ref": "#/$defs/descriptor" },
20
+ "deploy": { "const": true },
21
+ "destructive": { "type": "boolean" }
22
+ },
23
+ "$defs": {
24
+ "id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" },
25
+ "hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
26
+ "descriptor": {
27
+ "type": "object",
28
+ "additionalProperties": false,
29
+ "required": ["path", "sha256"],
30
+ "properties": { "path": { "type": "string", "minLength": 1 }, "sha256": { "$ref": "#/$defs/hash" } }
31
+ },
32
+ "target": {
33
+ "type": "object",
34
+ "additionalProperties": false,
35
+ "required": ["schemaVersion", "targetId", "environment", "host", "port", "user", "hostKeySha256", "machineIdentitySha256"],
36
+ "properties": {
37
+ "schemaVersion": { "const": "OwlCodaRunKitRemoteTargetV1" },
38
+ "targetId": { "$ref": "#/$defs/id" },
39
+ "environment": { "$ref": "#/$defs/id" },
40
+ "host": { "type": "string", "minLength": 1 },
41
+ "port": { "type": "integer", "minimum": 1, "maximum": 65535 },
42
+ "user": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9._-]*$" },
43
+ "hostKeySha256": { "$ref": "#/$defs/hash" },
44
+ "machineIdentitySha256": { "$ref": "#/$defs/hash" }
45
+ }
46
+ }
47
+ },
48
+ "examples": [{
49
+ "schemaVersion": "OwlCodaRunKitDeploymentExecuteRequestV1",
50
+ "executeRunId": "deployment-execute-001",
51
+ "executeGoal": { "path": ".owlcoda/runkit/executions/deployment-execute-001/goal-contract.json", "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" },
52
+ "prepareReceiptSha256": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
53
+ "target": { "schemaVersion": "OwlCodaRunKitRemoteTargetV1", "targetId": "vm-production-01", "environment": "production", "host": "deploy.example.invalid", "port": 22, "user": "deploy", "hostKeySha256": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "machineIdentitySha256": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" },
54
+ "ownerAuthority": { "path": "authorities/deployment-execute-001.json", "sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" },
55
+ "ownerDecision": { "path": "authorities/owner-deployment-decision-001.json", "sha256": "1111111111111111111111111111111111111111111111111111111111111111" },
56
+ "ownerDecisionSnapshot": { "path": ".owlcoda/runkit/deployments/deployment-execute-001/owner-decision-snapshot.json", "sha256": "2222222222222222222222222222222222222222222222222222222222222222" },
57
+ "workItemId": "deployment-execute",
58
+ "profileId": "deployment",
59
+ "resourcePreflight": { "path": ".owlcoda/runkit/executions/deployment-execute-001/resource-preflights/deployment.json", "sha256": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" },
60
+ "deploy": true,
61
+ "destructive": false
62
+ }]
63
+ }