You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+114Lines changed: 114 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,120 @@ Run these in any worktree before pushing a branch or opening a PR.
136
136
- The repository uses the special `TODO-``MUST-FIX` marker to block commits that temporarily disable tests. If a test must be skipped, leave a `// TODO-``MUST-FIX:` comment explaining why and create a follow-up issue.
137
137
- Never remove or ignore failing tests without understanding the root cause.
The codebase uses deterministic simulation testing to ensure reproducible test results. When working with simulation code or tests in `crates/core`, follow these guidelines:
142
+
143
+
#### ❌ DON'T: Use Non-Deterministic Time Sources
144
+
145
+
```rust
146
+
// BAD - Uses real time, non-deterministic
147
+
usestd::time::Instant;
148
+
letstart=Instant::now();
149
+
150
+
// BAD - Uses tokio's real time
151
+
tokio::time::sleep(Duration::from_secs(1)).await;
152
+
153
+
// BAD - tokio::time::timeout depends on real time
0 commit comments