@kungfu-tech/buildchain 3.0.9-alpha.8 → 4.0.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.
Files changed (255) hide show
  1. package/AGENTS.md +39 -0
  2. package/README.md +17 -13
  3. package/actions/promote-buildchain-ref/README.md +0 -10
  4. package/actions/release-tail/README.md +6 -10
  5. package/architecture/internal-capabilities.json +502 -0
  6. package/architecture/maintainability-baseline.json +59 -0
  7. package/architecture/maintainability-policy.json +1384 -0
  8. package/architecture/release-tail-contract-inventory.json +587 -0
  9. package/architecture/v3-core-mechanism-inventory.json +1043 -0
  10. package/architecture/v3-core-mechanism-inventory.md +67 -0
  11. package/architecture/v4-adopter-delivery-parity.json +47 -0
  12. package/architecture/v4-architecture-constitution.md +210 -0
  13. package/architecture/v4-bootstrap-authority.json +56 -0
  14. package/architecture/v4-canonical-contract-fixtures.json +105 -0
  15. package/architecture/v4-capability-state-machine-manifest.json +480 -0
  16. package/architecture/v4-capability-state-machine-manifest.schema.json +202 -0
  17. package/architecture/v4-delivery-warrant-shadow-bootstrap-plan.json +830 -0
  18. package/architecture/v4-delivery-warrant-shadow-bootstrap-plan.md +223 -0
  19. package/architecture/v4-delivery-warrant-shadow-bootstrap-plan.schema.json +318 -0
  20. package/architecture/v4-delivery-warrant-shadow-fixtures.json +227 -0
  21. package/architecture/v4-delivery-warrant-shadow-fixtures.schema.json +67 -0
  22. package/architecture/v4-exception-ledger.json +5 -0
  23. package/architecture/v4-exception-ledger.schema.json +56 -0
  24. package/architecture/v4-partial-mutation-recovery-qualification.json +65 -0
  25. package/architecture/v4-platform-stage-checkpoints.json +97 -0
  26. package/architecture/v4-provider-operation-journal-contract.json +113 -0
  27. package/architecture/v4-release-activation-shadow-domain.json +61 -0
  28. package/architecture/v4-release-train-parity.json +68 -0
  29. package/architecture/v4-rust-libnode-bridge-evaluation.json +107 -0
  30. package/architecture/v4-rust-libnode-bridge-spike.md +85 -0
  31. package/architecture/v4-stable-publication-fence.json +66 -0
  32. package/architecture/v4-stage-capsule-contract.json +90 -0
  33. package/architecture/v4-stage-capsule-qualification.json +99 -0
  34. package/architecture/v4-stage-capsule-resume-planner.json +52 -0
  35. package/architecture/v4-stage-capsule-store-contract.json +72 -0
  36. package/bin/buildchain.mjs +15 -6
  37. package/contracts/auditable-demo-scenario-v1.schema.json +1 -1
  38. package/contracts/buildchain-v2-residuals-v1.json +2 -2
  39. package/contracts/fixtures/v4-delivery-warrant-trace-v1/golden.json +158 -0
  40. package/contracts/fixtures/v4-delivery-warrant-trace-v1/property.json +380 -0
  41. package/contracts/fixtures/v4-delivery-warrant-trace-v1/replay.json +163 -0
  42. package/contracts/fixtures/v4-partial-mutation-recovery-v1/shared.json +155 -0
  43. package/contracts/fixtures/v4-provider-operation-journal-v1/shared.json +457 -0
  44. package/contracts/fixtures/v4-provider-readback-idempotency-v1/shared.json +682 -0
  45. package/contracts/fixtures/v4-release-activation-shadow-v1/shared.json +53 -0
  46. package/contracts/fixtures/v4-stable-publication-fence-v1/shared.json +56 -0
  47. package/contracts/fixtures/v4-stage-capsule-resume-v1/late-platform-failure.json +176 -0
  48. package/contracts/fixtures/v4-stage-capsule-store-v1/shared.json +132 -0
  49. package/contracts/fixtures/v4-stage-capsule-v1/shared.json +111 -0
  50. package/contracts/v4-canonical-contracts-v1.schema.json +182 -0
  51. package/contracts/v4-delivery-warrant-semantic-diff-report-v1.schema.json +284 -0
  52. package/contracts/v4-delivery-warrant-trace-v1.schema.json +215 -0
  53. package/contracts/v4-host-contract-v1.schema.json +135 -0
  54. package/contracts/v4-partial-mutation-recovery-v1.schema.json +168 -0
  55. package/contracts/v4-provider-operation-journal-v1.schema.json +381 -0
  56. package/contracts/v4-release-activation-shadow-v1.schema.json +186 -0
  57. package/contracts/v4-stable-publication-fence-v1.schema.json +125 -0
  58. package/contracts/v4-stage-capsule-resume-v1.schema.json +225 -0
  59. package/contracts/v4-stage-capsule-store-v1.schema.json +154 -0
  60. package/contracts/v4-stage-capsule-v1.schema.json +178 -0
  61. package/crates/buildchain-v4-bridge/Cargo.lock +213 -0
  62. package/crates/buildchain-v4-bridge/Cargo.toml +12 -0
  63. package/crates/buildchain-v4-bridge/src/main.rs +495 -0
  64. package/dist/site/agent-index.json +0 -3
  65. package/dist/site/artifact-schemas.json +0 -6
  66. package/dist/site/buildchain-contract.json +103 -397
  67. package/dist/site/buildchain-site.json +302 -270
  68. package/dist/site/capability-registry.json +9 -11
  69. package/dist/site/cli-registry.json +8 -30
  70. package/dist/site/controller-registry.json +48 -8
  71. package/dist/site/kfd-claims.json +129 -142
  72. package/dist/site/kfd-upstream-aggregate.json +9 -9
  73. package/dist/site/manual-registry.json +18 -49
  74. package/dist/site/node-api-registry.json +1882 -4118
  75. package/dist/site/page-registry.json +278 -230
  76. package/dist/site/public-surface-audit.json +87 -185
  77. package/dist/site/publication-authority-registry.json +11 -1
  78. package/dist/site/publication-registry.json +4 -4
  79. package/dist/site/release-provenance.json +3 -7
  80. package/dist/site/schemas/kfd-support-projection-v1.schema.json +106 -0
  81. package/dist/site/site-manifest.json +22 -38
  82. package/dist/site/workflow-registry.json +80 -35
  83. package/docs/MAP.md +8 -4
  84. package/docs/auditable-demo.md +2 -2
  85. package/docs/aws-us-elastic-runner-burst-plane.md +7 -59
  86. package/docs/cli-reference.md +15 -92
  87. package/docs/cli.md +14 -14
  88. package/docs/dev-alpha-candidate-patrol.md +3 -11
  89. package/docs/dev-delivery-warrant.md +28 -100
  90. package/docs/engineering-housekeeper.md +12 -4
  91. package/docs/getting-started.md +1 -1
  92. package/docs/install.md +5 -5
  93. package/docs/kfd-support.md +2 -7
  94. package/docs/lifecycle-protocol.md +2 -4
  95. package/docs/node-api-reference.md +414 -523
  96. package/docs/release-flow.md +31 -31
  97. package/docs/release-governance.md +16 -28
  98. package/docs/release-passport.md +2 -15
  99. package/docs/release-tail-contract.md +13 -6
  100. package/docs/release-tail-provider-plane.md +13 -19
  101. package/docs/release-train.md +4 -4
  102. package/docs/reusable-build-surface.md +14 -27
  103. package/docs/site-bundle-contract.md +1 -5
  104. package/docs/stable-candidate-patrol.md +7 -7
  105. package/docs/v4-canonical-contracts.md +92 -0
  106. package/docs/v4-delivery-warrant-read-candidate.md +73 -0
  107. package/docs/v4-delivery-warrant-semantic-diff.md +75 -0
  108. package/docs/v4-production-release.md +63 -0
  109. package/docs/v4-stage-capsule.md +193 -0
  110. package/docs/versioning.md +3 -3
  111. package/package.json +19 -17
  112. package/packages/core/adopter-delivery-gate.js +576 -0
  113. package/packages/core/adopter-delivery-json.js +66 -0
  114. package/packages/core/artifact-signing.js +0 -61
  115. package/packages/core/artifact-verification-envelope.js +5 -5
  116. package/packages/core/build-facts.js +12 -4
  117. package/packages/core/buildchain-agent-manuals.js +0 -2
  118. package/packages/core/buildchain-config.js +4 -69
  119. package/packages/core/buildchain-contract.js +232 -46
  120. package/packages/core/buildchain-kfd-claims.js +1 -1
  121. package/packages/core/channel-candidate.js +0 -8
  122. package/packages/core/channel-promotion-baseline.js +0 -52
  123. package/packages/core/controller-evidence.js +3 -4
  124. package/packages/core/dev-alpha-candidate-selection.js +2 -10
  125. package/packages/core/dev-delivery-warrant-cancellation.js +0 -1
  126. package/packages/core/dev-delivery-warrant-settlement.js +1 -5
  127. package/packages/core/dev-delivery-warrant.js +12 -52
  128. package/packages/core/diagnostics.js +3 -8
  129. package/packages/core/github-governance-authority.js +3 -1
  130. package/packages/core/kfd-adopter-category-driver.js +167 -0
  131. package/packages/core/kfd-adopter-manifest.js +47 -46
  132. package/packages/core/kfd-gate.js +15 -45
  133. package/packages/core/paper-agent-entry.js +7 -16
  134. package/packages/core/paper-fleet.js +2 -2
  135. package/packages/core/paper-repository.js +2 -3
  136. package/packages/core/paper-scaffold-content.js +2 -23
  137. package/packages/core/paper.js +11 -43
  138. package/packages/core/publication-reproducibility.js +4 -4
  139. package/packages/core/release-line-bootstrap.js +21 -8
  140. package/packages/core/release-passport-contract.js +5 -5
  141. package/packages/core/release-passport.js +20 -131
  142. package/packages/core/self-dogfood-version.js +48 -35
  143. package/packages/core/spawn-command.js +232 -8
  144. package/packages/core/v4-adopter-delivery-parity.js +219 -0
  145. package/packages/core/v4-canonical-contracts.js +284 -0
  146. package/packages/core/v4-delivery-warrant-fixture-runner.js +371 -0
  147. package/packages/core/v4-delivery-warrant-read-candidate.js +279 -0
  148. package/packages/core/v4-delivery-warrant-semantic-diff-gate.js +352 -0
  149. package/packages/core/v4-delivery-warrant-shadow-adapter.js +447 -0
  150. package/packages/core/v4-partial-mutation-recovery-qualification.js +395 -0
  151. package/packages/core/v4-platform-stage-checkpoints.js +471 -0
  152. package/packages/core/v4-provider-operation-journal.js +531 -0
  153. package/packages/core/v4-provider-readback-idempotency.js +394 -0
  154. package/packages/core/v4-release-activation-shadow.js +519 -0
  155. package/packages/core/v4-stable-publication-fence.js +357 -0
  156. package/packages/core/v4-stage-capsule-local-store.js +426 -0
  157. package/packages/core/v4-stage-capsule-qualification-campaign.js +512 -0
  158. package/packages/core/v4-stage-capsule-qualification.js +456 -0
  159. package/packages/core/v4-stage-capsule-resume-planner.js +397 -0
  160. package/packages/core/v4-stage-capsule-store.js +401 -0
  161. package/packages/core/v4-stage-capsule.js +319 -0
  162. package/scripts/assemble-self-publication-admission.mjs +1 -1
  163. package/scripts/audit-publication-control-plane.mjs +5 -5
  164. package/scripts/auditable-demo-bundle-verification.mjs +3 -2
  165. package/scripts/auditable-demo-platform.mjs +2 -2
  166. package/scripts/auditable-demo-renditions.mjs +1 -1
  167. package/scripts/auditable-demo.mjs +2 -2
  168. package/scripts/aws-macos-jit-controller-core.mjs +13 -346
  169. package/scripts/aws-macos-jit-controller-runtime.mjs +2 -210
  170. package/scripts/aws-macos-jit-controller.mjs +37 -275
  171. package/scripts/aws-macos-jit-core.mjs +3 -41
  172. package/scripts/aws-macos-jit.mjs +0 -12
  173. package/scripts/aws-windows-jit-campaign.mjs +2 -2
  174. package/scripts/aws-windows-jit-controller-core.mjs +1 -1
  175. package/scripts/aws-windows-jit-controller.mjs +3 -3
  176. package/scripts/build-contract-core.mjs +3 -8
  177. package/scripts/build-standalone-binary.mjs +3 -14
  178. package/scripts/buildchain-channel-router.mjs +4 -0
  179. package/scripts/buildchain-cli-help.mjs +7 -13
  180. package/scripts/buildchain-contract-lock.mjs +0 -6
  181. package/scripts/check-action-bundles.mjs +3 -4
  182. package/scripts/check-internal-architecture.mjs +7 -6
  183. package/scripts/check-inventory.mjs +30 -25
  184. package/scripts/check-v4-public-dogfood-contract.mjs +270 -0
  185. package/scripts/create-release-bundle.mjs +8 -4
  186. package/scripts/dev-alpha-candidate-patrol.mjs +1 -22
  187. package/scripts/dev-delivery-proof.mjs +2 -54
  188. package/scripts/dev-delivery-warrant.mjs +59 -77
  189. package/scripts/dev-pr-auto-merge.mjs +4 -30
  190. package/scripts/dev-pr-delivery-warrant.mjs +0 -55
  191. package/scripts/dispatch-artifact-signing-authority.mjs +7 -4
  192. package/scripts/generate-buildchain-kfd-witnesses.mjs +94 -88
  193. package/scripts/generate-channel-build-workflow.mjs +54 -24
  194. package/scripts/generate-channel-promotion-workflow.mjs +15 -6
  195. package/scripts/generate-site-bundle.mjs +5 -21
  196. package/scripts/git-fetch-process-tree.mjs +34 -1
  197. package/scripts/init-repo.mjs +64 -159
  198. package/scripts/inspect-artifact-signing-requests.mjs +0 -6
  199. package/scripts/locked-source-checkout.mjs +3 -4
  200. package/scripts/maintainability-metrics.mjs +8 -2
  201. package/scripts/npm-publish-dry-run.mjs +2 -2
  202. package/scripts/npm-publish-transaction.mjs +2 -2
  203. package/scripts/publication-commit-evidence.mjs +23 -69
  204. package/scripts/release-candidate-resolver.mjs +11 -17
  205. package/scripts/release-tail.mjs +3 -49
  206. package/scripts/resume-from-candidate-run.mjs +9 -123
  207. package/scripts/run-lifecycle-core.mjs +12 -13
  208. package/scripts/seal-artifact-signing-requests.mjs +17 -21
  209. package/scripts/site-capability-metadata.mjs +2 -7
  210. package/scripts/stable-candidate-qualification.mjs +10 -10
  211. package/scripts/v4-architecture.mjs +12 -2
  212. package/scripts/v4-bridge-bootstrap.mjs +141 -0
  213. package/scripts/v4-bridge-evidence.mjs +141 -0
  214. package/scripts/v4-host-adapter.mjs +182 -0
  215. package/scripts/v4-platform-stage-checkpoint-rehearsal.mjs +207 -0
  216. package/scripts/v4-stage-capsule-qualification.mjs +528 -0
  217. package/scripts/v4-stage-capsule-resume-rehearsal.mjs +57 -0
  218. package/scripts/v4-warrant-shadow-plan.mjs +601 -0
  219. package/scripts/verify-golden-path.mjs +5 -5
  220. package/scripts/web-surface-cloudfront-rewrite.mjs +15 -15
  221. package/scripts/web-surface-core.mjs +2 -8
  222. package/scripts/workflow-call-contract.mjs +5 -184
  223. package/contracts/fixtures/kfd-adopter-release-v1/kfd-4-perspective.json +0 -16
  224. package/contracts/fixtures/kfd-adopter-release-v1/kfd-4-replay.json +0 -57
  225. package/contracts/fixtures/next-development-transition-v1/anchored-manual-waiting.json +0 -47
  226. package/contracts/fixtures/next-development-transition-v1/semver-auto-planned.json +0 -47
  227. package/contracts/fixtures/next-development-transition-v1/version-model-cases.json +0 -40
  228. package/contracts/next-development-request-v1.schema.json +0 -66
  229. package/contracts/next-development-transition-v1.schema.json +0 -292
  230. package/contracts/publication-rehearsal-capsule-v1.schema.json +0 -173
  231. package/dist/site/schemas/publication-rehearsal-capsule-v1.schema.json +0 -269
  232. package/dist/site/schemas/release-tail-capabilities-v1.schema.json +0 -353
  233. package/dist/site/schemas/release-tail-provider-bindings-v1.schema.json +0 -94
  234. package/docs/next-development-transition.md +0 -119
  235. package/docs/publication-rehearsal.md +0 -94
  236. package/packages/core/buildchain-compatibility-proof.js +0 -631
  237. package/packages/core/dev-delivery-native-proof.js +0 -333
  238. package/packages/core/dev-delivery-warrant-shadow.js +0 -502
  239. package/packages/core/next-development-candidate-reservation.js +0 -186
  240. package/packages/core/next-development-controller.js +0 -726
  241. package/packages/core/next-development-projection.js +0 -288
  242. package/packages/core/next-development-transition.js +0 -738
  243. package/packages/core/publication-rehearsal-projection.js +0 -173
  244. package/packages/core/publication-rehearsal-runtime.js +0 -921
  245. package/scripts/aws-macos-jit-instance-rehydrate.mjs +0 -260
  246. package/scripts/aws-macos-jit-source-rebind.mjs +0 -724
  247. package/scripts/dev-delivery-native-run.mjs +0 -187
  248. package/scripts/dev-delivery-two-phase.mjs +0 -598
  249. package/scripts/generate-next-development-guidance.mjs +0 -49
  250. package/scripts/materialize-self-release-candidate-version.mjs +0 -137
  251. package/scripts/next-development-self-dogfood-harness.mjs +0 -409
  252. package/scripts/next-development-self-dogfood.mjs +0 -532
  253. package/scripts/next-development-transition.mjs +0 -47
  254. package/scripts/release-candidate-tail-reseal.mjs +0 -426
  255. package/templates/native-dev-delivery.yml +0 -82
