@kungfu-tech/buildchain 4.0.1 → 4.0.2-alpha.10

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 (65) hide show
  1. package/architecture/agent-change-map.md +15 -6
  2. package/architecture/ci-lane-change-budget.json +76 -8
  3. package/architecture/internal-capabilities.json +9 -2
  4. package/architecture/maintainability-debt.json +66 -136
  5. package/architecture/maintainability-policy.json +17 -12
  6. package/architecture/release-tail-contract-inventory.json +4 -4
  7. package/architecture/v3-core-mechanism-inventory.json +3 -0
  8. package/architecture/v3-v4-live-capability-inventory.json +17 -17
  9. package/architecture/v4-delivery-warrant-shadow-fixtures.json +5 -5
  10. package/architecture/v4-release-invocation-fixtures.json +139 -0
  11. package/architecture/v4-release-topology.json +316 -0
  12. package/architecture/v4-runtime-semantic-closure.json +4 -1
  13. package/contracts/buildchain-v2-residuals-v1.json +0 -9
  14. package/contracts/fixtures/v4-tail-reseal-v1/valid.json +1 -1
  15. package/contracts/v4-release-invocation-v1.schema.json +134 -0
  16. package/dist/site/buildchain-contract.json +9 -9
  17. package/dist/site/buildchain-site.json +9 -9
  18. package/dist/site/kfd-claims.json +28 -7
  19. package/dist/site/kfd-upstream-aggregate.json +1 -1
  20. package/dist/site/manual-registry.json +1 -1
  21. package/dist/site/node-api-registry.json +92 -17
  22. package/dist/site/page-registry.json +4 -4
  23. package/dist/site/public-surface-audit.json +42 -10
  24. package/dist/site/publication-authority-registry.json +2 -3
  25. package/dist/site/publication-registry.json +4 -4
  26. package/dist/site/site-manifest.json +5 -5
  27. package/dist/site/workflow-registry.json +38 -11
  28. package/docs/dev-delivery-warrant.md +21 -0
  29. package/docs/node-api-reference.md +19 -16
  30. package/package.json +2 -2
  31. package/packages/core/dev-delivery-candidate-identity.js +45 -17
  32. package/packages/core/dev-delivery-execution-transfer.js +6 -7
  33. package/packages/core/dev-delivery-provider-heartbeat.js +22 -6
  34. package/packages/core/dev-delivery-warrant-legacy-recovery.js +248 -0
  35. package/packages/core/dev-delivery-warrant-native-compatibility.js +33 -0
  36. package/packages/core/dev-delivery-warrant-state.js +54 -54
  37. package/packages/core/dev-delivery-warrant.js +8 -0
  38. package/packages/core/dev-delivery-writer-protocol-transition.js +72 -0
  39. package/packages/core/release-tail-product-capabilities.js +29 -0
  40. package/packages/core/release-tail-provider-plane.js +2 -2
  41. package/packages/core/v4-canonical-contracts.js +14 -0
  42. package/packages/core/v4-floating-consumer-policy.js +4 -1
  43. package/packages/core/v4-product-publication.js +387 -0
  44. package/packages/core/v4-protected-publication-source.js +93 -0
  45. package/packages/core/v4-publication-qualification.js +1 -0
  46. package/packages/core/v4-release-invocation.js +425 -0
  47. package/scripts/audit-publication-control-plane.mjs +0 -1
  48. package/scripts/check-inventory.mjs +27 -59
  49. package/scripts/check-maintainability.mjs +13 -5
  50. package/scripts/check-v3-v4-capability-inventory.mjs +3 -61
  51. package/scripts/check-v4-floating-consumer-policy-contract.mjs +10 -20
  52. package/scripts/check-v4-release-topology.mjs +490 -0
  53. package/scripts/dev-delivery-warrant-options.mjs +15 -4
  54. package/scripts/dev-delivery-warrant.mjs +41 -7
  55. package/scripts/generate-channel-promotion-workflow.mjs +14 -55
  56. package/scripts/release-candidate-resolver.mjs +23 -24
  57. package/scripts/resume-from-candidate-run.mjs +16 -17
  58. package/scripts/v3-v4-capability-catalog.mjs +107 -0
  59. package/scripts/v4-declarative-promotion-admission.mjs +4 -1
  60. package/scripts/v4-product-publication-intent.mjs +114 -0
  61. package/scripts/v4-release-candidate-adapter.mjs +41 -0
  62. package/scripts/capture-package-release-propagation.mjs +0 -263
  63. package/scripts/publication-commit-evidence.mjs +0 -444
  64. package/scripts/publish-github-artifact-attestation-evidence.mjs +0 -201
  65. package/scripts/stage-github-artifact-attestation-inputs.mjs +0 -65
