owlrunkit 0.19.2 → 0.21.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 (51) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +94 -8
  3. package/docs/architecture/OWLCODA_RUNKIT_0201_RELEASE_TRUTH_AND_PROFILE_NORMALIZATION_PATCH_DECISION_20260813.md +95 -0
  4. package/docs/architecture/OWLCODA_RUNKIT_020_TEAM_DELIVERY_PHASE1_PRODUCT_DECISION_20260813.md +296 -0
  5. package/docs/architecture/OWLCODA_RUNKIT_021_TEAM_DELIVERY_PHASE2_PRODUCT_DECISION_20260813.md +249 -0
  6. package/integrations/codex/skills/owlcoda-runkit/SKILL.md +114 -12
  7. package/integrations/codex/skills/owlcoda-runkit/assets/templates/config.json +3 -3
  8. package/package.json +1 -1
  9. package/packages/attest/README.md +7 -1
  10. package/packages/attest/consumer-surface-v3.json +275 -0
  11. package/packages/attest/distribution-manifest-v1.json +19 -0
  12. package/packages/attest/schemas/canonical-candidate-identity-v1.schema.json +112 -0
  13. package/packages/attest/schemas/foreign-workspace-filesystem-identity-v1.schema.json +32 -0
  14. package/packages/attest/schemas/quick-verification-receipt-v4.schema.json +226 -0
  15. package/packages/attest/src/candidate-identity.mjs +454 -0
  16. package/packages/attest/src/index.mjs +11 -0
  17. package/packages/attest/src/quick-receipt-contract.mjs +126 -5
  18. package/packages/attest/src/quick.mjs +48 -8
  19. package/{registry-release-policy-v1.json → registry-release-policy-v2.json} +8 -9
  20. package/sbom.spdx.json +4 -4
  21. package/scripts/runkit-contract/core-contract.mjs +21 -1
  22. package/scripts/runkit-contract/fleet-skill-plan.mjs +223 -0
  23. package/scripts/runkit-contract/formal-workflow.mjs +3 -1
  24. package/scripts/runkit-contract/inspect-presentation.mjs +56 -0
  25. package/scripts/runkit-contract/install-codex-skill.mjs +1 -0
  26. package/scripts/runkit-contract/onboarding-bootstrap.mjs +15 -0
  27. package/scripts/runkit-contract/onboarding-doctor.mjs +201 -7
  28. package/scripts/runkit-contract/profile-onboarding.mjs +6 -0
  29. package/scripts/runkit-contract/project-cli-resolver.mjs +12 -1
  30. package/scripts/runkit-contract/quick-metrics.mjs +9 -5
  31. package/scripts/runkit-contract/quick-verify.mjs +108 -24
  32. package/scripts/runkit-contract/registry-adoption-gate.mjs +12 -3
  33. package/scripts/runkit-contract/registry-adoption.mjs +10 -5
  34. package/scripts/runkit-contract/runkit-cli.mjs +367 -20
  35. package/scripts/runkit-contract/schemas/candidate-transfer-packet-v1.schema.json +98 -0
  36. package/scripts/runkit-contract/schemas/delivery-lifecycle-v1.schema.json +91 -0
  37. package/scripts/runkit-contract/schemas/external-gate-v1.schema.json +68 -0
  38. package/scripts/runkit-contract/schemas/fleet-skill-upgrade-plan-v1.schema.json +140 -0
  39. package/scripts/runkit-contract/schemas/inspect-compact-v1.schema.json +93 -0
  40. package/scripts/runkit-contract/schemas/team-acceptance-packet-v2.schema.json +109 -0
  41. package/scripts/runkit-contract/schemas/team-delivery-status-v1.schema.json +72 -0
  42. package/scripts/runkit-contract/schemas/team-delivery-status-v2.schema.json +219 -0
  43. package/scripts/runkit-contract/schemas/team-packet-validation-v1.schema.json +33 -0
  44. package/scripts/runkit-contract/schemas/team-project-event-v6.schema.json +82 -0
  45. package/scripts/runkit-contract/schemas/team-project-event-v7.schema.json +80 -0
  46. package/scripts/runkit-contract/schemas/team-project-status-v4.schema.json +208 -0
  47. package/scripts/runkit-contract/schemas/team-recommendation-v1.schema.json +121 -0
  48. package/scripts/runkit-contract/schemas/team-task-packet-v2.schema.json +228 -0
  49. package/scripts/runkit-contract/sync-release-identity.mjs +87 -0
  50. package/scripts/runkit-contract/team-delivery.mjs +1031 -0
  51. package/scripts/runkit-contract/team-project.mjs +970 -9
