Files
browser/openspec/changes/add-mysql-platform-metadata-storage/tasks.md
T
2026-07-11 14:56:10 +08:00

1.0 KiB

1. OpenSpec Artifacts

  • 1.1 Create proposal, design, spec, and tasks for MySQL metadata storage configuration.
  • 1.2 Validate the change with openspec validate add-mysql-platform-metadata-storage --strict.

2. MySQL Metadata Storage

  • 2.1 Add platform config fields for PLATFORM_MYSQL_DSN and PLATFORM_LOG_BODY_BACKEND.
  • 2.2 Implement a MySQL-backed metadata snapshot store behind repo.Store.
  • 2.3 Wire router startup to support PLATFORM_STORAGE_BACKEND=mysql.
  • 2.4 Add tests for MySQL config loading, missing DSN failure, and log body backend selection.

3. Documentation And Comments

  • 3.1 Add commented MySQL examples to root/platform env examples and Docker compose.
  • 3.2 Update README docs with exact MySQL DSN examples and log storage guidance.

4. Verification

  • 4.1 Run cd platform && go test ./config ./api ./repo -count=1.
  • 4.2 Run docker compose config.
  • 4.3 Run scripts/check-structure.sh.
  • 4.4 Run openspec validate add-mysql-platform-metadata-storage --strict.