@@ -77,7 +77,6 @@ Safe change route: Reduce one owned responsibility behind the stable facade, run
77
77
  - sources: `scripts/locked-source-checkout.mjs`
78
78
  - sources: `scripts/maintainability-domain-metrics.mjs`
79
79
  - sources: `scripts/paper.mjs`
80
- - sources: `scripts/publication-commit-evidence.mjs`
81
80
  - sources: `scripts/reconcile-github-governance.mjs`
82
81
  - sources: `scripts/release-candidate-resolver.mjs`
83
82
  - sources: `scripts/release-line-policy.mjs`
@@ -124,7 +123,6 @@ Safe change route: Reduce one owned responsibility behind the stable facade, run
124
123
  - tests: `tests/release-passport.test.mjs`
125
124
  - tests: `tests/release-propagation.test.mjs`
126
125
  - tests: `tests/v4-delivery-authority-parity.test.mjs`
127
- - tests: `tests/v4-floating-consumer-policy-contract.test.mjs`
128
126
  - tests: `tests/v4-floating-consumer-policy.test.mjs`
129
127
  - tests: `tests/v4-publication-rehearsal.test.mjs`
130
128
  - tests: `tests/web-surface.test.mjs`
@@ -154,6 +152,7 @@ Safe change route: Reduce one owned responsibility behind the stable facade, run
154
152
 
155
153
  - `tests/v3-v4-capability-inventory.test.mjs`
156
154
  - `tests/v4-floating-consumer-policy-contract.test.mjs`
155
+ - `tests/v4-publication-qualification.test.mjs`
157
156
  - `.github/workflows/v4-adopter-delivery.yml`
158
157
  - `.github/workflows/buildchain-ref-promotion.yml`
159
158
  - `tests/release-candidate-recovery.test.mjs`
@@ -166,21 +165,26 @@ Safe change route: Reduce one owned responsibility behind the stable facade, run
166
165
  - `scripts/check-v3-v4-capability-inventory.mjs`
167
166
  - `.github/workflows/release-candidate-promote.yml`
168
167
  - `actions/promote-buildchain-ref/lib.js`
168
+ - `actions/v4-release-candidate-promote/index.js`
169
+ - `actions/v4-release-candidate-promote/product-provider.js`
169
170
  - `scripts/check-inventory.mjs`
170
171
  - `tests/promote-buildchain-ref.test.mjs`
171
172
  - `tests/promotion-channel-router.test.mjs`
173
+ - `tests/v4-release-topology.test.mjs`
172
174
  - `scripts/site-capability-metadata.mjs`
173
175
  - `tests/v4-floating-consumer-policy.test.mjs`
176
+ - `tests/v4-declarative-promotion-mode.test.mjs`
174
177
  - `scripts/buildchain-cli-help.mjs`
175
178
  - `scripts/check-v4-floating-consumer-policy-contract.mjs`
176
179
  - `tests/dev-delivery-warrant.test.mjs`
180
+ - `packages/core/dev-delivery-warrant-state.js`
177
181
  - `actions/promote-buildchain-ref/internal/version-state.js`
178
- - `packages/core/v4-floating-consumer-policy.js`
179
182
  - `packages/core/v4-floating-consumer-release-passport.js`
180
183
  - `packages/core/release-passport.js`
181
184
  - `tests/promote-buildchain-ref-governance.test.mjs`
182
- - `tests/v4-declarative-promotion-mode.test.mjs`
183
185
  - `scripts/buildchain-cli-help.mjs`
186
+ - `scripts/check-maintainability.mjs`
187
+ - `tests/maintainability.test.mjs`
184
188
 
185
189
  ## cli-command-registry
186
190
 
@@ -381,6 +385,7 @@ Owner: Buildchain action maintainers
381
385
 
382
386
  ### Implementation
383
387
 
388
+ - `actions/promote-buildchain-ref/internal/contained-published-version-state.js`
384
389
  - `actions/promote-buildchain-ref/internal/promote-alpha-channel.js`
385
390
  - `actions/promote-buildchain-ref/internal/promote-major-channel.js`
386
391
  - `actions/promote-buildchain-ref/internal/promote-release-channel.js`
@@ -392,6 +397,7 @@ Owner: Buildchain action maintainers
392
397
 
393
398
  ### Tests
394
399
 
400
+ - `tests/promote-buildchain-ref-contained-published-version-state.test.mjs`
395
401
  - `tests/promote-buildchain-ref.test.mjs`