@@ -0,0 +1,275 @@
1
+ {
2
+ "schemaVersion": "OwlCodaRunKitConsumerSurfaceManifestV3",
3
+ "consumerSurface": "unsigned_v3",
4
+ "status": "candidate",
5
+ "commands": [
6
+ {
7
+ "id": "quick_verify",
8
+ "invocation": "npx --no-install owlrunkit quick-verify --workspace <controller> [--foreign-workspace <frozen-git-worktree>] [--isolate] [--dependency-root <path>] [--bind-ignored <path>...] -- <executable> [args...]",
9
+ "lane": "Quick Verification",
10
+ "mutation": "writes receipt and output artifacts only under the controller workspace; foreign target state is observed before and after",
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
+ "OwlCodaQuickVerificationReceiptV4",
92
+ "OwlCodaRunKitCanonicalCandidateIdentityV1",
93
+ "OwlCodaRunKitForeignWorkspaceFilesystemIdentityV1"
94
+ ],
95
+ "attestationReference": {
96
+ "schemaVersion": "OwlCodaAttestationRefV1",
97
+ "requiredKeys": [
98
+ "schemaVersion",
99
+ "receiptId",
100
+ "receiptSha256",
101
+ "coreIdentity"
102
+ ],
103
+ "coreIdentityRequiredKeys": [
104
+ "contractVersion",
105
+ "coreManifestSha256"
106
+ ],
107
+ "additionalProperties": false,
108
+ "locationHints": false
109
+ },
110
+ "outcomes": {
111
+ "attestationDecisions": [
112
+ "GO",
113
+ "NO_GO",
114
+ "INDETERMINATE"
115
+ ],
116
+ "resolutionStatuses": {
117
+ "resolved_valid": 0,
118
+ "resolved_invalid": 1,
119
+ "resolved_indeterminate": 3,
120
+ "ambiguous": 1,
121
+ "not_found": 3
122
+ }
123
+ },
124
+ "assurance": {
125
+ "quickLane": "captured_verification",
126
+ "formalLane": "receipt_backed_delivery",
127
+ "quickCanSatisfyFormalAcceptance": false,
128
+ "signatureRequired": false,
129
+ "signatureAbsentIssueCode": "signature_absent",
130
+ "quickWithoutWorkspace": {
131
+ "otherwiseValidDecision": "INDETERMINATE",
132
+ "deterministicallyInvalidDecision": "NO_GO"
133
+ },
134
+ "independentReviewRequiredForFormalHighRisk": true,
135
+ "authorizationDerivedFromReceipt": false,
136
+ "foreignQuick": {
137
+ "controllerArtifactsOnly": true,
138
+ "targetExecutionMode": "disposable_consumer",
139
+ "targetStateBinding": "canonical_candidate_and_bounded_filesystem_before_after",
140
+ "zeroWriteClaim": "observed_governed_target_state_unchanged",
141
+ "absoluteOrTransientWriteAbsenceProved": false
142
+ }
143
+ },
144
+ "compatibility": {
145
+ "policy": "N verifies N and declared N-1 producer identities; N-1 is not required to trust an undeclared future producer identity",
146
+ "historicalBytesRewritten": false,
147
+ "scenarios": [
148
+ {
149
+ "id": "clean_first_use",
150
+ "evidencePath": "scripts/runkit-wave1-fresh-checkout-smoke.mjs"
151
+ },
152
+ {
153
+ "id": "dirty_workspace",
154
+ "evidencePath": "tests/runkit-contract/quick-verification.workflow.test.mjs"
155
+ },
156
+ {
157
+ "id": "offline_export_import_resolve",
158
+ "evidencePath": "tests/runkit-contract/wave4-offline-store.test.mjs"
159
+ },
160
+ {
161
+ "id": "n_minus_one_upgrade",
162
+ "evidencePath": "tests/runkit-contract/wave4-distribution-compatibility.test.mjs"
163
+ },
164
+ {
165
+ "id": "rollback",
166
+ "evidencePath": "tests/runkit-contract/wave4-distribution-compatibility.test.mjs"
167
+ },
168
+ {
169
+ "id": "historical_unsigned_receipt",
170
+ "evidencePath": "tests/runkit-contract/wave4-distribution-compatibility.test.mjs"
171
+ },
172
+ {
173
+ "id": "source_drift_repair",
174
+ "evidencePath": "tests/runkit-contract/repair-execution.workflow.test.mjs"
175
+ },
176
+ {
177
+ "id": "failed_repair_lineage",
178
+ "evidencePath": "tests/runkit-contract/repair-execution.workflow.test.mjs"
179
+ }
180
+ ]
181
+ },
182
+ "privacy": {
183
+ "defaultNetworkRequests": 0,
184
+ "defaultNetworkRequestsScope": "RunKit control plane only; a captured or replayed child command is caller-owned, unrestricted, and unmeasured",
185
+ "telemetry": false,
186
+ "credentialsRequired": false,
187
+ "hostedServiceRequired": false,
188
+ "receiptContentsMayContainCommandArgumentsAndPaths": true,
189
+ "operatorMustReviewBeforeExternalSharing": true
190
+ },
191
+ "metrics": {
192
+ "command": "owlcoda runkit metrics --local [--json]",
193
+ "localOnly": true,
194
+ "optInInspection": true,
195
+ "telemetry": false,
196
+ "networkRequests": 0,
197
+ "performanceTarget": false,
198
+ "automaticallyRecordsIndependentConsumption": false,
199
+ "statement": "Local totals describe project receipt state; independent consumption is evidenced by caller-owned attestation results, never hidden instrumentation."
200
+ },
201
+ "issueCodes": {
202
+ "ACCEPTED_AUTHORITY_GRANTED": "A Formal bundle marked accepted while its closeout grants authority.",
203
+ "ACCEPTED_RECEIPT_NOT_PASSED": "A Formal bundle marked accepted while its active receipt did not pass.",
204
+ "ACTIVE_RECEIPT_CONTEXT_BINDING_MISMATCH": "The active Formal receipt context does not match the declared verification context.",
205
+ "ACTIVE_RECEIPT_SOURCE_BINDING_MISMATCH": "The active Formal receipt source does not match the declared source fingerprint.",
206
+ "CANONICAL_JSON_INVALID": "Canonical JSON computation failed at a public Formal artifact boundary.",
207
+ "CLOSEOUT_ACTIVE_RECEIPT_MISMATCH": "The Formal closeout does not bind the active receipt.",
208
+ "CLOSEOUT_CONTEXT_BINDING_MISMATCH": "The Formal closeout context does not bind the declared verification context.",
209
+ "CLOSEOUT_SOURCE_BINDING_MISMATCH": "The Formal closeout source does not bind the declared source fingerprint.",
210
+ "DUPLICATE_OBJECT_KEY": "A Formal JSON input contains a duplicate object key.",
211
+ "EXTERNAL_AUTHORITY_GRANTED": "A public Formal bundle attempts to grant external authority.",
212
+ "INPUT_FILE_INVALID": "A Formal verifier input file cannot be read under the public file boundary.",
213
+ "INPUT_JSON_INVALID": "A Formal verifier input is not strict valid JSON.",
214
+ "INPUT_SIZE_LIMIT_EXCEEDED": "A Formal verifier input exceeds the deterministic byte limit.",
215
+ "JSON_NESTING_LIMIT_EXCEEDED": "A Formal verifier input exceeds the deterministic nesting limit.",
216
+ "JSON_NODE_LIMIT_EXCEEDED": "A Formal verifier input exceeds the deterministic JSON node limit.",
217
+ "PUBLIC_BUNDLE_SHAPE_INVALID": "A Formal public bundle has an unknown, missing, or extra field.",
218
+ "RECEIPT_AUTHORITY_GRANTED": "A Formal receipt attempts to grant external authority.",
219
+ "RECEIPT_COUNT_LIMIT_EXCEEDED": "A Formal bundle exceeds the deterministic receipt-count limit.",
220
+ "RECEIPT_ID_DUPLICATE": "A Formal receipt identifier appears more than once.",
221
+ "RECEIPT_LINEAGE_CYCLE": "Formal replacement lineage contains a cycle.",
222
+ "RECEIPT_LINEAGE_MULTIPLE_ACTIVE_LEAVES": "Formal replacement lineage has more than one active leaf.",
223
+ "RECEIPT_LINEAGE_NO_ACTIVE_LEAF": "Formal replacement lineage has no active leaf.",
224
+ "RECEIPT_LINEAGE_ORPHAN": "A Formal replacement references a parent absent from earlier append-only lineage.",
225
+ "SOURCE_FINGERPRINT_MISMATCH": "The Formal source payload does not match its declared fingerprint.",
226
+ "VERIFICATION_CONTEXT_FINGERPRINT_MISMATCH": "The Formal verification context does not match its declared fingerprint.",
227
+ "anchor_absent": "No external checkpoint or timestamp anchor was checked; unsigned V1 remains usable under local policy.",
228
+ "attestation_material_missing": "A receipt-bound output material is unavailable, so the result is indeterminate rather than silently accepted.",
229
+ "attestation_target_ambiguous": "More than one byte-distinct local receipt matches the reference.",
230
+ "attestation_target_not_found": "No receipt matching the exact local reference was found in the supplied stores.",
231
+ "bound_ignored_path_mutated_during_verification": "An explicitly bound ignored workspace path changed while the command ran.",
232
+ "consumer_source_mutated_during_verification": "The exact command changed Git-visible source in the disposable consumer.",
233
+ "core_identity_mismatch": "The receipt producer Core identity is not declared by this verifier.",
234
+ "current_workspace_not_checked": "No explicit workspace was selected, so Quick attestation did not read output paths or compare current checkout bytes.",
235
+ "dependency_environment_mutated_during_verification": "Bound dependency resolution metadata changed while the command ran.",
236
+ "quick_ignored_artifact_unbound": "Git-ignored outputs are not bound unless an explicit artifact contract names and hashes them.",
237
+ "quick_isolation_cleanup_failed": "The disposable consumer could not be removed after verification.",
238
+ "quick_receipt_store_invalid": "The project-local receipt store failed its path or file integrity boundary.",
239
+ "receipt_duplicate_key": "The receipt contains a duplicate JSON object key.",
240
+ "receipt_dependency_environment_mismatch": "Current bound dependency metadata differs from the receipt.",
241
+ "receipt_material_hash_mismatch": "A receipt-bound material differs from its recorded bytes, hash, or size.",
242
+ "receipt_schema_invalid": "The receipt does not satisfy the strict supported schema.",
243
+ "receipt_source_mismatch": "The selected workspace source does not match the receipt-bound source.",
244
+ "repair_plan_incomplete": "A deterministic repair plan cannot safely replay every required command and binding.",
245
+ "repair_replay_failed": "A replay command failed; the failed attempt and earlier lineage remain append-only.",
246
+ "signature_absent": "No receipt signature is present or checked; this is expected under unsigned V1 and proves no signer identity.",
247
+ "source_mutated_during_verification": "Source bytes changed while the command was running.",
248
+ "verification_command_failed": "The captured verification command did not exit successfully.",
249
+ "verification_context_mismatch": "The current runtime context differs from the receipt-bound runtime context.",
250
+ "foreign_workspace_mutated_during_verification": "The governed foreign target state changed while its isolated verification command ran."
251
+ },
252
+ "unsupportedClaims": [
253
+ "unsigned_receipt_proves_signer_identity",
254
+ "unsigned_receipt_proves_independent_machine_or_organization",
255
+ "issued_at_proves_trusted_wall_clock_time",
256
+ "unsigned_receipt_proves_external_existence_before_a_time",
257
+ "ignored_artifact_is_bound_without_explicit_artifact_contract",
258
+ "quick_receipt_proves_formal_acceptance",
259
+ "receipt_grants_git_release_or_business_authority",
260
+ "captured_or_replayed_child_command_has_zero_network",
261
+ "local_metrics_are_independent_consumption_events",
262
+ "foreign_quick_proves_absolute_or_transient_write_absence"
263
+ ],
264
+ "integration": {
265
+ "persist": "OwlCodaAttestationRefV1 plus the referenced receipt bytes",
266
+ "consume": "attest or resolve through a declared command or the standalone package",
267
+ "doNotImport": [
268
+ "private RunKit mutation Core",
269
+ "Desktop or App Server internals",
270
+ "project-private receipt-store layout"
271
+ ],
272
+ "futureSignedProfile": "additive; producer command and AttestationRefV1 shape remain unchanged"
273
+ },
274
+ "authorizationGranted": false
275
+ }
@@ -15,6 +15,9 @@
15
15
  "OwlCodaQuickVerificationReceiptV1",
16
16
  "OwlCodaQuickVerificationReceiptV2",
17
17
  "OwlCodaQuickVerificationReceiptV3",
18
+ "OwlCodaQuickVerificationReceiptV4",
19
+ "OwlCodaRunKitCanonicalCandidateIdentityV1",
20
+ "OwlCodaRunKitForeignWorkspaceFilesystemIdentityV1",
18
21
  "OwlCodaRunKitPublicVerificationBundleV1",
19
22
  "OwlCodaWorkspaceSnapshotV1",
20
23
  "OwlCodaWorkspaceSnapshotV2"
@@ -39,6 +42,21 @@
39
42
  "sha256": "sha256:3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
40
43
  },
