Hub rules-jax

rules-jax

v3 public Verified

Jax

JAX is Autograd and XLA, brought together for high-performance numerical computing and machine learning research. These rules govern JAX development, array transformations, and device-accelerated computing for AI agents.

@sigmashakeinc 2 pulls 6 rules published Apr 8, 2026 synced Nov 22, 2026 sigmashakeinc/rules/rulesets/rules-jax →
Severity
1 error 4 warn 1 info
demo.cast
JAX is Autograd and XLA, brought together for high-performance numerical computing and machine learning research. These rules govern JAX development, array transformations, and device-accelerated computing for AI agents.

Rules index

6 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

jax

jax-deprecated-optimizers warning log

jax.experimental.optimizers is removed in modern JAX. Migrate to Optax (recommended), or jax.example_libraries.optimizers. Example: import optax; optimizer = optax.adam(learning_rate=1e-3).

Rule source requires an active Pro or Enterprise subscription.
jax-no-custom-jvp-unreviewed info log

Custom JVP/VJP rules bypass JAX's automatic differentiation. Incorrect implementations silently produce wrong gradients. Verify the custom derivative against numerical finite-difference checks using jax.test_util.check_grads.

Rule source requires an active Pro or Enterprise subscription.
jax-no-io-callback-untrusted warning log

jax.experimental.io_callback and jax.pure_callback escape JAX's functional guarantees by calling arbitrary Python. Ensure callbacks are free of security-sensitive side effects (file writes, shell calls, network) since they may execute multiple times under vmap/pmap.

Rule source requires an active Pro or Enterprise subscription.
jax-no-numpy-random-in-jax warning log

np.random (NumPy global RNG) in JAX code is non-reproducible and not compatible with JAX's functional random key system. Use jax.random.PRNGKey and pass explicit keys: jax.random.normal(key, shape) — JAX requires explicit key threading for reproducible and parallelizable randomness.

Rule source requires an active Pro or Enterprise subscription.
jax-no-side-effects-in-jit warning log

Side effects (print, I/O, global mutation) inside @jax.jit functions execute only during tracing, not on every call. Use jax.debug.print() for device-side printing, or move side effects outside the jitted function to avoid silent bugs.

Rule source requires an active Pro or Enterprise subscription.
jax-no-unsafe-pickle-load error block

Pickle deserialization of JAX arrays or NumPy files with allow_pickle=True enables arbitrary code execution from untrusted model/data files (CWE-502). Use safetensors, orbax checkpointing, or msgpack-based serialization instead.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v3
Published
Apr 8, 2026
Source commits
0
Synced
Nov 22, 2026
Hash
0fb3136b957da5cab1d6f6656b2afae4e4aacb317f0d8cd40cbe80551d7076ef
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-jax/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-jax. The published version only bumps when a maintainer resyncs.

No commit history available.