Edge Runtime Readiness¶
build_edge_runtime_readiness() records the current edge/mobile deployment
state for browser, Worker, embedded, and local low-latency paths. It checks the
tracked WASM release plan, Rust kernel sources, ONNX and quantisation contracts,
local build artefacts, and smoke-test evidence without running external builds.
Use it when preparing a release packet or deciding whether the edge path is only ready for local trial or ready for release:
from director_ai.core.edge import build_edge_runtime_readiness
profile = build_edge_runtime_readiness(
".",
target_id="browser-worker",
quantised_model_path="MODELS/lite-scorer-v2/onnx/model_quantized.onnx",
browser_smoke_evidence="benchmarks/results/browser-worker-smoke.json",
mobile_smoke_evidence="benchmarks/results/mobile-smoke.json",
)
assert profile.ready_for_local_trial
ready_for_local_trial means the tracked source contracts, target matrix,
deployment docs, and latency-benchmark surfaces exist. ready_for_release is
stricter: it also requires local WASM build artefacts, a quantised model
artefact, Rust Python accelerator import evidence, and browser/mobile smoke
evidence.
Generate the local R14 evidence packet with:
The packet is tenant-safe. Paths outside the repository are recorded as an external path marker instead of serialising absolute local paths.
Full API¶
director_ai.core.edge.runtime_profile.EdgeRuntimeCheck
dataclass
¶
director_ai.core.edge.runtime_profile.EdgeRuntimeReadiness
dataclass
¶
director_ai.core.edge.runtime_profile.build_edge_runtime_readiness
¶
build_edge_runtime_readiness(repo_root: str | Path, *, target_id: str = 'browser-worker', quantised_model_path: str | Path | None = None, browser_smoke_evidence: str | Path | None = None, mobile_smoke_evidence: str | Path | None = None, import_probe: bool = True) -> EdgeRuntimeReadiness
Build a deterministic readiness profile for one edge runtime target.