@kungfu-tech/buildchain 2.11.14-alpha.7 → 2.12.0-alpha.0

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/AGENTS.md CHANGED
@@ -14,26 +14,26 @@ restating them.
14
14
 
15
15
  ## Using this repo as a Buildchain consumer
16
16
 
17
- Stable consumers should pin actions and reusable workflows through the released
18
- Buildchain refs:
17
+ Consumers that want Buildchain to select alpha for development/prerelease work
18
+ and stable for production releases use the channel router. The router defaults
19
+ to `auto`; repositories only add channel configuration when they intentionally
20
+ override that policy:
19
21
 
20
22
  ```yaml
21
- uses: kungfu-systems/buildchain/actions/validate-config@v2
22
- uses: kungfu-systems/buildchain/actions/run-lifecycle@v2
23
- uses: kungfu-systems/buildchain/actions/promote-buildchain-ref@v2
24
- uses: kungfu-systems/buildchain/.github/workflows/.build.yml@v2
23
+ uses: kungfu-systems/buildchain/.github/workflows/build.yml@v2
25
24
  ```
26
25
 
27
- Consumers intentionally following the alpha channel should pair the workflow
28
- shell with the matching floating ref:
26
+ During the v2.12 alpha evaluation window, canaries call the same router through
27
+ the matching prerelease ref:
29
28
 
30
29
  ```yaml
31
- uses: kungfu-systems/buildchain/.github/workflows/.build.yml@v2-alpha
30
+ uses: kungfu-systems/buildchain/.github/workflows/build.yml@v2-alpha
32
31
  ```
33
32
 
34
- The reusable workflow derives its runtime from that called-workflow ref.
35
- Passing `buildchain-ref: v2-alpha` explicitly is also accepted as an official
36
- channel selection; it is not treated as a train or exact-SHA override.
33
+ The default policy selects `vN-alpha` for pull requests, development, nightly,
34
+ and prerelease intent; it selects stable `vN` for stable release intent. The
35
+ advanced `.build.yml` surface and explicit `buildchain-ref` train/SHA validation
36
+ remain available when a repository needs precise control.
37
37
 
38
38
  For new repositories, prefer the CLI:
39
39
 
package/README.md CHANGED
@@ -201,6 +201,8 @@ The active reusable workflow surfaces are:
201
201
 
202
202
  - `.github/workflows/.build.yml` for deterministic multi-platform build and
203
203
  artifact contracts;
204
+ - `.github/workflows/build.yml` for the single-config channel router that uses
205
+ `vN-alpha` during development/prerelease work and `vN` for stable releases;
204
206
  - `.github/workflows/release-candidate-promote.yml` for post-merge
205
207
  promote-only publication from a PR-stage release candidate, without a second
206
208
  heavy build;
@@ -219,7 +221,7 @@ uses: kungfu-systems/buildchain/actions/validate-config@v2
219
221
  ```
220
222
 
221
223
  ```yaml
222
- uses: kungfu-systems/buildchain/.github/workflows/.build.yml@v2
224
+ uses: kungfu-systems/buildchain/.github/workflows/build.yml@v2
223
225
  ```
224
226
 
225
227
  ```yaml
@@ -4,7 +4,7 @@
4
4
  "product": {
5
5
  "name": "Buildchain",
6
6
  "package": "@kungfu-tech/buildchain",
7
- "version": "2.11.14-alpha.7",
7
+ "version": "2.12.0-alpha.0",
8
8
  "repository": "https://github.com/kungfu-systems/buildchain"
9
9
  },
10
10
  "majorLine": "v2",
@@ -52,6 +52,45 @@
52
52
  "breakingDigest": "sha256:a6a35370d6b0d0f46e1b2712dcc01961fe53c2febde95409a27a485c10a36650",
53
53
  "auditDigest": "sha256:d07b446c85a29ba854baa8438d6f7aca15ebccaf7673527d6a1d2912b2fb66e6"
54
54
  },
