@kungfu-tech/buildchain 4.0.2-alpha.29 → 4.0.2-alpha.30
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 +2 -0
- package/architecture/internal-capabilities.json +5 -2
- package/architecture/maintainability-debt.json +3 -3
- package/architecture/maintainability-policy.json +5 -5
- package/bin/buildchain.mjs +7 -7
- package/contracts/dev-delivery-authority-v2.schema.json +16 -2
- package/dist/site/buildchain-contract.json +5 -5
- package/dist/site/buildchain-site.json +7 -7
- package/dist/site/kfd-claims.json +2 -2
- package/dist/site/kfd-upstream-aggregate.json +1 -1
- package/dist/site/manual-registry.json +1 -1
- package/dist/site/node-api-registry.json +6 -6
- package/dist/site/page-registry.json +2 -2
- package/dist/site/public-surface-audit.json +2 -2
- package/dist/site/publication-registry.json +4 -4
- package/dist/site/schemas/dev-delivery-authority-v2.schema.json +16 -2
- package/dist/site/site-manifest.json +5 -5
- package/dist/site/workflow-registry.json +4 -4
- package/docs/node-api-reference.md +4 -4
- package/package.json +1 -1
- package/packages/core/dev-delivery-candidate-identity.js +14 -35
- package/packages/core/dev-delivery-warrant-state.js +3 -4
- package/packages/core/dev-delivery-warrant.js +12 -2
- package/scripts/build-contract-core.mjs +1 -14
- package/scripts/dev-delivery-authority-command-adapters.mjs +1 -1
- package/scripts/dev-delivery-authority.mjs +8 -8
- package/scripts/dev-delivery-source-proof-reuse.mjs +2 -1
- package/scripts/dev-delivery-warrant-options.mjs +14 -9
- package/scripts/dev-delivery-warrant.mjs +3 -2
- package/scripts/github-output.mjs +31 -0
- package/templates/native-dev-delivery.yml +4 -7
|
@@ -651,6 +651,7 @@ Owner: Buildchain contract maintainers
|
|
|
651
651
|
|
|
652
652
|
- `packages/core/buildchain-contract.js`
|
|
653
653
|
- `scripts/build-contract-core.mjs`
|
|
654
|
+
- `scripts/github-output.mjs`
|
|
654
655
|
|
|
655
656
|
### Contracts
|
|
656
657
|
|
|
@@ -662,6 +663,7 @@ Owner: Buildchain contract maintainers
|
|
|
662
663
|
- `tests/buildchain-contract.test.mjs`
|
|
663
664
|
- `tests/build-surface.test.mjs`
|
|
664
665
|
- `tests/build-surface-promotion.test.mjs`
|
|
666
|
+
- `tests/github-output.test.mjs`
|
|
665
667
|
|
|
666
668
|
### Generated outputs
|
|
667
669
|
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"actions/release-tail/index.js",
|
|
37
37
|
"scripts/authorize-promotion-runtime-override.cjs",
|
|
38
38
|
"scripts/build-contract-core.mjs",
|
|
39
|
+
"scripts/github-output.mjs",
|
|
39
40
|
"scripts/buildchain-cli-help.mjs",
|
|
40
41
|
"scripts/generate-channel-build-workflow.mjs",
|
|
41
42
|
"scripts/promotion-routing-evidence.mjs",
|
|
@@ -420,12 +421,14 @@
|
|
|
420
421
|
"owner": "Buildchain contract maintainers",
|
|
421
422
|
"implementation": [
|
|
422
423
|
"packages/core/buildchain-contract.js",
|
|
423
|
-
"scripts/build-contract-core.mjs"
|
|
424
|
+
"scripts/build-contract-core.mjs",
|
|
425
|
+
"scripts/github-output.mjs"
|
|
424
426
|
],
|
|
425
427
|
"tests": [
|
|
426
428
|
"tests/buildchain-contract.test.mjs",
|
|
427
429
|
"tests/build-surface.test.mjs",
|
|
428
|
-
"tests/build-surface-promotion.test.mjs"
|
|
430
|
+
"tests/build-surface-promotion.test.mjs",
|
|
431
|
+
"tests/github-output.test.mjs"
|
|
429
432
|
],
|
|
430
433
|
"contracts": [
|
|
431
434
|
"dist/site/buildchain-contract.json",
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
},
|
|
8
8
|
"totalExcessLedger": {
|
|
9
9
|
"metric": "calibrated-full-dimensional-excess-v1",
|
|
10
|
-
"measuredExcess":
|
|
11
|
-
"current":
|
|
10
|
+
"measuredExcess": 64421,
|
|
11
|
+
"current": 56360
|
|
12
12
|
},
|
|
13
13
|
"defaults": {
|
|
14
14
|
"owner": "Buildchain architecture maintainers",
|
|
@@ -1259,7 +1259,7 @@
|
|
|
1259
1259
|
"lines": 1229
|
|
1260
1260
|
},
|
|
1261
1261
|
"current": {
|
|
1262
|
-
"lines":
|
|
1262
|
+
"lines": 1216
|
|
1263
1263
|
},
|
|
1264
1264
|
"target": {
|
|
1265
1265
|
"lines": 600
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"rationale": "Wave 4 freezes both the aggregate exception inventory and every exception class at the exact protected baseline; reductions may ratchet these ceilings downward, but entries cannot be moved between classes to create hidden headroom."
|
|
26
26
|
},
|
|
27
27
|
"repositoryBudgets": {
|
|
28
|
-
"baselineRevision": "
|
|
29
|
-
"maxHandMaintainedSourceFiles":
|
|
30
|
-
"maxHandMaintainedSourceLines":
|
|
28
|
+
"baselineRevision": "2dd9950ec84795bba2f9c15d1ca91e8f1244259e",
|
|
29
|
+
"maxHandMaintainedSourceFiles": 464,
|
|
30
|
+
"maxHandMaintainedSourceLines": 170655,
|
|
31
31
|
"maxWorkflowFiles": 80,
|
|
32
32
|
"maxWorkflowLines": 26791,
|
|
33
|
-
"latestTransition": "
|
|
34
|
-
"latestTransitionRationale": "
|
|
33
|
+
"latestTransition": "GitHub Output serialization preserves multiline release asset paths.",
|
|
34
|
+
"latestTransitionRationale": "The shared writer now uses GitHub's delimiter form only when an output contains line breaks, while retaining the existing single-line form and public re-export. A focused regression test proves that the release asset list remains one output instead of being parsed as malformed file commands. Extracting the bounded serializer lowers the oversized build-contract core from 1229 to 1216 lines; the exact inventory grows by one hand-maintained source file and 18 lines to 464 files and 170655 lines, without adding workflow, credential, provider permission, merge authority, capability, or publication target.",
|
|
35
35
|
"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.",
|
|
36
36
|
"governance": "legacy-debt-sunset-2026q4"
|
|
37
37
|
},
|
package/bin/buildchain.mjs
CHANGED
|
@@ -204,9 +204,9 @@ function runDoctor({ cwd = process.cwd(), requirePublishSourceLock = false } = {
|
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
function runScript(scriptName, args) {
|
|
207
|
+
function runScript(scriptName, args, runner = process.execPath) {
|
|
208
208
|
const scriptPath = path.join(root, "scripts", scriptName);
|
|
209
|
-
const result = spawnSync(
|
|
209
|
+
const result = spawnSync(runner, [scriptPath, ...args], {
|
|
210
210
|
cwd: process.cwd(),
|
|
211
211
|
env: process.env,
|
|
212
212
|
stdio: "inherit",
|
|
@@ -1378,13 +1378,11 @@ async function handleDoctorCommand(args) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
return;
|
|
1381
|
-
|
|
1382
1381
|
}
|
|
1383
|
-
|
|
1384
1382
|
async function handleDevCommand(args) {
|
|
1385
1383
|
const [subcommand = "", ...devArgs] = args;
|
|
1386
|
-
|
|
1387
|
-
runScript(
|
|
1384
|
+
const directScript = { deliver: ["dev-delivery-request.sh", "/bin/bash"], "pr-admit": ["dev-pr-auto-merge.mjs", process.execPath] }[subcommand]; if (directScript) {
|
|
1385
|
+
runScript(directScript[0], devArgs, directScript[1]);
|
|
1388
1386
|
return;
|
|
1389
1387
|
}
|
|
1390
1388
|
if (subcommand === "warrant") {
|
|
@@ -1404,11 +1402,13 @@ async function handleDevCommand(args) {
|
|
|
1404
1402
|
return;
|
|
1405
1403
|
}
|
|
1406
1404
|
if (subcommand !== "merge-queue") {
|
|
1407
|
-
throw new Error("usage: buildchain dev <pr-admit|merge-queue|warrant|authority|proof|two-phase> [options]");
|
|
1405
|
+
throw new Error("usage: buildchain dev <deliver|pr-admit|merge-queue|warrant|authority|proof|two-phase> [options]");
|
|
1408
1406
|
}
|
|
1409
1407
|
runScript("dev-merge-queue.mjs", devArgs);
|
|
1410
1408
|
return;
|
|
1411
1409
|
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
1414
|
async function handleLogCommand(args) {
|
|
@@ -558,8 +558,6 @@
|
|
|
558
558
|
"repository",
|
|
559
559
|
"protectedBase",
|
|
560
560
|
"pullRequestNumber",
|
|
561
|
-
"assignmentRoot",
|
|
562
|
-
"initiativeRoot",
|
|
563
561
|
"sourceIdentityRoot",
|
|
564
562
|
"deliveryClass",
|
|
565
563
|
"candidateId",
|
|
@@ -576,10 +574,26 @@
|
|
|
576
574
|
"qualification",
|
|
577
575
|
"terminal"
|
|
578
576
|
],
|
|
577
|
+
"oneOf": [
|
|
578
|
+
{
|
|
579
|
+
"required": ["sourceRoot"],
|
|
580
|
+
"not": {
|
|
581
|
+
"anyOf": [
|
|
582
|
+
{ "required": ["assignmentRoot"] },
|
|
583
|
+
{ "required": ["initiativeRoot"] }
|
|
584
|
+
]
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"required": ["assignmentRoot", "initiativeRoot"],
|
|
589
|
+
"not": { "required": ["sourceRoot"] }
|
|
590
|
+
}
|
|
591
|
+
],
|
|
579
592
|
"properties": {
|
|
580
593
|
"repository": { "type": "string" },
|
|
581
594
|
"protectedBase": { "type": "string" },
|
|
582
595
|
"pullRequestNumber": { "type": "integer", "minimum": 1 },
|
|
596
|
+
"sourceRoot": { "$ref": "#/$defs/root" },
|
|
583
597
|
"assignmentRoot": { "$ref": "#/$defs/root" },
|
|
584
598
|
"initiativeRoot": { "$ref": "#/$defs/root" },
|
|
585
599
|
"sourceIdentityRoot": { "$ref": "#/$defs/root" },
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"product": {
|
|
5
5
|
"name": "Buildchain",
|
|
6
6
|
"package": "@kungfu-tech/buildchain",
|
|
7
|
-
"version": "4.0.2-alpha.
|
|
7
|
+
"version": "4.0.2-alpha.30",
|
|
8
8
|
"repository": "https://github.com/kungfu-systems/buildchain"
|
|
9
9
|
},
|
|
10
10
|
"majorLine": "v4",
|
|
@@ -2167,7 +2167,7 @@
|
|
|
2167
2167
|
"README badge block checks and writes are generated from machine-readable repository facts"
|
|
2168
2168
|
],
|
|
2169
2169
|
"breakingDigest": "sha256:90a73892b2d6c214048448d5f45df75639bdf7b7e8fefd9c596e04b087407bcc",
|
|
2170
|
-
"auditDigest": "sha256:
|
|
2170
|
+
"auditDigest": "sha256:b5ea02b539df886dd19d9a515d6d2a0099a25c1a41cc9e087f7dafb549e69ad1"
|
|
2171
2171
|
},
|
|
2172
2172
|
{
|
|
2173
2173
|
"contractVersion": 1,
|
|
@@ -2257,7 +2257,7 @@
|
|
|
2257
2257
|
"manual entries carry source file digests so downstream sites and agents can detect stale hand-written documentation"
|
|
2258
2258
|
],
|
|
2259
2259
|
"breakingDigest": "sha256:7d0d2819e3a3e72989d9c57b5efe9d0bc0a79bc0f2c82a0c7b9d6c5a211a91f2",
|
|
2260
|
-
"auditDigest": "sha256:
|
|
2260
|
+
"auditDigest": "sha256:078a652a180550b349e37dfa2ae5389c384f7118541ffefaf43a3df9a28b5074"
|
|
2261
2261
|
},
|
|
2262
2262
|
{
|
|
2263
2263
|
"contractVersion": 1,
|
|
@@ -2279,7 +2279,7 @@
|
|
|
2279
2279
|
"agents can discover supported Node APIs without importing internal file paths"
|
|
2280
2280
|
],
|
|
2281
2281
|
"breakingDigest": "sha256:48f925608d3e2131d90936b07dc2a30341204cae3e6e785c0f77d61ad755c945",
|
|
2282
|
-
"auditDigest": "sha256:
|
|
2282
|
+
"auditDigest": "sha256:b64ca3023b9088ad5e7d77cd3e9c6a3e1a1c1861c1ee8d006354c77a1afb3ef5"
|
|
2283
2283
|
},
|
|
2284
2284
|
{
|
|
2285
2285
|
"contractVersion": 1,
|
|
@@ -5444,5 +5444,5 @@
|
|
|
5444
5444
|
"compatibilityFactCutRoot": "sha256:f61b975d4a96c921cc4bd37fb3ed9a0596b47004fe34dc7219979d697e3707f9",
|
|
5445
5445
|
"compatibilityProofRegistryRoot": "sha256:b7194b811e4d3af2df4390bc4d1731e16a86215bd64ee18cb630dd5492f4fb63",
|
|
5446
5446
|
"compatibilityDigest": "sha256:20411029d83211dff426fb6535a608902129844a5ccb4788db77d3f81becb839",
|
|
5447
|
-
"contractDigest": "sha256:
|
|
5447
|
+
"contractDigest": "sha256:5a76cf045e2f9e7b14967526ce646d20e5e6d75ffca92e190313c0267bda852a"
|
|
5448
5448
|
}
|