@@ -0,0 +1,73 @@
1
+ ---
2
+ status: draft
3
+ period: ongoing
4
+ theme: buildchain-v4-delivery-warrant
5
+ doc_type: contract-guide
6
+ source_level: local-files
7
+ confidence: high
8
+ sensitivity: public
9
+ evidence_grade: A
10
+ review_state: unreviewed
11
+ last_reviewed: 2026-08-08
12
+ ai_provenance:
13
+ model_family: GPT-5
14
+ product: Codex
15
+ generated_at: 2026-08-08
16
+ invisible_context: not asserted
17
+ ---
18
+
19
+ # Delivery Warrant v4 read candidate
20
+
21
+ The v4 read candidate is an explicit, reversible observation path. TypeScript
22
+ v3 remains the sole production writer, queue store owner, rollback authority,
23
+ and provider adapter. Rust receives canonical state bytes, validates the pure v4
24
+ state contract, and returns a read-only projection with effects disabled.
25
+
26
+ The normal `observe` path defaults to `--read-mode v3`. No mutation command
27
+ consults the read switch. A caller may select v4 only by supplying all of the
28
+ following:
29
+
30
+ - a retained, self-root-verifying semantic-diff report;
31
+ - the exact expected report root;
32
+ - the report's exact TypeScript revision, Rust revision, and validator version;
33
+ - a caller-owned evidence output.
34
+
35
+ The candidate fails closed on a blocked, expired, missing, or drifted
36
+ qualification; source mismatch; unsupported host capability; crash; timeout;
37
+ cancellation; malformed response; state/root disagreement; or evidence
38
+ retention failure. It never silently falls back inside a v4 request. Rollback
39
+ is the explicit caller change back to `--read-mode v3`, which avoids dual read
40
+ authority and leaves the v3 queue untouched.
41
+
42
+ ## Source-checkout invocation
43
+
44
+ The preview candidate runs against the checked-out Rust contract host:
45
+
46
+ ```sh
47
+ buildchain dev warrant observe \
48
+ --repository owner/repository --branch dev/v4/v4.0 \
49
+ --read-mode v4 \
50
+ --read-qualification semantic-diff-report.json \
51
+ --read-qualification-root sha256:<root> \
52
+ --read-typescript-revision <sha> \
53
+ --read-rust-revision <sha> \
54
+ --read-validator-version semantic-diff-gate-v1 \
55
+ --read-evidence-output .buildchain/dev-delivery/v4-read-evidence.json
56
+ ```
57
+
58
+ The returned command result keeps the existing v3 observation schema for
59
+ caller compatibility and adds `readCandidate` evidence that fixes
60
+ `writerAuthority=typescript-v3`, `rustAuthority=read-only`,
61
+ `rustEffects=disabled`, `rollbackMode=v3`, both state roots, the qualification
62
+ root, and the retained evidence receipt root.
63
+
64
+ Focused verification:
65
+
66
+ ```sh
67
+ node --test tests/v4-delivery-warrant-read-candidate.test.mjs
68
+ pnpm run check:v4-contracts
69
+ ```
70
+
71
+ This candidate does not authorize a v4 write cutover. Protected-window parity,
72
+ independent review, and the rollback drill remain required exit evidence for
73
+ the read stage.
@@ -0,0 +1,75 @@
1
+ ---
2
+ status: draft
3
+ period: ongoing
4
+ theme: buildchain-v4-delivery-warrant
5
+ doc_type: contract-guide
6
+ source_level: local-files
7
+ confidence: high
8
+ sensitivity: public
9
+ evidence_grade: A
10
+ review_state: unreviewed
11
+ last_reviewed: 2026-08-08
12
+ ai_provenance:
13
+ model_family: GPT-5
14
+ product: Codex
15
+ generated_at: 2026-08-08
16
+ invisible_context: not asserted
17
+ ---
18
+
19
+ # Delivery Warrant v4 semantic diff gate
20
+
21
+ The semantic diff gate qualifies paired TypeScript and Rust shadow projections
22
+ without moving production authority. TypeScript v3 remains the sole writer,
23
+ the Rust host remains effect-disabled, and every report fixes
24
+ `v4WriteAuthorized` to `false`.
25
+
26
+ ## Qualification contract
27
+
28
+ Every case supplies identical public-safe retained bytes to the JavaScript
29
+ fixture runner and Rust shadow host. The report binds:
30
+
31
+ - exact TypeScript and Rust source revisions;
32
+ - trace schema, report schema, runner, and validator identities;
33
+ - input, JavaScript projection, Rust projection, difference, evidence, and
34
+ retention roots, including a root over each retained full shadow observation;
35
+ - golden, bounded property, lease/fence, CAS, duplicate, cancellation,
36
+ response-loss, provider-conflict, and captured-replay coverage;
37
+ - bounded fault-probe receipts proving that changes to decisions, successor
38
+ roots, generation, fencing, effects, observations, or receipts are detected.
39
+
40
+ An unexplained difference, missing observation, incomplete coverage,
41
+ undetected fault probe, source-binding mismatch, or retention failure blocks
42
+ the gate with a zero retry budget. A compatibility exclusion is accepted only
43
+ when its exact difference root, reason code, independent review root, and
44
+ disposition root all verify.
45
+
46
+ The gate requires every full public-safe shadow observation and the final
47
+ qualification report to be retained for 90 days. Missing either retention
48
+ receipt blocks qualification. It does not accept private payloads, invoke
49
+ provider effects, modify v3 authority, or provide a v4 write cutover receipt.
50
+
51
+ ## Run the gate
52
+
53
+ Call `runV4DeliveryWarrantSemanticDiffGate` with exact source revisions,
54
+ explicit observation time, schema and runner roots, public-safe retained cases,
55
+ bounded fault probes, an observation retention sink, and a report retention
56
+ sink. The returned report is canonical JSON data suitable for a caller-owned
57
+ retained evidence file.
58
+
59
+ The checked-in focused suite exercises that API against the real Rust host:
60
+
61
+ ```sh
62
+ node --test tests/v4-delivery-warrant-fixture-runner.test.mjs
63
+ ```
64
+
65
+ A qualified report makes only the next
66
+ read-candidate stage eligible; it never authorizes v4 writes.
67
+ The reversible caller contract and its fail-closed qualification binding are
68
+ documented in
69
+ [`v4-delivery-warrant-read-candidate.md`](v4-delivery-warrant-read-candidate.md).
70
+
71
+ Focused verification:
72
+
73
+ ```sh
74
+ pnpm run check:v4-contracts
75
+ ```
@@ -0,0 +1,63 @@
1
+ ---
2
+ status: active
3
+ period: ongoing
4
+ theme: buildchain-v4-production-release
5
+ doc_type: runbook
6
+ source_level: repository-contracts + protected-provider-readback
7
+ confidence: high
8
+ sensitivity: public
9
+ evidence_grade: A
10
+ review_state: self-reviewed
11
+ last_reviewed: 2026-08-13
12
+ ai_provenance:
13
+ model_family: GPT-5
14
+ product: Codex
15
+ generated_at: 2026-08-13
16
+ invisible_context: Provider credentials and private provider state were not read.
17
+ ---
18
+
19
+ # Buildchain v4 production release
20
+
21
+ Buildchain v4 is the production release authority for the `v4.0` line. The
22
+ protected source path is:
23
+
24
+ ```text
25
+ dev/v4/v4.0 -> alpha/v4/v4.0 -> release/v4/v4.0
26
+ ```
27
+
28
+ Public consumers use `v4-alpha` for the current prerelease channel and `v4`
29
+ for stable. Reproducible consumers may pin an exact 40-character commit or an
30
+ exact immutable release tag such as `v4.0.0`.
31
+
32
+ The release transaction is fail-closed. The v4 provider-operation journal,
33
+ activation plan, stable publication fence, and partial-mutation recovery plan
34
+ bind the exact source, qualification, policy, provider readback, protected
35
+ ancestry, and target roots. Confirmed operations are never replayed; uncertain
36
+ operations require provider readback before retry; stable publication requires
37
+ an N-1 or independently sealed qualification.
38
+
39
+ ## Provider readback
40
+
41
+ A stable release is complete only when all of these coordinates agree:
42
+
43
+ - `release/v4/v4.0`, `v4`, `v4.0`, and the exact `v4.0.x` tag;
44
+ - the GitHub Release tag and attached Release Passport evidence;
45
+ - npm `@kungfu-tech/buildchain@4.0.x`, its `gitHead`, and the `latest` tag;
46
+ - the protected source and release transaction roots.
47
+
48
+ The alpha channel applies the same rule to `alpha/v4/v4.0`, `v4-alpha`, the
49
+ exact alpha tag, and npm's `alpha` tag.
50
+
51
+ ## Non-destructive rollback
52
+
53
+ Rollback never rewrites an exact tag, release, package version, Passport, or
54
+ provider journal. Stop forward promotion, pin consumers to the last verified
55
+ exact v4 SHA or exact stable tag, and use the retained `release/v3/v3.0`
56
+ coordinate only as an explicit compatibility rollback reference. Restoring v3
57
+ as production authority requires a new reviewed cutover; it is not an implicit
58
+ fallback.
59
+
60
+ Before any retry, compare the current provider state with the retained
61
+ transaction and operation roots. Resume only missing eligible operations.
62
+ Conflicting state remains `repair-required` or terminal and must not be
63
+ converted into success by moving a floating ref.
@@ -0,0 +1,193 @@
1
+ ---
2
+ status: draft
3
+ period: ongoing
4
+ theme: buildchain-v4-stage-capsule
5
+ doc_type: contract-guide
6
+ source_level: local-files
7
+ confidence: high
8
+ sensitivity: public
9
+ evidence_grade: A
10
+ review_state: unreviewed
11
+ last_reviewed: 2026-08-10
12
+ ai_provenance:
13
+ model_family: GPT-5
14
+ product: Codex
15
+ generated_at: 2026-08-10
16
+ invisible_context: not asserted
17
+ ---
18
+
19
+ # Buildchain v4 Stage Capsule
20
+
21
+ ## Platform checkpoint projection
22
+
23
+ `architecture/v4-platform-stage-checkpoints.json` is the single declaration
24
+ for the macOS arm64, Linux x64, and Windows x64 shadow checkpoint lanes. It
25
+ defines the allowed platform/stage pairs and the exact declared inputs,
26
+ outputs, environment names, toolchains, and portable restore paths.
27
+
28
+ The protected `Verify` workflow runs each platform on its real hosted runner.
29
+ After a declared successful stage, the TypeScript v3 writer emits the canonical
30
+ Capsule and immutable local-store receipt. A separate Node process restores the
31
+ declared output layout into an empty directory and verifies every blob and
32
+ manifest root. A failed stage emits no Capsule; a later failure does not remove
33
+ earlier successful stage Capsules.
34
+
35
+ This is shadow evidence only. It records per-platform/stage overhead and asserts
36
+ that production bytes did not change. It does not skip production stages, read
37
+ ambient runner state, include provider credentials, perform signing or
38
+ publication, or grant provider/cache presence qualification authority. The
39
+ generated consumer workflow and Agent guidance point back to the same
40
+ declaration; undeclared fields fail closed.
41
+
42
+ A Stage Capsule is the immutable, per-platform evidence contract for one build
43
+ stage. It does not store artifacts, plan resume, publish provider state, or move
44
+ production write authority. TypeScript v3 remains the sole writer; Rust is a
45
+ pure validation and root-projection implementation.
46
+
47
+ ## Three separate roots
48
+
49
+ The contract deliberately keeps three facts separate:
50
+
51
+ 1. `identityRoot` binds source, platform, stage, toolchain, runtime, policy,
52
+ declared inputs, transformation, output manifest, qualification, and any
53
+ explicitly declared rooted observations.
54
+ 2. `capsuleRoot` binds that immutable identity and the retention promise.
55
+ 3. `availabilityRoot` binds a caller-supplied observation of current
56
+ availability, content, qualification, and rooted transport locators.
57
+
58
+ Changing platform, stage, policy, transformation, or a declared input changes
59
+ the identity root. Changing an observation time or transport locator changes
60
+ only the availability root. A provider run ID, provider artifact ID, runner
61
+ path, credential, ambient clock, raw network observation, mutable tag, or cache
62
+ hit is not a schema field and therefore cannot silently become identity.
63
+ Provider evidence participates only as an explicitly named observation root.
64
+
65
+ ## Retention and reuse
66
+
67
+ A retention promise is not proof that bytes currently exist. Reuse is a pure
68
+ decision over an explicit evaluation clock and a current availability
69
+ observation. It is eligible only when the capsule, output-manifest, and
70
+ qualification roots all match, the observation is `available`, and the
71
+ retention promise has not expired. `missing`, `expired`, `corrupt`, and
72
+ `root-mismatch` always fail closed. Transport locators are rooted observations,
73
+ not artifact authority.
74
+
75
+ The sole schema authority is
76
+ [`v4-stage-capsule-v1.schema.json`](../contracts/v4-stage-capsule-v1.schema.json).
77
+ The shared fixture is consumed by both implementations. The next Wave 2 cards
78
+ may add checkpoints, resume planning, and reconciliation, but must not weaken
79
+ or duplicate this contract.
80
+
81
+ ## Content-addressed reference store
82
+
83
+ The storage successor adds one closed output-manifest and store contract suite
84
+ without changing Capsule identity. Raw blob bytes use lowercase SHA-256 roots;
85
+ the canonical output manifest binds byte roots, sizes, and sorted names, and its
86
+ `manifestRoot` must equal the Capsule `outputManifestRoot`. The local reference
87
+ store writes immutable `blobs`, `capsules`, `manifests`, and `records` families
88
+ under exact roots. A fresh process can restore by `capsuleRoot`, then re-verifies
89
+ the Capsule, manifest, every byte root, retention state, availability, transport
90
+ observation, and qualification root before returning bytes.
91
+
92
+ Repeated put and restore are idempotent. A different physical store directory
93
+ does not change Capsule or manifest identity. `missing`, `expired`, `partial`,
94
+ `corrupt`, `quarantined`, and `root-mismatch` are deterministic fail-closed
95
+ classifications; there is no cache fallback. Retention promise, evaluated
96
+ retention state, current availability, rooted transport locator, qualification,
97
+ and operation receipt are different roots with caller-supplied clocks.
98
+
99
+ GitHub Artifact and S3-compatible adapters expose only `effect-disabled` and
100
+ `fixture-backed` modes in this slice. They accept rooted locators, never raw
101
+ credentials or signed URLs, and cannot perform a provider upload or restore.
102
+ The executable architecture ceiling is
103
+ [`v4-stage-capsule-store-contract.json`](../architecture/v4-stage-capsule-store-contract.json),
104
+ and the shared Rust/JavaScript fixture is
105
+ [`shared.json`](../contracts/fixtures/v4-stage-capsule-store-v1/shared.json).
106
+
107
+ Focused verification:
108
+
109
+ ```sh
110
+ pnpm run check:v4-contracts
111
+ ```
112
+
113
+ ## Deterministic resume planning
114
+
115
+ `architecture/v4-stage-capsule-resume-planner.json` closes the Wave 2 resume
116
+ planner. Its request is an explicit topological stage graph with targets,
117
+ expected Capsule identity and retention, current Capsule/availability
118
+ observations, an evaluation clock, and separately declared provider or
119
+ release-tail effects. The Rust domain core and TypeScript projection consume
120
+ the same request without filesystem, network, environment, or ambient-clock
121
+ access and produce the same ordered decisions and `planRoot`.
122
+
123
+ An eligible completed dependency becomes an exact-root restore; a missing or
124
+ invalid target becomes a rebuild, and only that target's dependency closure is
125
+ scheduled. Source, platform, toolchain, runtime, policy, declared-input,
126
+ transformation, output-manifest, and retention changes carry rooted causal
127
+ invalidation fields. Cross-platform reuse, corrupt or partial content, root
128
+ mismatch, and insufficient qualification reject reuse fail closed.
129
+
130
+ Effects never participate in Capsule reuse. They remain ordered declarations
131
+ with required provider readback and planner mutation disabled. This planner is
132
+ shadow-only: it does not skip a v3 production stage or move v3 authority.
133
+
134
+ ## Three-platform qualification and Wave reconciliation
135
+
136
+ `architecture/v4-stage-capsule-qualification.json` closes the Wave 2
137
+ qualification boundary. Buildchain and external repositories use the same
138
+ Buildchain-owned public reusable workflow,
139
+ `.github/workflows/v4-stage-capsule-canary.yml`. Buildchain's caller is the thin
140
+ `.github/workflows/v4-public-consumer-dogfood.yml`; it has no steps, copied
141
+ orchestration, local action, direct qualification invocation, or private
142
+ consumer profile. Candidate recursion is resolved only by publishing the exact
143
+ candidate at `train/v4/v4.0/<capability>` and calling that fully qualified
144
+ public ref. After successful qualification and protected merge, the caller can
145
+ be pinned to the exact protected commit. An internal exception is never a
146
+ permitted recursion mechanism.
147
+
148
+ The called workflow checks out that same commit as its runtime, reads the consumer's
149
+ tracked `.buildchain/buildchain.toml`, and executes only `install`, `build`,
150
+ and `verify` on GitHub-hosted Linux x64, macOS arm64, and Windows x64 runners.
151
+ Each stage binds its declared command, dependency edge, exact consumer source,
152
+ platform, lifecycle manifest, summary, and real output roots into the campaign
153
+ profile. `publish` is explicitly classified as a provider mutation and is not
154
+ executed. The caller supplies only its stable consumer name and the real output
155
+ paths; it does not copy the campaign orchestration.
156
+
157
+ The external seed retains `install` and `build` before an intentional late
158
+ `verify` failure. A clean process reads the retained store, restores only the
159
+ exact `build` root, rebuilds `verify`, and compares the result with the fresh
160
+ three-stage aggregate. Runtime-ref, source, command/profile, manifest, summary,
161
+ output, platform, and Capsule-root drift all stop with typed diagnostics.
162
+
163
+ Qualification compares the declared artifact-manifest and aggregate content
164
+ roots from a fresh full build with the roots assembled from retained and rebuilt
165
+ Capsules. It fails closed on missing, expired, corrupt, partial, cross-platform,
166
+ cross-stage, source/toolchain/policy drift, stale-writer, and root-mismatch
167
+ campaigns. The rooted report records retained bytes, restore overhead, planner
168
+ accuracy, false reuse, and false rebuild counts. Every invocation declares one
169
+ exact public consumer identity and requires its Linux, macOS, and Windows
170
+ reports before emitting a qualification root. Buildchain declares `buildchain`
171
+ and receives no additional profile or authority.
172
+
173
+ The post-merge reconciliation interface accepts that qualification root only
174
+ with all five Wave 2 children in native terminal state, exact source and
175
+ protected merge revisions, independent review roots, Delivery Warrant roots,
176
+ native gate roots, and an empty protected-delivery queue. It emits evidence; it
177
+ does not rewrite child authority. `--stage-capsule-mode v3` is the explicit
178
+ non-destructive rollback switch. No migration, retained-state deletion,
179
+ production reuse, provider effect, release effect, or v3 behavior change is
180
+ authorized by this qualification.
181
+
182
+ Focused local rehearsal:
183
+
184
+ ```sh
185
+ node scripts/v4-stage-capsule-qualification.mjs campaign \
186
+ --work-root /tmp/buildchain-v4-stage-qualification \
187
+ --platform linux-x64 \
188
+ --consumer buildchain \
189
+ --runtime-ref <exact-buildchain-commit> \
190
+ --consumer-source-revision <exact-consumer-commit> \
191
+ --consumer-root . \
192
+ --lifecycle-evidence-root .buildchain/artifacts/v4-stage-capsule-canary
193
+ ```
@@ -79,9 +79,9 @@ repository changes are patch".
79
79
 
