@kungfu-tech/buildchain 4.0.1-alpha.12 → 4.0.1-alpha.14

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.
@@ -6,11 +6,11 @@
6
6
  "repositoryBudgets": {
7
7
  "baselineRevision": "858dbe00b6206a8f356b4a12d2659bee7a72e71b",
8
8
  "maxHandMaintainedSourceFiles": 427,
9
- "maxHandMaintainedSourceLines": 159839,
9
+ "maxHandMaintainedSourceLines": 159840,
10
10
  "maxWorkflowFiles": 76,
11
11
  "maxWorkflowLines": 26309,
12
- "latestTransition": "Promotion certifies a floating v4 release candidate with the exact runtime sealed into its Passport instead of the independently selected workflow shell.",
13
- "latestTransitionRationale": "The certifier now defaults to the checked-out candidate runtime and keeps the existing separate candidate-policy checkout only when the Passport runtime differs. This closes the same-runtime bootstrap mismatch without relaxing receipt, policy, scanner, caller, source, dual-lock, or runtime-root checks. The six source lines are one contract marker plus canonical formatting of already merged assertions; workflow size does not grow. These exact 427-file, 159839-source-line, 76-workflow-file and 26309-workflow-line ceilings add no unrelated headroom and grant no publication authority.",
12
+ "latestTransition": "Promotion queries the configured protected check by exact context before verifying its conclusion and provider identity.",
13
+ "latestTransitionRationale": "The provider readback now asks GitHub for only the configured latest check context, preventing more than 100 unrelated runs from crowding a qualifying protected check out of the bounded response. Required context, successful conclusion and configured GitHub App identity remain fail-closed. The repository source metric grows by exactly one line; workflow size does not grow. These exact 427-file, 159840-source-line, 76-workflow-file and 26309-workflow-line ceilings add no unrelated headroom and grant no publication authority.",
14
14
  "rationale": "Bounded modules separate candidate, evidence, native proof and execution, canonical failure verification, closed-set execution transfer, process-boundary verification, Warrant state and qualification, authority state, qualification, Landing acquisition, verified-attempt admission, Landing settlement and fence validation, provider attempt and heartbeat readback, sealed terminal evidence, hosted heartbeat, resume, store, options, command-specific adapters, and CLI orchestration responsibilities. The protected delivery workflow gives candidate and seal jobs no provider write credential, recursively rejects transfer drift, scopes every transfer artifact to the exact provider run attempt, chains every durable heartbeat state and receipt root on a distinct hosted runner domain, and permits qualification or exact failure settlement only after the finalizer verifies live jobs and the latest durable authority state. Public Landing admission and heartbeat always perform non-injectable fresh exact-attempt provider readback, tolerate only a not-yet-materialized seal job while retaining exact native and duplicate-job rejection, and heartbeat-loss coordination never invokes GitHub's run-scoped cancellation API where a successor rerun could race. The hosted process boundary anchors trust in the kernel-resolved versioned Runner.Worker path while accepting an equivalent argv-zero spelling with the same basename; its public boundary marker is allowed only at the one exact non-secret value, so a forged value under the same credential-like name still fails closed. The credentialless transfer seal validates the rooted native reuse decision against the Warrant-bound source, closure, dependency, toolchain, environment and command inputs; qualifiedBase stays in the proof and decision where it is rooted and later independently rechecked, rather than being assumed on the Warrant schema. V2 mutation cannot initialize a second empty authority beside a legacy ref: migration reads and roots the canonical live v1 ref, rechecks it, applies the explicit configured v2 policy, and atomically replaces its bytes through one expected-old non-force update, so old v1 controllers fail closed while the prior commit remains immutable history. Candidate ancestry classifies the GitHub artifact runtime token as credential authority. Every Landing settlement, including an unexpired fence, requires product-owned terminal readback. Terminal cleanup reads the immutable historical attempt, derives workflow and hosted Landing job identity from live run data, reads the exact protected ref head and compares containment against that immutable SHA, and seals merged only when the admitted merge-group head is contained by that protected base; a later different-head merge settles the old attempt as dequeued. Terminal normalization preserves transfer, finalizer boundary, native and seal job, admitted provider attempt, protected-base head, containment result, and terminal readback coordinates. The public reusable workflow truthfully retains its single-flight v1 authority without advertising v2 migration, while bounded v2 remains a separate opt-in CLI, Node API, and schema contract; the tracked self-caller stays on public v4-alpha with matching stable and alpha locks, and transient train selection is dispatch-only. Next-development parity adds one versioned transition authority, one durable controller, one bounded reservation adapter, and pure public-contract recovery evidence while retaining the existing thin floating-channel callers byte-for-byte. The floating-consumer gate reuses the existing contract-world evaluator so SHA drift passes only under the selected lock's compatibility policy, breaking surface drift still fails closed, and external certification reconstructs the receipt from the observed workflow SHA rather than the lock's historical evidence SHA. Tail reseal adds no Stage Capsule effect or general rebuild authority: it verifies the exact retained four-platform bytes, admits one known macOS tail failure through live provider readback, fences signing and finalization to explicit credentials and Warrant identity, and requires standard candidate Passport plus provider and protected readback. Compatibility Facts parity isolates canonical encoding, temporal verification, lifecycle validation, fixture projection, public authority projection, and CLI adaptation into bounded modules; legacy digest and proof arrays are derived only from exact current Fact lineage. Publication Rehearsal adds no production release authority: the content-addressed capsule contract binds source, candidate, manifest, config, canonical data-only provider bindings, provider policy, observations and core version separately from filesystem, runtime and rehearsal-only provider authority; simulate, replay and explicitly authorized provider rehearsal all reuse the release-tail planner, while same-commit local dogfood resolves the new reusable contract and exact current runtime before external callers remain on floating v4-alpha. Cross-runtime candidate recovery preserves original runtime and provider roots and creates resume lineage only after exact public ref, tag, ancestry, npm version and integrity readback. Adopter Delivery restores the reviewed public v3 gate, drivers, Passport binding, N-1 bootstrap and exact archive loader through one public v4 surface while keeping provider and release authority explicit non-claims. Floating Alpha bootstrap uses only the existing exact resolver and protected Alpha private shell to move an otherwise stale floating shell, retains public v4 stable promotion, and removes itself after protected readback. CI lane change-budget enforcement adds a bounded parser, evaluator, guard, and tests without creating another merge authority."
15
15
  },
