release 5090 v0.1 phase B: README, short release notes, profile/deploy text fixes, packager for the merged state

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-11-03 22:31:10 +01:00
co-authored by Claude Sonnet 5.5
parent 4cbbd2729c
commit ff1ad3aea1
6 changed files with 543 additions and 597 deletions
+5 -14
View File
@@ -38,9 +38,8 @@ set -eu
RELEASE_TAG=leleka-5090-v0.1
RELEASE_STRATA_PIN=41cf05a06a25dd29103b7b27a2279a3f60c21876 # docs/upstream.md; upstream 0.2.8 exists, the pin is NOT moved for this release
BINARIES="leleka strata-next leleka-inference leleka-daemon leleka-cli leleka-seal-exec"
DOCS="docs/deploy.md docs/upstream.md docs/quality-gate.md docs/e2e-run.md docs/ledger.md docs/port-remaining.md docs/prefix-cache.md docs/rust-runtime-run.md docs/experiments/baseline-pair-5090.md docs/experiments/draft-round-5090.md docs/experiments/2026-10-28-s6-1-lossy-audit.md"
UNATTENDED_DEFAULTS="deploy/systemd deploy/unattended scripts/unattended deploy/rust-runtime/leleka.service"
EXPERT_PROFILE_SHA256=8f59b4aa8873209dff11c11e37bcda9529a1335b724a1afeea37bf6388975baf # crates/deploy/src/plan.rs EXPERT_PROFILE_SHA256
DOCS="docs/deploy.md docs/upstream.md docs/quality-gate.md docs/e2e-run.md docs/ledger.md docs/port-remaining.md docs/prefix-cache.md docs/rust-runtime-run.md docs/experiments/baseline-pair-5090.md docs/experiments/draft-round-5090.md docs/experiments/2026-10-28-s6-1-lossy-audit.md docs/experiments/window-policy-5090.md docs/unattended.md docs/kar-sparse-memfd.md"
UNATTENDED_DEFAULTS="scripts/ops/README.md scripts/ops/install-leleka-service.sh scripts/ops/leleka.service scripts/ops/owner-wifi-stability.sh"
MAX_TRACKED_BYTES=20000000
SECRET_RE='-----BEGIN [A-Z ]*PRIVATE KEY-----|AKIA[0-9A-Z]{16}|ghp_[A-Za-z0-9]{30,}|github_pat_[A-Za-z0-9_]{30,}|hf_[A-Za-z0-9]{30,}|sk-[A-Za-z0-9]{32,}|xox[abp]-[A-Za-z0-9-]{10,}|AIza[0-9A-Za-z_-]{35}|eyJ[A-Za-z0-9_-]{20,}\.[A-Za-z0-9_-]{20,}\.'
FORBIDDEN_NAME_RE='\.(gguf|kar2?|safetensors|pem|key|p12|pfx|jks|sqlite3?|db|log|jsonl|pcap|npz|npy|pt|pth|onnx)$|(^|/)(api-key|runtime\.env|\.env|id_rsa|id_ed25519|credentials)$'
@@ -68,7 +67,6 @@ allow_dirty=0
rehearse=0
epoch=
extra_unattended=
expert_profile=
tarball_arg=
while [ $# -gt 0 ]; do
case "$1" in
@@ -79,7 +77,6 @@ while [ $# -gt 0 ]; do
--allow-dirty) allow_dirty=1; shift ;;
--rehearse) rehearse=1; shift ;;
--epoch) epoch=${2:?}; shift 2 ;;
--expert-profile) expert_profile=${2:?}; shift 2 ;;
--unattended) extra_unattended="$extra_unattended ${2:?}"; shift 2 ;;
-*) die "unknown option $1" ;;
*) [ -z "$tarball_arg" ] || die "unexpected argument $1"; tarball_arg=$1; shift ;;
@@ -215,8 +212,8 @@ gate_tracked_files() {
gate_secrets() {
[ "$mode" = repo ] || return 0
hits=$(git grep -InE -e "$SECRET_RE" -- . ':!*.lock' 2>/dev/null | cut -d: -f1,2 | head -20 || true)
if [ -z "$hits" ]; then ok "no private key, cloud/VCS/HF token or JWT pattern in any tracked text file (matches are never printed)"; else bad "secret-like patterns at (file:line):"; printf '%s\n' "$hits"; fi
hits=$(git grep -InE -e "$SECRET_RE" -- . ':!*.lock' ':!crates/obs/src/redact.rs' 2>/dev/null | cut -d: -f1,2 | head -20 || true)
if [ -z "$hits" ]; then ok "no private key, cloud/VCS/HF token or JWT pattern in any tracked text file (matches are never printed; crates/obs/src/redact.rs is excluded: its unit tests hold synthetic token shapes for the redactor)"; else bad "secret-like patterns at (file:line):"; printf '%s\n' "$hits"; fi
}
gate_licence() {
@@ -354,15 +351,9 @@ run_package() {
[ -f "$d" ] || die "$d is missing"
rel=${d#docs/}; mkdir -p "$stage/share/leleka/docs/$(dirname "$rel")"; cp "$d" "$stage/share/leleka/docs/$rel"
done
if [ -n "$expert_profile" ]; then
[ -f "$expert_profile" ] || die "$expert_profile is not a file"
[ "$(sha256sum "$expert_profile" | awk '{print $1}')" = "$EXPERT_PROFILE_SHA256" ] || die "$expert_profile does not have the pinned SHA-256 $EXPERT_PROFILE_SHA256"
mkdir -p "$stage/share/leleka/data"; cp "$expert_profile" "$stage/share/leleka/data/expert-profile.bin"
else
note "no --expert-profile: no loose copy of data/expert-profile.bin is shipped; the leleka binary embeds the same bytes and `leleka up` installs them (sha256 checked)"
fi
[ ! -f LICENSE ] || cp LICENSE "$stage/LICENSE"
cp engine/strata/LICENSE "$stage/share/leleka/licenses/strata-MIT.txt"
cp crates/deploy/data/expert-profile.NOTICE "$stage/share/leleka/licenses/expert-profile-NOTICE.txt"
cp crates/deploy/data/expert-profile.NOTICE "$stage/share/leleka/licenses/strata-expert-profile-NOTICE.txt"
cp engine/strata/third_party/ggml/LICENSE "$stage/share/leleka/licenses/ggml-MIT.txt"
cp engine/strata/third_party/project-maya/LICENSE "$stage/share/leleka/licenses/project-maya-MIT.txt"