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
4 changes: 2 additions & 2 deletions bin/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ done
# 3. Rust checks
if git diff --cached --name-only | grep -q '\.rs$'; then
echo "→ Rust: cargo fmt check..."
cargo fmt -- --check || { echo "❌ Run 'cargo fmt' first"; exit 1; }
( cd rust && cargo fmt --all -- --check ) || { echo "❌ Run 'cargo fmt --all' in rust/ first"; exit 1; }

echo "→ Rust: cargo clippy..."
cargo clippy --workspace -- -D warnings || exit 1
( cd rust && cargo clippy --workspace -- -D warnings ) || exit 1
fi

# 4. Python checks
Expand Down
2 changes: 1 addition & 1 deletion rust/crates/agentforge-long-horizon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! ## Deep audit (2026-06-13): bottlenecks, logical errors, data races
//!
//! ### Data races / consistency
//! - Safe Rust + &mut self + [lints] forbid(unsafe_code) eliminates intra-process data races.
//! - Safe Rust + &mut self + `lints` forbid(unsafe_code) eliminates intra-process data races.
//! - Cross-process races on shared ~/.agentforge/long_horizon/*.json remain possible (no flock).
//! Mitigation (existing): atomic write via tmp+rename in checkpoints (reader never sees torn JSON).
//! Added: force_persist_task + import_task use same atomic path.
Expand Down
Loading