80
80
  | Date | Action | Line | Faces | Class | Rationale | PR |
81
81
  | ---------- | ------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |
82
- | 2026-08-11 | extend-minor | `v3.0` | provisional-delivery-warrant, qualified-delivery-warrant, native-qualification-proof, native-proof-reuse-decision, generated-native-delivery-workflow | additive | Reserve protected-dev order after exact source acceptance and approval, then require an atomic native-proof-bound qualification before merge-queue admission. Reuse is limited to stable semantic source, closure, dependencies, and toolchain with a fully attributed disjoint base delta; overlap and uncertainty fail closed to revalidation. | |
83
- | 2026-08-11 | extend-minor | `v3.0` | release-blocker-repair-contract, release-blocker-priority-claim, release-train-node-export, dev-delivery-warrant-node-export, next-development-transition, next-development-projection | additive | Add rooted successor candidate generations on a frozen Release Cut, exact semantic patch identity across cut and Dev landings, publication blocking through conflict or mismatch, a narrow non-preemptive Warrant blocker lane, and a separate rooted transition that preserves completed Alpha success while the following development version is materialized. | |
84
- | 2026-08-10 | extend-minor | `v3.0` | release-cut-contract, release-train-state-machine, release-train-node-export | additive | Add a provider-neutral rooted Release Cut and idempotent Release Train state contract that freezes candidate, tree, Alpha base, runtime, generation, and authority while treating later Dev movement as observation rather than implicit supersession. | |
82
+ | 2026-08-11 | extend-minor | `v4.0` | release-blocker-repair-contract, release-blocker-priority-claim, release-train-node-export, dev-delivery-warrant-node-export | additive | Forward-port rooted successor candidate generations, exact semantic patch identity across cut and Dev landings, publication blocking through conflict or mismatch, and the narrow non-preemptive Warrant blocker lane already protected and self-dogfood-proven on v3. | |
83
+ | 2026-08-10 | extend-minor | `v4.0` | release-cut-contract, release-train-state-machine, release-train-node-export | additive | Forward-port the provider-neutral rooted Release Cut and idempotent Release Train state contract already proven on v3; candidate, tree, Alpha base, runtime, generation, and authority stay frozen while later Dev movement remains an observation rather than implicit supersession. | |
84
+ | 2026-08-08 | extend-minor | `v4.0` | dev-delivery-warrant-read-candidate, rust-state-projection, dev-delivery-cli | additive | Add an opt-in, qualification-bound read projection behind `observe --read-mode v4`; v3 remains the sole writer and default reader, mutation commands ignore the switch, failures stop, and rollback is the explicit caller change back to v3. | |
85
85
  | 2026-08-05 | extend-minor | `v3.0` | auditable-demo-scenario, auditable-demo-capture, auditable-demo-adapter | additive | Add an opt-in deterministic readable-playback declaration that preserves captured terminal payloads and order while normalizing only presentation timing; omitted playback continues to use observed PTY timestamps, and existing composition modes remain unchanged. | |