396
402
  - `tests/promote-buildchain-ref-recovery.test.mjs`
397
403
  - `tests/promote-buildchain-ref-governance.test.mjs`
@@ -403,7 +409,7 @@ Owner: Buildchain action maintainers
403
409
 
404
410
  ### Minimal validation
405
411
 
406
- - `node --test tests/promote-buildchain-ref.test.mjs tests/promote-buildchain-ref-recovery.test.mjs tests/promote-buildchain-ref-governance.test.mjs tests/promotion-responsibilities.test.mjs`
412
+ - `node --test tests/promote-buildchain-ref-contained-published-version-state.test.mjs tests/promote-buildchain-ref.test.mjs tests/promote-buildchain-ref-recovery.test.mjs tests/promote-buildchain-ref-governance.test.mjs tests/promotion-responsibilities.test.mjs`
407
413
 
408
414
  ## promotion-github-transaction-store
409
415
 
@@ -893,7 +899,9 @@ Owner: Buildchain protected delivery maintainers
893
899
 
894
900
  - `packages/core/dev-delivery-warrant.js`
895
901
  - `packages/core/dev-delivery-warrant-state.js`
902
+ - `packages/core/dev-delivery-warrant-native-compatibility.js`
896
903
  - `packages/core/dev-delivery-warrant-qualification.js`
904
+ - `packages/core/dev-delivery-warrant-legacy-recovery.js`
897
905
  - `packages/core/dev-delivery-native-proof.js`
898
906
  - `packages/core/dev-delivery-native-execution.js`
899
907
  - `packages/core/dev-delivery-execution-failure.js`
@@ -940,6 +948,7 @@ Owner: Buildchain protected delivery maintainers
940
948
 
941
949
  - `tests/dev-delivery-warrant.test.mjs`
942
950
  - `tests/dev-delivery-warrant-command.test.mjs`
951
+ - `tests/dev-delivery-warrant-legacy-recovery.test.mjs`
943
952
  - `tests/dev-delivery-two-phase.test.mjs`
944
953
  - `tests/dev-delivery-two-phase-run.test.mjs`
945
954
  - `tests/dev-delivery-native-run.test.mjs`
@@ -956,7 +965,7 @@ Owner: Buildchain protected delivery maintainers
956
965
 
957
966
  ### Minimal validation
958
967
 
959
- - `node --test tests/dev-delivery-warrant.test.mjs tests/dev-delivery-warrant-command.test.mjs tests/dev-delivery-two-phase.test.mjs tests/dev-delivery-two-phase-run.test.mjs tests/dev-delivery-native-run.test.mjs tests/dev-delivery-process-boundary.test.mjs tests/dev-delivery-process-boundary-negative.test.mjs tests/dev-delivery-provider-heartbeat.test.mjs tests/dev-delivery-authority.test.mjs tests/build-surface.test.mjs tests/v4-delivery-authority-parity.test.mjs`
968
+ - `node --test tests/dev-delivery-warrant.test.mjs tests/dev-delivery-warrant-command.test.mjs tests/dev-delivery-warrant-legacy-recovery.test.mjs tests/dev-delivery-two-phase.test.mjs tests/dev-delivery-two-phase-run.test.mjs tests/dev-delivery-native-run.test.mjs tests/dev-delivery-process-boundary.test.mjs tests/dev-delivery-process-boundary-negative.test.mjs tests/dev-delivery-provider-heartbeat.test.mjs tests/dev-delivery-authority.test.mjs tests/build-surface.test.mjs tests/v4-delivery-authority-parity.test.mjs`
960
969
 
961
970
  ## v4-publication-rehearsal
962
971
 
@@ -185,37 +185,105 @@
185
185
  },
