Cloud-native deployment boundary product (BL-101)

July 29, 2026 · View on GitHub

Documented, fail-closed cloud deploy patterns for workers/batch. Dry-run manifest generation only (Kubernetes + Docker Compose). No secret leakage, no always-on QPU, no live cluster create.

Module: scpn_quantum_control.cloud_native_deployment_product

Rules

RuleBehaviour
Product schemacloud_native_deployment_product.v1
Ambient generatordeployment.cloud_native.generate_cloud_manifests
Secret-like envRefuse (ambient + product pre-check)
Always-on QPURefuse (BL-47 / BL-95 compose)
Live cluster createRefuse
Credential loadingRefuse
Unknown patternFail closed

Patterns

pattern_idrole
batch_workerOffline batch worker
stable_core_gateStable-core contract gate job
offline_researchLow-replica research packaging demo

Threat model (fail-closed)

secret_leakage · always_on_qpu · live_cluster_create · credential_loading · unbounded_cost

Quick start

from scpn_quantum_control.cloud_native_deployment_product import (
    assert_cloud_native_deployment_product_integrity,
    build_cloud_native_deployment_product_registry,
    decide_deploy_path,
    materialise_demo_deploy_dry_run_probe,
)

reg = assert_cloud_native_deployment_product_integrity(
    build_cloud_native_deployment_product_registry()
)
assert reg["allows_always_on_qpu_policy"] is False

assert decide_deploy_path(
    "batch_worker", invent_green_always_on_qpu=True
).allowed is False

probe = materialise_demo_deploy_dry_run_probe()
assert "deployment.yaml" in probe.file_names
assert probe.invent_green_live_cluster is False

Public API contracts

Pattern and threat discovery

APIContract
list_deployment_pattern_ids()Return stable deployment-pattern identifiers in catalogue order.
list_threat_ids()Return the bounded cloud threat-model identifiers.
get_deployment_pattern(pattern_id)Resolve one immutable pattern row; blank and unknown identifiers raise ValueError.
iter_deployment_patterns(kind=None)Return every pattern or a stable kind-filtered tuple.

DeploymentPatternRow validates identity, execution kind, image command, replica posture, QPU/secret/cluster prohibitions, evidence pointers, and claim boundary. ThreatModelRow validates each threat, mitigation, severity, and fail-closed state. Both records provide JSON-ready to_dict() payloads.

Eligibility and manifest dry runs

APIContract
decide_deploy_path(pattern_id, ...)Allow bounded manifest generation and return explicit blockers for always-on QPU, live cluster creation, secret injection, or credential loading.
compute_spec_digest(name, image, command, replicas=1, env=None)Bind a validated deployment specification to a deterministic SHA-256 digest without resolving credentials.
materialise_deploy_dry_run_probe(pattern_id, ...)Compose the ambient manifest generator, reject secret-like environment keys, and return content-addressed filenames without applying them.
materialise_demo_deploy_dry_run_probe()Materialise the deterministic batch-worker dry run.

PathEligibilityDecision keeps outcome, permission, reason, and blockers mutually consistent. MaterialisedDeployDryRunProbe validates its pattern, manifest digest, file set, ambient claim boundary, and false live-cluster, always-on-QPU, and secret flags.

Registry evidence and integrity

APIContract
map_cloud_native_deployment_public_surfaces()Emit deterministic product and ambient generator descriptors with pattern and claim metadata.
build_cloud_native_deployment_product_registry()Build schema-tagged patterns, threats, surfaces, policy flags, counts, and residual-work evidence.
assert_cloud_native_deployment_product_integrity(payload=None)Reject empty, malformed, blank, invalid-kind/severity, duplicate, count-drifted, or permissive QPU/secret/cluster state.

These APIs generate and validate deployment files only. They do not create a cluster, load credentials, submit QPU work, expose secrets, apply manifests, or claim enterprise operations evidence.

Residuals (honest)

  • S101.3 — fuller enterprise packaging / ops runbooks depth
  • Ambient generator remains the implementation spine
  • Pack: docs/internal/differentiable_programming/p3_strategic/bl101_cloud_native_deployment_boundary.md
  • Ambient: scpn_quantum_control.deployment.cloud_native
  • BL-47 hardware-safe · BL-95 QPU compute · BL-99 campaign harness

Authored by Anulum Fortis & Arcane Sapience (protoscience@anulum.li)