86
86
  | 2026-08-04 | extend-minor | `v3.0` | dev-delivery-warrant-queue, source-qualification-proof, integration-delivery-proof, dev-delivery-cli, reusable-dev-delivery-workflows | additive | Add durable fair and fenced protected-dev scheduling plus split source/integration proof contracts. Existing PR admission remains available through explicit `off` and `shadow` rollout modes; no existing command, export, or release flow is removed. | |
87
87
  | 2026-08-01 | extend-minor | `v3.0` | cli-reference-registry, node-api-symbol-registry, golden-path-manual | additive | Add generated, drift-checked CLI and Node API reference registries to the public site bundle, plus a package-tested first-user Golden Path; existing command execution and import semantics remain unchanged. | |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kungfu-tech/buildchain",
3
- "version": "3.0.9-alpha.8",
3
+ "version": "4.0.0-alpha.0",
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",
@@ -57,9 +57,6 @@
57
57
  "./release-candidate": "./packages/core/release-candidate.js",
58
58
  "./release-candidate-recovery": "./packages/core/release-candidate-recovery.js",
59
59
  "./release-train": "./packages/core/release-train.js",
60
- "./next-development-transition": "./packages/core/next-development-transition.js",
61
- "./next-development-controller": "./packages/core/next-development-controller.js",
62
- "./next-development-projection": "./packages/core/next-development-projection.js",
63
60
  "./stable-candidate-ledger": "./packages/core/stable-candidate-ledger.js",
