@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.
- package/AGENTS.md +39 -0
- package/README.md +17 -13
- package/actions/promote-buildchain-ref/README.md +0 -10
- package/actions/release-tail/README.md +6 -10
- package/architecture/internal-capabilities.json +502 -0
- package/architecture/maintainability-baseline.json +59 -0
- package/architecture/maintainability-policy.json +1384 -0
- package/architecture/release-tail-contract-inventory.json +587 -0
- package/architecture/v3-core-mechanism-inventory.json +1043 -0
- package/architecture/v3-core-mechanism-inventory.md +67 -0
- package/architecture/v4-adopter-delivery-parity.json +47 -0
- package/architecture/v4-architecture-constitution.md +210 -0
- package/architecture/v4-bootstrap-authority.json +56 -0
- package/architecture/v4-canonical-contract-fixtures.json +105 -0
- package/architecture/v4-capability-state-machine-manifest.json +480 -0
- package/architecture/v4-capability-state-machine-manifest.schema.json +202 -0
- package/architecture/v4-delivery-warrant-shadow-bootstrap-plan.json +830 -0
- package/architecture/v4-delivery-warrant-shadow-bootstrap-plan.md +223 -0
- package/architecture/v4-delivery-warrant-shadow-bootstrap-plan.schema.json +318 -0
- package/architecture/v4-delivery-warrant-shadow-fixtures.json +227 -0
- package/architecture/v4-delivery-warrant-shadow-fixtures.schema.json +67 -0
- package/architecture/v4-exception-ledger.json +5 -0
- package/architecture/v4-exception-ledger.schema.json +56 -0
- package/architecture/v4-partial-mutation-recovery-qualification.json +65 -0
- package/architecture/v4-platform-stage-checkpoints.json +97 -0
- package/architecture/v4-provider-operation-journal-contract.json +113 -0
- package/architecture/v4-release-activation-shadow-domain.json +61 -0
- package/architecture/v4-release-train-parity.json +68 -0
- package/architecture/v4-rust-libnode-bridge-evaluation.json +107 -0
- package/architecture/v4-rust-libnode-bridge-spike.md +85 -0
- package/architecture/v4-stable-publication-fence.json +66 -0
- package/architecture/v4-stage-capsule-contract.json +90 -0
- package/architecture/v4-stage-capsule-qualification.json +99 -0
- package/architecture/v4-stage-capsule-resume-planner.json +52 -0
- package/architecture/v4-stage-capsule-store-contract.json +72 -0
- package/bin/buildchain.mjs +15 -6
- package/contracts/auditable-demo-scenario-v1.schema.json +1 -1
- package/contracts/buildchain-v2-residuals-v1.json +2 -2
- package/contracts/fixtures/v4-delivery-warrant-trace-v1/golden.json +158 -0
- package/contracts/fixtures/v4-delivery-warrant-trace-v1/property.json +380 -0
- package/contracts/fixtures/v4-delivery-warrant-trace-v1/replay.json +163 -0
- package/contracts/fixtures/v4-partial-mutation-recovery-v1/shared.json +155 -0
- package/contracts/fixtures/v4-provider-operation-journal-v1/shared.json +457 -0
- package/contracts/fixtures/v4-provider-readback-idempotency-v1/shared.json +682 -0
- package/contracts/fixtures/v4-release-activation-shadow-v1/shared.json +53 -0
- package/contracts/fixtures/v4-stable-publication-fence-v1/shared.json +56 -0
- package/contracts/fixtures/v4-stage-capsule-resume-v1/late-platform-failure.json +176 -0
- package/contracts/fixtures/v4-stage-capsule-store-v1/shared.json +132 -0
- package/contracts/fixtures/v4-stage-capsule-v1/shared.json +111 -0
- package/contracts/v4-canonical-contracts-v1.schema.json +182 -0
- package/contracts/v4-delivery-warrant-semantic-diff-report-v1.schema.json +284 -0
- package/contracts/v4-delivery-warrant-trace-v1.schema.json +215 -0
- package/contracts/v4-host-contract-v1.schema.json +135 -0
- package/contracts/v4-partial-mutation-recovery-v1.schema.json +168 -0
- package/contracts/v4-provider-operation-journal-v1.schema.json +381 -0
- package/contracts/v4-release-activation-shadow-v1.schema.json +186 -0
- package/contracts/v4-stable-publication-fence-v1.schema.json +125 -0
- package/contracts/v4-stage-capsule-resume-v1.schema.json +225 -0
- package/contracts/v4-stage-capsule-store-v1.schema.json +154 -0
- package/contracts/v4-stage-capsule-v1.schema.json +178 -0
- package/crates/buildchain-v4-bridge/Cargo.lock +213 -0
- package/crates/buildchain-v4-bridge/Cargo.toml +12 -0
- package/crates/buildchain-v4-bridge/src/main.rs +495 -0
- package/dist/site/agent-index.json +0 -3
- package/dist/site/artifact-schemas.json +0 -6
- package/dist/site/buildchain-contract.json +103 -397
- package/dist/site/buildchain-site.json +302 -270
- package/dist/site/capability-registry.json +9 -11
- package/dist/site/cli-registry.json +8 -30
- package/dist/site/controller-registry.json +48 -8
- package/dist/site/kfd-claims.json +129 -142
- package/dist/site/kfd-upstream-aggregate.json +9 -9
- package/dist/site/manual-registry.json +18 -49
- package/dist/site/node-api-registry.json +1882 -4118
- package/dist/site/page-registry.json +278 -230
- package/dist/site/public-surface-audit.json +87 -185
- package/dist/site/publication-authority-registry.json +11 -1
- package/dist/site/publication-registry.json +4 -4
- package/dist/site/release-provenance.json +3 -7
- package/dist/site/schemas/kfd-support-projection-v1.schema.json +106 -0
- package/dist/site/site-manifest.json +22 -38
- package/dist/site/workflow-registry.json +80 -35
- package/docs/MAP.md +8 -4
- package/docs/auditable-demo.md +2 -2
- package/docs/aws-us-elastic-runner-burst-plane.md +7 -59
- package/docs/cli-reference.md +15 -92
- package/docs/cli.md +14 -14
- package/docs/dev-alpha-candidate-patrol.md +3 -11
- package/docs/dev-delivery-warrant.md +28 -100
- package/docs/engineering-housekeeper.md +12 -4
- package/docs/getting-started.md +1 -1
- package/docs/install.md +5 -5
- package/docs/kfd-support.md +2 -7
- package/docs/lifecycle-protocol.md +2 -4
- package/docs/node-api-reference.md +414 -523
- package/docs/release-flow.md +31 -31
- package/docs/release-governance.md +16 -28
- package/docs/release-passport.md +2 -15
- package/docs/release-tail-contract.md +13 -6
- package/docs/release-tail-provider-plane.md +13 -19
- package/docs/release-train.md +4 -4
- package/docs/reusable-build-surface.md +14 -27
- package/docs/site-bundle-contract.md +1 -5
- package/docs/stable-candidate-patrol.md +7 -7
- package/docs/v4-canonical-contracts.md +92 -0
- package/docs/v4-delivery-warrant-read-candidate.md +73 -0
- package/docs/v4-delivery-warrant-semantic-diff.md +75 -0
- package/docs/v4-production-release.md +63 -0
- package/docs/v4-stage-capsule.md +193 -0
- package/docs/versioning.md +3 -3
- package/package.json +19 -17
- package/packages/core/adopter-delivery-gate.js +576 -0
- package/packages/core/adopter-delivery-json.js +66 -0
- package/packages/core/artifact-signing.js +0 -61
- package/packages/core/artifact-verification-envelope.js +5 -5
- package/packages/core/build-facts.js +12 -4
- package/packages/core/buildchain-agent-manuals.js +0 -2
- package/packages/core/buildchain-config.js +4 -69
- package/packages/core/buildchain-contract.js +232 -46
- package/packages/core/buildchain-kfd-claims.js +1 -1
- package/packages/core/channel-candidate.js +0 -8
- package/packages/core/channel-promotion-baseline.js +0 -52
- package/packages/core/controller-evidence.js +3 -4
- package/packages/core/dev-alpha-candidate-selection.js +2 -10
- package/packages/core/dev-delivery-warrant-cancellation.js +0 -1
- package/packages/core/dev-delivery-warrant-settlement.js +1 -5
- package/packages/core/dev-delivery-warrant.js +12 -52
- package/packages/core/diagnostics.js +3 -8
- package/packages/core/github-governance-authority.js +3 -1
- package/packages/core/kfd-adopter-category-driver.js +167 -0
- package/packages/core/kfd-adopter-manifest.js +47 -46
- package/packages/core/kfd-gate.js +15 -45
- package/packages/core/paper-agent-entry.js +7 -16
- package/packages/core/paper-fleet.js +2 -2
- package/packages/core/paper-repository.js +2 -3
- package/packages/core/paper-scaffold-content.js +2 -23
- package/packages/core/paper.js +11 -43
- package/packages/core/publication-reproducibility.js +4 -4
- package/packages/core/release-line-bootstrap.js +21 -8
- package/packages/core/release-passport-contract.js +5 -5
- package/packages/core/release-passport.js +20 -131
- package/packages/core/self-dogfood-version.js +48 -35
- package/packages/core/spawn-command.js +232 -8
- package/packages/core/v4-adopter-delivery-parity.js +219 -0
- package/packages/core/v4-canonical-contracts.js +284 -0
- package/packages/core/v4-delivery-warrant-fixture-runner.js +371 -0
- package/packages/core/v4-delivery-warrant-read-candidate.js +279 -0
- package/packages/core/v4-delivery-warrant-semantic-diff-gate.js +352 -0
- package/packages/core/v4-delivery-warrant-shadow-adapter.js +447 -0
- package/packages/core/v4-partial-mutation-recovery-qualification.js +395 -0
- package/packages/core/v4-platform-stage-checkpoints.js +471 -0
- package/packages/core/v4-provider-operation-journal.js +531 -0
- package/packages/core/v4-provider-readback-idempotency.js +394 -0
- package/packages/core/v4-release-activation-shadow.js +519 -0
- package/packages/core/v4-stable-publication-fence.js +357 -0
- package/packages/core/v4-stage-capsule-local-store.js +426 -0
- package/packages/core/v4-stage-capsule-qualification-campaign.js +512 -0
- package/packages/core/v4-stage-capsule-qualification.js +456 -0
- package/packages/core/v4-stage-capsule-resume-planner.js +397 -0
- package/packages/core/v4-stage-capsule-store.js +401 -0
- package/packages/core/v4-stage-capsule.js +319 -0
- package/scripts/assemble-self-publication-admission.mjs +1 -1
- package/scripts/audit-publication-control-plane.mjs +5 -5
- package/scripts/auditable-demo-bundle-verification.mjs +3 -2
- package/scripts/auditable-demo-platform.mjs +2 -2
- package/scripts/auditable-demo-renditions.mjs +1 -1
- package/scripts/auditable-demo.mjs +2 -2
- package/scripts/aws-macos-jit-controller-core.mjs +13 -346
- package/scripts/aws-macos-jit-controller-runtime.mjs +2 -210
- package/scripts/aws-macos-jit-controller.mjs +37 -275
- package/scripts/aws-macos-jit-core.mjs +3 -41
- package/scripts/aws-macos-jit.mjs +0 -12
- package/scripts/aws-windows-jit-campaign.mjs +2 -2
- package/scripts/aws-windows-jit-controller-core.mjs +1 -1
- package/scripts/aws-windows-jit-controller.mjs +3 -3
- package/scripts/build-contract-core.mjs +3 -8
- package/scripts/build-standalone-binary.mjs +3 -14
- package/scripts/buildchain-channel-router.mjs +4 -0
- package/scripts/buildchain-cli-help.mjs +7 -13
- package/scripts/buildchain-contract-lock.mjs +0 -6
- package/scripts/check-action-bundles.mjs +3 -4
- package/scripts/check-internal-architecture.mjs +7 -6
- package/scripts/check-inventory.mjs +30 -25
- package/scripts/check-v4-public-dogfood-contract.mjs +270 -0
- package/scripts/create-release-bundle.mjs +8 -4
- package/scripts/dev-alpha-candidate-patrol.mjs +1 -22
- package/scripts/dev-delivery-proof.mjs +2 -54
- package/scripts/dev-delivery-warrant.mjs +59 -77
- package/scripts/dev-pr-auto-merge.mjs +4 -30
- package/scripts/dev-pr-delivery-warrant.mjs +0 -55
- package/scripts/dispatch-artifact-signing-authority.mjs +7 -4
- package/scripts/generate-buildchain-kfd-witnesses.mjs +94 -88
- package/scripts/generate-channel-build-workflow.mjs +54 -24
- package/scripts/generate-channel-promotion-workflow.mjs +15 -6
- package/scripts/generate-site-bundle.mjs +5 -21
- package/scripts/git-fetch-process-tree.mjs +34 -1
- package/scripts/init-repo.mjs +64 -159
- package/scripts/inspect-artifact-signing-requests.mjs +0 -6
- package/scripts/locked-source-checkout.mjs +3 -4
- package/scripts/maintainability-metrics.mjs +8 -2
- package/scripts/npm-publish-dry-run.mjs +2 -2
- package/scripts/npm-publish-transaction.mjs +2 -2
- package/scripts/publication-commit-evidence.mjs +23 -69
- package/scripts/release-candidate-resolver.mjs +11 -17
- package/scripts/release-tail.mjs +3 -49
- package/scripts/resume-from-candidate-run.mjs +9 -123
- package/scripts/run-lifecycle-core.mjs +12 -13
- package/scripts/seal-artifact-signing-requests.mjs +17 -21
- package/scripts/site-capability-metadata.mjs +2 -7
- package/scripts/stable-candidate-qualification.mjs +10 -10
- package/scripts/v4-architecture.mjs +12 -2
- package/scripts/v4-bridge-bootstrap.mjs +141 -0
- package/scripts/v4-bridge-evidence.mjs +141 -0
- package/scripts/v4-host-adapter.mjs +182 -0
- package/scripts/v4-platform-stage-checkpoint-rehearsal.mjs +207 -0
- package/scripts/v4-stage-capsule-qualification.mjs +528 -0
- package/scripts/v4-stage-capsule-resume-rehearsal.mjs +57 -0
- package/scripts/v4-warrant-shadow-plan.mjs +601 -0
- package/scripts/verify-golden-path.mjs +5 -5
- package/scripts/web-surface-cloudfront-rewrite.mjs +15 -15
- package/scripts/web-surface-core.mjs +2 -8
- package/scripts/workflow-call-contract.mjs +5 -184
- package/contracts/fixtures/kfd-adopter-release-v1/kfd-4-perspective.json +0 -16
- package/contracts/fixtures/kfd-adopter-release-v1/kfd-4-replay.json +0 -57
- package/contracts/fixtures/next-development-transition-v1/anchored-manual-waiting.json +0 -47
- package/contracts/fixtures/next-development-transition-v1/semver-auto-planned.json +0 -47
- package/contracts/fixtures/next-development-transition-v1/version-model-cases.json +0 -40
- package/contracts/next-development-request-v1.schema.json +0 -66
- package/contracts/next-development-transition-v1.schema.json +0 -292
- package/contracts/publication-rehearsal-capsule-v1.schema.json +0 -173
- package/dist/site/schemas/publication-rehearsal-capsule-v1.schema.json +0 -269
- package/dist/site/schemas/release-tail-capabilities-v1.schema.json +0 -353
- package/dist/site/schemas/release-tail-provider-bindings-v1.schema.json +0 -94
- package/docs/next-development-transition.md +0 -119
- package/docs/publication-rehearsal.md +0 -94
- package/packages/core/buildchain-compatibility-proof.js +0 -631
- package/packages/core/dev-delivery-native-proof.js +0 -333
- package/packages/core/dev-delivery-warrant-shadow.js +0 -502
- package/packages/core/next-development-candidate-reservation.js +0 -186
- package/packages/core/next-development-controller.js +0 -726
- package/packages/core/next-development-projection.js +0 -288
- package/packages/core/next-development-transition.js +0 -738
- package/packages/core/publication-rehearsal-projection.js +0 -173
- package/packages/core/publication-rehearsal-runtime.js +0 -921
- package/scripts/aws-macos-jit-instance-rehydrate.mjs +0 -260
- package/scripts/aws-macos-jit-source-rebind.mjs +0 -724
- package/scripts/dev-delivery-native-run.mjs +0 -187
- package/scripts/dev-delivery-two-phase.mjs +0 -598
- package/scripts/generate-next-development-guidance.mjs +0 -49
- package/scripts/materialize-self-release-candidate-version.mjs +0 -137
- package/scripts/next-development-self-dogfood-harness.mjs +0 -409
- package/scripts/next-development-self-dogfood.mjs +0 -532
- package/scripts/next-development-transition.mjs +0 -47
- package/scripts/release-candidate-tail-reseal.mjs +0 -426
- 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
|
+
```
|
package/docs/versioning.md
CHANGED
|
@@ -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 | `
|
|
83
|
-
| 2026-08-
|
|
84
|
-
| 2026-08-
|
|
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
|
+
"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-
|
|
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:
|
|
133
|
-
"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.
|
|
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
|
}
|