@kungfu-tech/buildchain 4.0.2-alpha.41 → 4.0.2-alpha.43

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.
@@ -367,6 +367,7 @@ Owner: Buildchain Paper maintainers
367
367
  - `packages/core/paper-fleet.js`
368
368
  - `packages/core/paper-npm-bootstrap.js`
369
369
  - `packages/core/paper-repository.js`
370
+ - `packages/core/paper-runtime-channels.js`
370
371
  - `packages/core/paper-scaffold-content.js`
371
372
  - `packages/core/paper-work.js`
372
373
  - `packages/core/paper.js`
@@ -383,6 +384,7 @@ Owner: Buildchain Paper maintainers
383
384
 
384
385
  - `tests/cli.test.mjs`
385
386
  - `tests/paper.test.mjs`
387
+ - `tests/paper-v4-migration.test.mjs`
386
388
  - `tests/public-surface-audit.test.mjs`
387
389
 
388
390
  ### Generated outputs
@@ -392,7 +394,7 @@ Owner: Buildchain Paper maintainers
392
394
 
393
395
  ### Minimal validation
394
396
 
395
- - `node --test tests/cli.test.mjs tests/paper.test.mjs tests/public-surface-audit.test.mjs`
397
+ - `node --test tests/cli.test.mjs tests/paper.test.mjs tests/paper-v4-migration.test.mjs tests/public-surface-audit.test.mjs`
396
398
 
397
399
  ## promotion-channel-orchestration
398
400
 
@@ -16,6 +16,7 @@
16
16
  "packages/core/paper-agent-entry.js",
17
17
  "packages/core/paper-npm-bootstrap.js",
18
18
  "packages/core/paper-repository.js",
19
+ "packages/core/paper-runtime-channels.js",
19
20
  "packages/core/paper-scaffold-content.js",
20
21
  "packages/core/paper-work.js",
21
22
  "packages/core/paper.js",
@@ -476,6 +477,7 @@
476
477
  "packages/core/paper-fleet.js",
477
478
  "packages/core/paper-npm-bootstrap.js",
478
479
  "packages/core/paper-repository.js",
480
+ "packages/core/paper-runtime-channels.js",
479
481
  "packages/core/paper-scaffold-content.js",
480
482
  "packages/core/paper-work.js",
481
483
  "packages/core/paper.js",
@@ -486,6 +488,7 @@
486
488
  "tests": [
487
489
  "tests/cli.test.mjs",
488
490
  "tests/paper.test.mjs",
491
+ "tests/paper-v4-migration.test.mjs",
489
492
  "tests/public-surface-audit.test.mjs"
490
493
  ],
491
494
  "contracts": [
@@ -497,7 +500,7 @@
497
500
  "dist/site/node-api-registry.json"
498
501
  ],
499
502
  "validationCommands": [
500
- "node --test tests/cli.test.mjs tests/paper.test.mjs tests/public-surface-audit.test.mjs"
503
+ "node --test tests/cli.test.mjs tests/paper.test.mjs tests/paper-v4-migration.test.mjs tests/public-surface-audit.test.mjs"
501
504
  ]
502
505
  },
503
506
  {
@@ -7,8 +7,8 @@
7
7
  },
8
8
  "totalExcessLedger": {
9
9
  "metric": "calibrated-full-dimensional-excess-v1",
10
- "measuredExcess": 64773,
11
- "current": 56712
10
+ "measuredExcess": 64729,
11
+ "current": 56668
12
12
  },
