Go to file
Mike Kell 1e93ca4a42 fix(workspace): resolve 51 linter diagnostics and fix two latent test bugs
All reported problems originated from clippy; flutter analyze was already
clean. The dominant cluster (44 errors) was in chronogrid_core::sync, whose
test module targeted a CRDT API that no longer existed - meaning that test
target had not compiled since Task 2.6.

Lint fixes:
- core/sync: realign tests to real TaskCrdt/NoteCrdt API (constructor arity,
  set_*(value, hlc) arg order, from_bytes vs load, Result<Option<String>>
  getters, and &mut receivers for Automerge save())
- core/crdt/doc: add impl Default for CrdtDoc; avoid approx_constant in test
- daemon: derive Default for Config; wire [logging].level into the tracing
  subscriber so the previously dead fields are functionally used
- crypto/keychain: use div_ceil
- net/swarm_key: drop needless borrow
- net/swarm_manager: collapse if-let into match arm
- ai: replace assert!(true) with a real VERSION assertion

Bug fixes exposed once the crate compiled:
- core/sync: SyncEngine::run moves a SwarmHandle (holding a broadcast::Sender
  clone) into the task, so RecvError::Closed is unreachable from an external
  event_tx drop. The old test asserted an impossible contract and hung; it is
  now torn down via JoinHandle::abort() with a new regression guard.
- ffi: serialize the 21 tests mutating the global ENGINE singleton behind a
  poison-tolerant engine_test_guard(), fixing an intermittent parallel-test
  race that was failing verify_agent_work.ps1.

Verification: clippy --workspace --all-targets --all-features = 0 warnings and
0 errors; cargo test --workspace --all-features = 221 passed / 0 failed;
flutter analyze clean; verify_agent_work.ps1 ALL CHECKS PASSED.
2026-08-23 17:29:46 -04:00
.cursor/rules cleaned up automated coding rule sets 2026-08-09 23:36:34 -04:00
apps fix(workspace): resolve 51 linter diagnostics and fix two latent test bugs 2026-08-23 17:29:46 -04:00
crates fix(workspace): resolve 51 linter diagnostics and fix two latent test bugs 2026-08-23 17:29:46 -04:00
docs feat(daemon): complete Task 2.7 - scaffold chronogrid_daemon headless binary 2026-08-23 15:06:50 -04:00
scripts fix(scripts): add D:\Strawberry perl path to verify_agent_work.ps1 2026-08-22 09:36:53 -04:00
.clinerules cleaned up automated coding rule sets 2026-08-09 23:36:34 -04:00
.gitignore feat(crypto): complete Task 1.2 - Argon2id master key derivation and OS keychain bindings 2026-08-09 23:44:56 -04:00
Cargo.lock feat(daemon): complete Task 2.7 - scaffold chronogrid_daemon headless binary 2026-08-23 15:06:50 -04:00
Cargo.toml feat(daemon): complete Task 2.7 - scaffold chronogrid_daemon headless binary 2026-08-23 15:06:50 -04:00
DECISION_LOG.md fix(workspace): resolve 51 linter diagnostics and fix two latent test bugs 2026-08-23 17:29:46 -04:00
flutter_rust_bridge.yaml feat(ffi): complete Task 1.5 - Flutter Rust Bridge FFI bindings 2026-08-20 20:53:17 -04:00