16
16
  "sourceBudgets": {
@@ -4,7 +4,7 @@
4
4
  "product": {
5
5
  "name": "Buildchain",
6
6
  "package": "@kungfu-tech/buildchain",
7
- "version": "4.0.1-alpha.12",
7
+ "version": "4.0.1-alpha.14",
8
8
  "repository": "https://github.com/kungfu-systems/buildchain"
9
9
  },
10
10
  "majorLine": "v4",
@@ -1646,7 +1646,7 @@
1646
1646
  "resume-from-candidate-run is fail-closed and uses a fresh caller event instead of rerunning a frozen startup graph"
1647
1647
  ],
1648
1648
  "breakingDigest": "sha256:9db8dd07152855d03ff30f9c571438593c689d3e8139fa45431d000f548242f5",
1649
- "auditDigest": "sha256:bb201d3e6618be79c9d23616a90c714adea45c5d5a435710a4a9605305c5dcd6",
1649
+ "auditDigest": "sha256:80b3532dc9b473dd2327c28dd68fb7ddfe01b6bdad14f22f7e9be435490f9088",
1650
1650
  "compatibleBreakingDigests": [
1651
1651
  "sha256:aa30f22e3af0a89841310bdbdc900844dd95a66974db173fa140a71bbd7e82c0"
1652
1652
  ],
@@ -5082,7 +5082,7 @@
5082
5082
  "missing receipts are non-qualifying and must not be represented as a successful controller run"
5083
5083
  ],
