Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/tree/main/om/ribbon # aien-sovereign-core-mv AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-sovereign-core-mv / om / ribbon` `d4f44fa` ribbon gate: refresh stale trusted inputs (omc pin for omega.lock `f9a9a40b`, reviewed Cargo.lock and qwen3_moe_omega.rs digests) Drake Stapleton committed 2026-11-06 ``` .. .crumb 581 ADAPTIVE-READING.md 2513 ATTENTION-MIRROR.md 3951 CHECKPOINT-27B.md 2553 FINAL-READING-RESULT.md 4021 QUALIFICATION.md 8201 READING-27B.md 5429 README.md 6573 SCOPED-READING.md 3011 build-native.sh 1145 calculations.json 5044 check.py 8474 check_evidence.py 6370 check_native.py 1431 check_overlap.py 3054 chip-trace.jsonl 72930 chip-unions.jsonl 4040 chip_probe.c 9405 compiler-bootstrap.json 703 driver-observations.json 1215 measured-Cargo.lock.txt 131512 measured-pipeline.rs.txt 13649 measured-qwen3_moe_omega.rs.txt 239406 model-files.sha256 981 model_check.py 4545 mutants.py 1627 pipeline.om 6059 q38-adaptive-boundary-profile.rs.txt 3902 q38-adaptive-final-validation.json 40442 q38-adaptive-first-validation.json 12208 q38-adaptive-profile.rs.txt 3823 q38-adaptive-reading-validation.json 3569 q38-attention-followup-validation.json 11973 q38-attention-integration-validation.json 31390 q38-attention-serving128-validation.json 2585 q38-checkpoint-validation.json 6059 q38-compare-adaptive-boundaries.py.txt 1517 q38-matrix-reading-screens.json 7196 q38-model-files.json 16299 q38-prefill-profile.rs.txt 3685 q38-reading-input-tokens.json 50241 q38-reading-request.json 20232 q38-reading-scratch-validation.json 55869 q38-scoped-input-tokens.rs.txt 847 q38-scoped-reading-validation.json 13308 q38-summarize-adaptive-serving.py.txt 4284 q38-workspace-allocation-counter.c.txt 875 q38-workspace-allocation-profile.rs.txt 4210 qualification-samples.json 41943 run.sh 830 summarize_trace.py 2348 test_driver.om 918 ``` README.md # Known-demand ribbon controller `pipeline.om` implements the bounded read, verify, copy and publication control for Core #631 in Omega. It is a function unit: the caller owns one 4096-element `ulong` state array, serializes calls, and retains the associated staging buffers. There are at most 64 outstanding expert records and one or two active staging buffers. The existing reader may reserve a larger bounded pool; this controller limits how many of those buffers are in use, not how many were preallocated. The byte budget is independent of the record count. Expert keys are supplied by the real router or another source of already-known demand. There is no prediction or replacement of an expert. Each scheduled action names a ticket containing the record slot and a generation. An old ticket cannot complete, pin or evict a newer occupant of the same record. Generations survive reinitialization. A live instance cannot be reset while any record remains. Cancellation, timeout and shutdown prohibit publication while retaining any buffer still owned by a reader or copier until it acknowledges completion. Pins prevent eviction until the consumer has retired its work. The controller does not perform file reads, hash verification, GPU copies or fences. Its caller must report read success only after complete bytes, digest and layout verification; copy success only after device visibility is established. A read in progress may coexist with the other buffer's verification/copy or with GPU consumption of a published expert. These are scheduling permissions, not evidence that the serving loop currently overlaps them. `aien-heartbeat/src/pager/pipeline.rs` attaches the existing verified read adapter and slot backend to these actions. It uses the Rust declarations generated by Omega Bridge. The optional `ribbon-omega` feature enables this attachment. `AIEN_RIBBON_OMEGA_BUFFERS=1` or `2` selects it in the paged model FFN. Unset keeps the original grouped implementation. A selection without the feature is refused. The new path computes ready experts individually and writes each result at its original router position, preserving the final combination order. One buffer is the synchronous control: the next read starts only after the current consumer returns, and cached experts are consumed before any miss read is submitted. Two buffers permit the next read during consumption. Cache hits perform no read in either mode. The host test checks these ordering properties directly, including both cache-hit positions in a mixed hit/miss request, without inferring them from elapsed time. The request and result wire fields and operation codes are documented at the top of the source. `test_driver.om` is a binary test transport, not a serving process. `check.py` independently models ownership using Python objects. `mutants.py` removes publication, generation, pin and budget checks and requires the same tests to catch each broken implementation. Python is only test infrastructure. Run the host gate: ``` OMEGA_OMC=/path/to/pinned/omc bash om/ribbon/run.sh ``` The gate pins the existing Core compiler digest. Build and verify the native attachment with `build-native.sh`, supplying `OMEGA_BRIDGE_SOURCE` at its pinned revision and `OMEGA_NATIVE_OMC` at the bridge's pinned compiler. The script prints the three build/run environment settings. Compile the caller with `--features ribbon-omega`. No compiler, bridge or runtime is downloaded or installed. `chip_probe.c` is an external measuring instrument, not production code. It connects the compiled policy to direct file reads, OpenSSL SHA256 (test oracle only), and the existing native FP8 slot API. It compares every result with a fully resident tensor and includes a corrupted-read control. This measures projections; it does not establish a complete-model improvement. Full-model single-buffer/two-buffer acceptance and deployment remain separately recorded. The probe records separate read, verification, copy and compute intervals using one monotonic clock. Its `read_ns` legacy total includes verification. Its `read_compute_pair_overlap_ns` is a sum over pairs of intervals, which can count simultaneous reads twice; use the interval union for wall-time overlap. `model_check.py BINARY CHECKPOINT GOLDEN OUTPUT --gpu-library ARCHIVE --omega-revision REVISION --bridge-library LIBRARY` runs the full-model comparison. The binary must be `own30b_check` built with `ribbon-omega`. The instrument retains a grouped run, excluded warmups for one and two buffers, and five alternating pairs. It requires the same token IDs and checks the archive digest embedded in the binary. Per-token arrival times, completed-generation time, read/verification/copy totals and process peak resident memory are retained. These Python programs are external testing instruments, not runtime dependencies. The experiment's GPU archive is built from Omega `ba5559d9b1030d5d966cc7db2464e466edea59a1` and its pinned Physics source. Core's current default Omega pin predates the required slot exports. An explicit `AIEN_OMEGA_GPU_LIB` build is a development override and does not qualify as a release build. This feature does not silently upgrade that pin or a live server. ## Resident 27B reading work The 27B reader and adaptive matrix profile are tracked with Ribbon under Core #710. The final adaptive candidate preserves complete model scores and passes serving and continuation checks through 128,000 tokens, all native host targets and full Core preflight. Its receipt contains source and binary identities and separates shared-machine observations from the quiet timing qualification still to run. This resident dense-model work does not attach the 30B storage-fed expert pipeline to 27B or deploy a new default. The selected 27B result combines the verified adaptive reader with cached attention history , carrying the 30B memory mechanism into the resident reader. Complete-model score parity, all 83 native host targets, full Core preflight, short serving and retrieval/continuation checks through 128,000 actual tokens pass. The paired 32K server comparison improved first-visible response from 108.372 to 104.728 seconds. This is a shared-machine observation; quiet performance qualification, independent review, dependency-order merging and deployment remain separate. The selected-result page links the immutable evidence and names the experiments excluded from it.