Commit Graph

34 Commits

Author SHA1 Message Date
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
Mike Kell c1f7eabda7 feat(daemon): complete Task 2.7 - scaffold chronogrid_daemon headless binary 2026-08-23 15:06:50 -04:00
Mike Kell 9d3bd8811f chore: merge feature/2.6-core-net-sync-integration into main 2026-08-22 13:04:49 -04:00
Mike Kell 98ff5aeb07 feat(core): complete Task 2.6 - SyncEngine P2P integration into chronogrid_core 2026-08-22 13:04:38 -04:00
Mike Kell 7a8736b297 chore: merge feature/2.5-p2p-swarm-manager into main 2026-08-22 12:02:56 -04:00
Mike Kell dcdb9a39ad feat(chronogrid_net): complete Task 2.5 - P2P Swarm Manager 2026-08-22 12:02:47 -04:00
Mike Kell 40c45bbae7 chore: merge feature/2.4-crdt-delta-sync-protocol into main 2026-08-22 11:33:54 -04:00
Mike Kell febf348bd6 feat(chronogrid_net): complete Task 2.4 - CRDT Delta Sync Protocol 2026-08-22 11:33:45 -04:00
Mike Kell 7b567b3f78 chore: merge feature/2.3-transport-discovery-layer into main 2026-08-22 10:35:15 -04:00
Mike Kell e441c22d4e feat(chronogrid_net): complete Task 2.3 - Transport & Discovery Layer 2026-08-22 10:35:06 -04:00
Mike Kell 7f74656889 fix(scripts): add D:\Strawberry perl path to verify_agent_work.ps1 2026-08-22 09:36:53 -04:00
Mike Kell f13d044111 fix(scripts): add cargo and perl auto-discovery to verify_agent_work.ps1 2026-08-22 09:26:07 -04:00
Mike Kell 5f714c631c fix(chronogrid_net): correct ed25519-dalek v2 verifying_key() return type (by-value not by-ref) 2026-08-22 09:22:53 -04:00
Mike Kell f3967e2b16 chore: merge feature/2.2-node-identity-swarm-key into main 2026-08-22 09:13:56 -04:00
Mike Kell dfeb78221c feat(chronogrid_net): complete Task 2.2 - Node Identity & Swarm Key 2026-08-22 09:13:48 -04:00
Mike Kell 65c1f560e4 chore: merge feature/2.1-extend-schema-missing-entities into main 2026-08-22 08:56:18 -04:00
Mike Kell 3edce7e119 feat(core): complete Task 2.1 - Extend Schema with Missing Phase 2 Entities 2026-08-22 08:56:10 -04:00
Mike Kell 2039f5ae48 fix(scripts): verify_agent_work.ps1 - remove unicode em-dashes, add cargo PATH discovery 2026-08-22 08:44:04 -04:00
Mike Kell a332b304e9 docs(arb): architecture review, master development plan v2, phase 2-5 task files 2026-08-22 08:40:58 -04:00
Mike Kell 0813449416 updated 2026-08-21 05:39:55 -04:00
Mike Kell eef3e1558f chore: merge feature/task-1.5-ffi-bridge into main 2026-08-20 20:53:33 -04:00
Mike Kell 5b17abe84d feat(ffi): complete Task 1.5 - Flutter Rust Bridge FFI bindings 2026-08-20 20:53:17 -04:00
Mike Kell 99776a1a61 chore: merge feature/1.4-automerge-crdt-integration into main 2026-08-20 20:09:57 -04:00
Mike Kell a96a9e63fd feat(core): complete Task 1.4 - Automerge CRDT integration for task and note register mutations 2026-08-20 20:09:43 -04:00
Mike Kell fd48f2c253 chore: merge feature/task-1.3 into main 2026-08-19 06:24:40 -04:00
Mike Kell f445d859ac feat(core): complete Task 1.3 - SQLCipher 4.x database initializers 2026-08-19 06:24:32 -04:00
Mike Kell e23dce3793 chore(docs): fix markdownlint warnings across all markdown files 2026-08-10 00:03:33 -04:00
Mike Kell f596ff46cb chore: merge feature/1.2-crypto-argon2id-keychain into main 2026-08-09 23:45:12 -04:00
Mike Kell bcbc9bea3d feat(crypto): complete Task 1.2 - Argon2id master key derivation and OS keychain bindings 2026-08-09 23:44:56 -04:00
Mike Kell 5277879dc0 cleaned up automated coding rule sets 2026-08-09 23:36:34 -04:00
Mike Kell 2ea039de7e feat(core): complete Task 1.1 - initialize Rust Cargo workspace 2026-08-09 23:22:03 -04:00
Mike Kell 79ec7baaf4 docs: populate technical specs, SQLCipher schema, CRDT protocol, and fix linting 2026-08-09 22:52:51 -04:00
Mike Kell 8297356091 docs: populate technical specifications, schema contracts, and ADR template 2026-08-09 22:49:02 -04:00
Mike Kell 25d41189a3 Initial commit: Complete OSAD architecture, specs, and repository structure 2026-08-09 22:31:22 -04:00