Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
5. Every correction: reflect on the mistake, plan to avoid repeating it.
6. All updates must be happened on the worktree branch, not main.
7. Use `brainstate.random` instead of `jax.random` directly for all random number generation.
8. Write spec and plan under `doc/specs` before implementation, so they're available for reference during implementation.
8. Write spec and plan under `docs/specs` before implementation, so they're available for reference during implementation.
9. Tests should >90% coverage, but focus on meaningful tests that cover edge cases and critical paths, not just trivial lines.
10. Maintain compatibility with JAX versions >= 0.9.0. Guard any version-specific behavior in `brainstate/_compatible_import.py`, preferring feature/shape detection over hard version checks.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Decisions already made:

Workflow, per AGENTS.md:
1. Create the worktree branch `fix/audit-high-medium`. Nothing is committed to main.
2. Write a spec at `doc/specs/2026-10-audit-fixes.md`, a copy of this plan with the bug table.
2. Write a spec at `docs/specs/2026-10-audit-fixes.md`, a copy of this plan with the bug table.
3. For each bug, first write a failing regression test in the matching `*_test.py`, then make the fix.
4. Use `brainstate.random` in tests, never `jax.random`.
5. Version-specific code goes in `_compatible_import.py`, using feature detection.
Expand Down
File renamed without changes.
Loading