64
61
  "./release-passport": "./packages/core/release-passport.js",
65
62
  "./release-passport-contract": "./packages/core/release-passport-contract.js",
@@ -68,8 +65,6 @@
68
65
  "./release-tail-provider-plane": "./packages/core/release-tail-provider-plane.js",
69
66
  "./release-tail-provider-adapters": "./packages/core/release-tail-provider-adapters.js",
70
67
  "./release-tail-compatibility": "./packages/core/release-tail-compatibility.js",
71
- "./publication-rehearsal-runtime": "./packages/core/publication-rehearsal-runtime.js",
72
- "./publication-rehearsal-projection": "./packages/core/publication-rehearsal-projection.js",
73
68
  "./surface-manifest": "./packages/core/surface-manifest.js",
74
69
  "./buildchain-kfd-claims": "./packages/core/buildchain-kfd-claims.js",
75
70
  "./site/buildchain-site.json": "./dist/site/buildchain-site.json",
@@ -92,6 +87,7 @@
92
87
  "./site/schemas/release-passport-v1.schema.json": "./dist/site/schemas/release-passport-v1.schema.json",
93
88
  "./site/schemas/kfd-agent-hub-adoption.schema.json": "./dist/site/schemas/kfd-agent-hub-adoption.schema.json",
94
89
  "./site/schemas/kfd-product-gate-input-v1.schema.json": "./dist/site/schemas/kfd-product-gate-input-v1.schema.json",