186
186
  "declarations": [
187
187
  {
188
- "laneId": ".github/workflows/.release-candidate-promote.yml#legacy-promote",
188
+ "laneId": ".github/workflows/.release-candidate-promote.yml#qualify",
189
+ "authorityClass": "evidence",
190
+ "triggerClass": "reusable",
191
+ "concurrencyPolicy": {
192
+ "mode": "serialized",
193
+ "cancelInProgress": false
194
+ },
195
+ "expectedRunnerMinutes": 30,
196
+ "cancellationBehavior": "finish-started",
197
+ "sloImpact": {
198
+ "mergeCritical": false,
199
+ "metric": "protected release qualification latency",
200
+ "expectedContributionSeconds": 0,
201
+ "rationale": "QUALIFY is the read-only exact-runtime and sealed-candidate admission boundary."
202
+ }
203
+ },
204
+ {
205
+ "laneId": ".github/workflows/.release-candidate-promote.yml#apply",
189
206
  "authorityClass": "release",
190
207
  "triggerClass": "reusable",
208
+ "concurrencyPolicy": {
209
+ "mode": "serialized",
210
+ "cancelInProgress": false
211
+ },
212
+ "expectedRunnerMinutes": 30,
213
+ "cancellationBehavior": "finish-started",
214
+ "sloImpact": {
215
+ "mergeCritical": false,
216
+ "metric": "protected release APPLY latency",
217
+ "expectedContributionSeconds": 0,
218
+ "rationale": "APPLY is the sole contents-write and provider-mutation OIDC authority boundary."
219
+ }
220
+ },
221
+ {
222
+ "laneId": ".github/workflows/.release-candidate-promote.yml#settle",
223
+ "authorityClass": "evidence",
224
+ "triggerClass": "reusable",
225
+ "concurrencyPolicy": {
226
+ "mode": "serialized",
227
+ "cancelInProgress": false
228
+ },
229
+ "expectedRunnerMinutes": 10,
230
+ "cancellationBehavior": "finish-started",
231
+ "sloImpact": {
232
+ "mergeCritical": false,
233
+ "metric": "terminal receipt projection latency",
234
+ "expectedContributionSeconds": 0,
235
+ "rationale": "SETTLE verifies and projects the already durable terminal ReleaseReceipt without mutation authority."
236
+ }
237
+ },
238
+ {
239
+ "laneId": ".github/workflows/buildchain-ref-promotion-recovery.yml#resume",
240
+ "authorityClass": "release",
241
+ "triggerClass": "manual",
191
242
  "concurrencyPolicy": {
192
243
  "mode": "none",
193
244
  "cancelInProgress": false
194
245
  },
195
- "expectedRunnerMinutes": 45,
246
+ "expectedRunnerMinutes": 35,
196
247
  "cancellationBehavior": "finish-started",
197
248
  "sloImpact": {
198
249
  "mergeCritical": false,
199
- "metric": "protected release completion latency",
250
+ "metric": "manual recovery adapter latency",
200
251
  "expectedContributionSeconds": 0,
201
- "rationale": "This is the existing v3 promotion lane under an explicit legacy identity, not an added execution path."
252
+ "rationale": "The recovery surface is a one-way adapter into the same canonical publisher."
202
253
  }
203
254
  },
204
255
  {
205
- "laneId": ".github/workflows/.release-candidate-promote.yml#v4-declarative-promote",
256
+ "laneId": ".github/workflows/buildchain-ref-promotion.yml#promote",
257
+ "authorityClass": "release",
258
+ "triggerClass": "mixed",
259
+ "concurrencyPolicy": {
260
+ "mode": "none",
261
+ "cancelInProgress": false
262
+ },
263
+ "expectedRunnerMinutes": 35,
264
+ "cancellationBehavior": "finish-started",
265
+ "sloImpact": {
266
+ "mergeCritical": false,
267
+ "metric": "Buildchain alpha promotion adapter latency",
268
+ "expectedContributionSeconds": 0,
269
+ "rationale": "The Buildchain-owned alpha entry delegates to the single v4 publisher."
270
+ }
271
+ },
272
+ {
273
+ "laneId": ".github/workflows/release-candidate-promote.yml#invoke",
206
274
  "authorityClass": "release",
207
275
  "triggerClass": "reusable",
208
276
  "concurrencyPolicy": {
209
277
  "mode": "none",
210
278
  "cancelInProgress": false
211
279
  },
212
- "expectedRunnerMinutes": 30,
280
+ "expectedRunnerMinutes": 35,
213
281
  "cancellationBehavior": "finish-started",
214
282
  "sloImpact": {
215
283
  "mergeCritical": false,
216
- "metric": "protected release completion latency",
284
+ "metric": "public promotion adapter latency",
217
285
  "expectedContributionSeconds": 0,
218
- "rationale": "The v4 provider lane replaces consumer tail execution only for release invocations and is outside merge-critical CI."
286
+ "rationale": "The public compatibility surface resolves discovery facts and invokes one fixed v4 publisher."
219
287
  }
220
288
  },
221
289
  {
@@ -75,7 +75,9 @@
75
75
  "scripts/v4-stage-capsule-qualification.mjs",
76
76
  "packages/core/dev-delivery-warrant.js",
77
77
  "packages/core/dev-delivery-warrant-state.js",
78
+ "packages/core/dev-delivery-warrant-native-compatibility.js",
78
79
  "packages/core/dev-delivery-warrant-qualification.js",
80
+ "packages/core/dev-delivery-warrant-legacy-recovery.js",
79
81
  "packages/core/dev-delivery-native-proof.js",
80
82
  "packages/core/dev-delivery-native-execution.js",
81
83
  "packages/core/dev-delivery-execution-failure.js",
@@ -269,11 +271,13 @@
269
271
  "id": "promotion-channel-orchestration",
270
272
  "owner": "Buildchain action maintainers",
271
273
  "implementation": [
274
+ "actions/promote-buildchain-ref/internal/contained-published-version-state.js",
272
275
  "actions/promote-buildchain-ref/internal/promote-alpha-channel.js",
273
276
  "actions/promote-buildchain-ref/internal/promote-major-channel.js",
274
277
  "actions/promote-buildchain-ref/internal/promote-release-channel.js"
275
278
  ],
276
279
  "tests": [
280
+ "tests/promote-buildchain-ref-contained-published-version-state.test.mjs",
277
281
  "tests/promote-buildchain-ref.test.mjs",
278
282
  "tests/promote-buildchain-ref-recovery.test.mjs",
279
283
  "tests/promote-buildchain-ref-governance.test.mjs",
@@ -285,7 +289,7 @@
285
289
  ],
286
290
  "generatedOutputs": ["actions/promote-buildchain-ref/dist/index.js"],
287
291
  "validationCommands": [
288
- "node --test tests/promote-buildchain-ref.test.mjs tests/promote-buildchain-ref-recovery.test.mjs tests/promote-buildchain-ref-governance.test.mjs tests/promotion-responsibilities.test.mjs"
292
+ "node --test tests/promote-buildchain-ref-contained-published-version-state.test.mjs tests/promote-buildchain-ref.test.mjs tests/promote-buildchain-ref-recovery.test.mjs tests/promote-buildchain-ref-governance.test.mjs tests/promotion-responsibilities.test.mjs"
289
293
  ]
290
294
  },
291
295
  {
@@ -590,7 +594,9 @@
590
594
  "implementation": [
591
595
  "packages/core/dev-delivery-warrant.js",
592
596
  "packages/core/dev-delivery-warrant-state.js",
597
+ "packages/core/dev-delivery-warrant-native-compatibility.js",
593
598
  "packages/core/dev-delivery-warrant-qualification.js",
599
+ "packages/core/dev-delivery-warrant-legacy-recovery.js",
594
600
  "packages/core/dev-delivery-native-proof.js",
595
601
  "packages/core/dev-delivery-native-execution.js",
596
602
  "packages/core/dev-delivery-execution-failure.js",
@@ -624,6 +630,7 @@
624
630
  "tests": [
625
631
  "tests/dev-delivery-warrant.test.mjs",
626
632
  "tests/dev-delivery-warrant-command.test.mjs",
633
+ "tests/dev-delivery-warrant-legacy-recovery.test.mjs",
627
634
  "tests/dev-delivery-two-phase.test.mjs",
628
635
  "tests/dev-delivery-two-phase-run.test.mjs",
629
636
  "tests/dev-delivery-native-run.test.mjs",
@@ -649,7 +656,7 @@
649
656
  "dist/site/schemas/dev-delivery-authority-v2.schema.json"
650
657
  ],
651
658
  "validationCommands": [
652
- "node --test tests/dev-delivery-warrant.test.mjs tests/dev-delivery-warrant-command.test.mjs tests/dev-delivery-two-phase.test.mjs tests/dev-delivery-two-phase-run.test.mjs tests/dev-delivery-native-run.test.mjs tests/dev-delivery-process-boundary.test.mjs tests/dev-delivery-process-boundary-negative.test.mjs tests/dev-delivery-provider-heartbeat.test.mjs tests/dev-delivery-authority.test.mjs tests/build-surface.test.mjs tests/v4-delivery-authority-parity.test.mjs"
659
+ "node --test tests/dev-delivery-warrant.test.mjs tests/dev-delivery-warrant-command.test.mjs tests/dev-delivery-warrant-legacy-recovery.test.mjs tests/dev-delivery-two-phase.test.mjs tests/dev-delivery-two-phase-run.test.mjs tests/dev-delivery-native-run.test.mjs tests/dev-delivery-process-boundary.test.mjs tests/dev-delivery-process-boundary-negative.test.mjs tests/dev-delivery-provider-heartbeat.test.mjs tests/dev-delivery-authority.test.mjs tests/build-surface.test.mjs tests/v4-delivery-authority-parity.test.mjs"
653
660
  ]
654
661
  },
655
662
  {