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.
- package/CHANGELOG.md +80 -0
- package/README.md +223 -52
- package/docs/architecture/OWLCODA_RUNKIT_0184_EXTERNAL_DELIVERY_INTAKE_PRODUCT_DECISION_20260812.md +209 -0
- package/docs/architecture/OWLCODA_RUNKIT_0190_CONSOLIDATED_DAILY_USE_PRODUCT_DECISION_20260812.md +97 -0
- package/docs/architecture/OWLCODA_RUNKIT_USAGE_MODE_SELECTION_PRODUCT_DECISION_20260811.md +8 -7
- package/docs/architecture/OWLCODA_RUN_KIT_CONTRACT_V0_2.md +57 -0
- package/integrations/codex/skills/owlcoda-runkit/SKILL.md +133 -77
- package/integrations/codex/skills/owlcoda-runkit/assets/templates/config.json +3 -3
- package/integrations/codex/skills/owlcoda-runkit/references/contract-v0.2.md +57 -0
- package/package.json +1 -1
- package/packages/attest/README.md +9 -5
- package/packages/attest/consumer-surface-v2.json +263 -0
- package/packages/attest/distribution-manifest-v1.json +14 -1
- package/packages/attest/schemas/quick-verification-receipt-v3.schema.json +244 -0
- package/packages/attest/schemas/workspace-snapshot-v2.schema.json +114 -0
- package/packages/attest/src/dependency-environment.mjs +128 -0
- package/packages/attest/src/index.mjs +1 -0
- package/packages/attest/src/quick-receipt-contract.mjs +205 -12
- package/packages/attest/src/quick.mjs +45 -4
- package/packages/attest/src/workspace-snapshot.mjs +143 -7
- package/registry-release-policy-v1.json +5 -5
- package/sbom.spdx.json +5 -5
- package/scripts/runkit-contract/assurance-router.mjs +25 -6
- package/scripts/runkit-contract/core-contract.mjs +29 -1
- package/scripts/runkit-contract/efficiency-metrics.mjs +559 -0
- package/scripts/runkit-contract/evidence-store.mjs +130 -0
- package/scripts/runkit-contract/onboarding-bootstrap.mjs +685 -0
- package/scripts/runkit-contract/onboarding-doctor.mjs +3 -2
- package/scripts/runkit-contract/outcome-presentation.mjs +171 -0
- package/scripts/runkit-contract/profile-onboarding.mjs +285 -17
- package/scripts/runkit-contract/project-cli-resolver.mjs +29 -5
- package/scripts/runkit-contract/project-external-delivery.mjs +707 -0
- package/scripts/runkit-contract/quick-evidence-reuse.mjs +590 -0
- package/scripts/runkit-contract/quick-isolation.mjs +314 -0
- package/scripts/runkit-contract/quick-metrics.mjs +51 -3
- package/scripts/runkit-contract/quick-receipt.mjs +31 -1
- package/scripts/runkit-contract/quick-verify.mjs +217 -26
- package/scripts/runkit-contract/quick-workspace-snapshot.mjs +1 -0
- package/scripts/runkit-contract/runkit-bootstrap.mjs +7 -1
- package/scripts/runkit-contract/runkit-cli.mjs +602 -152
- package/scripts/runkit-contract/runtime-transition.mjs +478 -0
- package/scripts/runkit-contract/schemas/assurance-route-v2.schema.json +26 -0
- package/scripts/runkit-contract/schemas/efficiency-event-v1.schema.json +56 -0
- package/scripts/runkit-contract/schemas/efficiency-metrics-v1.schema.json +220 -0
- package/scripts/runkit-contract/schemas/external-runtime-report-v1.schema.json +125 -0
- package/scripts/runkit-contract/schemas/onboarding-bootstrap-plan-v1.schema.json +168 -0
- package/scripts/runkit-contract/schemas/onboarding-bootstrap-receipt-v1.schema.json +130 -0
- package/scripts/runkit-contract/schemas/outcome-summary-v1.schema.json +83 -0
- package/scripts/runkit-contract/schemas/profile-detection-v3.schema.json +170 -0
- package/scripts/runkit-contract/schemas/quick-evidence-reuse-plan-v1.schema.json +59 -0
- package/scripts/runkit-contract/schemas/quick-evidence-reuse-receipt-v1.schema.json +79 -0
- package/scripts/runkit-contract/schemas/runtime-transition-receipt-v1.schema.json +185 -0
- package/scripts/runkit-contract/schemas/team-project-event-v3.schema.json +146 -0
- package/scripts/runkit-contract/schemas/team-project-event-v4.schema.json +142 -0
- package/scripts/runkit-contract/schemas/team-project-status-v2.schema.json +85 -0
- package/scripts/runkit-contract/schemas/usage-mode-recommendation-v2.schema.json +136 -0
- package/scripts/runkit-contract/team-project.mjs +1172 -22
- package/scripts/runkit-contract/usage-mode.mjs +28 -7
- package/scripts/runkit-contract/verification-envelope.mjs +15 -18
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "OwlCodaRunKitConsumerSurfaceManifestV2",
|
|
3
|
+
"consumerSurface": "unsigned_v2",
|
|
4
|
+
"status": "candidate",
|
|
5
|
+
"commands": [
|
|
6
|
+
{
|
|
7
|
+
"id": "quick_verify",
|
|
8
|
+
"invocation": "npx --no-install owlrunkit quick-verify [--isolate] [--dependency-root <path>] [--bind-ignored <path>...] -- <executable> [args...]",
|
|
9
|
+
"lane": "Quick Verification",
|
|
10
|
+
"mutation": "writes one project-local Quick receipt and bound output artifacts",
|
|
11
|
+
"runKitControlPlaneNetworkRequests": 0,
|
|
12
|
+
"childCommandNetworkPolicy": "caller_owned_not_restricted_or_measured",
|
|
13
|
+
"authorizationGranted": false
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "attest",
|
|
17
|
+
"invocation": "owlcoda attest <receipt> --workspace <path> [--json]",
|
|
18
|
+
"lane": "read-only consumer",
|
|
19
|
+
"mutation": "none",
|
|
20
|
+
"networkRequests": 0,
|
|
21
|
+
"authorizationGranted": false
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "resolve",
|
|
25
|
+
"invocation": "owlcoda resolve <reference> --store <path> [--store <path>...] [--workspace <path>] [--json]",
|
|
26
|
+
"lane": "read-only consumer",
|
|
27
|
+
"mutation": "none",
|
|
28
|
+
"networkRequests": 0,
|
|
29
|
+
"authorizationGranted": false
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "repair",
|
|
33
|
+
"invocation": "owlcoda runkit repair --run-id <run-id> [--json]",
|
|
34
|
+
"lane": "Formal Delivery recovery",
|
|
35
|
+
"mutation": "appends a repair plan, attempt, replacement packet, and receipt lineage when authorized by the active execution",
|
|
36
|
+
"runKitControlPlaneNetworkRequests": 0,
|
|
37
|
+
"childCommandNetworkPolicy": "caller_owned_not_restricted_or_measured",
|
|
38
|
+
"authorizationGranted": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "store_export",
|
|
42
|
+
"invocation": "owlcoda runkit store export --receipt <path> --output <path> [--json]",
|
|
43
|
+
"lane": "offline transfer producer",
|
|
44
|
+
"mutation": "creates one new exact-byte offline bundle and refuses overwrite",
|
|
45
|
+
"networkRequests": 0,
|
|
46
|
+
"authorizationGranted": false
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "store_import",
|
|
50
|
+
"invocation": "owlcoda runkit store import --bundle <path> --store <path> [--json]",
|
|
51
|
+
"lane": "offline transfer consumer",
|
|
52
|
+
"mutation": "imports exact receipt bytes idempotently and refuses byte conflicts",
|
|
53
|
+
"networkRequests": 0,
|
|
54
|
+
"authorizationGranted": false
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "local_metrics",
|
|
58
|
+
"invocation": "owlcoda runkit metrics --local [--json]",
|
|
59
|
+
"lane": "local inspection",
|
|
60
|
+
"mutation": "none",
|
|
61
|
+
"networkRequests": 0,
|
|
62
|
+
"authorizationGranted": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "standalone_attest",
|
|
66
|
+
"invocation": "owlcoda-attest attest <receipt-or-bundle.json> [--workspace <path>] [--json]",
|
|
67
|
+
"lane": "standalone read-only consumer",
|
|
68
|
+
"mutation": "none",
|
|
69
|
+
"networkRequests": 0,
|
|
70
|
+
"authorizationGranted": false
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "standalone_resolve",
|
|
74
|
+
"invocation": "owlcoda-attest resolve <attestation-ref.json> --store <path> [--store <path>...] [--workspace <path>] [--json]",
|
|
75
|
+
"lane": "standalone read-only consumer",
|
|
76
|
+
"mutation": "none",
|
|
77
|
+
"networkRequests": 0,
|
|
78
|
+
"authorizationGranted": false
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"schemas": [
|
|
82
|
+
"OwlCodaAttestationRefV1",
|
|
83
|
+
"OwlCodaAttestationResultV1",
|
|
84
|
+
"OwlCodaOfflineAttestationBundleV1",
|
|
85
|
+
"OwlCodaQuickVerificationReceiptV1",
|
|
86
|
+
"OwlCodaQuickVerificationReceiptV2",
|
|
87
|
+
"OwlCodaQuickVerificationReceiptV3",
|
|
88
|
+
"OwlCodaRunKitPublicVerificationBundleV1",
|
|
89
|
+
"OwlCodaWorkspaceSnapshotV1",
|
|
90
|
+
"OwlCodaWorkspaceSnapshotV2"
|
|
91
|
+
],
|
|
92
|
+
"attestationReference": {
|
|
93
|
+
"schemaVersion": "OwlCodaAttestationRefV1",
|
|
94
|
+
"requiredKeys": [
|
|
95
|
+
"schemaVersion",
|
|
96
|
+
"receiptId",
|
|
97
|
+
"receiptSha256",
|
|
98
|
+
"coreIdentity"
|
|
99
|
+
],
|
|
100
|
+
"coreIdentityRequiredKeys": [
|
|
101
|
+
"contractVersion",
|
|
102
|
+
"coreManifestSha256"
|
|
103
|
+
],
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"locationHints": false
|
|
106
|
+
},
|
|
107
|
+
"outcomes": {
|
|
108
|
+
"attestationDecisions": [
|
|
109
|
+
"GO",
|
|
110
|
+
"NO_GO",
|
|
111
|
+
"INDETERMINATE"
|
|
112
|
+
],
|
|
113
|
+
"resolutionStatuses": {
|
|
114
|
+
"resolved_valid": 0,
|
|
115
|
+
"resolved_invalid": 1,
|
|
116
|
+
"resolved_indeterminate": 3,
|
|
117
|
+
"ambiguous": 1,
|
|
118
|
+
"not_found": 3
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"assurance": {
|
|
122
|
+
"quickLane": "captured_verification",
|
|
123
|
+
"formalLane": "receipt_backed_delivery",
|
|
124
|
+
"quickCanSatisfyFormalAcceptance": false,
|
|
125
|
+
"signatureRequired": false,
|
|
126
|
+
"signatureAbsentIssueCode": "signature_absent",
|
|
127
|
+
"quickWithoutWorkspace": {
|
|
128
|
+
"otherwiseValidDecision": "INDETERMINATE",
|
|
129
|
+
"deterministicallyInvalidDecision": "NO_GO"
|
|
130
|
+
},
|
|
131
|
+
"independentReviewRequiredForFormalHighRisk": true,
|
|
132
|
+
"authorizationDerivedFromReceipt": false
|
|
133
|
+
},
|
|
134
|
+
"compatibility": {
|
|
135
|
+
"policy": "N verifies N and declared N-1 producer identities; N-1 is not required to trust an undeclared future producer identity",
|
|
136
|
+
"historicalBytesRewritten": false,
|
|
137
|
+
"scenarios": [
|
|
138
|
+
{
|
|
139
|
+
"id": "clean_first_use",
|
|
140
|
+
"evidencePath": "scripts/runkit-wave1-fresh-checkout-smoke.mjs"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "dirty_workspace",
|
|
144
|
+
"evidencePath": "tests/runkit-contract/quick-verification.workflow.test.mjs"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "offline_export_import_resolve",
|
|
148
|
+
"evidencePath": "tests/runkit-contract/wave4-offline-store.test.mjs"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"id": "n_minus_one_upgrade",
|
|
152
|
+
"evidencePath": "tests/runkit-contract/wave4-distribution-compatibility.test.mjs"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"id": "rollback",
|
|
156
|
+
"evidencePath": "tests/runkit-contract/wave4-distribution-compatibility.test.mjs"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"id": "historical_unsigned_receipt",
|
|
160
|
+
"evidencePath": "tests/runkit-contract/wave4-distribution-compatibility.test.mjs"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "source_drift_repair",
|
|
164
|
+
"evidencePath": "tests/runkit-contract/repair-execution.workflow.test.mjs"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": "failed_repair_lineage",
|
|
168
|
+
"evidencePath": "tests/runkit-contract/repair-execution.workflow.test.mjs"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
"privacy": {
|
|
173
|
+
"defaultNetworkRequests": 0,
|
|
174
|
+
"defaultNetworkRequestsScope": "RunKit control plane only; a captured or replayed child command is caller-owned, unrestricted, and unmeasured",
|
|
175
|
+
"telemetry": false,
|
|
176
|
+
"credentialsRequired": false,
|
|
177
|
+
"hostedServiceRequired": false,
|
|
178
|
+
"receiptContentsMayContainCommandArgumentsAndPaths": true,
|
|
179
|
+
"operatorMustReviewBeforeExternalSharing": true
|
|
180
|
+
},
|
|
181
|
+
"metrics": {
|
|
182
|
+
"command": "owlcoda runkit metrics --local [--json]",
|
|
183
|
+
"localOnly": true,
|
|
184
|
+
"optInInspection": true,
|
|
185
|
+
"telemetry": false,
|
|
186
|
+
"networkRequests": 0,
|
|
187
|
+
"performanceTarget": false,
|
|
188
|
+
"automaticallyRecordsIndependentConsumption": false,
|
|
189
|
+
"statement": "Local totals describe project receipt state; independent consumption is evidenced by caller-owned attestation results, never hidden instrumentation."
|
|
190
|
+
},
|
|
191
|
+
"issueCodes": {
|
|
192
|
+
"ACCEPTED_AUTHORITY_GRANTED": "A Formal bundle marked accepted while its closeout grants authority.",
|
|
193
|
+
"ACCEPTED_RECEIPT_NOT_PASSED": "A Formal bundle marked accepted while its active receipt did not pass.",
|
|
194
|
+
"ACTIVE_RECEIPT_CONTEXT_BINDING_MISMATCH": "The active Formal receipt context does not match the declared verification context.",
|
|
195
|
+
"ACTIVE_RECEIPT_SOURCE_BINDING_MISMATCH": "The active Formal receipt source does not match the declared source fingerprint.",
|
|
196
|
+
"CANONICAL_JSON_INVALID": "Canonical JSON computation failed at a public Formal artifact boundary.",
|
|
197
|
+
"CLOSEOUT_ACTIVE_RECEIPT_MISMATCH": "The Formal closeout does not bind the active receipt.",
|
|
198
|
+
"CLOSEOUT_CONTEXT_BINDING_MISMATCH": "The Formal closeout context does not bind the declared verification context.",
|
|
199
|
+
"CLOSEOUT_SOURCE_BINDING_MISMATCH": "The Formal closeout source does not bind the declared source fingerprint.",
|
|
200
|
+
"DUPLICATE_OBJECT_KEY": "A Formal JSON input contains a duplicate object key.",
|
|
201
|
+
"EXTERNAL_AUTHORITY_GRANTED": "A public Formal bundle attempts to grant external authority.",
|
|
202
|
+
"INPUT_FILE_INVALID": "A Formal verifier input file cannot be read under the public file boundary.",
|
|
203
|
+
"INPUT_JSON_INVALID": "A Formal verifier input is not strict valid JSON.",
|
|
204
|
+
"INPUT_SIZE_LIMIT_EXCEEDED": "A Formal verifier input exceeds the deterministic byte limit.",
|
|
205
|
+
"JSON_NESTING_LIMIT_EXCEEDED": "A Formal verifier input exceeds the deterministic nesting limit.",
|
|
206
|
+
"JSON_NODE_LIMIT_EXCEEDED": "A Formal verifier input exceeds the deterministic JSON node limit.",
|
|
207
|
+
"PUBLIC_BUNDLE_SHAPE_INVALID": "A Formal public bundle has an unknown, missing, or extra field.",
|
|
208
|
+
"RECEIPT_AUTHORITY_GRANTED": "A Formal receipt attempts to grant external authority.",
|
|
209
|
+
"RECEIPT_COUNT_LIMIT_EXCEEDED": "A Formal bundle exceeds the deterministic receipt-count limit.",
|
|
210
|
+
"RECEIPT_ID_DUPLICATE": "A Formal receipt identifier appears more than once.",
|
|
211
|
+
"RECEIPT_LINEAGE_CYCLE": "Formal replacement lineage contains a cycle.",
|
|
212
|
+
"RECEIPT_LINEAGE_MULTIPLE_ACTIVE_LEAVES": "Formal replacement lineage has more than one active leaf.",
|
|
213
|
+
"RECEIPT_LINEAGE_NO_ACTIVE_LEAF": "Formal replacement lineage has no active leaf.",
|
|
214
|
+
"RECEIPT_LINEAGE_ORPHAN": "A Formal replacement references a parent absent from earlier append-only lineage.",
|
|
215
|
+
"SOURCE_FINGERPRINT_MISMATCH": "The Formal source payload does not match its declared fingerprint.",
|
|
216
|
+
"VERIFICATION_CONTEXT_FINGERPRINT_MISMATCH": "The Formal verification context does not match its declared fingerprint.",
|
|
217
|
+
"anchor_absent": "No external checkpoint or timestamp anchor was checked; unsigned V1 remains usable under local policy.",
|
|
218
|
+
"attestation_material_missing": "A receipt-bound output material is unavailable, so the result is indeterminate rather than silently accepted.",
|
|
219
|
+
"attestation_target_ambiguous": "More than one byte-distinct local receipt matches the reference.",
|
|
220
|
+
"attestation_target_not_found": "No receipt matching the exact local reference was found in the supplied stores.",
|
|
221
|
+
"bound_ignored_path_mutated_during_verification": "An explicitly bound ignored workspace path changed while the command ran.",
|
|
222
|
+
"consumer_source_mutated_during_verification": "The exact command changed Git-visible source in the disposable consumer.",
|
|
223
|
+
"core_identity_mismatch": "The receipt producer Core identity is not declared by this verifier.",
|
|
224
|
+
"current_workspace_not_checked": "No explicit workspace was selected, so Quick attestation did not read output paths or compare current checkout bytes.",
|
|
225
|
+
"dependency_environment_mutated_during_verification": "Bound dependency resolution metadata changed while the command ran.",
|
|
226
|
+
"quick_ignored_artifact_unbound": "Git-ignored outputs are not bound unless an explicit artifact contract names and hashes them.",
|
|
227
|
+
"quick_isolation_cleanup_failed": "The disposable consumer could not be removed after verification.",
|
|
228
|
+
"quick_receipt_store_invalid": "The project-local receipt store failed its path or file integrity boundary.",
|
|
229
|
+
"receipt_duplicate_key": "The receipt contains a duplicate JSON object key.",
|
|
230
|
+
"receipt_dependency_environment_mismatch": "Current bound dependency metadata differs from the receipt.",
|
|
231
|
+
"receipt_material_hash_mismatch": "A receipt-bound material differs from its recorded bytes, hash, or size.",
|
|
232
|
+
"receipt_schema_invalid": "The receipt does not satisfy the strict supported schema.",
|
|
233
|
+
"receipt_source_mismatch": "The selected workspace source does not match the receipt-bound source.",
|
|
234
|
+
"repair_plan_incomplete": "A deterministic repair plan cannot safely replay every required command and binding.",
|
|
235
|
+
"repair_replay_failed": "A replay command failed; the failed attempt and earlier lineage remain append-only.",
|
|
236
|
+
"signature_absent": "No receipt signature is present or checked; this is expected under unsigned V1 and proves no signer identity.",
|
|
237
|
+
"source_mutated_during_verification": "Source bytes changed while the command was running.",
|
|
238
|
+
"verification_command_failed": "The captured verification command did not exit successfully.",
|
|
239
|
+
"verification_context_mismatch": "The current runtime context differs from the receipt-bound runtime context."
|
|
240
|
+
},
|
|
241
|
+
"unsupportedClaims": [
|
|
242
|
+
"unsigned_receipt_proves_signer_identity",
|
|
243
|
+
"unsigned_receipt_proves_independent_machine_or_organization",
|
|
244
|
+
"issued_at_proves_trusted_wall_clock_time",
|
|
245
|
+
"unsigned_receipt_proves_external_existence_before_a_time",
|
|
246
|
+
"ignored_artifact_is_bound_without_explicit_artifact_contract",
|
|
247
|
+
"quick_receipt_proves_formal_acceptance",
|
|
248
|
+
"receipt_grants_git_release_or_business_authority",
|
|
249
|
+
"captured_or_replayed_child_command_has_zero_network",
|
|
250
|
+
"local_metrics_are_independent_consumption_events"
|
|
251
|
+
],
|
|
252
|
+
"integration": {
|
|
253
|
+
"persist": "OwlCodaAttestationRefV1 plus the referenced receipt bytes",
|
|
254
|
+
"consume": "attest or resolve through a declared command or the standalone package",
|
|
255
|
+
"doNotImport": [
|
|
256
|
+
"private RunKit mutation Core",
|
|
257
|
+
"Desktop or App Server internals",
|
|
258
|
+
"project-private receipt-store layout"
|
|
259
|
+
],
|
|
260
|
+
"futureSignedProfile": "additive; producer command and AttestationRefV1 shape remain unchanged"
|
|
261
|
+
},
|
|
262
|
+
"authorizationGranted": false
|
|
263
|
+
}
|
|
@@ -14,8 +14,10 @@
|
|
|
14
14
|
"OwlCodaOfflineAttestationBundleV1",
|
|
15
15
|
"OwlCodaQuickVerificationReceiptV1",
|
|
16
16
|
"OwlCodaQuickVerificationReceiptV2",
|
|
17
|
+
"OwlCodaQuickVerificationReceiptV3",
|
|
17
18
|
"OwlCodaRunKitPublicVerificationBundleV1",
|
|
18
|
-
"OwlCodaWorkspaceSnapshotV1"
|
|
19
|
+
"OwlCodaWorkspaceSnapshotV1",
|
|
20
|
+
"OwlCodaWorkspaceSnapshotV2"
|
|
19
21
|
]
|
|
20
22
|
},
|
|
21
23
|
"nMinusOne": {
|
|
@@ -37,6 +39,16 @@
|
|
|
37
39
|
"sha256": "sha256:3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
|
38
40
|
},
|
|
39
41
|
"supportedProducerCoreIdentities": [
|
|
42
|
+
{
|
|
43
|
+
"contractVersion": "0.2",
|
|
44
|
+
"coreVersion": "0.19.0",
|
|
45
|
+
"coreManifestSha256": "sha256:803fb7de76a6ccffd1ec5e0164eeff15a580209fa6dfbef9e561345ab616b403"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"contractVersion": "0.2",
|
|
49
|
+
"coreVersion": "0.18.4",
|
|
50
|
+
"coreManifestSha256": "sha256:372d4c247e4b40b0fd2f3fe0f5bf928548095bfb7e2e92e9ac66790e2717f77d"
|
|
51
|
+
},
|
|
40
52
|
{
|
|
41
53
|
"contractVersion": "0.2",
|
|
42
54
|
"coreVersion": "0.18.3",
|
|
@@ -141,6 +153,7 @@
|
|
|
141
153
|
"includedRoots": [
|
|
142
154
|
"cli/",
|
|
143
155
|
"consumer-surface-v1.json",
|
|
156
|
+
"consumer-surface-v2.json",
|
|
144
157
|
"fixtures/",
|
|
145
158
|
"LICENSE",
|
|
146
159
|
"schemas/",
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://owlcoda.dev/schemas/runkit/trust/quick-verification-receipt-v3.schema.json",
|
|
4
|
+
"title": "OwlCoda Quick Verification Receipt V3",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"receiptId",
|
|
10
|
+
"assurance",
|
|
11
|
+
"authorizationGranted",
|
|
12
|
+
"coreIdentity",
|
|
13
|
+
"workspaceBefore",
|
|
14
|
+
"sourceWorkspaceRoot",
|
|
15
|
+
"exactCommand",
|
|
16
|
+
"executionIsolation",
|
|
17
|
+
"mutationClasses",
|
|
18
|
+
"verificationContext",
|
|
19
|
+
"startedAt",
|
|
20
|
+
"finishedAt",
|
|
21
|
+
"exitResult",
|
|
22
|
+
"outputArtifacts",
|
|
23
|
+
"workspaceAfter",
|
|
24
|
+
"mutationDecision",
|
|
25
|
+
"issueCodes"
|
|
26
|
+
],
|
|
27
|
+
"properties": {
|
|
28
|
+
"schemaVersion": { "const": "OwlCodaQuickVerificationReceiptV3" },
|
|
29
|
+
"receiptId": { "type": "string", "minLength": 1 },
|
|
30
|
+
"assurance": { "const": "captured_verification" },
|
|
31
|
+
"authorizationGranted": { "const": false },
|
|
32
|
+
"coreIdentity": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": ["contractVersion", "coreVersion", "coreManifestSha256"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"contractVersion": { "type": "string", "minLength": 1 },
|
|
38
|
+
"coreVersion": { "type": "string", "minLength": 1 },
|
|
39
|
+
"coreManifestSha256": { "$ref": "#/$defs/hash" }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"workspaceBefore": { "$ref": "#/$defs/workspaceSnapshot" },
|
|
43
|
+
"sourceWorkspaceRoot": { "type": "string", "minLength": 1 },
|
|
44
|
+
"exactCommand": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"required": ["executable", "argv", "cwd"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"executable": { "type": "string", "minLength": 1 },
|
|
50
|
+
"argv": { "type": "array", "items": { "type": "string" } },
|
|
51
|
+
"cwd": { "type": "string", "minLength": 1 }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"inputArtifacts": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"required": ["stdin"],
|
|
58
|
+
"properties": { "stdin": { "$ref": "#/$defs/materialArtifact" } }
|
|
59
|
+
},
|
|
60
|
+
"executionIsolation": {
|
|
61
|
+
"oneOf": [
|
|
62
|
+
{ "type": "null" },
|
|
63
|
+
{
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": [
|
|
67
|
+
"schemaVersion",
|
|
68
|
+
"mode",
|
|
69
|
+
"consumerRoot",
|
|
70
|
+
"sourceCopy",
|
|
71
|
+
"cacheEnvironmentVariables",
|
|
72
|
+
"dependencyEnvironment",
|
|
73
|
+
"dependencyEnvironmentAfter",
|
|
74
|
+
"consumerDelta",
|
|
75
|
+
"cleanupStatus"
|
|
76
|
+
],
|
|
77
|
+
"properties": {
|
|
78
|
+
"schemaVersion": { "const": "OwlCodaRunKitQuickIsolationV1" },
|
|
79
|
+
"mode": { "const": "temporary_consumer" },
|
|
80
|
+
"consumerRoot": { "type": "string", "minLength": 1 },
|
|
81
|
+
"sourceCopy": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"required": ["fileCount", "totalBytes", "fingerprint"],
|
|
85
|
+
"properties": {
|
|
86
|
+
"fileCount": { "type": "integer", "minimum": 0 },
|
|
87
|
+
"totalBytes": { "type": "integer", "minimum": 0 },
|
|
88
|
+
"fingerprint": { "$ref": "#/$defs/hash" }
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"cacheEnvironmentVariables": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"minItems": 1,
|
|
94
|
+
"uniqueItems": true,
|
|
95
|
+
"items": { "type": "string", "minLength": 1 }
|
|
96
|
+
},
|
|
97
|
+
"dependencyEnvironment": {
|
|
98
|
+
"oneOf": [
|
|
99
|
+
{ "type": "null" },
|
|
100
|
+
{ "$ref": "#/$defs/dependencyEnvironment" }
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"dependencyEnvironmentAfter": {
|
|
104
|
+
"oneOf": [
|
|
105
|
+
{ "type": "null" },
|
|
106
|
+
{ "$ref": "#/$defs/dependencyEnvironment" }
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"consumerDelta": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"required": ["sourcePaths", "ignoredPaths"],
|
|
113
|
+
"properties": {
|
|
114
|
+
"sourcePaths": { "$ref": "#/$defs/paths" },
|
|
115
|
+
"ignoredPaths": { "$ref": "#/$defs/paths" }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"cleanupStatus": { "enum": ["removed", "cleanup_failed"] }
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"mutationClasses": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"additionalProperties": false,
|
|
126
|
+
"required": [
|
|
127
|
+
"workspaceSource",
|
|
128
|
+
"boundIgnoredPaths",
|
|
129
|
+
"dependencyEnvironment",
|
|
130
|
+
"consumerSource",
|
|
131
|
+
"consumerIgnoredArtifacts"
|
|
132
|
+
],
|
|
133
|
+
"properties": {
|
|
134
|
+
"workspaceSource": { "enum": ["unchanged", "changed"] },
|
|
135
|
+
"boundIgnoredPaths": { "enum": ["not_bound", "unchanged", "changed"] },
|
|
136
|
+
"dependencyEnvironment": { "enum": ["not_bound", "unchanged", "changed"] },
|
|
137
|
+
"consumerSource": { "enum": ["not_isolated", "unchanged", "changed"] },
|
|
138
|
+
"consumerIgnoredArtifacts": { "enum": ["not_isolated", "none", "changed_and_discarded"] }
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"verificationContext": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"additionalProperties": false,
|
|
144
|
+
"required": ["platform", "architecture", "runtime"],
|
|
145
|
+
"properties": {
|
|
146
|
+
"platform": { "type": "string", "minLength": 1 },
|
|
147
|
+
"architecture": { "type": "string", "minLength": 1 },
|
|
148
|
+
"runtime": { "type": "string", "minLength": 1 }
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"startedAt": { "type": "string", "format": "date-time" },
|
|
152
|
+
"finishedAt": { "type": "string", "format": "date-time" },
|
|
153
|
+
"exitResult": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"additionalProperties": false,
|
|
156
|
+
"required": ["exitCode", "signal"],
|
|
157
|
+
"properties": {
|
|
158
|
+
"exitCode": { "type": ["integer", "null"] },
|
|
159
|
+
"signal": { "type": ["string", "null"] }
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"outputArtifacts": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"required": ["stdout", "stderr"],
|
|
166
|
+
"properties": {
|
|
167
|
+
"stdout": { "$ref": "#/$defs/materialArtifact" },
|
|
168
|
+
"stderr": { "$ref": "#/$defs/materialArtifact" }
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"workspaceAfter": { "$ref": "#/$defs/workspaceSnapshot" },
|
|
172
|
+
"mutationDecision": {
|
|
173
|
+
"enum": [
|
|
174
|
+
"source_unchanged",
|
|
175
|
+
"invalidated_by_command_source_mutation",
|
|
176
|
+
"invalidated_by_bound_ignored_mutation",
|
|
177
|
+
"invalidated_by_dependency_environment_mutation",
|
|
178
|
+
"invalidated_by_consumer_source_mutation",
|
|
179
|
+
"invalidated_by_isolation_cleanup_failure",
|
|
180
|
+
"invalidated_by_multiple_mutations"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"issueCodes": {
|
|
184
|
+
"type": "array",
|
|
185
|
+
"uniqueItems": true,
|
|
186
|
+
"items": { "type": "string", "minLength": 1 }
|
|
187
|
+
},
|
|
188
|
+
"signatureRef": {
|
|
189
|
+
"type": "object",
|
|
190
|
+
"additionalProperties": false,
|
|
191
|
+
"required": ["path", "sha256"],
|
|
192
|
+
"properties": {
|
|
193
|
+
"path": { "type": "string", "minLength": 1 },
|
|
194
|
+
"sha256": { "$ref": "#/$defs/hash" }
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"$defs": {
|
|
199
|
+
"hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
200
|
+
"paths": {
|
|
201
|
+
"type": "array",
|
|
202
|
+
"uniqueItems": true,
|
|
203
|
+
"items": { "type": "string", "minLength": 1 }
|
|
204
|
+
},
|
|
205
|
+
"materialArtifact": {
|
|
206
|
+
"type": "object",
|
|
207
|
+
"additionalProperties": false,
|
|
208
|
+
"required": ["path", "sha256", "sizeBytes"],
|
|
209
|
+
"properties": {
|
|
210
|
+
"path": { "type": "string", "minLength": 1 },
|
|
211
|
+
"sha256": { "$ref": "#/$defs/hash" },
|
|
212
|
+
"sizeBytes": { "type": "integer", "minimum": 0 }
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"dependencyEnvironment": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"additionalProperties": false,
|
|
218
|
+
"required": ["root", "materials", "fingerprint"],
|
|
219
|
+
"properties": {
|
|
220
|
+
"root": { "type": "string", "minLength": 1 },
|
|
221
|
+
"materials": {
|
|
222
|
+
"type": "array",
|
|
223
|
+
"minItems": 2,
|
|
224
|
+
"items": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"additionalProperties": false,
|
|
227
|
+
"required": ["path", "sha256"],
|
|
228
|
+
"properties": {
|
|
229
|
+
"path": { "type": "string", "minLength": 1 },
|
|
230
|
+
"sha256": { "$ref": "#/$defs/hash" }
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"fingerprint": { "$ref": "#/$defs/hash" }
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"workspaceSnapshot": {
|
|
238
|
+
"oneOf": [
|
|
239
|
+
{ "$ref": "workspace-snapshot-v1.schema.json" },
|
|
240
|
+
{ "$ref": "workspace-snapshot-v2.schema.json" }
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://owlcoda.dev/schemas/runkit/trust/workspace-snapshot-v2.schema.json",
|
|
4
|
+
"title": "OwlCoda Workspace Snapshot V2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"repositoryIdentity",
|
|
10
|
+
"headCommit",
|
|
11
|
+
"trackedTreeIdentity",
|
|
12
|
+
"submodules",
|
|
13
|
+
"dirtyOverlay",
|
|
14
|
+
"dependencyLockfiles",
|
|
15
|
+
"excludedRoots",
|
|
16
|
+
"ignoredPathsBound",
|
|
17
|
+
"ignoredPathBindings",
|
|
18
|
+
"ignoredPathsFingerprint",
|
|
19
|
+
"sourceStateFingerprint",
|
|
20
|
+
"policyVersion",
|
|
21
|
+
"sourceFingerprint"
|
|
22
|
+
],
|
|
23
|
+
"properties": {
|
|
24
|
+
"schemaVersion": { "const": "OwlCodaWorkspaceSnapshotV2" },
|
|
25
|
+
"repositoryIdentity": { "type": "string", "minLength": 1 },
|
|
26
|
+
"headCommit": {
|
|
27
|
+
"type": ["string", "null"],
|
|
28
|
+
"pattern": "^(?:[0-9a-f]{40}|[0-9a-f]{64})$"
|
|
29
|
+
},
|
|
30
|
+
"trackedTreeIdentity": { "$ref": "#/$defs/hash" },
|
|
31
|
+
"submodules": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["path", "commit"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"path": { "type": "string", "minLength": 1 },
|
|
39
|
+
"commit": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"pattern": "^(?:[0-9a-f]{40}|[0-9a-f]{64})$"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"dirtyOverlay": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"required": ["path", "state", "sha256"],
|
|
52
|
+
"properties": {
|
|
53
|
+
"path": { "type": "string", "minLength": 1 },
|
|
54
|
+
"state": { "enum": ["modified", "untracked", "deleted"] },
|
|
55
|
+
"sha256": {
|
|
56
|
+
"oneOf": [
|
|
57
|
+
{ "type": "null" },
|
|
58
|
+
{ "$ref": "#/$defs/hash" }
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"dependencyLockfiles": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"required": ["path", "sha256"],
|
|
70
|
+
"properties": {
|
|
71
|
+
"path": { "type": "string", "minLength": 1 },
|
|
72
|
+
"sha256": { "$ref": "#/$defs/hash" }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"excludedRoots": {
|
|
77
|
+
"type": "array",
|
|
78
|
+
"minItems": 1,
|
|
79
|
+
"contains": { "const": ".owlcoda/runkit" },
|
|
80
|
+
"items": { "type": "string", "minLength": 1 }
|
|
81
|
+
},
|
|
82
|
+
"ignoredPathsBound": { "const": true },
|
|
83
|
+
"ignoredPathBindings": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"minItems": 1,
|
|
86
|
+
"uniqueItems": true,
|
|
87
|
+
"items": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": false,
|
|
90
|
+
"required": ["path", "state", "sha256"],
|
|
91
|
+
"properties": {
|
|
92
|
+
"path": { "type": "string", "minLength": 1 },
|
|
93
|
+
"state": { "enum": ["missing", "file", "directory"] },
|
|
94
|
+
"sha256": {
|
|
95
|
+
"oneOf": [
|
|
96
|
+
{ "type": "null" },
|
|
97
|
+
{ "$ref": "#/$defs/hash" }
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"ignoredPathsFingerprint": { "$ref": "#/$defs/hash" },
|
|
104
|
+
"sourceStateFingerprint": { "$ref": "#/$defs/hash" },
|
|
105
|
+
"policyVersion": { "const": "workspace-snapshot-v2" },
|
|
106
|
+
"sourceFingerprint": { "$ref": "#/$defs/hash" }
|
|
107
|
+
},
|
|
108
|
+
"$defs": {
|
|
109
|
+
"hash": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|