1.4 KiB
1.4 KiB
1. OpenSpec Artifacts
- 1.1 Create proposal, design, spec, and tasks for durable metadata and log storage.
- 1.2 Validate the change with
openspec validate implement-durable-platform-storage --strict.
2. Durable Metadata Store
- 2.1 Add platform storage configuration for backend, metadata path, data directory, and log directory.
- 2.2 Implement a file-backed metadata store that persists repository snapshots and reloads them.
- 2.3 Wire platform startup to use the configured durable store by default while keeping memory store available.
- 2.4 Add tests proving metadata persistence and default admin idempotency across store reloads.
3. Segmented Log Body Store
- 3.1 Add a
LogBodyStoreservice boundary with append, duplicate lookup, and cursor query operations. - 3.2 Implement an in-memory log body store for tests and a file-segment log body store for durable startup.
- 3.3 Refactor log ingest/query service code to use
LogBodyStoreand persist before advancing stream metadata. - 3.4 Add tests for duplicate acknowledgement and cursor query after log store reload.
4. Documentation And Verification
- 4.1 Document storage backend choices and log storage guidance in platform protocol/API docs.
- 4.2 Run
cd platform && go test ./.... - 4.3 Run
scripts/check-structure.sh. - 4.4 Run
openspec validate implement-durable-platform-storage --strict.