@kungfu-tech/buildchain 4.0.1-alpha.2 → 4.0.1-alpha.21
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/actions/release-tail/README.md +8 -0
- package/architecture/ci-lane-change-budget.json +187 -0
- package/architecture/decisions/0002-next-development-transition.md +101 -0
- package/architecture/decisions/0003-two-phase-delivery-warrant.md +152 -0
- package/architecture/internal-capabilities.json +211 -8
- package/architecture/maintainability-policy.json +113 -28
- package/architecture/release-tail-contract-inventory.json +5 -2
- package/architecture/v3-core-mechanism-inventory.json +91 -0
- package/architecture/v4-adopter-delivery-parity.json +32 -5
- package/architecture/v4-capability-state-machine-manifest.json +73 -0
- package/architecture/v4-compatibility-facts-parity.json +77 -0
- package/architecture/v4-delivery-authority-parity.json +250 -0
- package/architecture/v4-delivery-warrant-shadow-fixtures.json +41 -9
- package/architecture/v4-floating-consumer-policy.json +6 -0
- package/architecture/v4-next-development-parity.json +192 -0
- package/architecture/v4-publication-rehearsal-parity.json +84 -0
- package/architecture/v4-release-train-parity.json +1 -0
- package/architecture/v4-tail-reseal-parity.json +150 -0
- package/bin/buildchain.mjs +32 -3
- package/bin/internal/adopter-delivery-cli.mjs +70 -0
- package/bin/internal/command-registry.mjs +3 -0
- package/bin/internal/compatibility-facts-cli.mjs +101 -0
- package/contracts/dev-delivery-authority-v2.schema.json +662 -0
- package/contracts/fixtures/next-development-transition-v1/anchored-manual-waiting.json +47 -0
- package/contracts/fixtures/next-development-transition-v1/semver-auto-planned.json +47 -0
- package/contracts/fixtures/next-development-transition-v1/version-model-cases.json +40 -0
- package/contracts/fixtures/v4-adopter-delivery-v1/archive-template.json +19 -0
- package/contracts/fixtures/v4-adopter-delivery-v1/bootstrap-positive.json +93 -0
- package/contracts/fixtures/v4-adopter-delivery-v1/gate-positive.json +29 -0
- package/contracts/fixtures/v4-adopter-delivery-v1/gate-unknown-selector.json +26 -0
- package/contracts/fixtures/v4-adopter-delivery-v1/offline-vectors.json +50 -0
- package/contracts/fixtures/v4-compatibility-facts-v1/shared.json +1129 -0
- package/contracts/fixtures/v4-floating-consumer-policy-v1/cases.json +7 -1
- package/contracts/fixtures/v4-publication-rehearsal-v1/candidate/artifacts/product.bin +1 -0
- package/contracts/fixtures/v4-publication-rehearsal-v1/candidate/config/buildchain.toml +5 -0
- package/contracts/fixtures/v4-publication-rehearsal-v1/candidate/documents/release-activation.json +1 -0
- package/contracts/fixtures/v4-publication-rehearsal-v1/candidate/documents/signed-channel.json +1 -0
- package/contracts/fixtures/v4-publication-rehearsal-v1/candidate/evidence/qualification.json +1 -0
- package/contracts/fixtures/v4-publication-rehearsal-v1/candidate/manifests/candidate.json +5 -0
- package/contracts/fixtures/v4-publication-rehearsal-v1/candidate/manifests/release-passport.json +1 -0
- package/contracts/fixtures/v4-publication-rehearsal-v1/capsule.json +707 -0
- package/contracts/fixtures/v4-publication-rehearsal-v1/offline-vectors.json +27 -0
- package/contracts/fixtures/v4-tail-reseal-v1/valid.json +229 -0
- package/contracts/next-development-request-v1.schema.json +66 -0
- package/contracts/next-development-transition-v1.schema.json +292 -0
- package/contracts/v4-adopter-delivery-v1.schema.json +81 -0
- package/contracts/v4-compatibility-facts-v1.schema.json +230 -0
- package/contracts/v4-floating-consumer-policy-receipt-v1.schema.json +4 -2
- package/contracts/v4-publication-rehearsal-capsule-v1.schema.json +233 -0
- package/contracts/v4-tail-reseal-v1.schema.json +276 -0
- package/dist/site/agent-index.json +5 -0
- package/dist/site/artifact-schemas.json +10 -0
- package/dist/site/buildchain-contract.json +1475 -27
- package/dist/site/buildchain-site.json +627 -31
- package/dist/site/capability-registry.json +17 -14
- package/dist/site/cli-registry.json +205 -3
- package/dist/site/kfd-claims.json +490 -16
- package/dist/site/kfd-upstream-aggregate.json +1 -1
- package/dist/site/manual-registry.json +52 -6
- package/dist/site/node-api-registry.json +14736 -8851
- package/dist/site/page-registry.json +593 -21
- package/dist/site/public-surface-audit.json +837 -48
- package/dist/site/publication-authority-registry.json +44 -8
- package/dist/site/publication-registry.json +4 -4
- package/dist/site/release-provenance.json +24 -0
- package/dist/site/schemas/dev-delivery-authority-v2.schema.json +662 -0
- package/dist/site/schemas/release-tail-capabilities-v1.schema.json +199 -0
- package/dist/site/schemas/v4-adopter-delivery-v1.schema.json +81 -0
- package/dist/site/schemas/v4-compatibility-facts-v1.schema.json +230 -0
- package/dist/site/schemas/v4-publication-rehearsal-capsule-v1.schema.json +233 -0
- package/dist/site/site-manifest.json +34 -10
- package/dist/site/workflow-registry.json +160 -10
- package/docs/MAP.md +8 -2
- package/docs/cli-reference.md +404 -13
- package/docs/cli.md +8 -0
- package/docs/dev-alpha-candidate-patrol.md +8 -0
- package/docs/dev-delivery-qualification-landing-adr.md +251 -0
- package/docs/dev-delivery-warrant.md +351 -38
- package/docs/next-development-transition.md +118 -0
- package/docs/node-api-reference.md +646 -293
- package/docs/release-tail-provider-plane.md +30 -0
- package/docs/v4-adopter-delivery.md +133 -0
- package/docs/v4-compatibility-facts.md +91 -0
- package/docs/v4-publication-rehearsal.md +130 -0
- package/docs/v4-tail-reseal.md +73 -0
- package/docs/versioning.md +4 -3
- package/package.json +34 -6
- package/packages/core/adopter-delivery-passport.js +259 -0
- package/packages/core/adopter-delivery-vectors.js +158 -0
- package/packages/core/adopter-delivery-vectors.json +77 -0
- package/packages/core/buildchain-agent-manuals.js +3 -0
- package/packages/core/buildchain-compatibility-authority.js +336 -0
- package/packages/core/buildchain-compatibility-fact.js +394 -0
- package/packages/core/buildchain-compatibility-facts.json +217 -0
- package/packages/core/buildchain-compatibility-proof.js +566 -0
- package/packages/core/buildchain-config.js +84 -0
- package/packages/core/buildchain-contract.js +96 -143
- package/packages/core/buildchain-delivery-bootstrap.js +240 -0
- package/packages/core/buildchain-delivery-infrastructure.js +164 -0
- package/packages/core/buildchain-delivery-self-dogfood.js +395 -0
- package/packages/core/buildchain-publication-authority.js +1 -0
- package/packages/core/channel-candidate.js +8 -0
- package/packages/core/channel-promotion-baseline.js +55 -0
- package/packages/core/ci-lane-change-budget.js +247 -0
- package/packages/core/dev-alpha-candidate-selection.js +10 -2
- package/packages/core/dev-delivery-authority-candidate.js +270 -0
- package/packages/core/dev-delivery-authority-evidence.js +146 -0
- package/packages/core/dev-delivery-authority-landing.js +461 -0
- package/packages/core/dev-delivery-authority-observation.js +48 -0
- package/packages/core/dev-delivery-authority-qualification.js +591 -0
- package/packages/core/dev-delivery-authority-settlement.js +213 -0
- package/packages/core/dev-delivery-authority-state.js +583 -0
- package/packages/core/dev-delivery-candidate-identity.js +13 -0
- package/packages/core/dev-delivery-contract-surface.js +76 -0
- package/packages/core/dev-delivery-execution-failure.js +133 -0
- package/packages/core/dev-delivery-execution-transfer.js +592 -0
- package/packages/core/dev-delivery-landing-admission-core.js +119 -0
- package/packages/core/dev-delivery-landing-readback.js +598 -0
- package/packages/core/dev-delivery-landing-terminal-evidence.js +271 -0
- package/packages/core/dev-delivery-landing-testing-port.js +6 -0
- package/packages/core/dev-delivery-native-execution.js +110 -0
- package/packages/core/dev-delivery-native-proof.js +562 -0
- package/packages/core/dev-delivery-process-boundary.js +563 -0
- package/packages/core/dev-delivery-provider-attempt.js +127 -0
- package/packages/core/dev-delivery-provider-heartbeat.js +382 -0
- package/packages/core/dev-delivery-warrant-cancellation.js +1 -0
- package/packages/core/dev-delivery-warrant-qualification.js +145 -0
- package/packages/core/dev-delivery-warrant-settlement.js +237 -36
- package/packages/core/dev-delivery-warrant-state.js +587 -0
- package/packages/core/dev-delivery-warrant.js +328 -370
- package/packages/core/github-governance-authority.js +1 -0
- package/packages/core/index.js +5 -0
- package/packages/core/kungfu-temporal-fact.js +557 -0
- package/packages/core/legacy-kfd-adopter-driver.js +167 -0
- package/packages/core/next-development-candidate-reservation.js +186 -0
- package/packages/core/next-development-controller.js +728 -0
- package/packages/core/next-development-projection.js +287 -0
- package/packages/core/next-development-transition.js +738 -0
- package/packages/core/paper-agent-entry.js +11 -5
- package/packages/core/paper.js +16 -5
- package/packages/core/published-delivery-authority.js +266 -0
- package/packages/core/release-candidate-recovery.js +70 -15
- package/packages/core/release-candidate.js +2 -2
- package/packages/core/release-passport.js +36 -9
- package/packages/core/v4-adopter-delivery-parity.js +3 -3
- package/packages/core/v4-adopter-delivery.js +359 -0
- package/packages/core/v4-canonical-contracts.js +5 -0
- package/packages/core/v4-delivery-warrant-read-candidate.js +10 -3
- package/packages/core/v4-floating-consumer-evidence.js +18 -4
- package/packages/core/v4-floating-consumer-policy.js +143 -20
- package/packages/core/v4-floating-consumer-release-passport.js +32 -5
- package/packages/core/v4-publication-rehearsal-capsule.js +468 -0
- package/packages/core/v4-publication-rehearsal-provider-bindings.js +212 -0
- package/packages/core/v4-publication-rehearsal.js +481 -0
- package/packages/core/v4-tail-reseal-contract.js +26 -0
- package/packages/core/v4-tail-reseal-github.js +178 -0
- package/packages/core/v4-tail-reseal-receipt.js +225 -0
- package/packages/core/v4-tail-reseal.js +594 -0
- package/packages/core/workflow-yaml-contract.js +24 -2
- package/scripts/buildchain-cli-help.mjs +41 -2
- package/scripts/check-ci-lane-change-budget.mjs +100 -0
- package/scripts/check-inventory.mjs +14 -3
- package/scripts/check-v4-floating-consumer-policy-contract.mjs +23 -4
- package/scripts/dev-alpha-candidate-patrol.mjs +22 -1
- package/scripts/dev-delivery-authority-command-adapters.mjs +206 -0
- package/scripts/dev-delivery-authority-provider.mjs +28 -0
- package/scripts/dev-delivery-authority.mjs +490 -0
- package/scripts/dev-delivery-native-run.mjs +177 -0
- package/scripts/dev-delivery-process-boundary.mjs +260 -0
- package/scripts/dev-delivery-proof.mjs +67 -2
- package/scripts/dev-delivery-provider-heartbeat.mjs +215 -0
- package/scripts/dev-delivery-source-proof-replay.mjs +153 -0
- package/scripts/dev-delivery-source-proof-reuse.mjs +13 -97
- package/scripts/dev-delivery-two-phase-resume.mjs +345 -0
- package/scripts/dev-delivery-two-phase.mjs +573 -0
- package/scripts/dev-delivery-warrant-options.mjs +266 -0
- package/scripts/dev-delivery-warrant-store.mjs +231 -0
- package/scripts/dev-delivery-warrant.mjs +232 -194
- package/scripts/dev-pr-auto-merge.mjs +1 -1
- package/scripts/dev-pr-delivery-warrant.mjs +11 -0
- package/scripts/dev-qualification-patrol.mjs +9 -9
- package/scripts/dispatch-artifact-signing-authority.mjs +1 -1
- package/scripts/generate-channel-promotion-workflow.mjs +2 -2
- package/scripts/generate-next-development-guidance.mjs +49 -0
- package/scripts/generate-release-candidate-passport.mjs +152 -0
- package/scripts/generate-site-bundle.mjs +69 -4
- package/scripts/init-repo.mjs +22 -4
- package/scripts/next-development-self-dogfood-harness.mjs +460 -0
- package/scripts/next-development-self-dogfood.mjs +597 -0
- package/scripts/next-development-transition.mjs +47 -0
- package/scripts/npm-publish-transaction.mjs +2 -2
- package/scripts/promotion-channel-router.mjs +4 -4
- package/scripts/release-candidate-anchor-provenance.mjs +99 -0
- package/scripts/release-tail.mjs +51 -3
- package/scripts/release-train-self-dogfood.mjs +94 -92
- package/scripts/resume-from-candidate-run.mjs +557 -30
- package/scripts/site-capability-metadata.mjs +41 -0
- package/scripts/stable-candidate-qualification.mjs +9 -10
- package/scripts/v4-consumer-policy.mjs +5 -5
- package/scripts/v4-publication-rehearsal-fixture.mjs +144 -0
- package/scripts/v4-tail-reseal-macos-rehearsal.mjs +134 -0
- package/scripts/v4-tail-reseal.mjs +416 -0
- package/templates/native-dev-delivery.yml +143 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://buildchain.kungfu.ai/contracts/release-tail-capabilities-v1.schema.json",
|
|
4
|
+
"title": "Buildchain release-tail capability declaration",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"contract",
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"transactionPolicy",
|
|
11
|
+
"subject",
|
|
12
|
+
"capabilities"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"contract": {
|
|
16
|
+
"const": "kungfu-buildchain-release-tail-capabilities"
|
|
17
|
+
},
|
|
18
|
+
"schemaVersion": {
|
|
19
|
+
"const": 1
|
|
20
|
+
},
|
|
21
|
+
"transactionPolicy": {
|
|
22
|
+
"const": "buildchain.release-tail/v1"
|
|
23
|
+
},
|
|
24
|
+
"subject": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"required": ["repository", "sourceSha", "version", "tag", "channel"],
|
|
28
|
+
"properties": {
|
|
29
|
+
"repository": { "type": "string", "minLength": 1 },
|
|
30
|
+
"sourceSha": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
|
31
|
+
"version": { "type": "string", "minLength": 1 },
|
|
32
|
+
"tag": { "type": "string", "minLength": 1 },
|
|
33
|
+
"channel": { "enum": ["alpha", "release", "stable"] }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"capabilities": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"minItems": 1,
|
|
39
|
+
"items": { "$ref": "#/$defs/capability" }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"$defs": {
|
|
43
|
+
"root": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
46
|
+
},
|
|
47
|
+
"capability": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"required": [
|
|
51
|
+
"id",
|
|
52
|
+
"executor",
|
|
53
|
+
"adapter",
|
|
54
|
+
"artifactRoles",
|
|
55
|
+
"destination",
|
|
56
|
+
"channelPolicy",
|
|
57
|
+
"activationPolicy",
|
|
58
|
+
"readbackPredicates",
|
|
59
|
+
"effect",
|
|
60
|
+
"observation",
|
|
61
|
+
"receipt",
|
|
62
|
+
"operationIdentity",
|
|
63
|
+
"idempotency",
|
|
64
|
+
"retry",
|
|
65
|
+
"evidenceRequirements"
|
|
66
|
+
],
|
|
67
|
+
"properties": {
|
|
68
|
+
"id": {
|
|
69
|
+
"enum": [
|
|
70
|
+
"artifact.publish",
|
|
71
|
+
"signed-channel.commit",
|
|
72
|
+
"release.activate",
|
|
73
|
+
"released-evidence.synthesize"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"executor": { "enum": ["buildchain-core", "provider-adapter"] },
|
|
77
|
+
"adapter": { "type": "string", "minLength": 1 },
|
|
78
|
+
"artifactRoles": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"required": ["role", "root"],
|
|
84
|
+
"properties": {
|
|
85
|
+
"role": { "type": "string", "minLength": 1 },
|
|
86
|
+
"root": { "$ref": "#/$defs/root" }
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"destination": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"required": ["kind", "locator"],
|
|
94
|
+
"properties": {
|
|
95
|
+
"kind": { "type": "string", "minLength": 1 },
|
|
96
|
+
"locator": { "type": "string", "minLength": 1 }
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"channelPolicy": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"required": ["channel", "tagPattern", "authorityMove"],
|
|
103
|
+
"properties": {
|
|
104
|
+
"channel": { "enum": ["alpha", "release", "stable"] },
|
|
105
|
+
"tagPattern": { "type": "string", "minLength": 1 },
|
|
106
|
+
"authorityMove": { "enum": ["none", "signed-cas", "verified-ref"] }
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"activationPolicy": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"required": ["mode", "environment"],
|
|
113
|
+
"properties": {
|
|
114
|
+
"mode": { "enum": ["none", "receipt-set", "receipt-only"] },
|
|
115
|
+
"environment": { "enum": ["none", "shadow", "production"] }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"readbackPredicates": {
|
|
119
|
+
"type": "array",
|
|
120
|
+
"items": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"additionalProperties": false,
|
|
123
|
+
"required": ["id", "kind", "expected"],
|
|
124
|
+
"properties": {
|
|
125
|
+
"id": { "type": "string", "minLength": 1 },
|
|
126
|
+
"kind": { "type": "string", "minLength": 1 },
|
|
127
|
+
"expected": { "type": "string", "minLength": 1 }
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"effect": { "$ref": "#/$defs/message" },
|
|
132
|
+
"observation": { "$ref": "#/$defs/message" },
|
|
133
|
+
"receipt": { "$ref": "#/$defs/message" },
|
|
134
|
+
"operationIdentity": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"required": [
|
|
138
|
+
"transactionRoot",
|
|
139
|
+
"capabilityId",
|
|
140
|
+
"subjectRoot",
|
|
141
|
+
"targetRoot",
|
|
142
|
+
"attemptKey"
|
|
143
|
+
],
|
|
144
|
+
"properties": {
|
|
145
|
+
"transactionRoot": { "$ref": "#/$defs/root" },
|
|
146
|
+
"capabilityId": {
|
|
147
|
+
"enum": [
|
|
148
|
+
"artifact.publish",
|
|
149
|
+
"signed-channel.commit",
|
|
150
|
+
"release.activate",
|
|
151
|
+
"released-evidence.synthesize"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"subjectRoot": { "$ref": "#/$defs/root" },
|
|
155
|
+
"targetRoot": { "$ref": "#/$defs/root" },
|
|
156
|
+
"attemptKey": { "type": "string", "minLength": 1 }
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"idempotency": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"additionalProperties": false,
|
|
162
|
+
"required": ["scope", "duplicate"],
|
|
163
|
+
"properties": {
|
|
164
|
+
"scope": { "enum": ["operation", "subject-target"] },
|
|
165
|
+
"duplicate": {
|
|
166
|
+
"enum": ["return-observed-receipt", "readback-before-retry"]
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"retry": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"additionalProperties": false,
|
|
173
|
+
"required": ["class", "localAttempts", "exhausted"],
|
|
174
|
+
"properties": {
|
|
175
|
+
"class": { "enum": ["never", "readback", "provider-transient"] },
|
|
176
|
+
"localAttempts": { "type": "integer", "minimum": 0, "maximum": 3 },
|
|
177
|
+
"exhausted": {
|
|
178
|
+
"enum": ["blocked", "repair-required", "terminal-failure"]
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"evidenceRequirements": {
|
|
183
|
+
"type": "array",
|
|
184
|
+
"minItems": 1,
|
|
185
|
+
"items": { "type": "string", "minLength": 1 }
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"message": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"additionalProperties": false,
|
|
192
|
+
"required": ["kind", "schema"],
|
|
193
|
+
"properties": {
|
|
194
|
+
"kind": { "type": "string", "minLength": 1 },
|
|
195
|
+
"schema": { "type": "string", "minLength": 1 }
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://buildchain.kungfu-tech.com/schemas/v4-adopter-delivery-v1.schema.json",
|
|
4
|
+
"title": "Buildchain v4 adopter delivery gate input",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"contract",
|
|
10
|
+
"driverSelector",
|
|
11
|
+
"artifactProfileSelector",
|
|
12
|
+
"request",
|
|
13
|
+
"context"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schemaVersion": { "const": 1 },
|
|
17
|
+
"contract": { "const": "kungfu-buildchain-v4-adopter-delivery/v1" },
|
|
18
|
+
"driverSelector": {
|
|
19
|
+
"enum": ["json-assertion", "kfd-category", "legacy-kfd"]
|
|
20
|
+
},
|
|
21
|
+
"artifactProfileSelector": { "enum": ["git-commit", "package"] },
|
|
22
|
+
"request": { "$ref": "#/$defs/request" },
|
|
23
|
+
"context": { "type": "object" }
|
|
24
|
+
},
|
|
25
|
+
"$defs": {
|
|
26
|
+
"reference": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["id", "version"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"id": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^[a-z][a-z0-9.-]*(/[a-z][a-z0-9.-]*)*$"
|
|
34
|
+
},
|
|
35
|
+
"version": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[1-9][0-9]*\\.[0-9]+\\.[0-9]+$"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"request": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"required": [
|
|
45
|
+
"schemaVersion",
|
|
46
|
+
"contract",
|
|
47
|
+
"protocol",
|
|
48
|
+
"artifactProfile",
|
|
49
|
+
"project",
|
|
50
|
+
"artifact",
|
|
51
|
+
"declaration"
|
|
52
|
+
],
|
|
53
|
+
"properties": {
|
|
54
|
+
"schemaVersion": { "const": 1 },
|
|
55
|
+
"contract": { "const": "kungfu-buildchain-adopter-delivery-request" },
|
|
56
|
+
"protocol": { "$ref": "#/$defs/reference" },
|
|
57
|
+
"artifactProfile": { "$ref": "#/$defs/reference" },
|
|
58
|
+
"project": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"required": ["instanceId", "adopterId"],
|
|
62
|
+
"properties": {
|
|
63
|
+
"instanceId": { "type": "string", "minLength": 1 },
|
|
64
|
+
"adopterId": { "type": "string", "minLength": 1 }
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"artifact": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"required": ["kind", "coordinate", "root"],
|
|
71
|
+
"properties": {
|
|
72
|
+
"kind": { "type": "string", "minLength": 1 },
|
|
73
|
+
"coordinate": { "type": "string", "minLength": 1 },
|
|
74
|
+
"root": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"declaration": { "type": "object" }
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://buildchain.libkungfu.dev/schemas/v4-compatibility-facts-v1.schema.json",
|
|
4
|
+
"title": "Buildchain v4 compatibility Facts",
|
|
5
|
+
"description": "Closed public shapes for directional, Cut-bound compatibility Facts, explicit path queries, and rooted receipts.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{ "$ref": "#/$defs/fact" },
|
|
8
|
+
{ "$ref": "#/$defs/registry" },
|
|
9
|
+
{ "$ref": "#/$defs/query" },
|
|
10
|
+
{ "$ref": "#/$defs/receiptEntry" }
|
|
11
|
+
],
|
|
12
|
+
"$defs": {
|
|
13
|
+
"root": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
16
|
+
},
|
|
17
|
+
"entry": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": ["root", "record"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"root": { "$ref": "#/$defs/root" },
|
|
23
|
+
"record": { "type": "object" }
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"proof": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": [
|
|
29
|
+
"schema",
|
|
30
|
+
"proofId",
|
|
31
|
+
"predicate",
|
|
32
|
+
"direction",
|
|
33
|
+
"operation",
|
|
34
|
+
"source",
|
|
35
|
+
"target",
|
|
36
|
+
"scope",
|
|
37
|
+
"scopeRoot",
|
|
38
|
+
"evidence",
|
|
39
|
+
"evidenceRoot",
|
|
40
|
+
"authority",
|
|
41
|
+
"authorityRoot",
|
|
42
|
+
"cut",
|
|
43
|
+
"cutRoot",
|
|
44
|
+
"proofRoot"
|
|
45
|
+
],
|
|
46
|
+
"properties": {
|
|
47
|
+
"schema": { "const": "kungfu.buildchain.compatibility-proof/v1" },
|
|
48
|
+
"proofId": { "type": "string", "minLength": 1 },
|
|
49
|
+
"predicate": { "const": "compatible-breaking-digest" },
|
|
50
|
+
"direction": { "const": "source-to-target" },
|
|
51
|
+
"operation": { "const": "accept-contract-lock" },
|
|
52
|
+
"source": { "type": "object" },
|
|
53
|
+
"target": { "type": "object" },
|
|
54
|
+
"scope": { "type": "object" },
|
|
55
|
+
"scopeRoot": { "$ref": "#/$defs/root" },
|
|
56
|
+
"evidence": { "type": "object" },
|
|
57
|
+
"evidenceRoot": { "$ref": "#/$defs/root" },
|
|
58
|
+
"authority": { "type": "object" },
|
|
59
|
+
"authorityRoot": { "$ref": "#/$defs/root" },
|
|
60
|
+
"cut": { "type": "object" },
|
|
61
|
+
"cutRoot": { "$ref": "#/$defs/root" },
|
|
62
|
+
"proofRoot": { "$ref": "#/$defs/root" }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"fact": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": [
|
|
69
|
+
"schema",
|
|
70
|
+
"factId",
|
|
71
|
+
"factRoot",
|
|
72
|
+
"sourceRoot",
|
|
73
|
+
"targetRoot",
|
|
74
|
+
"predicate",
|
|
75
|
+
"relation",
|
|
76
|
+
"proof"
|
|
77
|
+
],
|
|
78
|
+
"properties": {
|
|
79
|
+
"schema": { "const": "kungfu.buildchain.compatibility-fact/v1" },
|
|
80
|
+
"factId": { "type": "string", "minLength": 1 },
|
|
81
|
+
"factRoot": { "$ref": "#/$defs/root" },
|
|
82
|
+
"sourceRoot": { "$ref": "#/$defs/root" },
|
|
83
|
+
"targetRoot": { "$ref": "#/$defs/root" },
|
|
84
|
+
"predicate": { "$ref": "#/$defs/entry" },
|
|
85
|
+
"relation": { "$ref": "#/$defs/entry" },
|
|
86
|
+
"proof": { "$ref": "#/$defs/proof" }
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"registry": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": [
|
|
93
|
+
"schema",
|
|
94
|
+
"rootProtocol",
|
|
95
|
+
"currentCutRoot",
|
|
96
|
+
"predicateRoots",
|
|
97
|
+
"factRoots",
|
|
98
|
+
"supersessionRoots",
|
|
99
|
+
"revocationRoots",
|
|
100
|
+
"legacyProofRoots",
|
|
101
|
+
"temporalBundleRoot",
|
|
102
|
+
"facts",
|
|
103
|
+
"legacyProofs",
|
|
104
|
+
"currentCut",
|
|
105
|
+
"temporalBundle",
|
|
106
|
+
"registryRoot"
|
|
107
|
+
],
|
|
108
|
+
"properties": {
|
|
109
|
+
"schema": {
|
|
110
|
+
"const": "kungfu.buildchain.compatibility-fact-registry/v1"
|
|
111
|
+
},
|
|
112
|
+
"rootProtocol": { "const": "kungfu.fact-root.canonical/v2" },
|
|
113
|
+
"currentCutRoot": { "$ref": "#/$defs/root" },
|
|
114
|
+
"predicateRoots": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"items": { "$ref": "#/$defs/root" },
|
|
117
|
+
"uniqueItems": true
|
|
118
|
+
},
|
|
119
|
+
"factRoots": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": { "$ref": "#/$defs/root" },
|
|
122
|
+
"uniqueItems": true
|
|
123
|
+
},
|
|
124
|
+
"supersessionRoots": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"items": { "$ref": "#/$defs/root" },
|
|
127
|
+
"uniqueItems": true
|
|
128
|
+
},
|
|
129
|
+
"revocationRoots": {
|
|
130
|
+
"type": "array",
|
|
131
|
+
"items": { "$ref": "#/$defs/root" },
|
|
132
|
+
"uniqueItems": true
|
|
133
|
+
},
|
|
134
|
+
"legacyProofRoots": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": { "$ref": "#/$defs/root" },
|
|
137
|
+
"uniqueItems": true
|
|
138
|
+
},
|
|
139
|
+
"temporalBundleRoot": { "$ref": "#/$defs/root" },
|
|
140
|
+
"facts": {
|
|
141
|
+
"type": "array",
|
|
142
|
+
"items": { "$ref": "#/$defs/fact" },
|
|
143
|
+
"minItems": 1
|
|
144
|
+
},
|
|
145
|
+
"legacyProofs": {
|
|
146
|
+
"type": "array",
|
|
147
|
+
"items": { "$ref": "#/$defs/proof" }
|
|
148
|
+
},
|
|
149
|
+
"currentCut": { "type": "object" },
|
|
150
|
+
"temporalBundle": { "type": "object" },
|
|
151
|
+
"registryRoot": { "$ref": "#/$defs/root" }
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"query": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"required": [
|
|
158
|
+
"schema",
|
|
159
|
+
"queryId",
|
|
160
|
+
"operation",
|
|
161
|
+
"predicateRoot",
|
|
162
|
+
"sourceRoot",
|
|
163
|
+
"targetRoot",
|
|
164
|
+
"cutRoot",
|
|
165
|
+
"relationPathRoots",
|
|
166
|
+
"requiredAuthorityRoot",
|
|
167
|
+
"maxDepth"
|
|
168
|
+
],
|
|
169
|
+
"properties": {
|
|
170
|
+
"schema": { "const": "kungfu.fact.temporal-path-query/v1" },
|
|
171
|
+
"queryId": { "type": "string", "minLength": 1 },
|
|
172
|
+
"operation": { "const": "accept-contract-lock" },
|
|
173
|
+
"predicateRoot": { "$ref": "#/$defs/root" },
|
|
174
|
+
"sourceRoot": { "$ref": "#/$defs/root" },
|
|
175
|
+
"targetRoot": { "$ref": "#/$defs/root" },
|
|
176
|
+
"cutRoot": { "$ref": "#/$defs/root" },
|
|
177
|
+
"relationPathRoots": {
|
|
178
|
+
"type": "array",
|
|
179
|
+
"items": { "$ref": "#/$defs/root" },
|
|
180
|
+
"uniqueItems": true
|
|
181
|
+
},
|
|
182
|
+
"requiredAuthorityRoot": { "$ref": "#/$defs/root" },
|
|
183
|
+
"maxDepth": { "type": "integer", "minimum": 1, "maximum": 32 }
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"receiptEntry": {
|
|
187
|
+
"type": "object",
|
|
188
|
+
"additionalProperties": false,
|
|
189
|
+
"required": ["root", "record"],
|
|
190
|
+
"properties": {
|
|
191
|
+
"root": { "$ref": "#/$defs/root" },
|
|
192
|
+
"record": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"additionalProperties": false,
|
|
195
|
+
"required": [
|
|
196
|
+
"schema",
|
|
197
|
+
"queryRoot",
|
|
198
|
+
"status",
|
|
199
|
+
"failureCode",
|
|
200
|
+
"cutRoot",
|
|
201
|
+
"relationPathRoots",
|
|
202
|
+
"authorityProofRoots",
|
|
203
|
+
"omissionRoots"
|
|
204
|
+
],
|
|
205
|
+
"properties": {
|
|
206
|
+
"schema": { "const": "kungfu.fact.temporal-path-receipt/v1" },
|
|
207
|
+
"queryRoot": { "$ref": "#/$defs/root" },
|
|
208
|
+
"status": { "enum": ["accepted", "rejected"] },
|
|
209
|
+
"failureCode": { "type": "string" },
|
|
210
|
+
"cutRoot": { "$ref": "#/$defs/root" },
|
|
211
|
+
"relationPathRoots": {
|
|
212
|
+
"type": "array",
|
|
213
|
+
"items": { "$ref": "#/$defs/root" }
|
|
214
|
+
},
|
|
215
|
+
"authorityProofRoots": {
|
|
216
|
+
"type": "array",
|
|
217
|
+
"items": { "$ref": "#/$defs/root" },
|
|
218
|
+
"uniqueItems": true
|
|
219
|
+
},
|
|
220
|
+
"omissionRoots": {
|
|
221
|
+
"type": "array",
|
|
222
|
+
"items": { "$ref": "#/$defs/root" },
|
|
223
|
+
"uniqueItems": true
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|