TryDotAtwo commited on
Commit
fcf5fa4
·
verified ·
1 Parent(s): cce4a4c

Publish registry initialization fix and staged CPU reader optimization

Browse files

Five source/documentation files only; raw machine readback and heartbeat excluded. Current validation: 178 CPU tests, five CUDA fixtures and 126631688 recomputed hashes. Full epoch is running; optimized Molab execution and speedup remain unverified.

LIVE_NATIVE_CURRENT_RUNTIME_20261004.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Current native generator recovery, 2026-10-04
2
+
3
+ Priority: full C++/CUDA generator with Rust control. Reduced smoke-subset priority was cancelled by the user's clarification on 2026-10-01 at 16:31; history is retained.
4
+
5
+ Current Molab validation used an RTX PRO 6000 Blackwell Server Edition, compute capability 12.0; driver 595.71.05, nvcc 13.3.73, runtime header CUDART_VERSION 13000.
6
+
7
+ Verified on this host: 178 CPU tests passed, five GPU fixtures passed; full finite CUDA parity recomputed 126631688 hashes across 25096 views and all 14 widths. This is not proof of the complete 1000-epoch campaign.
8
+
9
+ Baseline source v4 changes only harness initialization: create the private global_registry directory before opening the owner. All 64 production source files remain identical to v3. Builder v6 pins the v4 ZIP. Source SHA256: dfbdddd10fee0e78de8268efa6bfd90663c2960c7c54fbfa32eb7d70ad155053.
10
+
11
+ The real 10000-root baseline epoch is running. Generation, all reader audits, snapshot restore and separate-process reopen must finish before this workflow is reported complete.
12
+
13
+ Optimized source v2 and its builder are staged for a subsequent matched full run. Four production files differ from baseline v4; the harness is identical. Local Windows CPU validation: 187 passed, five CUDA tests ignored. No optimized Molab execution or measured speedup is claimed. ZIP SHA256: d8af76cf7225a80b1bd2e6de8c1297825d4b5e3fba67188134646fcf05d14565.
14
+
15
+ The 1000 x 10000 campaign, full remote archive/restore/rotation and cross-run returned-batch equivalence remain unverified. The 10x target remains unmet. Storage estimates are estimates, not a strict peak bound.
molab_build_cpu_reader_optimized_v1_20261004.sh ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Build only on the existing audited Molab; never starts generation or a runtime.
3
+ set -euo pipefail
4
+ (( $# == 4 )) || { echo 'source-zip original-native-source fresh-output audited-hostname required' >&2; exit 2; }
5
+ test ! -e "$3"; test ! -L "$3"
6
+ zip=$(realpath "$1"); original=$(realpath "$2"); out=$(realpath -m "$3"); host=$4
7
+ case "$zip:$original:$out" in /marimo/*:/marimo/*:/marimo/*) ;; *) exit 2;; esac
8
+ test "$(hostname)" = "$host"
9
+ for tool in jq unzip sha256sum cargo rustc nvidia-smi stat flock realpath ps awk sed grep sort cmp tee find xargs df; do command -v "$tool" >/dev/null; done
10
+ lock=/marimo/.quantum-native-full-workflow.lock
11
+ test ! -L "$lock"; if [[ -e "$lock" ]]; then test -f "$lock"; fi
12
+ exec 8>"$lock"; flock -n 8
13
+ test -z "$(nvidia-smi --query-compute-apps=pid --format=csv,noheader)"
14
+ ps -eo args= | awk '{name=$1; sub(/^.*\//,"",name); if(name ~ /^(generate[-_]full|verify[-_]full|verify[-_]cuda|frontier|archive[-_]native|run[-_]native[-_]full[-_]epoch)/) found=1} END {exit found}'
15
+ printf '%s %s\n' d8af76cf7225a80b1bd2e6de8c1297825d4b5e3fba67188134646fcf05d14565 "$zip" | sha256sum -c -
16
+ printf '%s %s\n' 3de55d3adaeb334acc957e5b57bb5838f07a87870c9d6f301ab0deb0fc8675a1 "$original/SHA256SUMS" | sha256sum -c -
17
+ (cd "$original"; sha256sum -c SHA256SUMS)
18
+ printf '%s %s\n' ae6a88c94083d9a40ffef1a0c5fed128aabe85db3ec3294cdf5f0779bbbac486 "$original/rust_native_generator/Cargo.lock" | sha256sum -c -
19
+ contract=$(unzip -p "$zip" INTEGRATION_CONTRACT.json)
20
+ jq -e '.schema=="molab_live_complete_source_transport_v1" and .full_source==true and (.source_files|length)==65 and ([.source_files[].path]|unique|length)==65 and all(.source_files[]; (.path|test("^(native_generator/([a-zA-Z0-9_]+\\.rs|Cargo\\.toml|Cargo\\.lock|stage37_primary\\.md)|run_native_full_epoch_owner\\.rs)$")) and (.sha256|test("^[a-f0-9]{64}$")) and (.bytes|type=="number"))' <<< "$contract" >/dev/null
21
+ # Hash-pinned archive must contain only contract files and the contract itself.
22
+ actual=$(unzip -Z1 "$zip" | sed 's@\\@/@g' | grep -v '/$' | sort)
23
+ expected=$( { jq -r '.source_files[].path' <<< "$contract"; echo INTEGRATION_CONTRACT.json; } | sort)
24
+ test "$actual" = "$expected"
25
+ test ! -e "$out"; test ! -L "$out"
26
+ mkdir "$out"
27
+ trap 'code=$?; printf "%s\n" "$code" > "$out/build_exit.txt"' EXIT
28
+ unzip -q "$zip" -d "$out"
29
+ source="$out/native_generator"
30
+ while IFS=$'\t' read -r file hash bytes; do
31
+ test -f "$out/$file"; test ! -L "$out/$file"
32
+ test "$(stat -c %s "$out/$file")" = "$bytes"
33
+ printf '%s %s\n' "$hash" "$file" >> "$out/transport_SHA256SUMS"
34
+ done < <(jq -r '.source_files[]|[.path,.sha256,.bytes]|@tsv' <<< "$contract")
35
+ (cd "$out"; sha256sum -c transport_SHA256SUMS)
36
+ cmp "$source/Cargo.lock" "$original/rust_native_generator/Cargo.lock"
37
+ df -h "$out" > "$out/storage_audit.txt"
38
+ rustc --version > "$out/toolchain.txt"; cargo --version >> "$out/toolchain.txt"
39
+ args=(--offline --locked --manifest-path "$source/Cargo.toml" --target-dir "$out/build" --config 'source.crates-io.replace-with="vendored-sources"' --config "source.vendored-sources.directory='$original/rust_vendor'")
40
+ cargo test "${args[@]}" --lib -- --test-threads=4 2>&1 | tee "$out/cpu_tests.log"
41
+ cargo build "${args[@]}" --release --lib --bin generate-full-native-owned-stream --bin archive-native-identities 2>&1 | tee "$out/compile.log"
42
+ test -z "$(find "$out/build/release/deps" "$out/build/release/build" -type l -print -quit)"
43
+ test -z "$(find "$out/build/release/deps" "$out/build/release/build" ! -type f ! -type d -print -quit)"
44
+ shopt -s nullglob
45
+ libraries=("$out"/build/release/deps/libfrontier_native_generator*.rlib)
46
+ serde=("$out"/build/release/deps/libserde_json*.rlib)
47
+ sqlite=("$out"/build/release/build/libsqlite3-sys-*/out)
48
+ (( ${#libraries[@]} == 1 && ${#serde[@]} == 1 && ${#sqlite[@]} == 1 ))
49
+ rustc --edition=2024 -O "$out/run_native_full_epoch_owner.rs" -L "dependency=$out/build/release/deps" -L "native=${sqlite[0]}" --extern "frontier_native_generator=${libraries[0]}" --extern "serde_json=${serde[0]}" -o "$out/run-native-full-epoch-owner" 2>&1 | tee "$out/harness_compile.log"
50
+ (cd "$out"; sha256sum build/release/generate-full-native-owned-stream build/release/archive-native-identities run-native-full-epoch-owner > runtime_SHA256SUMS; find build/release/deps build/release/build -type f -print0 | sort -z | xargs -0 sha256sum > artifact_SHA256SUMS; sha256sum -c artifact_SHA256SUMS; sha256sum -c transport_SHA256SUMS)
51
+ (cd "$original"; sha256sum -c SHA256SUMS)
52
+ echo 'LIVE_BUILD_ONLY_COMPLETE; full epoch execution, HTTP anchor, rotation and matched speed remain unverified'
molab_build_live_source_v6_20261004.sh ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Build only on the existing audited Molab; never starts generation or a runtime.
3
+ set -euo pipefail
4
+ (( $# == 4 )) || { echo 'source-zip original-native-source fresh-output audited-hostname required' >&2; exit 2; }
5
+ test ! -e "$3"; test ! -L "$3"
6
+ zip=$(realpath "$1"); original=$(realpath "$2"); out=$(realpath -m "$3"); host=$4
7
+ case "$zip:$original:$out" in /marimo/*:/marimo/*:/marimo/*) ;; *) exit 2;; esac
8
+ test "$(hostname)" = "$host"
9
+ for tool in jq unzip sha256sum cargo rustc nvidia-smi stat flock realpath ps awk sed grep sort cmp tee find xargs df; do command -v "$tool" >/dev/null; done
10
+ lock=/marimo/.quantum-native-full-workflow.lock
11
+ test ! -L "$lock"; if [[ -e "$lock" ]]; then test -f "$lock"; fi
12
+ exec 8>"$lock"; flock -n 8
13
+ test -z "$(nvidia-smi --query-compute-apps=pid --format=csv,noheader)"
14
+ ps -eo args= | awk '{name=$1; sub(/^.*\//,"",name); if(name ~ /^(generate[-_]full|verify[-_]full|verify[-_]cuda|frontier|archive[-_]native|run[-_]native[-_]full[-_]epoch)/) found=1} END {exit found}'
15
+ printf '%s %s\n' dfbdddd10fee0e78de8268efa6bfd90663c2960c7c54fbfa32eb7d70ad155053 "$zip" | sha256sum -c -
16
+ printf '%s %s\n' 3de55d3adaeb334acc957e5b57bb5838f07a87870c9d6f301ab0deb0fc8675a1 "$original/SHA256SUMS" | sha256sum -c -
17
+ (cd "$original"; sha256sum -c SHA256SUMS)
18
+ printf '%s %s\n' ae6a88c94083d9a40ffef1a0c5fed128aabe85db3ec3294cdf5f0779bbbac486 "$original/rust_native_generator/Cargo.lock" | sha256sum -c -
19
+ contract=$(unzip -p "$zip" INTEGRATION_CONTRACT.json)
20
+ jq -e '.schema=="molab_live_complete_source_transport_v1" and .full_source==true and (.source_files|length)==65 and ([.source_files[].path]|unique|length)==65 and all(.source_files[]; (.path|test("^(native_generator/([a-zA-Z0-9_]+\\.rs|Cargo\\.toml|Cargo\\.lock|stage37_primary\\.md)|run_native_full_epoch_owner\\.rs)$")) and (.sha256|test("^[a-f0-9]{64}$")) and (.bytes|type=="number"))' <<< "$contract" >/dev/null
21
+ # Hash-pinned archive must contain only contract files and the contract itself.
22
+ actual=$(unzip -Z1 "$zip" | sed 's@\\@/@g' | grep -v '/$' | sort)
23
+ expected=$( { jq -r '.source_files[].path' <<< "$contract"; echo INTEGRATION_CONTRACT.json; } | sort)
24
+ test "$actual" = "$expected"
25
+ test ! -e "$out"; test ! -L "$out"
26
+ mkdir "$out"
27
+ trap 'code=$?; printf "%s\n" "$code" > "$out/build_exit.txt"' EXIT
28
+ unzip -q "$zip" -d "$out"
29
+ source="$out/native_generator"
30
+ while IFS=$'\t' read -r file hash bytes; do
31
+ test -f "$out/$file"; test ! -L "$out/$file"
32
+ test "$(stat -c %s "$out/$file")" = "$bytes"
33
+ printf '%s %s\n' "$hash" "$file" >> "$out/transport_SHA256SUMS"
34
+ done < <(jq -r '.source_files[]|[.path,.sha256,.bytes]|@tsv' <<< "$contract")
35
+ (cd "$out"; sha256sum -c transport_SHA256SUMS)
36
+ cmp "$source/Cargo.lock" "$original/rust_native_generator/Cargo.lock"
37
+ df -h "$out" > "$out/storage_audit.txt"
38
+ rustc --version > "$out/toolchain.txt"; cargo --version >> "$out/toolchain.txt"
39
+ args=(--offline --locked --manifest-path "$source/Cargo.toml" --target-dir "$out/build" --config 'source.crates-io.replace-with="vendored-sources"' --config "source.vendored-sources.directory='$original/rust_vendor'")
40
+ cargo test "${args[@]}" --lib -- --test-threads=4 2>&1 | tee "$out/cpu_tests.log"
41
+ cargo build "${args[@]}" --release --lib --bin generate-full-native-owned-stream --bin archive-native-identities 2>&1 | tee "$out/compile.log"
42
+ test -z "$(find "$out/build/release/deps" "$out/build/release/build" -type l -print -quit)"
43
+ test -z "$(find "$out/build/release/deps" "$out/build/release/build" ! -type f ! -type d -print -quit)"
44
+ shopt -s nullglob
45
+ libraries=("$out"/build/release/deps/libfrontier_native_generator*.rlib)
46
+ serde=("$out"/build/release/deps/libserde_json*.rlib)
47
+ sqlite=("$out"/build/release/build/libsqlite3-sys-*/out)
48
+ (( ${#libraries[@]} == 1 && ${#serde[@]} == 1 && ${#sqlite[@]} == 1 ))
49
+ rustc --edition=2024 -O "$out/run_native_full_epoch_owner.rs" -L "dependency=$out/build/release/deps" -L "native=${sqlite[0]}" --extern "frontier_native_generator=${libraries[0]}" --extern "serde_json=${serde[0]}" -o "$out/run-native-full-epoch-owner" 2>&1 | tee "$out/harness_compile.log"
50
+ (cd "$out"; sha256sum build/release/generate-full-native-owned-stream build/release/archive-native-identities run-native-full-epoch-owner > runtime_SHA256SUMS; find build/release/deps build/release/build -type f -print0 | sort -z | xargs -0 sha256sum > artifact_SHA256SUMS; sha256sum -c artifact_SHA256SUMS; sha256sum -c transport_SHA256SUMS)
51
+ (cd "$original"; sha256sum -c SHA256SUMS)
52
+ echo 'LIVE_BUILD_ONLY_COMPLETE; full epoch execution, HTTP anchor, rotation and matched speed remain unverified'
molab_cpu_reader_optimized_source_v2_20261004.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8af76cf7225a80b1bd2e6de8c1297825d4b5e3fba67188134646fcf05d14565
3
+ size 231953
molab_live_complete_source_v4_20261004.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfbdddd10fee0e78de8268efa6bfd90663c2960c7c54fbfa32eb7d70ad155053
3
+ size 229918