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.