refactor(store)!: remove the SQLite task store, the PocketBase event store and the SQLite session store

The State Store, event capture and Gateway conversations already serve from
PostgreSQL. This deletes internal/store and internal/infrastructure/edastore,
the SQLite gateway session store and openProductionTaskStore, and the -db
recovery path on a legacy task file; backup, restore, validate and rollback
work on the database database_url names.

- The binding-secret cipher moves to internal/infrastructure/bindingcipher and
  ToolCall to internal/infrastructure/postgres.
- NewSessionStoreMemory is now a pure in-memory store that passes the shared
  SessionStore conformance suite.
- Tests run against PostgreSQL through internal/infrastructure/postgres/pgstore;
  legacyimport/legacyfixture writes the legacy files the import and the boot
  gate read.
- The cron dialect is owned in internal/domain/scheduling, so
  github.com/pocketbase/pocketbase and pocketbase/dbx leave go.mod.
  modernc.org/sqlite stays for the one-time import (legacyread).
- The UI and Messaging architecture gates ban the Postgres and legacy readers
  in place of internal/store.
This commit is contained in:
sam committed 2026-09-24 14:43:50 +10:00
1 parent dda12dcdba
commit ae552db7e0
90 files changed
+1022 -1453

No files matched your search

+4 -9
View File
@@ -4,28 +4,23 @@ import (
"encoding/json"
"log/slog"
"net/http"
"path/filepath"
"strings"
"testing"
"github.com/samcharles93/archie-core/internal/domain/binding"
"github.com/samcharles93/archie-core/internal/domain/mapping"
"github.com/samcharles93/archie-core/internal/domain/workflow"
"github.com/samcharles93/archie-core/internal/infrastructure/edastore"
"github.com/samcharles93/archie-core/internal/store"
"github.com/samcharles93/archie-core/internal/infrastructure/postgres/pgstore"
)
// bindingTestServer wires a Server backed by a single *store.Store for all
// bindingTestServer wires a Server backed by a single *pgstore.TaskDB for all
// three dashboards surfaces (Captures, Mappings, Bindings) and seeds the
// one workflow binding tests need to pass server-side validation.
func bindingTestServer(t *testing.T) *Server {
t.Helper()
s, err := store.Open(t.Context(), filepath.Join(t.TempDir(), "test.db"))
if err != nil {
t.Fatal(err)
}
s := pgstore.Open(t)
t.Cleanup(func() { _ = s.Close() })
eda := edastore.OpenTest(t)
eda := pgstore.EDA(t, nil)
return &Server{
Store: s,
Log: slog.New(slog.DiscardHandler),