@kungfu-tech/buildchain 4.0.1-alpha.5 → 4.0.1-alpha.55
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/README.md +9 -6
- package/actions/release-tail/README.md +8 -0
- package/actions/v4-release-candidate-promote/README.md +3 -0
- package/architecture/agent-change-map.md +1015 -0
- package/architecture/ci-lane-change-budget.json +256 -0
- package/architecture/decisions/0004-v4-declarative-release-tail.md +47 -0
- package/architecture/internal-capabilities.json +220 -15
- package/architecture/maintainability-debt.json +3229 -0
- package/architecture/maintainability-policy.json +489 -132
- package/architecture/release-tail-contract-inventory.json +5 -2
- package/architecture/v3-core-mechanism-inventory.json +4 -3
- package/architecture/v3-v4-capability-closure.md +59 -0
- package/architecture/v3-v4-live-capability-inventory.json +102404 -0
- package/architecture/v4-adopter-delivery-parity.json +32 -5
- package/architecture/v4-cross-platform-adopter-qualification.json +52 -0
- package/architecture/v4-delivery-warrant-shadow-fixtures.json +3 -3
- package/architecture/v4-floating-consumer-policy.json +6 -0
- package/architecture/v4-publication-rehearsal-parity.json +84 -0
- package/architecture/v4-runtime-semantic-closure.json +710 -0
- package/bin/buildchain.mjs +7 -1
- package/bin/internal/adopter-delivery-cli.mjs +70 -0
- package/bin/internal/command-registry.mjs +1 -0
- package/bin/internal/trust-release-release-handlers.mjs +5 -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-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 +1 -1
- package/contracts/v4-adopter-delivery-v1.schema.json +81 -0
- package/contracts/v4-floating-consumer-policy-receipt-v1.schema.json +4 -2
- package/contracts/v4-publication-qualification-v1.schema.json +51 -0
- package/contracts/v4-publication-rehearsal-capsule-v1.schema.json +233 -0
- package/dist/site/agent-index.json +4 -0
- package/dist/site/artifact-schemas.json +8 -0
- package/dist/site/buildchain-contract.json +125 -34
- package/dist/site/buildchain-site.json +308 -33
- package/dist/site/capability-registry.json +13 -12
- package/dist/site/cli-registry.json +57 -2
- package/dist/site/controller-registry.json +41 -5
- package/dist/site/kfd-claims.json +438 -24
- package/dist/site/kfd-upstream-aggregate.json +1 -1
- package/dist/site/manual-registry.json +22 -7
- package/dist/site/node-api-registry.json +12843 -9314
- package/dist/site/page-registry.json +288 -21
- package/dist/site/public-surface-audit.json +281 -21
- package/dist/site/publication-authority-registry.json +66 -8
- package/dist/site/publication-registry.json +4 -4
- package/dist/site/release-provenance.json +20 -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-publication-qualification-v1.schema.json +51 -0
- package/dist/site/schemas/v4-publication-rehearsal-capsule-v1.schema.json +233 -0
- package/dist/site/site-manifest.json +19 -11
- package/dist/site/workflow-registry.json +195 -17
- package/docs/MAP.md +4 -2
- package/docs/cli-reference.md +70 -2
- package/docs/cli.md +8 -0
- package/docs/dev-delivery-warrant.md +34 -10
- package/docs/node-api-reference.md +524 -279
- package/docs/publish-transaction.md +11 -4
- package/docs/release-candidate.md +7 -0
- package/docs/release-tail-provider-plane.md +30 -0
- package/docs/v4-adopter-delivery.md +152 -0
- package/docs/v4-declarative-release-tail-migration.md +43 -0
- package/docs/v4-publication-rehearsal.md +130 -0
- package/package.json +24 -4
- package/packages/core/adopter-delivery-passport.js +295 -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 +1 -0
- package/packages/core/buildchain-config.js +84 -0
- package/packages/core/buildchain-contract.js +31 -1
- 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 +2 -0
- package/packages/core/ci-lane-change-budget.js +247 -0
- package/packages/core/dev-delivery-native-proof.js +43 -27
- package/packages/core/dev-delivery-warrant-settlement.js +239 -3
- package/packages/core/dev-delivery-warrant-state.js +46 -10
- package/packages/core/dev-delivery-warrant.js +29 -7
- package/packages/core/github-governance-authority.js +5 -4
- package/packages/core/index.js +6 -0
- package/packages/core/legacy-kfd-adopter-driver.js +167 -0
- package/packages/core/paper-scaffold-content.js +401 -0
- package/packages/core/paper.js +12 -378
- package/packages/core/publication-control-plane-audit.js +135 -111
- package/packages/core/publication-rehearsal-projection.js +104 -0
- package/packages/core/publication-rehearsal-runtime.js +190 -0
- package/packages/core/published-delivery-authority.js +266 -0
- package/packages/core/release-candidate-recovery.js +71 -15
- package/packages/core/release-candidate.js +2 -2
- package/packages/core/release-passport.js +95 -170
- package/packages/core/v4-adopter-delivery-parity.js +3 -3
- package/packages/core/v4-adopter-delivery.js +359 -0
- package/packages/core/v4-cross-platform-adopter-qualification.js +343 -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 +139 -35
- package/packages/core/v4-floating-consumer-release-passport.js +154 -8
- package/packages/core/v4-publication-qualification.js +222 -0
- 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/workflow-yaml-contract.js +24 -2
- package/scripts/artifact-signing-controller-core.mjs +1 -1
- package/scripts/audit-publication-control-plane.mjs +17 -17
- package/scripts/buildchain-cli-help.mjs +13 -0
- package/scripts/check-ci-lane-change-budget.mjs +100 -0
- package/scripts/check-internal-architecture.mjs +23 -3
- package/scripts/check-inventory.mjs +24 -6
- package/scripts/check-maintainability.mjs +145 -4
- package/scripts/check-project-cut-merge-queue-admission.mjs +87 -0
- package/scripts/check-v3-v4-capability-inventory.mjs +574 -0
- package/scripts/check-v4-floating-consumer-policy-contract.mjs +30 -4
- package/scripts/check-v4-runtime-semantic-closure.mjs +266 -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-warrant-options.mjs +27 -11
- package/scripts/dev-delivery-warrant-store.mjs +10 -6
- package/scripts/dev-delivery-warrant.mjs +50 -6
- package/scripts/dev-pr-auto-merge.mjs +25 -11
- package/scripts/dev-pr-delivery-warrant.mjs +45 -0
- package/scripts/dev-pr-prequeue-guard.mjs +0 -18
- package/scripts/dev-qualification-patrol.mjs +9 -9
- package/scripts/dispatch-artifact-signing-authority.mjs +1 -1
- package/scripts/generate-agent-change-map.mjs +118 -0
- package/scripts/generate-channel-promotion-workflow.mjs +2 -2
- package/scripts/generate-release-candidate-passport.mjs +177 -0
- package/scripts/generate-site-bundle.mjs +36 -0
- package/scripts/maintainability-domain-metrics.mjs +237 -0
- package/scripts/maintainability-governance.mjs +473 -0
- package/scripts/maintainability-metrics.mjs +28 -6
- package/scripts/project-cut-merge-queue-admission.mjs +394 -0
- package/scripts/promotion-channel-router.mjs +4 -4
- package/scripts/promotion-routing-evidence.mjs +35 -6
- package/scripts/release-candidate-anchor-provenance.mjs +99 -0
- package/scripts/release-candidate-resolver.mjs +44 -0
- package/scripts/release-line-policy.mjs +25 -15
- package/scripts/release-tail.mjs +68 -3
- package/scripts/resume-from-candidate-run.mjs +595 -65
- package/scripts/run-lifecycle-core.mjs +341 -376
- package/scripts/site-capability-metadata.mjs +21 -0
- package/scripts/stable-candidate-qualification.mjs +9 -10
- package/scripts/v3-v4-capability-catalog.mjs +439 -0
- package/scripts/v4-consumer-policy.mjs +4 -0
- package/scripts/v4-cross-platform-adopter-qualification.mjs +228 -0
- package/scripts/v4-declarative-promotion-admission.mjs +42 -0
- package/scripts/v4-publication-rehearsal-fixture.mjs +144 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "buildchain-v4-publication-rehearsal-offline-vectors/v1",
|
|
3
|
+
"vectors": [
|
|
4
|
+
{
|
|
5
|
+
"platform": "linux",
|
|
6
|
+
"capsuleRoot": "sha256:29a870ce850c7d6bde848fd77d7f382acf1f743d627c6265a913be51a8c05edf",
|
|
7
|
+
"transactionRoot": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
8
|
+
"stateRoot": "sha256:8e138381ff578bce96ea3934c74b927287a9d53c8b29b4a2e7b2d92cf5ab272d",
|
|
9
|
+
"evidenceRoot": "sha256:0c20fcb7aac8c420e98e63d1968ee8321b9938227e3ae77cfaf194db9588010e"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"platform": "macos",
|
|
13
|
+
"capsuleRoot": "sha256:29a870ce850c7d6bde848fd77d7f382acf1f743d627c6265a913be51a8c05edf",
|
|
14
|
+
"transactionRoot": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
15
|
+
"stateRoot": "sha256:8e138381ff578bce96ea3934c74b927287a9d53c8b29b4a2e7b2d92cf5ab272d",
|
|
16
|
+
"evidenceRoot": "sha256:0c20fcb7aac8c420e98e63d1968ee8321b9938227e3ae77cfaf194db9588010e"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"platform": "windows",
|
|
20
|
+
"capsuleRoot": "sha256:29a870ce850c7d6bde848fd77d7f382acf1f743d627c6265a913be51a8c05edf",
|
|
21
|
+
"transactionRoot": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
22
|
+
"stateRoot": "sha256:8e138381ff578bce96ea3934c74b927287a9d53c8b29b4a2e7b2d92cf5ab272d",
|
|
23
|
+
"evidenceRoot": "sha256:0c20fcb7aac8c420e98e63d1968ee8321b9938227e3ae77cfaf194db9588010e"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"vectorRoot": "sha256:3e968de4060d0fea4cbff82409541f9b6fa903212e18921f2606390eb24993ed"
|
|
27
|
+
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"ref": "v4-alpha",
|
|
23
23
|
"sha": "dddddddddddddddddddddddddddddddddddddddd",
|
|
24
24
|
"contractRoot": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
25
|
-
"consumerPolicyReceiptRoot": "sha256:
|
|
25
|
+
"consumerPolicyReceiptRoot": "sha256:e545cb7dc918ba14b02e9a557623edb7aaadeee180b211b8a3164d67af03e789"
|
|
26
26
|
},
|
|
27
27
|
"warrant": {
|
|
28
28
|
"candidateId": "candidate-alpha-2",
|
|
@@ -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
|
+
}
|
|
@@ -47,8 +47,10 @@
|
|
|
47
47
|
},
|
|
48
48
|
"sourcePath": { "type": "string" },
|
|
49
49
|
"sourceLine": { "type": "integer", "minimum": 0 },
|
|
50
|
-
"visibleSelector": { "enum": ["", "v4", "v4-alpha"] },
|
|
51
|
-
"selectorClass": {
|
|
50
|
+
"visibleSelector": { "enum": ["", "v4", "v4-alpha", "alpha/v4/v4.0"] },
|
|
51
|
+
"selectorClass": {
|
|
52
|
+
"enum": ["", "floating", "protected-bootstrap", "rejected"]
|
|
53
|
+
},
|
|
52
54
|
"channel": { "enum": ["", "stable", "alpha"] },
|
|
53
55
|
"resolvedWorkflowSha": {
|
|
54
56
|
"type": "string",
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://kungfu.link/schemas/buildchain/v4-publication-qualification-v1.schema.json",
|
|
4
|
+
"title": "Buildchain v4 Publication Qualification Receipt",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"repository",
|
|
10
|
+
"candidateRoot",
|
|
11
|
+
"sourceSha",
|
|
12
|
+
"sourceRoot",
|
|
13
|
+
"policyDigest",
|
|
14
|
+
"artifacts",
|
|
15
|
+
"issuedAt",
|
|
16
|
+
"expiresAt",
|
|
17
|
+
"artifactRoot",
|
|
18
|
+
"receiptRoot"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"schema": { "const": "kungfu.buildchain.v4-publication-qualification/v1" },
|
|
22
|
+
"repository": { "type": "string", "pattern": "^[^/\\s]+/[^/\\s]+$" },
|
|
23
|
+
"candidateRoot": { "$ref": "#/$defs/root" },
|
|
24
|
+
"sourceSha": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
|
25
|
+
"sourceRoot": { "$ref": "#/$defs/root" },
|
|
26
|
+
"policyDigest": { "$ref": "#/$defs/root" },
|
|
27
|
+
"artifacts": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"minItems": 1,
|
|
30
|
+
"items": { "$ref": "#/$defs/artifact" }
|
|
31
|
+
},
|
|
32
|
+
"issuedAt": { "type": "string", "format": "date-time" },
|
|
33
|
+
"expiresAt": { "type": "string", "format": "date-time" },
|
|
34
|
+
"artifactRoot": { "$ref": "#/$defs/root" },
|
|
35
|
+
"receiptRoot": { "$ref": "#/$defs/root" }
|
|
36
|
+
},
|
|
37
|
+
"$defs": {
|
|
38
|
+
"root": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
39
|
+
"artifact": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": ["role", "platform", "artifactRoot", "manifestRoot"],
|
|
43
|
+
"properties": {
|
|
44
|
+
"role": { "type": "string", "minLength": 1 },
|
|
45
|
+
"platform": { "type": "string", "minLength": 1 },
|
|
46
|
+
"artifactRoot": { "$ref": "#/$defs/root" },
|
|
47
|
+
"manifestRoot": { "$ref": "#/$defs/root" }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://buildchain.kungfu.ai/contracts/v4-publication-rehearsal-capsule-v1.schema.json",
|
|
4
|
+
"title": "Buildchain v4 Publication Rehearsal Capsule",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"coreVersion",
|
|
10
|
+
"source",
|
|
11
|
+
"candidate",
|
|
12
|
+
"manifest",
|
|
13
|
+
"config",
|
|
14
|
+
"providerBindings",
|
|
15
|
+
"providerBindingsRoot",
|
|
16
|
+
"providerPolicy",
|
|
17
|
+
"expectedObservations",
|
|
18
|
+
"declaration",
|
|
19
|
+
"transaction",
|
|
20
|
+
"files",
|
|
21
|
+
"capsuleRoot"
|
|
22
|
+
],
|
|
23
|
+
"properties": {
|
|
24
|
+
"schema": { "const": "buildchain-v4-publication-rehearsal-capsule/v1" },
|
|
25
|
+
"coreVersion": { "const": "buildchain.release-tail/v1" },
|
|
26
|
+
"source": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["repository", "revision", "root"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"repository": { "type": "string", "minLength": 1 },
|
|
32
|
+
"revision": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
|
33
|
+
"root": { "$ref": "#/$defs/root" }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"candidate": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"required": ["root"],
|
|
40
|
+
"properties": { "root": { "$ref": "#/$defs/root" } }
|
|
41
|
+
},
|
|
42
|
+
"manifest": { "$ref": "#/$defs/fileBinding" },
|
|
43
|
+
"config": { "$ref": "#/$defs/fileBinding" },
|
|
44
|
+
"providerBindings": { "$ref": "#/$defs/providerBindings" },
|
|
45
|
+
"providerBindingsRoot": { "$ref": "#/$defs/root" },
|
|
46
|
+
"providerPolicy": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"required": [
|
|
50
|
+
"schema",
|
|
51
|
+
"effectDefault",
|
|
52
|
+
"allowedCapabilityIds",
|
|
53
|
+
"allowedAdapters",
|
|
54
|
+
"root"
|
|
55
|
+
],
|
|
56
|
+
"properties": {
|
|
57
|
+
"schema": {
|
|
58
|
+
"const": "buildchain-v4-publication-rehearsal-provider-policy/v1"
|
|
59
|
+
},
|
|
60
|
+
"effectDefault": { "const": "disabled" },
|
|
61
|
+
"allowedCapabilityIds": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"minItems": 1,
|
|
64
|
+
"uniqueItems": true,
|
|
65
|
+
"items": { "type": "string", "minLength": 1 }
|
|
66
|
+
},
|
|
67
|
+
"allowedAdapters": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"minItems": 1,
|
|
70
|
+
"uniqueItems": true,
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"pattern": "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"root": { "$ref": "#/$defs/root" }
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"expectedObservations": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": ["entries", "root"],
|
|
83
|
+
"properties": {
|
|
84
|
+
"entries": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": { "$ref": "#/$defs/observationSequence" }
|
|
87
|
+
},
|
|
88
|
+
"root": { "$ref": "#/$defs/root" }
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"declaration": { "$ref": "release-tail-capabilities-v1.schema.json" },
|
|
92
|
+
"transaction": { "type": "object" },
|
|
93
|
+
"files": {
|
|
94
|
+
"type": "array",
|
|
95
|
+
"minItems": 1,
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": ["role", "path", "size", "root"],
|
|
100
|
+
"properties": {
|
|
101
|
+
"role": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"pattern": "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$"
|
|
104
|
+
},
|
|
105
|
+
"path": { "$ref": "#/$defs/path" },
|
|
106
|
+
"size": { "type": "integer", "minimum": 0 },
|
|
107
|
+
"root": { "$ref": "#/$defs/root" }
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"capsuleRoot": { "$ref": "#/$defs/root" }
|
|
112
|
+
},
|
|
113
|
+
"$defs": {
|
|
114
|
+
"root": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
115
|
+
"path": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"minLength": 1,
|
|
118
|
+
"pattern": "^(?!/)(?!.*(?:^|/)\\.(?:/|$))(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*//)(?!.*\\\\)(?!.*\/$).+$"
|
|
119
|
+
},
|
|
120
|
+
"providerBindings": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"additionalProperties": false,
|
|
123
|
+
"required": ["schema", "artifacts", "documents", "evidence"],
|
|
124
|
+
"properties": {
|
|
125
|
+
"schema": {
|
|
126
|
+
"const": "kungfu.buildchain.release-tail.provider-bindings/v1"
|
|
127
|
+
},
|
|
128
|
+
"artifacts": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"propertyNames": {
|
|
131
|
+
"pattern": "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$"
|
|
132
|
+
},
|
|
133
|
+
"additionalProperties": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"required": ["path", "name"],
|
|
137
|
+
"properties": {
|
|
138
|
+
"path": { "$ref": "#/$defs/path" },
|
|
139
|
+
"name": { "type": "string", "minLength": 1 }
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"documents": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"propertyNames": {
|
|
146
|
+
"pattern": "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$"
|
|
147
|
+
},
|
|
148
|
+
"additionalProperties": { "$ref": "#/$defs/providerDocument" }
|
|
149
|
+
},
|
|
150
|
+
"evidence": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"additionalProperties": false,
|
|
153
|
+
"required": ["inputs", "output"],
|
|
154
|
+
"properties": {
|
|
155
|
+
"inputs": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"uniqueItems": true,
|
|
158
|
+
"items": { "$ref": "#/$defs/path" }
|
|
159
|
+
},
|
|
160
|
+
"output": { "$ref": "#/$defs/path" }
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"providerDocument": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"required": ["path", "method"],
|
|
169
|
+
"properties": {
|
|
170
|
+
"path": { "$ref": "#/$defs/path" },
|
|
171
|
+
"method": { "enum": ["PUT", "POST"] }
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"fileBinding": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"additionalProperties": false,
|
|
177
|
+
"required": ["path", "root"],
|
|
178
|
+
"properties": {
|
|
179
|
+
"path": { "$ref": "#/$defs/path" },
|
|
180
|
+
"root": { "$ref": "#/$defs/root" }
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"readback": {
|
|
184
|
+
"type": "object",
|
|
185
|
+
"additionalProperties": false,
|
|
186
|
+
"required": [
|
|
187
|
+
"outcome",
|
|
188
|
+
"subjectRoot",
|
|
189
|
+
"targetRoot",
|
|
190
|
+
"evidenceRoots",
|
|
191
|
+
"providerCode"
|
|
192
|
+
],
|
|
193
|
+
"properties": {
|
|
194
|
+
"outcome": { "enum": ["observed", "absent", "transient", "conflict"] },
|
|
195
|
+
"subjectRoot": {
|
|
196
|
+
"oneOf": [{ "$ref": "#/$defs/root" }, { "const": "" }]
|
|
197
|
+
},
|
|
198
|
+
"targetRoot": {
|
|
199
|
+
"oneOf": [{ "$ref": "#/$defs/root" }, { "const": "" }]
|
|
200
|
+
},
|
|
201
|
+
"evidenceRoots": {
|
|
202
|
+
"type": "array",
|
|
203
|
+
"uniqueItems": true,
|
|
204
|
+
"items": { "$ref": "#/$defs/root" }
|
|
205
|
+
},
|
|
206
|
+
"providerCode": { "type": "string", "minLength": 1 }
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"observationSequence": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"additionalProperties": false,
|
|
212
|
+
"required": ["operationId", "readbacks", "apply"],
|
|
213
|
+
"properties": {
|
|
214
|
+
"operationId": { "$ref": "#/$defs/root" },
|
|
215
|
+
"readbacks": {
|
|
216
|
+
"type": "array",
|
|
217
|
+
"minItems": 1,
|
|
218
|
+
"items": { "$ref": "#/$defs/readback" }
|
|
219
|
+
},
|
|
220
|
+
"apply": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"additionalProperties": false,
|
|
223
|
+
"required": ["outcome", "code", "classification"],
|
|
224
|
+
"properties": {
|
|
225
|
+
"outcome": { "enum": ["applied", "transient", "conflict"] },
|
|
226
|
+
"code": { "type": "string", "minLength": 1 },
|
|
227
|
+
"classification": { "type": "string", "minLength": 1 }
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"schemas/kfd-product-gate-input-v1.schema.json",
|
|
22
22
|
"schemas/dev-delivery-authority-v2.schema.json",
|
|
23
23
|
"schemas/v4-compatibility-facts-v1.schema.json",
|
|
24
|
+
"schemas/v4-publication-rehearsal-capsule-v1.schema.json",
|
|
25
|
+
"schemas/v4-adopter-delivery-v1.schema.json",
|
|
26
|
+
"schemas/release-tail-capabilities-v1.schema.json",
|
|
27
|
+
"schemas/v4-publication-qualification-v1.schema.json",
|
|
24
28
|
"buildchain-contract.json",
|
|
25
29
|
"kfd-upstream-aggregate.json",
|
|
26
30
|
"kfd-claims.json",
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
"schemas/kfd-product-gate-input-v1.schema.json",
|
|
10
10
|
"schemas/dev-delivery-authority-v2.schema.json",
|
|
11
11
|
"schemas/v4-compatibility-facts-v1.schema.json",
|
|
12
|
+
"schemas/v4-publication-rehearsal-capsule-v1.schema.json",
|
|
13
|
+
"schemas/v4-adopter-delivery-v1.schema.json",
|
|
14
|
+
"schemas/release-tail-capabilities-v1.schema.json",
|
|
15
|
+
"schemas/v4-publication-qualification-v1.schema.json",
|
|
12
16
|
"kfd-support.json",
|
|
13
17
|
"artifact-evidence.json",
|
|
14
18
|
"product-mechanism.json",
|
|
@@ -45,6 +49,10 @@
|
|
|
45
49
|
"schemas/kfd-product-gate-input-v1.schema.json",
|
|
46
50
|
"schemas/dev-delivery-authority-v2.schema.json",
|
|
47
51
|
"schemas/v4-compatibility-facts-v1.schema.json",
|
|
52
|
+
"schemas/v4-publication-rehearsal-capsule-v1.schema.json",
|
|
53
|
+
"schemas/v4-adopter-delivery-v1.schema.json",
|
|
54
|
+
"schemas/release-tail-capabilities-v1.schema.json",
|
|
55
|
+
"schemas/v4-publication-qualification-v1.schema.json",
|
|
48
56
|
"buildchain-contract.json",
|
|
49
57
|
"kfd-claims.json",
|
|
50
58
|
"product-mechanism.json",
|