brainy/tests
David Snelling 26e9c26852 feat(distributed): add distributed mode with multi-instance coordination
Implements Phase 1 and Phase 2 of distributed enhancements for horizontal scaling:

Phase 1 - Zero-Config Distributed Mode:
- Add DistributedConfigManager for shared S3 configuration coordination
- Implement explicit role configuration (reader/writer/hybrid) for safety
- Add instance registration with heartbeat and health monitoring
- Create hash-based partitioner for deterministic data distribution

Phase 2 - Intelligent Data Management:
- Add DomainDetector for automatic data categorization (medical, legal, product, etc.)
- Implement domain-aware search filtering for improved relevance
- Create role-based operational modes with specific optimizations
- Add HealthMonitor for comprehensive metrics tracking

Key Features:
- Multi-writer support with consistent hash partitioning
- Reader instances optimize for 80% cache utilization
- Writer instances optimize for batched writes
- Automatic domain detection and tagging
- Real-time health monitoring across all instances
- Cross-platform crypto utilities for browser compatibility

Safety Improvements:
- Require explicit role configuration (no automatic assignment)
- Validate role compatibility on startup
- Track instance health and performance metrics

Testing:
- Add comprehensive test suite for distributed features
- All 25 distributed tests passing
- Fixed domain filtering in search functionality

Documentation:
- Update README with distributed mode highlights
- Add examples showing reader/writer setup
- Document new capabilities and benefits

🤖 Generated with Claude Code
https://claude.ai/code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 12:18:58 -07:00
..
mocks feat(tests): add robust mock implementations and expand test coverage for S3 and OPFS storage 2025-07-21 13:42:10 -07:00
api-integration.test.ts **test(storage-adapter-coverage): improve search result validation and consistency in assertions** 2025-08-01 18:31:05 -07:00
core.test.ts **feat(models): enhance loader reliability and compatibility** 2025-08-01 18:31:37 -07:00
database-operations.test.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
dimension-standardization.test.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
distributed.test.ts feat(distributed): add distributed mode with multi-instance coordination 2025-08-04 12:18:58 -07:00
edge-cases.test.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
environment.browser.test.ts **feat(core, migration, docs): introduce dimension mismatch resolution tools and migration guide** 2025-07-25 13:38:56 -07:00
environment.node.test.ts **feat(core, migration, docs): introduce dimension mismatch resolution tools and migration guide** 2025-07-25 13:38:56 -07:00
error-handling.test.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
json-search-test.js **feat(search): enhance JSON document search with field-level filtering and prioritization** 2025-08-01 08:27:39 -07:00
multi-environment.test.ts **feat(scripts): add automated release workflow script** 2025-07-31 13:40:28 -07:00
opfs-storage.test.ts **feat(core, storage, tests): enhance verb construction with timestamps and metadata** 2025-07-25 09:44:10 -07:00
package-size-breakdown.test.ts feat(tests): replace old test scripts with updated test suite for storage and reporting 2025-07-21 12:47:20 -07:00
package-size-limit.test.ts **chore(scripts): add utility scripts and demo for database checks, CLI handling, and model bundling** 2025-08-01 16:23:15 -07:00
performance.test.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
s3-storage.test.ts **test(storage): add tests for S3 change log functionality** 2025-07-31 10:22:47 -07:00
setup.ts **feat(core): enhance logging, storage options, and testing coverage** 2025-07-17 10:00:28 -07:00
specialized-scenarios.test.ts **fix(storage): improve restoration and deletion logic in storage adapter** 2025-07-31 14:03:51 -07:00
statistics-storage.test.ts **feat(tests, docs, storage): add statistics storage tests and enhance documentation** 2025-07-24 16:24:02 -07:00
statistics.test.ts **feat(scripts): add automated release workflow script** 2025-07-31 13:40:28 -07:00
storage-adapter-coverage.test.ts **test(storage-adapter-coverage): improve search result validation and consistency in assertions** 2025-08-01 18:31:05 -07:00
storage-adapters.test.ts feat(tests): replace old test scripts with updated test suite for storage and reporting 2025-07-21 12:47:20 -07:00
tensorflow-patch.test.ts **test(tests): add comprehensive test suite for Brainy functionality** 2025-07-15 11:56:16 -07:00
test-matrix.md **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
type-utils.test.ts **feat(utils): add type utility functions and examples for runtime type management** 2025-07-31 14:24:16 -07:00
vector-operations.test.ts **test(storage-adapter-coverage): improve search result validation and consistency in assertions** 2025-08-01 18:31:05 -07:00