@kungfu-tech/buildchain 4.0.1-alpha.42 → 4.0.1-alpha.54
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/architecture/agent-change-map.md +1015 -0
- package/architecture/ci-lane-change-budget.json +17 -0
- package/architecture/internal-capabilities.json +156 -11
- package/architecture/maintainability-debt.json +3229 -0
- package/architecture/maintainability-policy.json +474 -125
- 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-cross-platform-adopter-qualification.json +52 -0
- package/architecture/v4-delivery-warrant-shadow-fixtures.json +3 -3
- package/architecture/v4-runtime-semantic-closure.json +710 -0
- package/bin/internal/trust-release-release-handlers.mjs +5 -0
- package/contracts/fixtures/v4-tail-reseal-v1/valid.json +1 -1
- package/dist/site/buildchain-contract.json +71 -31
- package/dist/site/buildchain-site.json +38 -18
- package/dist/site/capability-registry.json +2 -2
- package/dist/site/cli-registry.json +5 -2
- package/dist/site/controller-registry.json +37 -5
- package/dist/site/kfd-claims.json +76 -14
- package/dist/site/kfd-upstream-aggregate.json +1 -1
- package/dist/site/manual-registry.json +4 -4
- package/dist/site/node-api-registry.json +1168 -203
- package/dist/site/page-registry.json +30 -10
- package/dist/site/public-surface-audit.json +46 -17
- package/dist/site/publication-registry.json +4 -4
- package/dist/site/release-provenance.json +3 -0
- package/dist/site/site-manifest.json +8 -8
- package/dist/site/workflow-registry.json +47 -18
- package/docs/cli-reference.md +4 -4
- package/docs/dev-delivery-warrant.md +12 -9
- package/docs/node-api-reference.md +224 -169
- package/docs/publish-transaction.md +11 -4
- package/docs/v4-adopter-delivery.md +23 -4
- package/package.json +6 -3
- package/packages/core/adopter-delivery-passport.js +36 -0
- package/packages/core/dev-delivery-warrant-settlement.js +5 -1
- package/packages/core/dev-delivery-warrant.js +13 -4
- package/packages/core/github-governance-authority.js +4 -4
- 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/release-candidate-recovery.js +1 -0
- package/packages/core/release-passport.js +82 -184
- package/packages/core/v4-cross-platform-adopter-qualification.js +343 -0
- package/packages/core/v4-floating-consumer-policy.js +3 -2
- package/packages/core/v4-floating-consumer-release-passport.js +119 -0
- package/scripts/audit-publication-control-plane.mjs +17 -17
- package/scripts/buildchain-cli-help.mjs +3 -0
- package/scripts/check-internal-architecture.mjs +23 -3
- package/scripts/check-inventory.mjs +21 -3
- package/scripts/check-maintainability.mjs +145 -4
- package/scripts/check-v3-v4-capability-inventory.mjs +574 -0
- package/scripts/check-v4-floating-consumer-policy-contract.mjs +10 -3
- package/scripts/check-v4-runtime-semantic-closure.mjs +266 -0
- package/scripts/generate-agent-change-map.mjs +118 -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/promotion-routing-evidence.mjs +35 -6
- package/scripts/release-line-policy.mjs +25 -15
- package/scripts/release-tail.mjs +19 -2
- package/scripts/resume-from-candidate-run.mjs +1 -1
- package/scripts/run-lifecycle-core.mjs +341 -376
- package/scripts/site-capability-metadata.mjs +3 -0
- package/scripts/v3-v4-capability-catalog.mjs +439 -0
- package/scripts/v4-cross-platform-adopter-qualification.mjs +228 -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
status: preview
|
|
3
|
-
period: 2026-08-
|
|
3
|
+
period: 2026-08-27
|
|
4
4
|
theme: buildchain-v4-adopter-delivery
|
|
5
5
|
doc_type: product-manual
|
|
6
6
|
source_level: local-files
|
|
@@ -8,12 +8,12 @@ confidence: high
|
|
|
8
8
|
sensitivity: public
|
|
9
9
|
evidence_grade: A
|
|
10
10
|
review_state: self-reviewed
|
|
11
|
-
last_reviewed: 2026-08-
|
|
11
|
+
last_reviewed: 2026-08-27
|
|
12
12
|
ai_provenance:
|
|
13
13
|
model_family: GPT-5
|
|
14
14
|
product: Codex
|
|
15
|
-
generated_at: 2026-08-
|
|
16
|
-
visible_context: Exact protected v3 adopter-delivery cut, v4 pure contract core, published npm archive bytes,
|
|
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
17
|
invisible_context_boundary: No credentials, provider mutations, signing operations, publication operations, or release authority were used.
|
|
18
18
|
---
|
|
19
19
|
|
|
@@ -124,6 +124,25 @@ committed byte roots, semantic identity, and authority readback root. It has
|
|
|
124
124
|
only `contents: read`; no provider credential or production writer is accepted
|
|
125
125
|
or synthesized.
|
|
126
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
|
+
|
|
127
146
|
## Offline vectors
|
|
128
147
|
|
|
129
148
|
[`offline-vectors.json`](../contracts/fixtures/v4-adopter-delivery-v1/offline-vectors.json)
|
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.54",
|
|
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",
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
"./v4-tail-reseal": "./packages/core/v4-tail-reseal.js",
|
|
49
49
|
"./v4-tail-reseal-receipt": "./packages/core/v4-tail-reseal-receipt.js",
|
|
50
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",
|
|
51
53
|
"./v4-publication-qualification": "./packages/core/v4-publication-qualification.js",
|
|
52
54
|
"./adopter-delivery-gate": "./packages/core/adopter-delivery-gate.js",
|
|
53
55
|
"./kfd-adopter-category-driver": "./packages/core/kfd-adopter-category-driver.js",
|
|
@@ -59,6 +61,7 @@
|
|
|
59
61
|
"./adopter-delivery-passport": "./packages/core/adopter-delivery-passport.js",
|
|
60
62
|
"./adopter-delivery-vectors": "./packages/core/adopter-delivery-vectors.js",
|
|
61
63
|
"./v4-adopter-delivery": "./packages/core/v4-adopter-delivery.js",
|
|
64
|
+
"./v4-cross-platform-adopter-qualification": "./packages/core/v4-cross-platform-adopter-qualification.js",
|
|
62
65
|
"./logging": "./packages/core/logging.js",
|
|
63
66
|
"./portable-dev-cache": "./packages/core/portable-dev-cache.js",
|
|
64
67
|
"./publication-artifact": "./packages/core/publication-artifact.js",
|
|
@@ -153,8 +156,8 @@
|
|
|
153
156
|
"scripts": {
|
|
154
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",
|
|
155
158
|
"operator:windows-jit": "bash scripts/aws-windows-jit-operator.sh",
|
|
156
|
-
"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/check-inventory.mjs && node scripts/check-core-mechanism-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",
|
|
157
|
-
"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",
|
|
158
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",
|
|
159
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",
|
|
160
163
|
"check:workflows": "bash scripts/check-workflows.sh",
|
|
@@ -7,6 +7,42 @@ export const ADOPTER_DELIVERY_PASSPORT_BINDING_CONTRACT =
|
|
|
7
7
|
"kungfu-buildchain-adopter-delivery-passport-binding";
|
|
8
8
|
|
|
9
9
|
const ROOT_PATTERN = /^sha256:[0-9a-f]{64}$/;
|
|
10
|
+
const EXACT_SHA_PATTERN = /^[0-9a-f]{40}$/u;
|
|
11
|
+
|
|
12
|
+
export function releasePassportKfdAdopterSourceSha({
|
|
13
|
+
passportSourceSha = "",
|
|
14
|
+
release = undefined,
|
|
15
|
+
} = {}) {
|
|
16
|
+
const exactSha = (value) =>
|
|
17
|
+
EXACT_SHA_PATTERN.test(String(value || "").trim());
|
|
18
|
+
const candidateSourceSha = String(release?.candidateSourceSha || "").trim();
|
|
19
|
+
const builtSourceSha = String(release?.builtSourceSha || "").trim();
|
|
20
|
+
const promotionChannelSha = String(release?.promotionChannelSha || "").trim();
|
|
21
|
+
const candidateSourceTreeSha = String(
|
|
22
|
+
release?.candidateSourceTreeSha || "",
|
|
23
|
+
).trim();
|
|
24
|
+
const builtSourceTreeSha = String(release?.builtSourceTreeSha || "").trim();
|
|
25
|
+
const promotionChannelTreeSha = String(
|
|
26
|
+
release?.promotionChannelTreeSha || "",
|
|
27
|
+
).trim();
|
|
28
|
+
if (
|
|
29
|
+
release?.treeEquivalent !== true ||
|
|
30
|
+
!exactSha(passportSourceSha) ||
|
|
31
|
+
!exactSha(candidateSourceSha) ||
|
|
32
|
+
!exactSha(builtSourceSha) ||
|
|
33
|
+
!exactSha(promotionChannelSha) ||
|
|
34
|
+
candidateSourceSha !== builtSourceSha ||
|
|
35
|
+
promotionChannelSha !== passportSourceSha ||
|
|
36
|
+
!exactSha(candidateSourceTreeSha) ||
|
|
37
|
+
!exactSha(builtSourceTreeSha) ||
|
|
38
|
+
!exactSha(promotionChannelTreeSha) ||
|
|
39
|
+
candidateSourceTreeSha !== builtSourceTreeSha ||
|
|
40
|
+
candidateSourceTreeSha !== promotionChannelTreeSha
|
|
41
|
+
) {
|
|
42
|
+
return passportSourceSha;
|
|
43
|
+
}
|
|
44
|
+
return candidateSourceSha;
|
|
45
|
+
}
|
|
10
46
|
|
|
11
47
|
function issue(code, message, details = {}) {
|
|
12
48
|
return { code, message, details };
|
|
@@ -335,6 +335,7 @@ function settleTerminalCandidate(queue, identity, candidate) {
|
|
|
335
335
|
identity,
|
|
336
336
|
candidate,
|
|
337
337
|
"duplicate-terminal-event-noop",
|
|
338
|
+
{ successorWake: candidate.terminal?.successorWake || null },
|
|
338
339
|
);
|
|
339
340
|
return { queue, receipt, receiptRoot: devDeliveryContentRoot(receipt) };
|
|
340
341
|
}
|
|
@@ -439,7 +440,10 @@ export function createDevDeliveryTerminalSettler({
|
|
|
439
440
|
throw new Error("stale fencing token");
|
|
440
441
|
if (leaseGeneration !== queue.activeWarrant.generation)
|
|
441
442
|
throw new Error("stale lease generation");
|
|
442
|
-
if (
|
|
443
|
+
if (
|
|
444
|
+
identity.outcome === "dequeued" &&
|
|
445
|
+
queue.activeWarrant.phase === "provisional"
|
|
446
|
+
) {
|
|
443
447
|
return retainDequeuedWarrant(
|
|
444
448
|
queue,
|
|
445
449
|
identity,
|
|
@@ -440,6 +440,10 @@ export function closeDevDeliveryWarrant(
|
|
|
440
440
|
...(failureAuthority || {}),
|
|
441
441
|
};
|
|
442
442
|
queue.activeWarrant = null;
|
|
443
|
+
candidate.terminal.successorWake = createDevDeliverySuccessorWake(
|
|
444
|
+
queue,
|
|
445
|
+
currentTime,
|
|
446
|
+
);
|
|
443
447
|
return { candidate, active };
|
|
444
448
|
},
|
|
445
449
|
currentTime,
|
|
@@ -456,10 +460,7 @@ export function closeDevDeliveryWarrant(
|
|
|
456
460
|
...(failureAuthority || {}),
|
|
457
461
|
expectedOldStateRoot: transaction.expectedOldStateRoot,
|
|
458
462
|
nextStateRoot: transaction.after.stateRoot,
|
|
459
|
-
successorWake:
|
|
460
|
-
transaction.after,
|
|
461
|
-
currentTime,
|
|
462
|
-
),
|
|
463
|
+
successorWake: transaction.result.candidate.terminal.successorWake,
|
|
463
464
|
nextAction: "Select the next queued candidate, if any.",
|
|
464
465
|
};
|
|
465
466
|
return {
|
|
@@ -551,6 +552,14 @@ export function observeDevDeliveryQueue(
|
|
|
551
552
|
) || null
|
|
552
553
|
: null,
|
|
553
554
|
states,
|
|
555
|
+
pendingSuccessorWakes: queue.candidates
|
|
556
|
+
.filter((candidate) => candidate.terminal?.successorWake)
|
|
557
|
+
.map((candidate) => ({
|
|
558
|
+
pullRequestNumber: candidate.pullRequestNumber,
|
|
559
|
+
sourceHead: candidate.sourceHead,
|
|
560
|
+
outcome: candidate.status,
|
|
561
|
+
successorWake: candidate.terminal.successorWake,
|
|
562
|
+
})),
|
|
554
563
|
queued: queued.map((entry, index) => ({
|
|
555
564
|
position: index + 1,
|
|
556
565
|
candidateId: entry.candidate.candidateId,
|
|
@@ -110,6 +110,8 @@ const PUBLIC_REPOSITORY_TARGETS = Object.freeze({
|
|
|
110
110
|
"site-libkungfu-dev": [
|
|
111
111
|
target("main", [check("web-surface / Record web-surface controller receipt")], false),
|
|
112
112
|
],
|
|
113
|
+
taolu: ["dev", "alpha", "release"].map((family) => target(`${family}/v1/v1.0`,
|
|
114
|
+
[check("build / Summarize build contract"), check("stage-capsule / Reconcile exact three-platform evidence")], false)),
|
|
113
115
|
});
|
|
114
116
|
const PUBLIC_REPOSITORIES = Object.freeze(Object.keys(PUBLIC_REPOSITORY_TARGETS).sort());
|
|
115
117
|
const PROTECTED_AUTHORITY_PATHS = Object.freeze([
|
|
@@ -497,10 +499,8 @@ export function createBuildchainGithubGovernanceAuthority() {
|
|
|
497
499
|
privateRepositoryPolicy: "excluded-from-managed-zone",
|
|
498
500
|
unknownRepositoryPolicy: "non-authoritative-until-explicit-admission",
|
|
499
501
|
baseline: {
|
|
500
|
-
observedOn: "2026-
|
|
501
|
-
|
|
502
|
-
publicCount: 16,
|
|
503
|
-
privateCount: 0,
|
|
502
|
+
observedOn: "2026-08-28", repositoryCount: 17,
|
|
503
|
+
publicCount: 17, privateCount: 0,
|
|
504
504
|
authoritativePublicTargetCount: Object.values(PUBLIC_REPOSITORY_TARGETS)
|
|
505
505
|
.reduce((count, targets) => count + targets.length, 0),
|
|
506
506
|
},
|