@kungfu-tech/buildchain 4.0.2-alpha.41 → 4.0.2-alpha.42
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 +3 -1
- package/architecture/internal-capabilities.json +4 -1
- package/architecture/maintainability-debt.json +12 -12
- package/architecture/maintainability-policy.json +4 -4
- package/dist/site/buildchain-contract.json +4 -4
- package/dist/site/buildchain-site.json +10 -10
- package/dist/site/kfd-claims.json +2 -2
- package/dist/site/kfd-upstream-aggregate.json +1 -1
- package/dist/site/manual-registry.json +2 -2
- package/dist/site/node-api-registry.json +34 -34
- package/dist/site/page-registry.json +4 -4
- package/dist/site/public-surface-audit.json +2 -2
- package/dist/site/publication-registry.json +4 -4
- package/dist/site/site-manifest.json +6 -6
- package/dist/site/workflow-registry.json +5 -5
- package/docs/cli.md +8 -2
- package/docs/node-api-reference.md +61 -61
- package/package.json +1 -1
- package/packages/core/paper-agent-entry.js +4 -2
- package/packages/core/paper-fleet.js +1 -1
- package/packages/core/paper-runtime-channels.js +283 -0
- package/packages/core/paper-scaffold-content.js +10 -0
- package/packages/core/paper.js +32 -50
- package/scripts/paper-work-fleet-cli.mjs +2 -0
|
@@ -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":
|
|
11
|
-
"current":
|
|
10
|
+
"measuredExcess": 64745,
|
|
11
|
+
"current": 56684
|
|
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@
|
|
829
|
+
"collectPaperStatus@1140": {
|
|
830
830
|
"lines": 190,
|
|
831
831
|
"complexity": 47
|
|
832
832
|
},
|
|
833
|
-
"validatePaperProvisioningAuthority@
|
|
833
|
+
"validatePaperProvisioningAuthority@1331": {
|
|
834
834
|
"complexity": 45
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
},
|
|
838
838
|
"current": {
|
|
839
|
-
"lines":
|
|
839
|
+
"lines": 2494,
|
|
840
840
|
"functions": {
|
|
841
|
-
"collectPaperStatus@
|
|
841
|
+
"collectPaperStatus@1140": {
|
|
842
842
|
"lines": 190,
|
|
843
843
|
"complexity": 47
|
|
844
844
|
},
|
|
845
|
-
"validatePaperProvisioningAuthority@
|
|
846
|
-
"complexity":
|
|
845
|
+
"validatePaperProvisioningAuthority@1331": {
|
|
846
|
+
"complexity": 36
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
},
|
|
850
850
|
"target": {
|
|
851
851
|
"lines": 600,
|
|
852
852
|
"functions": {
|
|
853
|
-
"collectPaperStatus@
|
|
853
|
+
"collectPaperStatus@1140": {
|
|
854
854
|
"lines": 180,
|
|
855
855
|
"complexity": 25
|
|
856
856
|
},
|
|
857
|
-
"validatePaperProvisioningAuthority@
|
|
857
|
+
"validatePaperProvisioningAuthority@1331": {
|
|
858
858
|
"complexity": 25
|
|
859
859
|
}
|
|
860
860
|
}
|
|
@@ -2522,7 +2522,7 @@
|
|
|
2522
2522
|
"lines": 1202
|
|
2523
2523
|
},
|
|
2524
2524
|
"current": {
|
|
2525
|
-
"lines":
|
|
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":
|
|
3210
|
+
"current": 2494
|
|
3211
3211
|
}
|
|
3212
3212
|
]
|
|
3213
3213
|
}
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
},
|
|
27
27
|
"repositoryBudgets": {
|
|
28
28
|
"baselineRevision": "9569f69c2cb609372b8a3d65ce5dec8fb7b34a84",
|
|
29
|
-
"maxHandMaintainedSourceFiles":
|
|
30
|
-
"maxHandMaintainedSourceLines":
|
|
29
|
+
"maxHandMaintainedSourceFiles": 485,
|
|
30
|
+
"maxHandMaintainedSourceLines": 173177,
|
|
31
31
|
"maxWorkflowFiles": 80,
|
|
32
32
|
"maxWorkflowLines": 26791,
|
|
33
|
-
"latestTransition": "
|
|
34
|
-
"latestTransitionRationale": "Add
|
|
33
|
+
"latestTransition": "Bind Paper v4 floating callers to distinct alpha and stable runtime authorities.",
|
|
34
|
+
"latestTransitionRationale": "Add one bounded internal Paper channel module for v4 migration and exact dual-lock validation. Extract workflow and lock validation from the existing Paper facade, reducing its size and provisioning function complexity; preserve every existing function, debt, exception, and workflow ceiling. The exact source inventory includes the CLI options, dependency-ignore repair, and new channel module, and is covered by legacy and v4 migration tests.",
|
|
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.
|
|
7
|
+
"version": "4.0.2-alpha.42",
|
|
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:
|
|
2260
|
+
"auditDigest": "sha256:09e60475f27f224df913f5cb67820f85bf025fd7a2806f3f1e96425ef023e513"
|
|
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:589cbc0bee10a5e079f27865e8eaad4eff5bd34480ddab8f23cd89e802505d3c"
|
|
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:a76b21a59e4dcb9ce2c4b5fcaa5d8002ac531eb48ee7b85a99436e642e173d0d"
|
|
5448
5448
|
}
|