🚨 ARCHITECTURAL DISASTER: THREE Competing Type Sources Discovered
## Critical Investigation Results **DISASTER CONFIRMED**: Agents discovered THREE type sources instead of ONE: 1. foxhunt-common-types/ (SHOULD NOT EXIST - still active!) 2. trading_engine/src/types/ (massive duplication) 3. common/src/types.rs (depends on competing crate) ## Evidence of Violations - foxhunt-common-types still in workspace members (line 86) - common/Cargo.toml depends on foxhunt-common-types (line 48) - 48+ duplicate type definitions across OrderSide, OrderStatus, OrderType - Compilation failures due to competing imports ## Immediate Action Required - Choose ONE canonical source - DELETE foxhunt-common-types completely - Consolidate ALL types to single source - Fix THREE-WAY import chaos 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,7 @@ pub mod constants;
|
||||
pub mod database;
|
||||
pub mod error;
|
||||
pub mod traits;
|
||||
pub mod trading;
|
||||
pub mod types;
|
||||
|
||||
/// Prelude module for convenient imports
|
||||
@@ -46,5 +47,11 @@ pub mod prelude {
|
||||
pub use crate::constants::{DEFAULT_POOL_SIZE, MAX_QUERY_TIMEOUT_MS, SERVICE_DEFAULTS};
|
||||
|
||||
// Re-export common types
|
||||
pub use crate::types::{ConfigVersion, ServiceId, ServiceStatus, Timestamp};
|
||||
pub use crate::types::{ConfigVersion, ServiceId, ServiceStatus, RequestId, ConnectionInfo, ResourceLimits};
|
||||
|
||||
// Re-export trading types
|
||||
pub use crate::trading::{
|
||||
BookAction, Currency, MarketRegime, OrderSide, OrderStatus, OrderType,
|
||||
Side, TickType, TimeInForce,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user