55
+ {
56
+ "contractVersion": 1,
57
+ "stability": "stable",
58
+ "additiveChanges": "optional inputs, optional outputs, diagnostics, and documentation may be added within the same major line",
59
+ "id": "channel-build-router",
60
+ "kind": "workflow",
61
+ "path": ".github/workflows/build.yml",
62
+ "publicRef": "kungfu-systems/buildchain/.github/workflows/build.yml@v2",
63
+ "requiredInputs": [],
64
+ "requiredOutputs": [
65
+ "buildchain-channel",
66
+ "buildchain-runtime-sha",
67
+ "build-summary-artifact"
68
+ ],
69
+ "breakingDefaults": {
70
+ "channelDefault": "auto",
71
+ "developmentDefault": "alpha",
72
+ "prereleaseDefault": "alpha",
73
+ "stableReleaseDefault": "stable",
74
+ "ambiguousReleasePolicy": "fail-closed"
75
+ },
76
+ "optionalInputs": [
77
+ "buildchain-channel",
78
+ "buildchain-ref",
79
+ "buildchain-alpha-contract-lock-path",
80
+ "buildchain-stable-contract-lock-path",
81
+ "buildchain-contract-lock-path"
82
+ ],
83
+ "guarantees": [
84
+ "consumers declare one build job while Buildchain selects the matching generic major channel",
85
+ "development and prerelease intent select vN-alpha",
86
+ "stable release intent selects vN",
87
+ "ambiguous release-like intent fails before build jobs",
88
+ "explicit train and exact-SHA overrides retain the reusable build trust gate",
89
+ "alpha and stable channel selections use separate consumer contract locks by default"
90
+ ],
91
+ "breakingDigest": "sha256:c4597dfa89e1a58f1023905092b849644f5c080abf150aeba9c7e1cd5ed43962",
92
+ "auditDigest": "sha256:421dc3ff2c95da3a5d556281af3f2918f08cfd8782a0c968e8465ca0e09d3afb"
93
+ },
55
94
  {
56
95
  "contractVersion": 1,
57
96
  "stability": "stable",
@@ -442,7 +481,7 @@
442
481
  "manual entries carry source file digests so downstream sites and agents can detect stale hand-written documentation"
443
482
  ],
444
483
  "breakingDigest": "sha256:7d0d2819e3a3e72989d9c57b5efe9d0bc0a79bc0f2c82a0c7b9d6c5a211a91f2",
445
- "auditDigest": "sha256:ea66c5781a32f641938a7b3b6554eec6e26e6beda67b549c4b9485c6c1a6b776"
484
+ "auditDigest": "sha256:2b171c123d063c5b812c701e43b10578dca168b186937b29b57846ae47e4f647"
446
485
  },
447
486
  {
448
487
  "contractVersion": 1,
@@ -464,9 +503,9 @@
464
503
  "agents can discover supported Node APIs without importing internal file paths"
465
504
  ],
466
505
  "breakingDigest": "sha256:48f925608d3e2131d90936b07dc2a30341204cae3e6e785c0f77d61ad755c945",
467
- "auditDigest": "sha256:b3833018162da89782de7b4f5723f1aca1bd7dc362b8276bf5e997fd6640d7f1"
506
+ "auditDigest": "sha256:678d254ee0ba8e58d9cc572d3721a916597e3260590113d4f8ba33b742868daf"
468
507
  }
469
508
  ],
470
- "compatibilityDigest": "sha256:1396e42444aaf3f26a40121faf3d599eb9db13537f627fc8dbcef2475af8af44",
471
- "contractDigest": "sha256:cac32376b91ac2f828d7e9053bbb678d4e2a1d8503f2cd1c2252a04277b37623"
509
+ "compatibilityDigest": "sha256:2090784977bc7d54fc647215ef73532b9db26147a0b40ec3f56c31d611d806cc",
510
+ "contractDigest": "sha256:ceac237105bc966d6d2225db28e456b697d66093b59b2697c552d4867640c62d"
472
511
  }