5084
5084
  "breakingDigest": "sha256:015d8de793adbd4c539416be7d7512e18cc92097e629b0203fa06d2c183e98bd",
5085
- "auditDigest": "sha256:bb201d3e6618be79c9d23616a90c714adea45c5d5a435710a4a9605305c5dcd6"
5085
+ "auditDigest": "sha256:80b3532dc9b473dd2327c28dd68fb7ddfe01b6bdad14f22f7e9be435490f9088"
5086
5086
  },
5087
5087
  {
5088
5088
  "contractVersion": 1,
@@ -5308,5 +5308,5 @@
5308
5308
  "compatibilityFactCutRoot": "sha256:f61b975d4a96c921cc4bd37fb3ed9a0596b47004fe34dc7219979d697e3707f9",
5309
5309
  "compatibilityProofRegistryRoot": "sha256:b7194b811e4d3af2df4390bc4d1731e16a86215bd64ee18cb630dd5492f4fb63",
5310
5310
  "compatibilityDigest": "sha256:5de1c69386510b74b17eb70141b8bdd07063d62c504f91db5e84b67c6d4b64a2",
5311
- "contractDigest": "sha256:99b1d5e0dfdee80e42bba2d8a1920f20231f96c87a9263fc43e5ba17d254f31c"
5311
+ "contractDigest": "sha256:acca5274f58fbd4fb4627aacf7b616db4914bcbc1b661e36c9834077c91f75d0"
5312
5312
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "contract": "kungfu-buildchain-site-bundle",
4
- "generatedAt": "2026-08-22T13:24:31.982Z",
5
- "publishedAt": "2026-08-22T13:24:31.982Z",
4
+ "generatedAt": "2026-08-22T17:24:19.899Z",
5
+ "publishedAt": "2026-08-22T17:24:19.899Z",
6
6
  "reproducible": true,
7
7
  "timestampPolicy": "ci-injected",
8
8
  "deterministicInputs": [
@@ -19,7 +19,7 @@
19
19
  "declared Buildchain surface manifest contract"
20
20
  ],
21
21
  "sourceDateEpoch": "0",
22
- "sourceRevision": "39ff451bfa21511979c30bbe4bb60f4c26bde32e",
22
+ "sourceRevision": "1c83641ee9280c26e5d5eb7013060d228eded5f5",
23
23
  "timestampPolicyDetails": {
24
24
  "contract": "kungfu-buildchain-surface-timestamp-policy",
25
25
  "timestampFields": [
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "package": {
39
39
  "name": "@kungfu-tech/buildchain",
40
- "version": "4.0.1-alpha.12",
40
+ "version": "4.0.1-alpha.14",
41
41
  "versionSource": "package.json#version"
42
42
  },
43
43
  "source": {
@@ -21,7 +21,7 @@
21
21
  "contract": "kungfu-buildchain-public-surface-reverse-audit",
22
22
  "path": "dist/site/public-surface-audit.json",
23
23
  "status": "passed",
24
- "sha256": "2910d32d54f692b403fba350e5da8b175ed2a9d0611af33332556db710aba6c2",
24
+ "sha256": "c45dbe332ae2a3a7db45999211b84347e564a416c2390b423ccdffb3be8c0279",
25
25
  "summary": {
26
26
  "cliCommandCount": 117,
27
27
  "workflowCount": 76,
@@ -246,7 +246,7 @@
246
246
  "contract": "kungfu-buildchain-public-surface-reverse-audit",
247
247
  "path": "dist/site/public-surface-audit.json",
248
248
  "status": "passed",
249
- "sha256": "2910d32d54f692b403fba350e5da8b175ed2a9d0611af33332556db710aba6c2",
249
+ "sha256": "c45dbe332ae2a3a7db45999211b84347e564a416c2390b423ccdffb3be8c0279",
250
250
  "summary": {
251
251
  "cliCommandCount": 117,
252
252
  "workflowCount": 76,
@@ -4,7 +4,7 @@
4
4
  "product": {
5
5
  "id": "kungfu-tech-buildchain",
6
6
  "name": "@kungfu-tech/buildchain",
7
- "version": "4.0.1-alpha.12",
7
+ "version": "4.0.1-alpha.14",
8
8
  "repository": "https://github.com/kungfu-systems/buildchain"
9
9
  },
10
10
  "source": {
@@ -8846,7 +8846,7 @@
8846
8846
  "workflowRegistryPath": "dist/site/workflow-registry.json",
8847
8847
  "pageRegistryPath": "dist/site/page-registry.json",
8848
8848
  "cliRegistryDigest": "ea47a31ce7ef3577f23e22055ab7be7715c3af494bcef63f76b426f2883086aa",
8849
- "workflowRegistryDigest": "e387c421cd485a03f19ec60c1edcca0491c8293a99da6ec7ee7f0fed4633d9dd",
8849
+ "workflowRegistryDigest": "723158926bc476252e885d4a4568352d36f2713f1a560b7bab098a9c142b8ba3",
8850
8850
  "pageRegistryDigest": "9d9d0590c8d3110fc5a95978852ee25337567f93980b2562cc1159f0d5219ade"
8851
8851
  },
8852
8852
  "comparison": {
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "contract": "kungfu-buildchain-publication-release-registry",
4
- "generatedAt": "2026-08-22T13:24:31.982Z",
5
- "publishedAt": "2026-08-22T13:24:31.982Z",
4
+ "generatedAt": "2026-08-22T17:24:19.899Z",
5
+ "publishedAt": "2026-08-22T17:24:19.899Z",
6
6
  "reproducible": true,
7
7
  "timestampPolicy": "ci-injected",
8
8
  "deterministicInputs": [
@@ -19,7 +19,7 @@
19
19
  "declared Buildchain surface manifest contract"
20
20
  ],
21
21
  "sourceDateEpoch": "0",
22
- "sourceRevision": "39ff451bfa21511979c30bbe4bb60f4c26bde32e",
22
+ "sourceRevision": "1c83641ee9280c26e5d5eb7013060d228eded5f5",
23
23
  "timestampPolicyDetails": {
24
24
  "contract": "kungfu-buildchain-surface-timestamp-policy",
25
25
  "timestampFields": [
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "package": {
34
34
  "name": "@kungfu-tech/buildchain",
35
- "version": "4.0.1-alpha.12",
35
+ "version": "4.0.1-alpha.14",
36
36
  "versionSource": "package.json#version"
37
37
  },
38
38
  "sourceKind": "package-site-bundle",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "contract": "kungfu-buildchain-site-manifest",
4
- "generatedAt": "2026-08-22T13:24:31.982Z",
5
- "publishedAt": "2026-08-22T13:24:31.982Z",
4
+ "generatedAt": "2026-08-22T17:24:19.899Z",
5
+ "publishedAt": "2026-08-22T17:24:19.899Z",
6
6
  "reproducible": true,
7
7
  "timestampPolicy": "ci-injected",
8
8
  "deterministicInputs": [
@@ -19,7 +19,7 @@
19
19
  "declared Buildchain surface manifest contract"
20
20
  ],
21
21
  "sourceDateEpoch": "0",
22
- "sourceRevision": "39ff451bfa21511979c30bbe4bb60f4c26bde32e",
22
+ "sourceRevision": "1c83641ee9280c26e5d5eb7013060d228eded5f5",
23
23
  "timestampPolicyDetails": {
24
24
  "contract": "kungfu-buildchain-surface-timestamp-policy",
25
25
  "timestampFields": [
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "package": {
39
39
  "name": "@kungfu-tech/buildchain",
40
- "version": "4.0.1-alpha.12",
40
+ "version": "4.0.1-alpha.14",
41
41
  "versionSource": "package.json#version"
42
42
  },
43
43
  "entrypoint": "buildchain-site.json",
@@ -2027,7 +2027,7 @@
2027
2027
  "status": "preview",
2028
2028
  "owner": "buildchain-workflows",
2029
2029
  "maturity": "preview",
2030
- "introducedVersion": "4.0.1-alpha.12",
2030
+ "introducedVersion": "4.0.1-alpha.14",
2031
2031
  "compatibilityPromise": "preserved-through-the-v3-major-line",
2032
2032
  "deprecationReplacement": "",
2033
2033
  "sunsetCondition": "explicit-breaking-change-review-in-a-future-major-line",
@@ -2048,7 +2048,7 @@
2048
2048
  "status": "preview",
2049
2049
  "owner": "buildchain-workflows",
2050
2050
  "maturity": "preview",
2051
- "introducedVersion": "4.0.1-alpha.12",
2051
+ "introducedVersion": "4.0.1-alpha.14",
2052
2052
  "compatibilityPromise": "preserved-through-the-v3-major-line",
2053
2053
  "deprecationReplacement": "",
2054
2054
  "sunsetCondition": "explicit-breaking-change-review-in-a-future-major-line",
@@ -2069,7 +2069,7 @@
2069
2069
  "status": "preview",
2070
2070
  "owner": "buildchain-workflows",
2071
2071
  "maturity": "preview",
2072
- "introducedVersion": "4.0.1-alpha.12",
2072
+ "introducedVersion": "4.0.1-alpha.14",
2073
2073
  "compatibilityPromise": "preserved-through-the-v3-major-line",
2074
2074
  "deprecationReplacement": "",
2075
2075
  "sunsetCondition": "explicit-breaking-change-review-in-a-future-major-line",
@@ -2119,7 +2119,7 @@
2119
2119
  "status": "preview",
2120
2120
  "owner": "buildchain-workflows",
2121
2121
  "maturity": "preview",
2122
- "introducedVersion": "4.0.1-alpha.12",
2122
+ "introducedVersion": "4.0.1-alpha.14",
2123
2123
  "compatibilityPromise": "preserved-through-the-v3-major-line",
2124
2124
  "deprecationReplacement": "",
2125
2125
  "sunsetCondition": "explicit-breaking-change-review-in-a-future-major-line",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kungfu-tech/buildchain",
3
- "version": "4.0.1-alpha.12",
3
+ "version": "4.0.1-alpha.14",
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",
@@ -4,7 +4,7 @@ import fs from "node:fs";
4
4
  import os from "node:os";
5
5
  import path from "node:path";
6
6
  import { execFileSync } from "node:child_process";
7
- import { pathToFileURL } from "node:url";
7
+ import { fileURLToPath, pathToFileURL } from "node:url";
8
8
 
9
9
  import { writeGitHubOutputs } from "./build-contract-core.mjs";
10
10
  import { normalizeAnchorProvenance, normalizeCandidateRun, recoverCandidateProvenance } from "./release-candidate-anchor-provenance.mjs";
@@ -111,15 +111,17 @@ function readOnlyJson(files, label) {
111
111
  return JSON.parse(fs.readFileSync(files[0].absolutePath, "utf8"));
112
112
  }
113
113
 
114
- function trackedRuntimePersistenceScan() {
114
+ export function trackedRuntimePersistenceScan({
115
+ runtimeRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."),
116
+ } = {}) {
115
117
  const paths = execFileSync(
116
118
  "git",
117
- ["ls-files", ".github/workflows", ".github/actions", ".buildchain"],
119
+ ["-C", runtimeRoot, "ls-files", ".github/workflows", ".github/actions", ".buildchain"],
118
120
  { encoding: "utf8" },
119
121
  )
120
122
  .split(/\r?\n/)
121
123
  .filter((entry) => /\.(?:json|toml|ya?ml)$/u.test(entry));
122
- return scanV4RuntimeSelectorPersistence({ root: process.cwd(), paths });
124
+ return scanV4RuntimeSelectorPersistence({ root: runtimeRoot, paths });
123
125
  }
124
126
 
125
127
  export function verifyReleaseCandidateStageCapsules({ sidecar, passport, downloads }) {