90
+ "./site/schemas/kfd-support-projection-v1.schema.json": "./dist/site/schemas/kfd-support-projection-v1.schema.json",
95
91
  "./site/buildchain-contract.json": "./dist/site/buildchain-contract.json",
96
92
  "./site/product-mechanism.json": "./dist/site/product-mechanism.json",
97
93
  "./site/release-provenance.json": "./dist/site/release-provenance.json",
@@ -100,9 +96,13 @@
100
96
  },
101
97
  "files": [
102
98
  "AGENTS.md",
99
+ "architecture/",
103
100
  "bin/",
104
101
  "CONTRIBUTING.md",
105
102
  "contracts/",
103
+ "crates/buildchain-v4-bridge/Cargo.lock",
104
+ "crates/buildchain-v4-bridge/Cargo.toml",
105
+ "crates/buildchain-v4-bridge/src/",
106
106
  "LICENSE-POLICY.md",
107
107
  "scripts/*.mjs",
108
108
  "packages/core/",
@@ -111,8 +111,7 @@
111
111
  "SECURITY.md",
112
112
  "docs/*.md",
113
113
  "actions/*/README.md",
114
- "fixtures/*/README.md",
115
- "templates/"
114
+ "fixtures/*/README.md"
116
115
  ],
117
116
  "engines": {
118
117
  "node": ">=22.14.0"
@@ -124,30 +123,33 @@
124
123
  "packageManager": "pnpm@11.7.0",
125
124
  "scripts": {
126
125
  "operator:windows-jit": "bash scripts/aws-windows-jit-operator.sh",
127
- "check": "pnpm run check:static && node scripts/check-maintainability.mjs && node scripts/check-internal-architecture.mjs && node scripts/check-inventory.mjs && node scripts/check-core-mechanism-inventory.mjs && node scripts/check-release-tail-contract.mjs && node scripts/v4-architecture.mjs validate && pnpm run check:site && pnpm run check:workflows && pnpm run test:unit && pnpm run check:golden-path && node scripts/check-action-bundles.mjs",
128
- "check:static": "node scripts/check-javascript-syntax.mjs && prettier --check architecture/*.json contracts/release-tail-capabilities-v1.schema.json contracts/release-tail-provider-bindings-v1.schema.json contracts/publication-rehearsal-capsule-v1.schema.json contracts/fixtures/release-tail-capabilities-v1/*.json bin/internal/command-registry.mjs scripts/authorize-promotion-runtime-override.cjs scripts/check-core-mechanism-inventory.mjs scripts/check-release-tail-contract.mjs scripts/check-javascript-syntax.mjs scripts/check-maintainability.mjs scripts/maintainability-metrics.mjs scripts/public-reference.mjs scripts/site-reference-registry.mjs scripts/generate-public-reference.mjs scripts/v4-architecture.mjs scripts/verify-golden-path.mjs tests/authorize-promotion-runtime-override.test.mjs tests/command-registry.test.mjs tests/core-mechanism-inventory.test.mjs tests/release-tail-contract.test.mjs tests/maintainability.test.mjs tests/promotion-responsibilities.test.mjs tests/public-reference.test.mjs tests/v4-architecture.test.mjs",
126
+ "check": "pnpm run check:static && node scripts/check-v4-public-dogfood-contract.mjs && pnpm run check:v4-bridge && pnpm run check:v4-contracts && node scripts/check-maintainability.mjs && node scripts/check-internal-architecture.mjs && node scripts/check-inventory.mjs && node scripts/check-core-mechanism-inventory.mjs && node scripts/check-release-tail-contract.mjs && node scripts/v4-architecture.mjs validate && node scripts/v4-warrant-shadow-plan.mjs validate && pnpm run check:site && pnpm run check:workflows && pnpm run test:unit && pnpm run check:golden-path && node scripts/check-action-bundles.mjs",
127
+ "check:static": "node scripts/check-javascript-syntax.mjs && prettier --check architecture/*.json contracts/release-tail-provider-bindings-v1.schema.json contracts/v4-canonical-contracts-v1.schema.json contracts/v4-delivery-warrant-semantic-diff-report-v1.schema.json contracts/v4-delivery-warrant-trace-v1.schema.json contracts/v4-host-contract-v1.schema.json contracts/v4-provider-operation-journal-v1.schema.json contracts/v4-release-activation-shadow-v1.schema.json contracts/v4-stable-publication-fence-v1.schema.json contracts/v4-partial-mutation-recovery-v1.schema.json contracts/v4-stage-capsule-v1.schema.json contracts/v4-stage-capsule-store-v1.schema.json contracts/v4-stage-capsule-resume-v1.schema.json contracts/release-tail-capabilities-v1.schema.json contracts/fixtures/release-tail-capabilities-v1/*.json contracts/fixtures/v4-delivery-warrant-trace-v1/*.json contracts/fixtures/v4-provider-operation-journal-v1/*.json contracts/fixtures/v4-provider-readback-idempotency-v1/*.json contracts/fixtures/v4-release-activation-shadow-v1/*.json contracts/fixtures/v4-stable-publication-fence-v1/*.json contracts/fixtures/v4-partial-mutation-recovery-v1/*.json contracts/fixtures/v4-stage-capsule-v1/*.json contracts/fixtures/v4-stage-capsule-store-v1/*.json contracts/fixtures/v4-stage-capsule-resume-v1/*.json bin/internal/command-registry.mjs packages/core/v4-canonical-contracts.js packages/core/v4-provider-operation-journal.js packages/core/v4-provider-readback-idempotency.js packages/core/v4-release-activation-shadow.js packages/core/v4-stable-publication-fence.js packages/core/v4-partial-mutation-recovery-qualification.js packages/core/v4-stage-capsule.js packages/core/v4-stage-capsule-store.js packages/core/v4-stage-capsule-local-store.js packages/core/v4-platform-stage-checkpoints.js packages/core/v4-stage-capsule-resume-planner.js packages/core/v4-stage-capsule-qualification.js packages/core/v4-stage-capsule-qualification-campaign.js packages/core/v4-delivery-warrant-fixture-runner.js packages/core/v4-delivery-warrant-read-candidate.js packages/core/v4-delivery-warrant-semantic-diff-gate.js packages/core/v4-delivery-warrant-shadow-adapter.js scripts/authorize-promotion-runtime-override.cjs scripts/check-core-mechanism-inventory.mjs scripts/check-release-tail-contract.mjs scripts/check-javascript-syntax.mjs scripts/check-maintainability.mjs scripts/check-v4-public-dogfood-contract.mjs scripts/maintainability-metrics.mjs scripts/public-reference.mjs scripts/site-reference-registry.mjs scripts/generate-public-reference.mjs scripts/v4-architecture.mjs scripts/v4-bridge-bootstrap.mjs scripts/v4-bridge-evidence.mjs scripts/v4-host-adapter.mjs scripts/v4-platform-stage-checkpoint-rehearsal.mjs scripts/v4-stage-capsule-resume-rehearsal.mjs scripts/v4-stage-capsule-qualification.mjs scripts/v4-warrant-shadow-plan.mjs scripts/verify-golden-path.mjs tests/authorize-promotion-runtime-override.test.mjs tests/command-registry.test.mjs tests/core-mechanism-inventory.test.mjs tests/release-tail-contract.test.mjs tests/maintainability.test.mjs tests/promotion-responsibilities.test.mjs tests/public-reference.test.mjs tests/v4-architecture.test.mjs tests/v4-bridge.test.mjs tests/v4-canonical-contracts.test.mjs tests/v4-delivery-warrant-fixture-runner.test.mjs tests/v4-delivery-warrant-read-candidate.test.mjs tests/v4-platform-stage-checkpoints.test.mjs tests/v4-provider-operation-journal.test.mjs tests/v4-provider-readback-idempotency.test.mjs tests/v4-public-dogfood-contract.test.mjs tests/v4-release-activation-shadow.test.mjs tests/v4-stable-publication-fence.test.mjs tests/v4-partial-mutation-recovery-qualification.test.mjs tests/v4-stage-capsule.test.mjs tests/v4-stage-capsule-store.test.mjs tests/v4-stage-capsule-resume-planner.test.mjs tests/v4-stage-capsule-qualification.test.mjs tests/v4-warrant-shadow-plan.test.mjs",
128
+ "check:v4-bridge": "cargo fmt --manifest-path crates/buildchain-v4-bridge/Cargo.toml -- --check && cargo clippy --locked --manifest-path crates/buildchain-v4-bridge/Cargo.toml -- -D warnings && cargo test --locked --manifest-path crates/buildchain-v4-bridge/Cargo.toml",
129
+ "check:v4-contracts": "cargo fmt --manifest-path crates/buildchain-v4-contracts/Cargo.toml -- --check && cargo clippy --locked --manifest-path crates/buildchain-v4-contracts/Cargo.toml -- -D warnings && cargo test --locked --manifest-path crates/buildchain-v4-contracts/Cargo.toml && node --test tests/v4-canonical-contracts.test.mjs tests/v4-delivery-warrant-fixture-runner.test.mjs tests/v4-delivery-warrant-read-candidate.test.mjs tests/v4-platform-stage-checkpoints.test.mjs tests/v4-provider-operation-journal.test.mjs tests/v4-provider-readback-idempotency.test.mjs tests/v4-public-dogfood-contract.test.mjs tests/v4-release-activation-shadow.test.mjs tests/v4-stable-publication-fence.test.mjs tests/v4-partial-mutation-recovery-qualification.test.mjs tests/v4-stage-capsule.test.mjs tests/v4-stage-capsule-store.test.mjs tests/v4-stage-capsule-resume-planner.test.mjs tests/v4-stage-capsule-qualification.test.mjs",
129
130
  "check:workflows": "bash scripts/check-workflows.sh",
130
131
  "generate:reference": "node scripts/generate-public-reference.mjs",
131
132
  "check:reference": "node scripts/generate-public-reference.mjs --check",
132
- "generate:next-development": "node scripts/generate-next-development-guidance.mjs",
133
- "check:next-development": "node scripts/generate-next-development-guidance.mjs --check",
134
- "generate:site": "pnpm run generate:next-development && pnpm run generate:reference && node scripts/generate-site-bundle.mjs",
135
- "check:site": "pnpm run check:next-development && pnpm run check:reference && node scripts/generate-site-bundle.mjs --check",
133
+ "generate:site": "pnpm run generate:reference && node scripts/generate-site-bundle.mjs",
134
+ "check:site": "pnpm run check:reference && node scripts/generate-site-bundle.mjs --check",
136
135
  "check:golden-path": "node scripts/verify-golden-path.mjs",
137
136
  "test:unit": "node --test tests/*.test.mjs",
138
137
  "build": "pnpm -r --filter \"./actions/**\" build",
139
138
  "binary:build": "node scripts/build-standalone-binary.mjs",
140
139
  "package": "npm pack --dry-run --json --registry=https://registry.npmjs.org/",
141
- "pack:check": "npm pack --dry-run --json --registry=https://registry.npmjs.org/"
140
+ "pack:check": "npm pack --dry-run --json --registry=https://registry.npmjs.org/",
141
+ "bridge:v4:build": "node scripts/v4-bridge-bootstrap.mjs build",
142
+ "bridge:v4:run": "node scripts/v4-bridge-bootstrap.mjs run",
143
+ "bridge:v4:evidence": "node scripts/v4-bridge-evidence.mjs"
142
144
  },
143
145
  "devDependencies": {
146
+ "ajv": "8.17.1",
144
147
  "prettier": "^3.9.0",
145
148
  "tsup": "^8.5.0",
146
149
  "typescript": "^5.9.0"
147
150
  },
148
151
  "dependencies": {
149
- "@kungfu-tech/kfd": "1.0.0-alpha.60",
150
- "ajv": "8.20.0",
152
+ "@kungfu-tech/kfd": "1.0.0-alpha.62",
151
153
  "smol-toml": "1.7.0"
152
154
  }
153
155
  }