Module registry

Module registry 

Source
Expand description

Rule registry: version history, validation, and swap orchestration.

The registry is the heart of hot rule reload. It owns the per-rule version history, enforces monotonic versioning and dependency integrity, and delegates the physical GPU swap to a pluggable RuleSwapBackend.

For v1.1 the production CUDA backend is not yet wired here โ€” use NoopSwapBackend in tests and inject the real backend from ringkernel-cuda when available.

Structsยง

NoopSwapBackend
No-op backend that succeeds instantly. Useful for tests.
RuleRegistry
Hot-swappable rule registry.
RuleVersionHistory ๐Ÿ”’
Per-rule version history and status tracking.

Traitsยง

RuleSwapBackend
Pluggable GPU-side swap backend.
SignatureVerifier
Pluggable signature verifier.

Functionsยง

compute_cap_compatible ๐Ÿ”’
Whether rule_cap can run on a device reporting device_cap.
parse_sm ๐Ÿ”’