brainy/src/storage/adapters
David Snelling 8976f274f3 feat: migrate system metadata from 'index' to '_system' directory with backward compatibility
BREAKING CHANGE: System metadata location changed from 'index/' to '_system/' directory

- Rename INDEX_DIR to SYSTEM_DIR following database conventions
- Implement dual-read/write strategy for zero-downtime migration
- Add automatic migration from old to new location on first access
- Support mixed service versions sharing S3/cloud storage
- Add 30-day grace period for gradual rollout (configurable)
- Store distributed config alongside statistics in _system folder
- Add comprehensive migration guide and documentation

Migration features:
- Read from both locations (new first, fallback to old)
- Write to both during migration period
- Automatic data migration when found only in old location
- Services can update independently without coordination
- Full backward compatibility for production deployments

The change improves clarity ('_system' better represents system metadata than 'index')
and follows standard database conventions (MongoDB's _system, PostgreSQL's pg_*).
2025-08-06 09:45:56 -07:00
..
baseStorageAdapter.ts feat: add verb and noun metadata handling in storage adapters 2025-08-03 10:47:55 -07:00
batchS3Operations.ts fix(build): resolve TypeScript compilation errors in optimization modules 2025-08-03 16:51:20 -07:00
fileSystemStorage.ts feat: migrate system metadata from 'index' to '_system' directory with backward compatibility 2025-08-06 09:45:56 -07:00
memoryStorage.ts feat: migrate system metadata from 'index' to '_system' directory with backward compatibility 2025-08-06 09:45:56 -07:00
opfsStorage.ts refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
optimizedS3Search.ts fix(storage): resolve pagination warnings and improve S3 adapter performance 2025-08-05 07:22:05 -07:00
s3CompatibleStorage.ts feat: migrate system metadata from 'index' to '_system' directory with backward compatibility 2025-08-06 09:45:56 -07:00