@kungfu-tech/buildchain 2.11.14-alpha.5 → 2.11.14-alpha.6
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/actions/promote-buildchain-ref/README.md +8 -5
- package/dist/site/buildchain-contract.json +3 -3
- package/dist/site/buildchain-site.json +16 -16
- package/dist/site/kfd-claims.json +2 -2
- package/dist/site/kfd-upstream-aggregate.json +1 -1
- package/dist/site/manual-registry.json +3 -3
- package/dist/site/page-registry.json +8 -8
- package/dist/site/public-surface-audit.json +1 -1
- package/dist/site/publication-registry.json +4 -4
- package/dist/site/release-model.json +1 -1
- package/dist/site/site-manifest.json +7 -7
- package/docs/MAP.md +1 -1
- package/docs/release-flow.md +9 -3
- package/docs/release-governance.md +8 -2
- package/package.json +1 -1
- package/packages/core/release-line-dry-run.js +9 -2
- package/scripts/generate-site-bundle.mjs +1 -1
package/docs/release-flow.md
CHANGED
|
@@ -53,6 +53,7 @@ for the versioned policy and evidence contract.
|
|
|
53
53
|
| Exact alpha tag | `v2.0.3-alpha.0` | immutable | audit ref for one tested prerelease |
|
|
54
54
|
| Exact release tag | `v2.0.2` | immutable | audit ref for one production release |
|
|
55
55
|
| Floating alpha tag | `v2.0-alpha` | moves | latest test channel for a minor line |
|
|
56
|
+
| Floating major alpha tag | `v2-alpha` | moves | latest test channel on the highest published alpha minor for a major line |
|
|
56
57
|
| Floating minor tag | `v2.0` | moves | latest production patch on a minor line |
|
|
57
58
|
| Floating major tag | `v2` | moves | selected stable major entrypoint |
|
|
58
59
|
|
|
@@ -68,8 +69,8 @@ refs/tags/v*.*.*
|
|
|
68
69
|
```
|
|
69
70
|
|
|
70
71
|
Do not apply immutable-tag rulesets to every `refs/tags/v*` ref. Buildchain
|
|
71
|
-
must be able to update floating channel tags such as `v2`, `v2.0`,
|
|
72
|
-
`v2
|
|
72
|
+
must be able to update floating channel tags such as `v2`, `v2.0`, `v2.0-alpha`,
|
|
73
|
+
and `v2-alpha` after the exact tag and publish evidence are valid. A ruleset that
|
|
73
74
|
matches all `v*` tags also matches floating tags, so release finalization can
|
|
74
75
|
fail with GitHub protected-ref errors even though the exact release tag and
|
|
75
76
|
published artifacts are already durable.
|
|
@@ -77,7 +78,7 @@ published artifacts are already durable.
|
|
|
77
78
|
The intended governance split is:
|
|
78
79
|
|
|
79
80
|
- exact tags such as `v2.0.14` and `v2.0.15-alpha.0` are immutable audit refs;
|
|
80
|
-
- floating tags such as `v2`, `v2.0`,
|
|
81
|
+
- floating tags such as `v2`, `v2.0`, `v2.0-alpha`, and `v2-alpha` are mutable channel refs
|
|
81
82
|
owned by the Buildchain promotion token;
|
|
82
83
|
- protected branches still require reviewed channel PRs before Buildchain can
|
|
83
84
|
move any exact or floating release refs.
|
|
@@ -134,6 +135,7 @@ sequenceDiagram
|
|
|
134
135
|
Promote->>Promote: write and verify version state
|
|
135
136
|
Promote->>Tags: create or reuse vX.Y.Z-alpha.N
|
|
136
137
|
Promote->>Tags: move vX.Y-alpha
|
|
138
|
+
Promote->>Tags: move vX-alpha when X.Y is the highest published alpha minor
|
|
137
139
|
Promote->>Alpha: move alpha/vX/vX.Y
|
|
138
140
|
Promote->>Dev: move dev/vX/vX.Y
|
|
139
141
|
```
|
|
@@ -143,6 +145,7 @@ Result:
|
|
|
143
145
|
```text
|
|
144
146
|
vX.Y.Z-alpha.N
|
|
145
147
|
vX.Y-alpha
|
|
148
|
+
vX-alpha when X.Y is the highest published alpha minor
|
|
146
149
|
alpha/vX/vX.Y
|
|
147
150
|
dev/vX/vX.Y
|
|
148
151
|
```
|
|
@@ -177,6 +180,7 @@ sequenceDiagram
|
|
|
177
180
|
Promote->>Promote: prepare vX.Y.(Z+1)-alpha.0
|
|
178
181
|
Promote->>Tags: create or reuse vX.Y.(Z+1)-alpha.0
|
|
179
182
|
Promote->>Tags: move vX.Y-alpha
|
|
183
|
+
Promote->>Tags: move vX-alpha when X.Y is the highest published alpha minor
|
|
180
184
|
Promote->>Alpha: move alpha/vX/vX.Y
|
|
181
185
|
Promote->>Dev: move dev/vX/vX.Y
|
|
182
186
|
```
|
|
@@ -195,6 +199,7 @@ point at the production version-state commit, while:
|
|
|
195
199
|
```text
|
|
196
200
|
vX.Y.(Z+1)-alpha.0
|
|
197
201
|
vX.Y-alpha
|
|
202
|
+
vX-alpha when X.Y is the highest published alpha minor
|
|
198
203
|
alpha/vX/vX.Y
|
|
199
204
|
dev/vX/vX.Y
|
|
200
205
|
```
|
|
@@ -235,6 +240,7 @@ It should also prepare:
|
|
|
235
240
|
```text
|
|
236
241
|
v2.0.3-alpha.0 exact next alpha tag
|
|
237
242
|
v2.0-alpha floating alpha tag
|
|
243
|
+
v2-alpha floating major alpha tag when v2.0 is the highest published alpha minor
|
|
238
244
|
alpha/v2/v2.0 alpha channel branch
|
|
239
245
|
dev/v2/v2.0 development channel branch
|
|
240
246
|
```
|
|
@@ -128,13 +128,14 @@ This is why Buildchain maintains both exact and floating refs:
|
|
|
128
128
|
- `v2` is the selected stable major-line entrypoint;
|
|
129
129
|
- `v2.0.3-alpha.0` is immutable alpha evidence;
|
|
130
130
|
- `v2.0-alpha` is the latest test channel for the `2.0` line.
|
|
131
|
+
- `v2-alpha` is the latest test channel on the highest published alpha minor in major `2`.
|
|
131
132
|
|
|
132
133
|
A release does not mean "minor is complete." It means "this patch on this minor
|
|
133
134
|
line is now production."
|
|
134
135
|
|
|
135
136
|
GitHub repository rules must preserve that distinction. Exact tags such as
|
|
136
137
|
`v2.0.2` and `v2.0.3-alpha.0` should be immutable. Floating channel tags such as
|
|
137
|
-
`v2`, `v2.0`,
|
|
138
|
+
`v2`, `v2.0`, `v2.0-alpha`, and `v2-alpha` must remain movable by the Buildchain promotion
|
|
138
139
|
token after governance checks and publish evidence pass. A tag ruleset that
|
|
139
140
|
protects every `refs/tags/v*` ref is too broad because it also locks the
|
|
140
141
|
floating channel tags that Buildchain is required to update. Prefer exact-tag
|
|
@@ -159,9 +160,12 @@ Buildchain then:
|
|
|
159
160
|
6. Moves `dev/vX/vX.Y` to the same generated alpha commit when this is a
|
|
160
161
|
fast-forward update.
|
|
161
162
|
7. Moves `vX.Y-alpha` to the same generated alpha commit.
|
|
163
|
+
8. Moves `vX-alpha` only when `X.Y` is the highest minor in major `X` with a published alpha; older minor alpha work records a skip and cannot move the major channel backwards.
|
|
162
164
|
|
|
163
165
|
This keeps the test channel self-describing. If a consumer checks out
|
|
164
|
-
`v2.0-alpha`, the manifests and exact alpha tag agree.
|
|
166
|
+
`v2.0-alpha` or `v2-alpha`, the manifests and exact alpha tag agree. The major
|
|
167
|
+
alpha ref removes routine consumer edits when Buildchain opens a newer minor,
|
|
168
|
+
while exact tags and SHAs remain the reproducible audit choice.
|
|
165
169
|
|
|
166
170
|
If `dev/vX/vX.Y` has already advanced before generated alpha version-state
|
|
167
171
|
bookkeeping can sync back, Buildchain records `skipped-non-fast-forward` for the
|
|
@@ -201,6 +205,7 @@ Buildchain then:
|
|
|
201
205
|
`vX.Y.(Z+1)-alpha.0`.
|
|
202
206
|
10. Moves `alpha/vX/vX.Y`, `dev/vX/vX.Y`, and `vX.Y-alpha` to that next alpha
|
|
203
207
|
commit.
|
|
208
|
+
11. Moves `vX-alpha` to that next alpha only when this remains the highest published alpha minor.
|
|
204
209
|
|
|
205
210
|
The production channel and the test channel therefore intentionally diverge
|
|
206
211
|
after release: production stays on the release commit, while alpha/dev continue
|
|
@@ -513,6 +518,7 @@ When the loop succeeds, maintainers and consumers can rely on these facts:
|
|
|
513
518
|
not a hidden manual button;
|
|
514
519
|
- every test channel has an exact alpha tag such as `v2.0.3-alpha.0`;
|
|
515
520
|
- every alpha minor line has a floating tag such as `v2.0-alpha`;
|
|
521
|
+
- every major with a published alpha has a cross-minor floating tag such as `v2-alpha`, owned by its highest published alpha minor;
|
|
516
522
|
- version manifests match the tag visible from the same commit;
|
|
517
523
|
- production releases are derived from the alpha tree that was tested;
|
|
518
524
|
- manual non-dry-run promotion cannot bypass PR review and verification;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kungfu-tech/buildchain",
|
|
3
|
-
"version": "2.11.14-alpha.
|
|
3
|
+
"version": "2.11.14-alpha.6",
|
|
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",
|
|
@@ -23,7 +23,7 @@ function parseTags(input) {
|
|
|
23
23
|
: String(input || "").split(",").map((tag) => tag.trim()).filter(Boolean);
|
|
24
24
|
for (const tag of tags) {
|
|
25
25
|
if (
|
|
26
|
-
!/^v\d+$|^v\d+\.\d+$|^v\d+\.\d+-alpha$|^v\d+\.\d+\.\d+$|^v\d+\.\d+\.\d+-alpha\.\d+$/.test(tag)
|
|
26
|
+
!/^v\d+$|^v\d+-alpha$|^v\d+\.\d+$|^v\d+\.\d+-alpha$|^v\d+\.\d+\.\d+$|^v\d+\.\d+\.\d+-alpha\.\d+$/.test(tag)
|
|
27
27
|
) {
|
|
28
28
|
throw new Error(`Unsupported buildchain dry-run tag: ${tag}`);
|
|
29
29
|
}
|
|
@@ -42,6 +42,7 @@ function getPromotionRule(targetRef, sourceRef = "") {
|
|
|
42
42
|
sourceRef: sourceRef || "release/vN/vN.M",
|
|
43
43
|
releasePrefix: nextMajor ? `v${nextMajor}.0` : "v(N+1).0",
|
|
44
44
|
majorTag: nextMajor ? `v${nextMajor}` : "v(N+1)",
|
|
45
|
+
majorAlphaTag: nextMajor ? `v${nextMajor}-alpha` : "v(N+1)-alpha",
|
|
45
46
|
minorTag: nextMajor ? `v${nextMajor}.0` : "v(N+1).0",
|
|
46
47
|
alphaTag: nextMajor ? `v${nextMajor}.0-alpha` : "v(N+1).0-alpha",
|
|
47
48
|
exactReleasePattern: nextMajor ? `v${nextMajor}.0.0` : "v(N+1).0.0",
|
|
@@ -69,6 +70,7 @@ function getPromotionRule(targetRef, sourceRef = "") {
|
|
|
69
70
|
minor,
|
|
70
71
|
releasePrefix,
|
|
71
72
|
majorTag: `v${major}`,
|
|
73
|
+
majorAlphaTag: `v${major}-alpha`,
|
|
72
74
|
minorTag: releasePrefix,
|
|
73
75
|
alphaTag: `${releasePrefix}-alpha`,
|
|
74
76
|
sourceRef: channel === "alpha" ? `dev/v${major}/v${major}.${minor}` : `alpha/v${major}/v${major}.${minor}`,
|
|
@@ -193,7 +195,10 @@ function explainReleaseLineDryRun({
|
|
|
193
195
|
kind: "alpha",
|
|
194
196
|
action: "would create or reuse immutable alpha evidence tag",
|
|
195
197
|
});
|
|
196
|
-
plan.floatingRefs.push(
|
|
198
|
+
plan.floatingRefs.push(
|
|
199
|
+
{ ref: rule.alphaTag, kind: "tag", action: "would move to alpha version-state commit" },
|
|
200
|
+
{ ref: rule.majorAlphaTag, kind: "tag", action: "would move when this is the highest published alpha minor" },
|
|
201
|
+
);
|
|
197
202
|
plan.branchUpdates.push(
|
|
198
203
|
{ ref: targetRef, action: "would move to alpha version-state commit" },
|
|
199
204
|
{ ref: `dev/v${rule.major}/v${rule.major}.${rule.minor}`, action: "would align dev with the published alpha state" },
|
|
@@ -211,6 +216,7 @@ function explainReleaseLineDryRun({
|
|
|
211
216
|
{ ref: rule.minorTag, kind: "tag", action: "would move to production release commit" },
|
|
212
217
|
{ ref: rule.majorTag, kind: "tag", action: "would move when no newer minor line owns the major tag" },
|
|
213
218
|
{ ref: rule.alphaTag, kind: "tag", action: "would move to next alpha version-state commit" },
|
|
219
|
+
{ ref: rule.majorAlphaTag, kind: "tag", action: "would move when this is the highest published alpha minor" },
|
|
214
220
|
);
|
|
215
221
|
plan.branchUpdates.push(
|
|
216
222
|
{ ref: targetRef, action: "would move to production release commit" },
|
|
@@ -234,6 +240,7 @@ function explainReleaseLineDryRun({
|
|
|
234
240
|
{ ref: rule.minorTag, kind: "tag", action: "would move to next-major release commit" },
|
|
235
241
|
{ ref: rule.majorTag, kind: "tag", action: "would move to next-major release commit" },
|
|
236
242
|
{ ref: rule.alphaTag, kind: "tag", action: "would move to next-major alpha commit" },
|
|
243
|
+
{ ref: rule.majorAlphaTag, kind: "tag", action: "would move to next-major alpha commit" },
|
|
237
244
|
);
|
|
238
245
|
plan.branchUpdates.push(
|
|
239
246
|
{ ref: targetRef, action: "would move to next-major release commit" },
|
|
@@ -872,7 +872,7 @@ function buildSiteBundle() {
|
|
|
872
872
|
schemaVersion: 1,
|
|
873
873
|
contract: "kungfu-buildchain-release-model",
|
|
874
874
|
exactTags: "v-prefixed exact tags are immutable release records.",
|
|
875
|
-
floatingTags: "vX, vX.Y, and vX.Y-alpha are channel pointers updated by Buildchain transactions.",
|
|
875
|
+
floatingTags: "vX, vX-alpha, vX.Y, and vX.Y-alpha are channel pointers updated by Buildchain transactions; vX-alpha follows the highest minor in major X with a published alpha.",
|
|
876
876
|
channelBranches: ["dev/vX/vX.Y", "alpha/vX/vX.Y", "release/vX/vX.Y", "publish-gate/major"],
|
|
877
877
|
protectedDevelopmentBranches: ["dev/vX/vX.Y"],
|
|
878
878
|
releasePassport: {
|