41
44
  "supportedProducerCoreIdentities": [
45
+ {
46
+ "contractVersion": "0.2",
47
+ "coreVersion": "0.21.0",
48
+ "coreManifestSha256": "sha256:f85b9bf8c32705d5f5dfebdb653e83ac8d1ac0468214c17f230cbd2de04246fd"
49
+ },
50
+ {
51
+ "contractVersion": "0.2",
52
+ "coreVersion": "0.20.1",
53
+ "coreManifestSha256": "sha256:8af2b9792731efa37f596255a7677dcec6e2fd3cc079dfdb0e6ff29e8017e784"
54
+ },
55
+ {
56
+ "contractVersion": "0.2",
57
+ "coreVersion": "0.20.0",
58
+ "coreManifestSha256": "sha256:30098aa9344c17c1ed0b5ed45ef1c590b3214b824402f584029c1ecb38ca7a70"
59
+ },
42
60
  {
43
61
  "contractVersion": "0.2",
44
62
  "coreVersion": "0.19.2",
@@ -164,6 +182,7 @@
164
182
  "cli/",
165
183
  "consumer-surface-v1.json",
166
184
  "consumer-surface-v2.json",
185
+ "consumer-surface-v3.json",
167
186
  "fixtures/",
168
187
  "LICENSE",
169
188
  "schemas/",
@@ -0,0 +1,112 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.dev/schemas/runkit/trust/canonical-candidate-identity-v1.schema.json",
4
+ "title": "OwlCoda RunKit Canonical Candidate Identity V1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "manifestAlgorithmId",
10
+ "workspaceRoot",
11
+ "headCommit",
12
+ "trackedTree",
13
+ "gitVersion",
14
+ "discoveryCommand",
15
+ "discoveryEnvironment",
16
+ "ledger",
17
+ "ledgerByteLength",
18
+ "ledgerSha256",
19
+ "transportDiff",
20
+ "candidateFingerprint",
21
+ "authorizationGranted"
22
+ ],
23
+ "properties": {
24
+ "schemaVersion": { "const": "OwlCodaRunKitCanonicalCandidateIdentityV1" },
25
+ "manifestAlgorithmId": { "const": "owlcoda-canonical-candidate-ledger-v1" },
26
+ "workspaceRoot": { "type": "string", "minLength": 1 },
27
+ "headCommit": { "$ref": "#/$defs/gitObject" },
28
+ "trackedTree": { "$ref": "#/$defs/gitObject" },
29
+ "gitVersion": { "type": "string", "minLength": 1 },
30
+ "discoveryCommand": {
31
+ "const": [
32
+ "git", "-c", "color.ui=false", "-c", "core.abbrev=40",
33
+ "status", "--porcelain=v1", "-z", "--untracked-files=all"
34
+ ]
35
+ },
36
+ "discoveryEnvironment": {
37
+ "const": {
38
+ "GIT_OPTIONAL_LOCKS": "0",
39
+ "LC_ALL": "C"
40
+ }
41
+ },
42
+ "ledger": {
43
+ "type": "array",
44
+ "items": { "$ref": "#/$defs/ledgerEntry" }
45
+ },
46
+ "ledgerByteLength": { "type": "integer", "minimum": 2 },
47
+ "ledgerSha256": { "$ref": "#/$defs/hash" },
48
+ "transportDiff": {
49
+ "type": "object",
50
+ "additionalProperties": false,
51
+ "required": ["exactArgv", "environment", "sizeBytes", "sha256", "identityRole"],
52
+ "properties": {
53
+ "exactArgv": {
54
+ "const": [
55
+ "git", "-c", "color.ui=false", "-c", "core.abbrev=40",
56
+ "diff", "--full-index", "--binary", "--no-ext-diff", "--no-textconv", "HEAD"
57
+ ]
58
+ },
59
+ "environment": {
60
+ "const": {
61
+ "GIT_OPTIONAL_LOCKS": "0",
62
+ "LC_ALL": "C"
63
+ }
64
+ },
65
+ "sizeBytes": { "type": "integer", "minimum": 0 },
66
+ "sha256": { "$ref": "#/$defs/hash" },
67
+ "identityRole": { "const": "transport_only" }
68
+ }
69
+ },
70
+ "candidateFingerprint": { "$ref": "#/$defs/hash" },
71
+ "authorizationGranted": { "const": false }
72
+ },
73
+ "$defs": {
74
+ "hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
75
+ "gitObject": { "type": "string", "pattern": "^[0-9a-f]{40}([0-9a-f]{24})?$" },
76
+ "safePath": {
77
+ "type": "string",
78
+ "minLength": 1,
79
+ "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000).+$"
80
+ },
81
+ "ledgerEntry": {
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": ["path", "previousPath", "operation", "status", "kind", "mode", "sizeBytes", "sha256"],
85
+ "properties": {
86
+ "path": { "$ref": "#/$defs/safePath" },
87
+ "previousPath": {
88
+ "oneOf": [
89
+ { "type": "null" },
90
+ { "$ref": "#/$defs/safePath" }
91
+ ]
92
+ },
93
+ "operation": { "enum": ["added", "copied", "deleted", "modified", "renamed"] },
94
+ "status": { "type": "string", "minLength": 2, "maxLength": 2 },
95
+ "kind": {
96
+ "oneOf": [
97
+ { "type": "null" },
98
+ { "enum": ["file", "gitlink", "symlink"] }
99
+ ]
100
+ },
101
+ "mode": { "type": ["integer", "null"], "minimum": 0, "maximum": 511 },
102
+ "sizeBytes": { "type": ["integer", "null"], "minimum": 0 },
103
+ "sha256": {
104
+ "oneOf": [
105
+ { "type": "null" },
106
+ { "$ref": "#/$defs/hash" }
107
+ ]
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://owlcoda.dev/schemas/runkit/trust/foreign-workspace-filesystem-identity-v1.schema.json",
4
+ "title": "OwlCoda RunKit Foreign Workspace Filesystem Identity V1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "manifestAlgorithmId",
10
+ "workspaceRoot",
11
+ "excludedRoots",
12
+ "entryCount",
13
+ "totalFileBytes",
14
+ "ledgerByteLength",
15
+ "ledgerSha256",
16
+ "filesystemFingerprint"
17
+ ],
18
+ "properties": {
19
+ "schemaVersion": { "const": "OwlCodaRunKitForeignWorkspaceFilesystemIdentityV1" },
20
+ "manifestAlgorithmId": { "const": "owlcoda-foreign-workspace-ledger-v1" },
21
+ "workspaceRoot": { "type": "string", "minLength": 1 },
22
+ "excludedRoots": { "const": [".git"] },
23
+ "entryCount": { "type": "integer", "minimum": 0 },
24
+ "totalFileBytes": { "type": "integer", "minimum": 0 },
25
+ "ledgerByteLength": { "type": "integer", "minimum": 2 },
26
+ "ledgerSha256": { "$ref": "#/$defs/hash" },
27
+ "filesystemFingerprint": { "$ref": "#/$defs/hash" }
28
+ },
29
+ "$defs": {
30
+ "hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }
31
+ }
32
+ }