TryDotAtwo commited on
Commit
c5fc4f0
·
verified ·
1 Parent(s): a87fe24

Stage full native combined reader and compiler candidate

Browse files

Publish the complete hash-pinned source package and unchanged full 10000-root harness after 194 passing local CPU tests. Actual locked Linux build, C++ producer parity, full10000 crossreader comparison, matched GPU speed, 1000-epoch campaign and strict storage bound remain unverified. Existing artifacts retained.

COMBINED_NATIVE_FULL_CANDIDATE_20261004.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Full native combined candidate — 2026-10-04
2
+
3
+ Current priority: the full generator with C++/CUDA computation and Rust control. The reduced smoke subset was cancelled by user clarification on 2026-10-01 at 16:31.
4
+
5
+ This staged package combines the frozen SQLite snapshot fix, shared root validation across all four reader modes, and one parse of the paid native compiler response. Every mode still performs actual bank admission and complete independent returned-batch comparison. Schema and bank-seal fences run before each mode and after the final mode. The SQLite SELECT is closed before mutable admission callbacks.
6
+
7
+ Local combined validation: 194 CPU tests passed, zero failed, five actual-CUDA tests ignored; non-test Rust compilation passed. These fixtures include all 14 widths, complete field/order reader comparisons, 17 corruption cases and mutable bank/schema refusal. Basis/composition fixtures do not constitute execution of the real C++ producer. Local test duration is not generator performance.
8
+
9
+ The ZIP has 65 hash/size-pinned source files plus its contract. The original full 10,000-root harness is unchanged.
10
+
11
+ Source ZIP SHA-256: `d11f305ad35e093cce57e182c00d9c400fd1473ee084f2d65801197a0b1fff59`.
12
+
13
+ Builder SHA-256: `798eef69a21a55929ba2417ee8a2d20b465455e7a830d3bebc744944bd38581b`.
14
+
15
+ Still unverified for this combined candidate: Linux offline/locked build, actual C++ library parity, complete 10,000-root crossreader comparison, matched full-workload GPU speed, the 1,000-epoch campaign, durable HF rotation and a strict 8 GB peak bound. No measured speedup or production deployment is claimed. Earlier published artifacts are retained.
combined_native_full_build_v1_20261004.sh ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ gpu_pids=$(nvidia-smi --query-compute-apps=pid --format=csv,noheader)
14
+ test -z "$gpu_pids"
15
+ 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}'
16
+ printf '%s %s\n' d11f305ad35e093cce57e182c00d9c400fd1473ee084f2d65801197a0b1fff59 "$zip" | sha256sum -c -
17
+ printf '%s %s\n' 3de55d3adaeb334acc957e5b57bb5838f07a87870c9d6f301ab0deb0fc8675a1 "$original/SHA256SUMS" | sha256sum -c -
18
+ (cd "$original"; sha256sum -c SHA256SUMS)
19
+ printf '%s %s\n' ae6a88c94083d9a40ffef1a0c5fed128aabe85db3ec3294cdf5f0779bbbac486 "$original/rust_native_generator/Cargo.lock" | sha256sum -c -
20
+ contract=$(unzip -p "$zip" INTEGRATION_CONTRACT.json)
21
+ 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
22
+ # Hash-pinned archive must contain only contract files and the contract itself.
23
+ actual=$(unzip -Z1 "$zip" | sed 's@\\@/@g' | grep -v '/$' | sort)
24
+ expected=$( { jq -r '.source_files[].path' <<< "$contract"; echo INTEGRATION_CONTRACT.json; } | sort)
25
+ test "$actual" = "$expected"
26
+ test ! -e "$out"; test ! -L "$out"
27
+ mkdir "$out"
28
+ trap 'code=$?; printf "%s\n" "$code" > "$out/build_exit.txt"' EXIT
29
+ unzip -q "$zip" -d "$out"
30
+ source="$out/native_generator"
31
+ while IFS=$'\t' read -r file hash bytes; do
32
+ test -f "$out/$file"; test ! -L "$out/$file"
33
+ test "$(stat -c %s "$out/$file")" = "$bytes"
34
+ printf '%s %s\n' "$hash" "$file" >> "$out/transport_SHA256SUMS"
35
+ done < <(jq -r '.source_files[]|[.path,.sha256,.bytes]|@tsv' <<< "$contract")
36
+ (cd "$out"; sha256sum -c transport_SHA256SUMS)
37
+ cmp "$source/Cargo.lock" "$original/rust_native_generator/Cargo.lock"
38
+ df -h "$out" > "$out/storage_audit.txt"
39
+ rustc --version > "$out/toolchain.txt"; cargo --version >> "$out/toolchain.txt"
40
+ 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'")
41
+ cargo test "${args[@]}" --lib -- --test-threads=4 2>&1 | tee "$out/cpu_tests.log"
42
+ cargo build "${args[@]}" --release --lib --bin generate-full-native-owned-stream --bin archive-native-identities 2>&1 | tee "$out/compile.log"
43
+ test -z "$(find "$out/build/release/deps" "$out/build/release/build" -type l -print -quit)"
44
+ test -z "$(find "$out/build/release/deps" "$out/build/release/build" ! -type f ! -type d -print -quit)"
45
+ shopt -s nullglob
46
+ libraries=("$out"/build/release/deps/libfrontier_native_generator*.rlib)
47
+ serde=("$out"/build/release/deps/libserde_json*.rlib)
48
+ sqlite=("$out"/build/release/build/libsqlite3-sys-*/out)
49
+ (( ${#libraries[@]} == 1 && ${#serde[@]} == 1 && ${#sqlite[@]} == 1 ))
50
+ 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"
51
+ (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)
52
+ (cd "$original"; sha256sum -c SHA256SUMS)
53
+ echo 'LIVE_BUILD_ONLY_COMPLETE; full epoch execution, HTTP anchor, rotation and matched speed remain unverified'
combined_native_full_source_v1_20261004.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d11f305ad35e093cce57e182c00d9c400fd1473ee084f2d65801197a0b1fff59
3
+ size 235832