13
13
  "defaults": {
14
14
  "owner": "Buildchain architecture maintainers",
@@ -826,35 +826,35 @@
826
826
  "baseline": {
827
827
  "lines": 2878,
828
828
  "functions": {
829
- "collectPaperStatus@1117": {
829
+ "collectPaperStatus@1124": {
830
830
  "lines": 190,
831
831
  "complexity": 47
832
832
  },
833
- "validatePaperProvisioningAuthority@1308": {
833
+ "validatePaperProvisioningAuthority@1315": {
834
834
  "complexity": 45
835
835
  }
836
836
  }
837
837
  },
838
838
  "current": {
839
- "lines": 2512,
839
+ "lines": 2478,
840
840
  "functions": {
841
- "collectPaperStatus@1117": {
841
+ "collectPaperStatus@1124": {
842
842
  "lines": 190,
843
843
  "complexity": 47
844
844
  },
845
- "validatePaperProvisioningAuthority@1308": {
846
- "complexity": 45
845
+ "validatePaperProvisioningAuthority@1315": {
846
+ "complexity": 36
847
847
  }
848
848
  }
849
849
  },
850
850
  "target": {
851
851
  "lines": 600,
852
852
  "functions": {
853
- "collectPaperStatus@1117": {
853
+ "collectPaperStatus@1124": {
854
854
  "lines": 180,
855
855
  "complexity": 25
856
856
  },
857
- "validatePaperProvisioningAuthority@1308": {
857
+ "validatePaperProvisioningAuthority@1315": {
858
858
  "complexity": 25
859
859
  }
860
860
  }
@@ -2522,7 +2522,7 @@
2522
2522
  "lines": 1202
2523
2523
  },
2524
2524
  "current": {
2525
- "lines": 1202
2525
+ "lines": 1201
2526
2526
  },
2527
2527
  "target": {
2528
2528
  "lines": 600
@@ -3207,7 +3207,7 @@
3207
3207
  "path": "packages/core/paper.js",
3208
3208
  "metric": "lines",
3209
3209
  "baseline": 2878,
3210
- "current": 2512
3210
+ "current": 2478
3211
3211
  }
3212
3212
  ]
3213
3213
  }
@@ -26,12 +26,12 @@
26
26
  },
27
27
  "repositoryBudgets": {
28
28
  "baselineRevision": "9569f69c2cb609372b8a3d65ce5dec8fb7b34a84",
29
- "maxHandMaintainedSourceFiles": 484,
30
- "maxHandMaintainedSourceLines": 172900,
29
+ "maxHandMaintainedSourceFiles": 485,
30
+ "maxHandMaintainedSourceLines": 173226,
31
31
  "maxWorkflowFiles": 80,
32
32
  "maxWorkflowLines": 26791,
33
- "latestTransition": "Retire version-prefixed workflow aliases while preserving verified next-development delivery.",
34
- "latestTransitionRationale": "Add two bounded provider orchestration modules and 383 measured source lines over protected dev c90a0f55cb10561a9a99090a0f412a7064418328. Exact protected-base regeneration, complete immutable publication readback, separate reviewer credentials and fresh provider observations qualify one generated version PR. Move publication persistence before development waiting. Existing file/function limits, exception inventories and calibrated debt ceilings remain unchanged; the new workflow fits the retained aggregate workflow allowance. The executable closure now follows parsed JavaScript imports and includes the independent review entrypoint; embedded generator program text is not mistaken for an import of the host script. Retirement replaces the temporary 11-line alias binding with 52 measured lines of taxonomy, generation and runtime resolution, a net 41-line increase over protected dev ae8315036536bdcc635fc991d0f5dc53940de60e. Preserve all 484 source files and existing workflow, complexity, debt and exception ceilings.",
33
+ "latestTransition": "Resolve installed Paper runtime identity through exact official version tags when npm omits gitHead.",
34
+ "latestTransitionRationale": "Add bounded npm and exact-tag resolution in the existing Paper runtime module. Reject missing, malformed, duplicate and unexpected refs; prefer peeled annotated commits. Extract npm lookup from the existing Paper facade, reducing its measured debt. Update only the exact repository source inventory; preserve function, debt, exception and workflow ceilings. Cover installed-package behavior with isolated process tests and official npm package verification.",
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
  },
@@ -4,7 +4,7 @@
4
4
  "product": {
5
5
  "name": "Buildchain",
6
6
  "package": "@kungfu-tech/buildchain",
7
- "version": "4.0.2-alpha.41",
7
+ "version": "4.0.2-alpha.43",
8
8
  "repository": "https://github.com/kungfu-systems/buildchain"
9
9
  },
10
10
  "majorLine": "v4",
@@ -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:915df0c6860a643c84a66ee76730fc466f919e8077414170475db0a6a50f808d"
2260
+ "auditDigest": "sha256:1c06bce13368795c919f43ca1c9bffefb403a7686982d7fc9ab5e324bfb89e8d"
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:57db6fe590ccadfd56ced465fdc954beae276b138d19062ad306040e815ac691"
2282
+ "auditDigest": "sha256:d36113cbe3b69b805ac7289e2b79cde151e13845f9f8a91a2ff1a113065756e4"
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:39e53fdd55e9917c4ae31644eef10d9782c135e04e285ca54446092e0c410a34"
5447
+ "contractDigest": "sha256:f069247af1f1e2980446da04b3274d28a341a0f3b9ed844d8e5619f908d26910"
5448
5448
  }