Repository navigation
feat(moe): generation-safe expert slot reservations and retirement (#18) - #24
Merged
Merged
Conversation
- Serialize read vs complete/retire per token with read_in_progress guard (FS_ERR_BUSY, no staging memcpy race) - Validate expert_id on publish/read so forged tokens cannot publish wrong bytes - Evict all duplicate incarnations of one expert (evict-all) - Snapshot in_speculative under mu in overlap execute (TSan race)
Contributor
Author
Adversarial Hardening & Public-Roads Audit Receipt (
|
# Conflicts: # CMakeLists.txt # Makefile
# Conflicts: # CMakeLists.txt # Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #18.
Summary
generation& explicit retirement tokens (include/fs_moe_stream.h,src/fs_moe_stream.cpp): introducesfs_slot_reservation_t,fs_io_token_t, unique per-leasetoken_id, and 7 new C11-safe APIs for explicit reserve → staged read → generation-checked completion → accelerator lease → single-retirement lifecycle.token_id).tests/test_slot_retirement.cpp,tests/test_c11_abi.c, wired intoMakefile&CMakeLists.txt): 7 suites covering stale completion, deferred recycle by consumer and I/O, exact-single retirement (double-retire rejection), realpread, 24-ordering permutation matrix, and 8-thread concurrency stress.Verification
make clean && make verify: PASS (0 warnings under-std=c11/-std=c++17 -Wall -Wextra -Werror, clean-room audit 0 violations).-fsanitize=address,undefined -fno-sanitize-recover=all): PASS (0 errors).-fsanitize=thread): PASS (0 data races under 8-thread stress).