@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
|
@@ -97,6 +97,13 @@ state for `vX.Y.Z-alpha.N` and cannot resume it with the same transaction
|
|
|
97
97
|
identity, alpha version selection must advance to the next prerelease instead
|
|
98
98
|
of reusing or overwriting that failed transaction slot.
|
|
99
99
|
|
|
100
|
+
The immutable `publish-gate/{alpha,release}/.../<version>` source lock also
|
|
101
|
+
reserves its exact version when a failure happens before durable transaction
|
|
102
|
+
state can be created. A later candidate with a different source SHA advances to
|
|
103
|
+
the next version; it never rebinds or overwrites the earlier source lock. The
|
|
104
|
+
same source SHA reuses its own lock so authority planning and mutation stay on
|
|
105
|
+
one exact version.
|
|
106
|
+
|
|
100
107
|
`release-candidate-promote.yml` can establish or restore this state from an
|
|
101
108
|
older successful candidate run through the documented fresh-event recovery
|
|
102
109
|
inputs. The recovery receipt and sealed bundle are verified before the action
|
|
@@ -251,10 +258,10 @@ Example reused OCI evidence entry (the pre-publish requirement may omit
|
|
|
251
258
|
|
|
252
259
|
Buildchain distinguishes two npm release modes:
|
|
253
260
|
|
|
254
|
-
| Mode
|
|
255
|
-
|
|
|
256
|
-
| `publish-final-version`
|
|
257
|
-
| `promote-existing-version` | same-version alpha-to-latest recovery | `npm-token`
|
|
261
|
+
| Mode | Use | Auth | npm operation |
|
|
262
|
+
| -------------------------- | ------------------------------------- | -------------------- | ----------------------------------------------- |
|
|
263
|
+
| `publish-final-version` | normal alpha or stable publication | `trusted-publishing` | `npm publish --tag <alpha\|vX.Y-alpha\|latest>` |
|
|
264
|
+
| `promote-existing-version` | same-version alpha-to-latest recovery | `npm-token` | `npm dist-tag add <pkg>@<version> latest` |
|
|
258
265
|
|
|
259
266
|
The normal libnode path is `publish-final-version`: publish an alpha package set
|
|
260
267
|
such as `22.22.3-kf.3-alpha.0` with the `alpha` dist-tag, then publish a
|
|
@@ -234,6 +234,13 @@ restored sealed bundle, and a conflicting payload digest fails closed. Ordinary
|
|
|
234
234
|
duplicate publication without a complete recovery receipt retains the stricter
|
|
235
235
|
same-name/same-digest rule for all assets.
|
|
236
236
|
|
|
237
|
+
If that explicit complete recovery finds that the public Release Passport is
|
|
238
|
+
absent, it may restore the complete locally verified evidence closure. Before
|
|
239
|
+
the first upload, Buildchain rejects undeclared remote assets and compares every
|
|
240
|
+
same-name remote asset byte-for-byte; any unknown name or digest conflict fails
|
|
241
|
+
closed without mutation. Ordinary duplicate publication cannot enter this
|
|
242
|
+
repair path.
|
|
243
|
+
|
|
237
244
|
After a transaction finalizes, the target branch can legitimately advance from
|
|
238
245
|
the original promotion SHA. Repeating explicit recovery accepts that movement
|
|
239
246
|
only when the caller supplies the exact durable transaction identity, the
|
|
@@ -38,6 +38,36 @@ inspects, verifies, and diagnoses bounded v3 compatibility using the same core
|
|
|
38
38
|
transaction format. The reusable workflow checks out an exact Buildchain ref
|
|
39
39
|
and invokes the packaged Action; callers cannot inject an execution command.
|
|
40
40
|
|
|
41
|
+
The reusable workflow is permission-neutral: it inherits the calling job's
|
|
42
|
+
GitHub token permissions and never elevates them. A rehearsal caller can remain
|
|
43
|
+
`contents: read` and must pass `execute: false`. An effectful production caller
|
|
44
|
+
owns and declares its provider authority explicitly:
|
|
45
|
+
|
|
46
|
+
<!-- release-tail-production-caller-contract -->
|
|
47
|
+
|
|
48
|
+
```yaml
|
|
49
|
+
name: Production release tail
|
|
50
|
+
|
|
51
|
+
on:
|
|
52
|
+
workflow_dispatch:
|
|
53
|
+
|
|
54
|
+
jobs:
|
|
55
|
+
release-tail:
|
|
56
|
+
permissions:
|
|
57
|
+
contents: write
|
|
58
|
+
uses: kungfu-systems/buildchain/.github/workflows/release-tail.yml@<exact-buildchain-sha>
|
|
59
|
+
with:
|
|
60
|
+
buildchain-ref: <exact-buildchain-sha>
|
|
61
|
+
declaration-path: .buildchain/release-tail/declaration.json
|
|
62
|
+
provider-bindings-path: .buildchain/release-tail/provider-bindings.json
|
|
63
|
+
execute: true
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Omitting caller write authority cannot be repaired by the reusable workflow;
|
|
67
|
+
GitHub rejects or constrains the call before provider execution. `execute:
|
|
68
|
+
false` remains a plan/rehearsal boundary and does not authorize production
|
|
69
|
+
mutation even when a caller token has broader ambient permissions.
|
|
70
|
+
|
|
41
71
|
## Inputs and secrets
|
|
42
72
|
|
|
43
73
|
The declaration follows
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: preview
|
|
3
|
+
period: 2026-08-27
|
|
4
|
+
theme: buildchain-v4-adopter-delivery
|
|
5
|
+
doc_type: product-manual
|
|
6
|
+
source_level: local-files
|
|
7
|
+
confidence: high
|
|
8
|
+
sensitivity: public
|
|
9
|
+
evidence_grade: A
|
|
10
|
+
review_state: self-reviewed
|
|
11
|
+
last_reviewed: 2026-08-27
|
|
12
|
+
ai_provenance:
|
|
13
|
+
model_family: GPT-5
|
|
14
|
+
product: Codex
|
|
15
|
+
generated_at: 2026-08-27
|
|
16
|
+
visible_context: Exact protected v3 adopter-delivery cut, v4 pure contract core, published npm archive bytes, public consumer policy, complete v3 capability inventory, and rooted cross-platform qualification reports.
|
|
17
|
+
invisible_context_boundary: No credentials, provider mutations, signing operations, publication operations, or release authority were used.
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# V4 Public Adopter Delivery
|
|
21
|
+
|
|
22
|
+
Buildchain v4 carries the v3 adopter-delivery capability through a public,
|
|
23
|
+
protocol-neutral boundary. Consumers select an exact protocol driver and
|
|
24
|
+
artifact profile, retain the rooted gate result, and independently recompute
|
|
25
|
+
that readback. Buildchain does not interpret a protocol owned by another
|
|
26
|
+
project and a passing result never grants runtime, provider, signing,
|
|
27
|
+
publication, or release authority.
|
|
28
|
+
|
|
29
|
+
The parity source is the read-only protected cut
|
|
30
|
+
`dev/v3/v3.0@6b96bdad8d9f8ccf9275f27d9370a226a9c78465`. Work began from the
|
|
31
|
+
minimal v4 absorption base
|
|
32
|
+
`dev/v4/v4.0@e5611377efc03178f8687d99968cfdfa3ce2825b` and absorbed the
|
|
33
|
+
verified protected-base advances through
|
|
34
|
+
`dev/v4/v4.0@e0342713c7447960c13bd73377282b2e93f4853d` before delivery. These
|
|
35
|
+
identities, the v3 vector-suite root, and the KFD package cut are committed in
|
|
36
|
+
[`v4-adopter-delivery-parity.json`](../architecture/v4-adopter-delivery-parity.json)
|
|
37
|
+
and exposed by the public Node API.
|
|
38
|
+
|
|
39
|
+
## Public contract
|
|
40
|
+
|
|
41
|
+
The JSON input schema is
|
|
42
|
+
[`v4-adopter-delivery-v1.schema.json`](../contracts/v4-adopter-delivery-v1.schema.json).
|
|
43
|
+
An input names both selectors and the exact request identities. A selector
|
|
44
|
+
whose implementation identity differs from the request fails closed. The
|
|
45
|
+
public selectors are `json-assertion`, `kfd-category`, and `legacy-kfd`, with
|
|
46
|
+
`git-commit` and `package` artifact profiles.
|
|
47
|
+
|
|
48
|
+
Applications can also import the lower-level driver interface from
|
|
49
|
+
`@kungfu-tech/buildchain/adopter-delivery-gate` and define an isolated driver.
|
|
50
|
+
The v4 convenience runtime, exact source declaration, readback verification,
|
|
51
|
+
N-1 lineage check, and published archive loader are exported from
|
|
52
|
+
`@kungfu-tech/buildchain/v4-adopter-delivery`.
|
|
53
|
+
|
|
54
|
+
## CLI
|
|
55
|
+
|
|
56
|
+
All four operations are offline after the declared archive bytes exist:
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
buildchain adopter-delivery run \
|
|
60
|
+
--input contracts/fixtures/v4-adopter-delivery-v1/gate-positive.json \
|
|
61
|
+
--output .buildchain/adopter-delivery/readback.json
|
|
62
|
+
|
|
63
|
+
buildchain adopter-delivery verify \
|
|
64
|
+
--input contracts/fixtures/v4-adopter-delivery-v1/gate-positive.json \
|
|
65
|
+
--readback .buildchain/adopter-delivery/readback.json
|
|
66
|
+
|
|
67
|
+
buildchain adopter-delivery bootstrap \
|
|
68
|
+
--input contracts/fixtures/v4-adopter-delivery-v1/bootstrap-positive.json
|
|
69
|
+
|
|
70
|
+
buildchain adopter-delivery archive \
|
|
71
|
+
--input contracts/fixtures/v4-adopter-delivery-v1/archive-template.json
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
`verify` requires the complete rooted readback and recomputes it. Missing or
|
|
75
|
+
substituted readback, unknown selector, unknown driver, protocol-version
|
|
76
|
+
mismatch, archive-byte or package-identity mismatch, and altered bootstrap
|
|
77
|
+
lineage all fail closed.
|
|
78
|
+
|
|
79
|
+
## N-1 and published archives
|
|
80
|
+
|
|
81
|
+
N-1 bootstrap is distinct from the candidate. The lineage wrapper requires
|
|
82
|
+
the exact v3 authority commit, exact v4 absorption base, and exact public
|
|
83
|
+
Buildchain archive root. The retained v3 bootstrap also requires protected and
|
|
84
|
+
published N-1 authority, rejects self-authorization, binds the candidate gate
|
|
85
|
+
artifact, and requires merged Warrant-shaped evidence. Protocol, profile, or
|
|
86
|
+
gate changes require independently reviewed transition evidence.
|
|
87
|
+
|
|
88
|
+
Published authority loading verifies compressed bytes before extraction,
|
|
89
|
+
rejects unsafe paths and links, verifies extracted package identity, verifies
|
|
90
|
+
KFD's semantic package root, and imports only declared public delivery modules.
|
|
91
|
+
The caller must supply an independently retained authority readback root. The
|
|
92
|
+
fixture binds `@kungfu-tech/buildchain@3.0.9-alpha.16` and
|
|
93
|
+
`@kungfu-tech/kfd@1.0.0-alpha.65`; a package version is not treated as proof of
|
|
94
|
+
the Git source cut.
|
|
95
|
+
|
|
96
|
+
## Config and reusable workflow
|
|
97
|
+
|
|
98
|
+
Consumer configuration is closed and repository-relative:
|
|
99
|
+
|
|
100
|
+
```toml
|
|
101
|
+
[adopter_delivery]
|
|
102
|
+
contract = "kungfu-buildchain-v4-adopter-delivery/v1"
|
|
103
|
+
input_path = "contracts/adopter-delivery/input.json"
|
|
104
|
+
readback_path = ".buildchain/adopter-delivery/readback.json"
|
|
105
|
+
bootstrap_path = "contracts/adopter-delivery/bootstrap.json"
|
|
106
|
+
archive_path = "contracts/adopter-delivery/archives.json"
|
|
107
|
+
result_path = ".buildchain/adopter-delivery/result.json"
|
|
108
|
+
driver_selector = "kfd-category"
|
|
109
|
+
artifact_profile_selector = "package"
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
The public reusable workflow is
|
|
113
|
+
`kungfu-systems/buildchain/.github/workflows/v4-adopter-delivery.yml@v4` for
|
|
114
|
+
stable use and `@v4-alpha` during prerelease evaluation. It resolves the exact
|
|
115
|
+
called-workflow SHA, enforces floating selector plus dual-lock consumer
|
|
116
|
+
admission, and runs the same CLI on Linux, macOS, and Windows. Buildchain
|
|
117
|
+
dogfoods it through the thin
|
|
118
|
+
[`v4-adopter-delivery-dogfood.yml`](../.github/workflows/v4-adopter-delivery-dogfood.yml)
|
|
119
|
+
caller, which contains no steps or local orchestration and persists only the
|
|
120
|
+
floating `@v4-alpha` selector.
|
|
121
|
+
|
|
122
|
+
The reusable workflow downloads exact public N-1 npm archives and uses the
|
|
123
|
+
committed byte roots, semantic identity, and authority readback root. It has
|
|
124
|
+
only `contents: read`; no provider credential or production writer is accepted
|
|
125
|
+
or synthesized.
|
|
126
|
+
|
|
127
|
+
## Cross-platform capability qualification
|
|
128
|
+
|
|
129
|
+
The reusable workflow also produces a rooted report on `linux-x64`,
|
|
130
|
+
`macos-arm64`, and `windows-x64`. Each report binds `job.workflow_sha`, the
|
|
131
|
+
consumer source SHA, and the complete 4,648-row v3-to-v4 inventory. Source-only
|
|
132
|
+
capabilities retain their raw category counts with an `exact-source-route`
|
|
133
|
+
applicability; they are not mislabeled as operating-system executions.
|
|
134
|
+
|
|
135
|
+
The executable boundary is exercised rather than inferred: a public run must
|
|
136
|
+
pass, a substituted readback must fail, retry must reproduce the original root,
|
|
137
|
+
terminal verification and N-1 bootstrap must pass, and the independent
|
|
138
|
+
`ledger-specification-driver` clean-room test must pass without a KFD package.
|
|
139
|
+
The workflow then reconciles one exact report from each platform. Final family
|
|
140
|
+
qualification combines the Buildchain self-dogfood and `agent-hub-demo`
|
|
141
|
+
matrices through the exported
|
|
142
|
+
`@kungfu-tech/buildchain/v4-cross-platform-adopter-qualification` aggregator.
|
|
143
|
+
The report and aggregate explicitly grant no production, provider, release, or
|
|
144
|
+
stable-publication authority.
|
|
145
|
+
|
|
146
|
+
## Offline vectors
|
|
147
|
+
|
|
148
|
+
[`offline-vectors.json`](../contracts/fixtures/v4-adopter-delivery-v1/offline-vectors.json)
|
|
149
|
+
indexes positive driver, N-1, and archive cases plus negative selector, driver,
|
|
150
|
+
archive identity, bootstrap lineage, protocol version, and tampered readback
|
|
151
|
+
cases. Tests synthesize archives locally so extraction and identity failures do
|
|
152
|
+
not depend on the network.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: active
|
|
3
|
+
period: ongoing
|
|
4
|
+
theme: buildchain-v4-declarative-release-tail
|
|
5
|
+
doc_type: migration-guide
|
|
6
|
+
source_level: local-files
|
|
7
|
+
confidence: high
|
|
8
|
+
sensitivity: public
|
|
9
|
+
evidence_grade: A
|
|
10
|
+
review_state: self-reviewed
|
|
11
|
+
last_reviewed: 2026-08-26
|
|
12
|
+
ai_provenance:
|
|
13
|
+
model_family: GPT-5
|
|
14
|
+
product: Codex
|
|
15
|
+
generated_at: 2026-08-26
|
|
16
|
+
invisible_context: unavailable
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Migrate a release-candidate promotion to the v4 Provider Plane
|
|
20
|
+
|
|
21
|
+
Persist the public workflow call at the floating major ref and keep the matching contract lock in the consumer repository:
|
|
22
|
+
|
|
23
|
+
```yaml
|
|
24
|
+
jobs:
|
|
25
|
+
promote:
|
|
26
|
+
uses: kungfu-systems/buildchain/.github/workflows/release-candidate-promote.yml@v4
|
|
27
|
+
with:
|
|
28
|
+
buildchain-contract-lock-path: .buildchain/contract-lock.json
|
|
29
|
+
declarative-release-tail: true
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The Build/Verify workflow now uploads these candidate-owned inputs together:
|
|
33
|
+
|
|
34
|
+
- `release-candidate-passport.json`
|
|
35
|
+
- `release-candidate-stage-capsules.json`
|
|
36
|
+
- `release-candidate-publication-qualification.json`
|
|
37
|
+
- the typed payload and manifest artifacts bound by those documents
|
|
38
|
+
|
|
39
|
+
Remove all v4 values for `publish-command`, `publication-gate-command`, `publication-consumer-qualification-command`, `publication-commit-command`, `release-activation-command`, `release-passport-evidence-command`, KFD/invariant command inputs, and every other `command`, `cmd`, `script`, `shell`, or `run` field. v4 admission rejects them before publication planning. Do not replace them with a wrapper script or a standalone workflow; declare provider evidence and let the reusable workflow execute the fixed Provider Plane.
|
|
40
|
+
|
|
41
|
+
On interruption, rerun with the same candidate and transaction state. Buildchain verifies the candidate/source/artifact/policy roots and continues from the first missing standardized receipt. Never delete the state file to make a failed capability replay from the beginning.
|
|
42
|
+
|
|
43
|
+
v3 workflow calls retain their existing command-compatible behavior. Migrating a v3 consumer is an explicit contract change, not an automatic reinterpretation.
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: preview
|
|
3
|
+
period: 2026-08-16
|
|
4
|
+
theme: buildchain-v4-publication-rehearsal
|
|
5
|
+
doc_type: product-manual
|
|
6
|
+
source_level: local-files
|
|
7
|
+
confidence: high
|
|
8
|
+
sensitivity: public
|
|
9
|
+
evidence_grade: A
|
|
10
|
+
review_state: self-reviewed
|
|
11
|
+
last_reviewed: 2026-08-16
|
|
12
|
+
ai_provenance:
|
|
13
|
+
model_family: GPT-5
|
|
14
|
+
product: Codex
|
|
15
|
+
generated_at: 2026-08-16
|
|
16
|
+
visible_context: Exact v3 rehearsal runtime, v4 release-tail core, Stage Capsule contracts, public workflow and offline vectors.
|
|
17
|
+
invisible_context_boundary: No credentials, private provider state, signed URLs or production publication receipts were read.
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# V4 Publication Rehearsal Capsule
|
|
21
|
+
|
|
22
|
+
The v4 Publication Rehearsal Capsule is the content-addressed input for
|
|
23
|
+
testing publication behavior without acquiring production publication
|
|
24
|
+
authority. It is deliberately not a Stage Capsule. A Stage Capsule retains a
|
|
25
|
+
pure platform-stage build checkpoint; a Publication Rehearsal Capsule binds a
|
|
26
|
+
release candidate and asks the production release-tail planner and executor to
|
|
27
|
+
simulate, replay, or observe provider-facing publication behavior.
|
|
28
|
+
|
|
29
|
+
The rooted parity matrix is
|
|
30
|
+
[`architecture/v4-publication-rehearsal-parity.json`](../architecture/v4-publication-rehearsal-parity.json),
|
|
31
|
+
and the public schema is
|
|
32
|
+
[`v4-publication-rehearsal-capsule-v1.schema.json`](../contracts/v4-publication-rehearsal-capsule-v1.schema.json).
|
|
33
|
+
|
|
34
|
+
## Bound identity
|
|
35
|
+
|
|
36
|
+
One capsule commits to all of these values:
|
|
37
|
+
|
|
38
|
+
- its own canonical capsule root;
|
|
39
|
+
- the exact source repository, Git revision, and source root;
|
|
40
|
+
- the sorted candidate file inventory and candidate root;
|
|
41
|
+
- the exact candidate manifest and Buildchain config paths and roots;
|
|
42
|
+
- the canonical data-only provider bindings and `providerBindingsRoot`;
|
|
43
|
+
- the effect-disabled provider policy and its exact capability/adapter set;
|
|
44
|
+
- expected provider observations and their root;
|
|
45
|
+
- the initial transaction produced by the production release-tail planner;
|
|
46
|
+
- `buildchain.release-tail/v1` as the shared core version.
|
|
47
|
+
|
|
48
|
+
Changing any one of those values, or changing a candidate byte, fails closed.
|
|
49
|
+
Candidate paths must remain regular non-symlink files below an explicit
|
|
50
|
+
absolute root. Every artifact, provider document, and released-evidence input
|
|
51
|
+
named by the bindings must also appear in the rooted file inventory. The
|
|
52
|
+
evidence output may be absent, but its path and every existing ancestor must
|
|
53
|
+
remain below that root without symlinks.
|
|
54
|
+
|
|
55
|
+
## Modes and authority
|
|
56
|
+
|
|
57
|
+
`simulate` uses in-memory adapters and makes no provider call. `replay` feeds a
|
|
58
|
+
recorded response sequence through the same production transaction executor.
|
|
59
|
+
`provider` requires a capsule-bound
|
|
60
|
+
`buildchain-v4-publication-rehearsal-authority/v1` receipt plus the declared
|
|
61
|
+
provider adapters. The authority binds `providerBindingsRoot` directly as well
|
|
62
|
+
as through `capsuleRoot`, so request bytes cannot be replaced while retaining
|
|
63
|
+
authority. It is rehearsal-only: its
|
|
64
|
+
`productionAuthority` field is always `false`, and it binds a separately
|
|
65
|
+
supplied live `authorizationRoot` rather than minting authority from the
|
|
66
|
+
capsule alone.
|
|
67
|
+
|
|
68
|
+
Every provider readback and apply request is retained in the rooted transcript.
|
|
69
|
+
The resulting evidence always contains `productionAuthority: false` and
|
|
70
|
+
`releasePassport: null`. It therefore cannot publish by itself, authorize a
|
|
71
|
+
production release tail, or stand in for a Release Passport, protected
|
|
72
|
+
readback, or Delivery Warrant.
|
|
73
|
+
|
|
74
|
+
## CLI and Node API
|
|
75
|
+
|
|
76
|
+
Local simulation and replay use the public `release-tail` command:
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
buildchain release-tail rehearse \
|
|
80
|
+
--capsule "$PWD/contracts/fixtures/v4-publication-rehearsal-v1/capsule.json" \
|
|
81
|
+
--candidate-root "$PWD/contracts/fixtures/v4-publication-rehearsal-v1/candidate" \
|
|
82
|
+
--mode simulate \
|
|
83
|
+
--state "$PWD/.buildchain/publication-rehearsal/state.json" \
|
|
84
|
+
--evidence "$PWD/.buildchain/publication-rehearsal/evidence.json"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Applications import `@kungfu-tech/buildchain/v4-publication-rehearsal` to
|
|
88
|
+
create and verify capsules, create provider-rehearsal authority, and execute
|
|
89
|
+
all three modes. The API delegates planning, transaction initialization, and
|
|
90
|
+
execution to the same `release-tail-provider-plane` functions used by the
|
|
91
|
+
production Action.
|
|
92
|
+
|
|
93
|
+
## Config and public workflow
|
|
94
|
+
|
|
95
|
+
The consumer config is closed and effect-disabled:
|
|
96
|
+
|
|
97
|
+
```toml
|
|
98
|
+
[publication_rehearsal]
|
|
99
|
+
contract = "buildchain-v4-publication-rehearsal-capsule/v1"
|
|
100
|
+
capsule_path = "contracts/fixtures/v4-publication-rehearsal-v1/capsule.json"
|
|
101
|
+
candidate_root = "contracts/fixtures/v4-publication-rehearsal-v1/candidate"
|
|
102
|
+
state_path = ".buildchain/publication-rehearsal/state.json"
|
|
103
|
+
evidence_path = ".buildchain/publication-rehearsal/evidence.json"
|
|
104
|
+
effect_default = "disabled"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
The public reusable
|
|
108
|
+
[`release-tail.yml`](../.github/workflows/release-tail.yml) accepts the same
|
|
109
|
+
capsule, candidate root, mode, state and evidence paths. Before publication,
|
|
110
|
+
Buildchain dogfoods that public surface through a thin same-commit local reusable
|
|
111
|
+
call with the exact PR-head or dispatch SHA as its runtime. The reusable is
|
|
112
|
+
permission-neutral and the self-dogfood caller stays `contents: read`, passes
|
|
113
|
+
`execute: false`, and therefore cannot inherit or synthesize production write
|
|
114
|
+
authority. Effectful production callers must explicitly declare their own
|
|
115
|
+
provider permission. Durable external consumers remain on the floating
|
|
116
|
+
`@v4-alpha` contract. Provider mode additionally requires the exact authority
|
|
117
|
+
path. Provider bindings come from the capsule; an optional external bindings
|
|
118
|
+
input is accepted only when its canonical exact root and payload equal the
|
|
119
|
+
capsule binding. Ordinary calls default to `simulate`.
|
|
120
|
+
|
|
121
|
+
## Offline portability vectors
|
|
122
|
+
|
|
123
|
+
[`offline-vectors.json`](../contracts/fixtures/v4-publication-rehearsal-v1/offline-vectors.json)
|
|
124
|
+
records Linux, macOS and Windows projections. Their capsule, transaction,
|
|
125
|
+
state, and evidence roots are byte-identical. Regenerate or verify them with:
|
|
126
|
+
|
|
127
|
+
```sh
|
|
128
|
+
node scripts/v4-publication-rehearsal-fixture.mjs
|
|
129
|
+
node scripts/v4-publication-rehearsal-fixture.mjs --check
|
|
130
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kungfu-tech/buildchain",
|
|
3
|
-
"version": "4.0.1-alpha.
|
|
3
|
+
"version": "4.0.1-alpha.55",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Buildchain Release Passport, release governance, CLI toolkit, and site facts.",
|
|
6
6
|
"repository": "https://github.com/kungfu-systems/buildchain",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"./buildchain-contract": "./packages/core/buildchain-contract.js",
|
|
26
26
|
"./compatibility-fact-authority": "./packages/core/buildchain-compatibility-proof.js",
|
|
27
27
|
"./candidate-timeline": "./packages/core/candidate-timeline.js",
|
|
28
|
+
"./ci-lane-change-budget": "./packages/core/ci-lane-change-budget.js",
|
|
28
29
|
"./channel-candidate": "./packages/core/channel-candidate.js",
|
|
29
30
|
"./cache-evidence": "./packages/core/cache-evidence.js",
|
|
30
31
|
"./controller-evidence": "./packages/core/controller-evidence.js",
|
|
@@ -46,6 +47,21 @@
|
|
|
46
47
|
"./v4-runtime-ref-resume-authority": "./packages/core/v4-runtime-ref-resume-authority.js",
|
|
47
48
|
"./v4-tail-reseal": "./packages/core/v4-tail-reseal.js",
|
|
48
49
|
"./v4-tail-reseal-receipt": "./packages/core/v4-tail-reseal-receipt.js",
|
|
50
|
+
"./v4-publication-rehearsal": "./packages/core/v4-publication-rehearsal.js",
|
|
51
|
+
"./publication-rehearsal-runtime": "./packages/core/publication-rehearsal-runtime.js",
|
|
52
|
+
"./publication-rehearsal-projection": "./packages/core/publication-rehearsal-projection.js",
|
|
53
|
+
"./v4-publication-qualification": "./packages/core/v4-publication-qualification.js",
|
|
54
|
+
"./adopter-delivery-gate": "./packages/core/adopter-delivery-gate.js",
|
|
55
|
+
"./kfd-adopter-category-driver": "./packages/core/kfd-adopter-category-driver.js",
|
|
56
|
+
"./buildchain-delivery-infrastructure": "./packages/core/buildchain-delivery-infrastructure.js",
|
|
57
|
+
"./buildchain-delivery-bootstrap": "./packages/core/buildchain-delivery-bootstrap.js",
|
|
58
|
+
"./buildchain-delivery-self-dogfood": "./packages/core/buildchain-delivery-self-dogfood.js",
|
|
59
|
+
"./published-delivery-authority": "./packages/core/published-delivery-authority.js",
|
|
60
|
+
"./legacy-kfd-adopter-driver": "./packages/core/legacy-kfd-adopter-driver.js",
|
|
61
|
+
"./adopter-delivery-passport": "./packages/core/adopter-delivery-passport.js",
|
|
62
|
+
"./adopter-delivery-vectors": "./packages/core/adopter-delivery-vectors.js",
|
|
63
|
+
"./v4-adopter-delivery": "./packages/core/v4-adopter-delivery.js",
|
|
64
|
+
"./v4-cross-platform-adopter-qualification": "./packages/core/v4-cross-platform-adopter-qualification.js",
|
|
49
65
|
"./logging": "./packages/core/logging.js",
|
|
50
66
|
"./portable-dev-cache": "./packages/core/portable-dev-cache.js",
|
|
51
67
|
"./publication-artifact": "./packages/core/publication-artifact.js",
|
|
@@ -99,6 +115,10 @@
|
|
|
99
115
|
"./site/schemas/kfd-support-projection-v1.schema.json": "./dist/site/schemas/kfd-support-projection-v1.schema.json",
|
|
100
116
|
"./site/schemas/dev-delivery-authority-v2.schema.json": "./dist/site/schemas/dev-delivery-authority-v2.schema.json",
|
|
101
117
|
"./site/schemas/v4-compatibility-facts-v1.schema.json": "./dist/site/schemas/v4-compatibility-facts-v1.schema.json",
|
|
118
|
+
"./site/schemas/v4-publication-rehearsal-capsule-v1.schema.json": "./dist/site/schemas/v4-publication-rehearsal-capsule-v1.schema.json",
|
|
119
|
+
"./site/schemas/v4-adopter-delivery-v1.schema.json": "./dist/site/schemas/v4-adopter-delivery-v1.schema.json",
|
|
120
|
+
"./site/schemas/release-tail-capabilities-v1.schema.json": "./dist/site/schemas/release-tail-capabilities-v1.schema.json",
|
|
121
|
+
"./site/schemas/v4-publication-qualification-v1.schema.json": "./dist/site/schemas/v4-publication-qualification-v1.schema.json",
|
|
102
122
|
"./site/buildchain-contract.json": "./dist/site/buildchain-contract.json",
|
|
103
123
|
"./site/product-mechanism.json": "./dist/site/product-mechanism.json",
|
|
104
124
|
"./site/release-provenance.json": "./dist/site/release-provenance.json",
|
|
@@ -136,10 +156,10 @@
|
|
|
136
156
|
"scripts": {
|
|
137
157
|
"precheck:static": "prettier --check architecture/decisions/0003-two-phase-delivery-warrant.md architecture/v4-delivery-authority-parity.json contracts/dev-delivery-authority-v2.schema.json dist/site/schemas/dev-delivery-authority-v2.schema.json docs/dev-delivery-qualification-landing-adr.md packages/core/dev-delivery-authority-candidate.js packages/core/dev-delivery-authority-evidence.js packages/core/dev-delivery-authority-landing.js packages/core/dev-delivery-authority-observation.js packages/core/dev-delivery-authority-qualification.js packages/core/dev-delivery-authority-settlement.js packages/core/dev-delivery-authority-state.js packages/core/dev-delivery-execution-failure.js packages/core/dev-delivery-execution-transfer.js packages/core/dev-delivery-landing-readback.js packages/core/dev-delivery-landing-terminal-evidence.js packages/core/dev-delivery-landing-testing-port.js packages/core/dev-delivery-native-execution.js packages/core/dev-delivery-native-proof.js packages/core/dev-delivery-process-boundary.js packages/core/dev-delivery-warrant-qualification.js packages/core/dev-delivery-warrant-state.js scripts/dev-delivery-authority-command-adapters.mjs scripts/dev-delivery-authority-provider.mjs scripts/dev-delivery-authority.mjs scripts/dev-delivery-native-run.mjs scripts/dev-delivery-process-boundary.mjs scripts/dev-delivery-two-phase-resume.mjs scripts/dev-delivery-two-phase.mjs scripts/dev-delivery-warrant-options.mjs scripts/dev-delivery-warrant-store.mjs templates/native-dev-delivery.yml",
|
|
138
158
|
"operator:windows-jit": "bash scripts/aws-windows-jit-operator.sh",
|
|
139
|
-
"check": "pnpm run check:static && node scripts/check-v4-public-dogfood-contract.mjs && node scripts/check-v4-floating-consumer-policy-contract.mjs && pnpm run check:v4-bridge && pnpm run check:v4-contracts && node scripts/check-maintainability.mjs && node scripts/check-internal-architecture.mjs && node scripts/check-inventory.mjs && node scripts/check-core-mechanism-inventory.mjs && node scripts/check-release-tail-contract.mjs && node scripts/v4-architecture.mjs validate && node scripts/v4-warrant-shadow-plan.mjs validate && pnpm run check:site && pnpm run check:workflows && pnpm run test:unit && pnpm run check:golden-path && node scripts/check-action-bundles.mjs",
|
|
140
|
-
"check:static": "node scripts/check-javascript-syntax.mjs && prettier --check architecture/*.json contracts/release-tail-provider-bindings-v1.schema.json contracts/v4-canonical-contracts-v1.schema.json contracts/v4-compatibility-facts-v1.schema.json contracts/v4-delivery-warrant-semantic-diff-report-v1.schema.json contracts/v4-delivery-warrant-trace-v1.schema.json contracts/v4-floating-consumer-policy-receipt-v1.schema.json contracts/v4-runtime-ref-resume-authority-v1.schema.json contracts/v4-tail-reseal-v1.schema.json contracts/v4-host-contract-v1.schema.json contracts/v4-provider-operation-journal-v1.schema.json contracts/v4-release-activation-shadow-v1.schema.json contracts/v4-stable-publication-fence-v1.schema.json contracts/v4-partial-mutation-recovery-v1.schema.json contracts/v4-stage-capsule-v1.schema.json contracts/v4-stage-capsule-store-v1.schema.json contracts/v4-stage-capsule-resume-v1.schema.json contracts/release-tail-capabilities-v1.schema.json contracts/fixtures/release-tail-capabilities-v1/*.json contracts/fixtures/v4-delivery-warrant-trace-v1/*.json contracts/fixtures/v4-floating-consumer-policy-v1/*.json contracts/fixtures/v4-runtime-ref-resume-authority-v1/*.json contracts/fixtures/v4-tail-reseal-v1/*.json contracts/fixtures/v4-compatibility-facts-v1/*.json contracts/fixtures/v4-provider-operation-journal-v1/*.json contracts/fixtures/v4-provider-readback-idempotency-v1/*.json contracts/fixtures/v4-release-activation-shadow-v1/*.json contracts/fixtures/v4-stable-publication-fence-v1/*.json contracts/fixtures/v4-partial-mutation-recovery-v1/*.json contracts/fixtures/v4-stage-capsule-v1/*.json contracts/fixtures/v4-stage-capsule-store-v1/*.json contracts/fixtures/v4-stage-capsule-resume-v1/*.json bin/internal/command-registry.mjs bin/internal/compatibility-facts-cli.mjs packages/core/v4-canonical-contracts.js packages/core/kungfu-temporal-fact.js packages/core/buildchain-compatibility-fact.js packages/core/buildchain-compatibility-authority.js packages/core/buildchain-compatibility-proof.js packages/core/v4-floating-consumer-evidence.js packages/core/v4-floating-consumer-policy.js packages/core/v4-floating-consumer-release-passport.js packages/core/v4-runtime-ref-resume-authority.js packages/core/v4-tail-reseal-contract.js packages/core/v4-tail-reseal-github.js packages/core/v4-tail-reseal-receipt.js packages/core/v4-tail-reseal.js packages/core/v4-runtime-selector-persistence.js packages/core/v4-provider-operation-journal.js packages/core/v4-provider-readback-idempotency.js packages/core/v4-release-activation-shadow.js packages/core/v4-stable-publication-fence.js packages/core/v4-partial-mutation-recovery-qualification.js packages/core/v4-stage-capsule.js packages/core/v4-stage-capsule-store.js packages/core/v4-stage-capsule-local-store.js packages/core/v4-platform-stage-checkpoints.js packages/core/v4-stage-capsule-resume-planner.js packages/core/v4-stage-capsule-qualification.js packages/core/v4-stage-capsule-qualification-campaign.js packages/core/v4-delivery-warrant-fixture-runner.js packages/core/v4-delivery-warrant-read-candidate.js packages/core/v4-delivery-warrant-semantic-diff-gate.js packages/core/v4-delivery-warrant-shadow-adapter.js scripts/authorize-promotion-runtime-override.cjs scripts/check-core-mechanism-inventory.mjs scripts/check-release-tail-contract.mjs scripts/check-javascript-syntax.mjs scripts/check-maintainability.mjs scripts/dev-pr-prequeue-guard.mjs scripts/check-v4-public-dogfood-contract.mjs scripts/maintainability-metrics.mjs scripts/public-reference.mjs scripts/site-reference-registry.mjs scripts/generate-public-reference.mjs scripts/v4-architecture.mjs scripts/v4-bridge-bootstrap.mjs scripts/v4-bridge-evidence.mjs scripts/v4-consumer-policy.mjs scripts/v4-host-adapter.mjs scripts/v4-platform-stage-checkpoint-rehearsal.mjs scripts/v4-stage-capsule-resume-rehearsal.mjs scripts/v4-stage-capsule-qualification.mjs scripts/v4-tail-reseal-macos-rehearsal.mjs scripts/v4-tail-reseal.mjs scripts/v4-warrant-shadow-plan.mjs scripts/verify-golden-path.mjs tests/authorize-promotion-runtime-override.test.mjs tests/command-registry.test.mjs tests/core-mechanism-inventory.test.mjs tests/release-tail-contract.test.mjs tests/maintainability.test.mjs tests/promotion-responsibilities.test.mjs tests/public-reference.test.mjs tests/v4-architecture.test.mjs tests/v4-bridge.test.mjs tests/v4-canonical-contracts.test.mjs tests/v4-delivery-warrant-fixture-runner.test.mjs tests/v4-delivery-warrant-read-candidate.test.mjs tests/v4-floating-consumer-policy.test.mjs tests/v4-runtime-ref-resume-authority.test.mjs tests/v4-tail-reseal.test.mjs tests/v4-tail-reseal-parity.test.mjs tests/v4-compatibility-facts.test.mjs tests/v4-platform-stage-checkpoints.test.mjs tests/v4-provider-operation-journal.test.mjs tests/v4-provider-readback-idempotency.test.mjs tests/v4-public-dogfood-contract.test.mjs tests/v4-release-activation-shadow.test.mjs tests/v4-stable-publication-fence.test.mjs tests/v4-partial-mutation-recovery-qualification.test.mjs tests/v4-stage-capsule.test.mjs tests/v4-stage-capsule-store.test.mjs tests/v4-stage-capsule-resume-planner.test.mjs tests/v4-stage-capsule-qualification.test.mjs tests/v4-warrant-shadow-plan.test.mjs",
|
|
159
|
+
"check": "pnpm run check:static && node scripts/check-ci-lane-change-budget.mjs && node scripts/check-v4-public-dogfood-contract.mjs && node scripts/check-v4-floating-consumer-policy-contract.mjs && pnpm run check:v4-bridge && pnpm run check:v4-contracts && node scripts/check-maintainability.mjs && node scripts/check-internal-architecture.mjs && node scripts/generate-agent-change-map.mjs && node scripts/check-inventory.mjs && node scripts/check-core-mechanism-inventory.mjs && node scripts/check-v4-runtime-semantic-closure.mjs && node scripts/check-v3-v4-capability-inventory.mjs && node scripts/check-release-tail-contract.mjs && node scripts/v4-publication-rehearsal-fixture.mjs --check && node scripts/v4-architecture.mjs validate && node scripts/v4-warrant-shadow-plan.mjs validate && pnpm run check:site && pnpm run check:workflows && pnpm run test:unit && pnpm run check:golden-path && node scripts/check-action-bundles.mjs",
|
|
160
|
+
"check:static": "node scripts/check-javascript-syntax.mjs && prettier --check architecture/*.json contracts/release-tail-provider-bindings-v1.schema.json contracts/v4-canonical-contracts-v1.schema.json contracts/v4-compatibility-facts-v1.schema.json contracts/v4-delivery-warrant-semantic-diff-report-v1.schema.json contracts/v4-delivery-warrant-trace-v1.schema.json contracts/v4-floating-consumer-policy-receipt-v1.schema.json contracts/v4-runtime-ref-resume-authority-v1.schema.json contracts/v4-tail-reseal-v1.schema.json contracts/v4-host-contract-v1.schema.json contracts/v4-provider-operation-journal-v1.schema.json contracts/v4-release-activation-shadow-v1.schema.json contracts/v4-stable-publication-fence-v1.schema.json contracts/v4-partial-mutation-recovery-v1.schema.json contracts/v4-stage-capsule-v1.schema.json contracts/v4-stage-capsule-store-v1.schema.json contracts/v4-stage-capsule-resume-v1.schema.json contracts/release-tail-capabilities-v1.schema.json contracts/fixtures/release-tail-capabilities-v1/*.json contracts/fixtures/v4-delivery-warrant-trace-v1/*.json contracts/fixtures/v4-floating-consumer-policy-v1/*.json contracts/fixtures/v4-runtime-ref-resume-authority-v1/*.json contracts/fixtures/v4-tail-reseal-v1/*.json contracts/fixtures/v4-compatibility-facts-v1/*.json contracts/fixtures/v4-provider-operation-journal-v1/*.json contracts/fixtures/v4-provider-readback-idempotency-v1/*.json contracts/fixtures/v4-release-activation-shadow-v1/*.json contracts/fixtures/v4-stable-publication-fence-v1/*.json contracts/fixtures/v4-partial-mutation-recovery-v1/*.json contracts/fixtures/v4-stage-capsule-v1/*.json contracts/fixtures/v4-stage-capsule-store-v1/*.json contracts/fixtures/v4-stage-capsule-resume-v1/*.json bin/internal/command-registry.mjs bin/internal/compatibility-facts-cli.mjs packages/core/v4-canonical-contracts.js packages/core/kungfu-temporal-fact.js packages/core/buildchain-compatibility-fact.js packages/core/buildchain-compatibility-authority.js packages/core/buildchain-compatibility-proof.js packages/core/v4-floating-consumer-evidence.js packages/core/v4-floating-consumer-policy.js packages/core/v4-floating-consumer-release-passport.js packages/core/v4-runtime-ref-resume-authority.js packages/core/v4-tail-reseal-contract.js packages/core/v4-tail-reseal-github.js packages/core/v4-tail-reseal-receipt.js packages/core/v4-tail-reseal.js packages/core/v4-runtime-selector-persistence.js packages/core/v4-provider-operation-journal.js packages/core/v4-provider-readback-idempotency.js packages/core/v4-release-activation-shadow.js packages/core/v4-stable-publication-fence.js packages/core/v4-partial-mutation-recovery-qualification.js packages/core/v4-stage-capsule.js packages/core/v4-stage-capsule-store.js packages/core/v4-stage-capsule-local-store.js packages/core/v4-platform-stage-checkpoints.js packages/core/v4-stage-capsule-resume-planner.js packages/core/v4-stage-capsule-qualification.js packages/core/v4-stage-capsule-qualification-campaign.js packages/core/v4-delivery-warrant-fixture-runner.js packages/core/v4-delivery-warrant-read-candidate.js packages/core/v4-delivery-warrant-semantic-diff-gate.js packages/core/v4-delivery-warrant-shadow-adapter.js scripts/authorize-promotion-runtime-override.cjs scripts/check-core-mechanism-inventory.mjs scripts/check-v4-runtime-semantic-closure.mjs scripts/check-release-tail-contract.mjs scripts/check-javascript-syntax.mjs scripts/check-maintainability.mjs scripts/dev-pr-prequeue-guard.mjs scripts/check-v4-public-dogfood-contract.mjs scripts/maintainability-metrics.mjs scripts/maintainability-domain-metrics.mjs scripts/maintainability-governance.mjs scripts/generate-agent-change-map.mjs scripts/public-reference.mjs scripts/site-reference-registry.mjs scripts/generate-public-reference.mjs scripts/v4-architecture.mjs scripts/v4-bridge-bootstrap.mjs scripts/v4-bridge-evidence.mjs scripts/v4-consumer-policy.mjs scripts/v4-host-adapter.mjs scripts/v4-platform-stage-checkpoint-rehearsal.mjs scripts/v4-stage-capsule-resume-rehearsal.mjs scripts/v4-stage-capsule-qualification.mjs scripts/v4-tail-reseal-macos-rehearsal.mjs scripts/v4-tail-reseal.mjs scripts/v4-warrant-shadow-plan.mjs scripts/verify-golden-path.mjs tests/authorize-promotion-runtime-override.test.mjs tests/command-registry.test.mjs tests/core-mechanism-inventory.test.mjs tests/release-tail-contract.test.mjs tests/maintainability.test.mjs tests/maintainability-governance.test.mjs tests/promotion-responsibilities.test.mjs tests/public-reference.test.mjs tests/v4-architecture.test.mjs tests/v4-bridge.test.mjs tests/v4-canonical-contracts.test.mjs tests/v4-delivery-warrant-fixture-runner.test.mjs tests/v4-delivery-warrant-read-candidate.test.mjs tests/v4-floating-consumer-policy.test.mjs tests/v4-runtime-ref-resume-authority.test.mjs tests/v4-runtime-semantic-closure.test.mjs tests/v4-tail-reseal.test.mjs tests/v4-tail-reseal-parity.test.mjs tests/v4-compatibility-facts.test.mjs tests/v4-platform-stage-checkpoints.test.mjs tests/v4-provider-operation-journal.test.mjs tests/v4-provider-readback-idempotency.test.mjs tests/v4-public-dogfood-contract.test.mjs tests/v4-release-activation-shadow.test.mjs tests/v4-stable-publication-fence.test.mjs tests/v4-partial-mutation-recovery-qualification.test.mjs tests/v4-stage-capsule.test.mjs tests/v4-stage-capsule-store.test.mjs tests/v4-stage-capsule-resume-planner.test.mjs tests/v4-stage-capsule-qualification.test.mjs tests/v4-warrant-shadow-plan.test.mjs",
|
|
141
161
|
"check:v4-bridge": "cargo fmt --manifest-path crates/buildchain-v4-bridge/Cargo.toml -- --check && cargo clippy --locked --manifest-path crates/buildchain-v4-bridge/Cargo.toml -- -D warnings && cargo test --locked --manifest-path crates/buildchain-v4-bridge/Cargo.toml",
|
|
142
|
-
"check:v4-contracts": "cargo fmt --manifest-path crates/buildchain-v4-contracts/Cargo.toml -- --check && cargo clippy --locked --manifest-path crates/buildchain-v4-contracts/Cargo.toml -- -D warnings && cargo test --locked --manifest-path crates/buildchain-v4-contracts/Cargo.toml && node --test tests/v4-canonical-contracts.test.mjs tests/v4-delivery-warrant-fixture-runner.test.mjs tests/v4-delivery-warrant-read-candidate.test.mjs tests/v4-floating-consumer-policy-contract.test.mjs tests/v4-floating-consumer-policy.test.mjs tests/v4-runtime-ref-resume-authority.test.mjs tests/v4-tail-reseal.test.mjs tests/v4-tail-reseal-parity.test.mjs tests/v4-compatibility-facts.test.mjs tests/v4-platform-stage-checkpoints.test.mjs tests/v4-provider-operation-journal.test.mjs tests/v4-provider-readback-idempotency.test.mjs tests/v4-public-dogfood-contract.test.mjs tests/v4-release-activation-shadow.test.mjs tests/v4-stable-publication-fence.test.mjs tests/v4-partial-mutation-recovery-qualification.test.mjs tests/v4-stage-capsule.test.mjs tests/v4-stage-capsule-store.test.mjs tests/v4-stage-capsule-resume-planner.test.mjs tests/v4-stage-capsule-qualification.test.mjs",
|
|
162
|
+
"check:v4-contracts": "cargo fmt --manifest-path crates/buildchain-v4-contracts/Cargo.toml -- --check && cargo clippy --locked --manifest-path crates/buildchain-v4-contracts/Cargo.toml -- -D warnings && cargo test --locked --manifest-path crates/buildchain-v4-contracts/Cargo.toml && node --test tests/v4-canonical-contracts.test.mjs tests/v4-delivery-warrant-fixture-runner.test.mjs tests/v4-delivery-warrant-read-candidate.test.mjs tests/v4-floating-consumer-policy-contract.test.mjs tests/v4-floating-consumer-policy.test.mjs tests/v4-runtime-ref-resume-authority.test.mjs tests/v4-tail-reseal.test.mjs tests/v4-tail-reseal-parity.test.mjs tests/v4-compatibility-facts.test.mjs tests/v4-publication-rehearsal.test.mjs tests/v4-platform-stage-checkpoints.test.mjs tests/v4-provider-operation-journal.test.mjs tests/v4-provider-readback-idempotency.test.mjs tests/v4-public-dogfood-contract.test.mjs tests/v4-release-activation-shadow.test.mjs tests/v4-stable-publication-fence.test.mjs tests/v4-partial-mutation-recovery-qualification.test.mjs tests/v4-stage-capsule.test.mjs tests/v4-stage-capsule-store.test.mjs tests/v4-stage-capsule-resume-planner.test.mjs tests/v4-stage-capsule-qualification.test.mjs",
|
|
143
163
|
"check:workflows": "bash scripts/check-workflows.sh",
|
|
144
164
|
"generate:reference": "node scripts/generate-public-reference.mjs",
|
|
145
165
|
"check:reference": "node scripts/generate-public-reference.mjs --check",
|