feat(ai): add personal summary models and retire Q&A
Add an admin-managed provider model catalog with per-user summary selection, migration backfill, and generation snapshots. Retire report creation and messaging while preserving owner-scoped history. Refs #15 #16 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
The supervisor requires Linux `/proc`, child-subreaper support and Python 3 (standard library only). Run `make test-e2e` from the project root after `make deps` and `make test-postgres`. The latter prepares the pinned embedded-postgres CLI v2.0.1/PostgreSQL 16.15.1 cache. Install Playwright's pinned Firefox beforehand if it is not already cached (`cd frontend && npx playwright install firefox`). These preparation steps may require network access; the E2E runner itself uses offline caches and never installs dependencies.
|
||||
|
||||
The runner builds the dedicated `backend/cmd/e2e` executable, starts a disposable `tradarr_e2e` database, applies the real migrations, and refuses a nonempty database. It ignores inherited application/test database URLs, chooses loopback ports, and bootstraps a reserved disposable admin. Exactly one fixture source is enabled. Provider roles refer to the loopback fake; the injected generation providers and scraper are fakes, with no concrete retrieval adapter instantiated. Production uses the same `internal/server` constructor with its existing real composition and scheduler enabled.
|
||||
The runner builds the dedicated `backend/cmd/e2e` executable, starts a disposable `tradarr_e2e` database, applies the real migrations, and refuses a nonempty database. It ignores inherited application/test database URLs, chooses loopback ports, and bootstraps a reserved disposable admin. Exactly one fixture source is enabled. The catalogue contains one explicit fake summary model. The new user selects it in the real preferences UI; new accounts have no default selection. The injected Laya ranker and summary provider are separate test doubles, with no concrete retrieval adapter instantiated and no legacy role fallback. Production uses the same `internal/server` constructor with its existing real composition and scheduler enabled.
|
||||
|
||||
OpenFIGI, an Ollama-compatible fake Laya and a fake scraper share a loopback HTTP service with `/audit` counters and structured call events. The ranking fake extracts the real candidate UUID from the request prompt and returns it in `ranked_article_ids`; the browser assertion checks that actual UUID in audit events against the saved outcome. No hard-coded fixture ID selects a candidate.
|
||||
|
||||
@ -16,6 +16,6 @@ The Make recipe execs a launcher whose parent is make. A detached Python watchdo
|
||||
|
||||
The E2E executable rejects nonliteral/nonloopback destination URLs and installs an HTTP transport that refuses external egress without DNS/proxy fallback. The temporary Vite configuration removes external font/preconnect links and adds a restrictive CSP. Playwright blocks nonloopback page requests and service workers; Firefox prefetch/speculative connections are disabled. No production frontend file or retrieval adapter is changed for this policy.
|
||||
|
||||
The Firefox journey covers admin login/account creation, new-user login, explicit OpenFIGI search/selection/follow, language/ranking preferences and fake-backed generation. It compares counts and hashes for `articles`, `article_symbols` and `scrape_jobs`, verifies retired routes are 404, reads the authenticated aggregate history, verifies its single-source counters, and rejects fixture article fields and actual candidate IDs in that outcome. HTTP success through the real application is required; API/provider routes are not mocked in the browser.
|
||||
The Firefox journey covers admin login/account creation, new-user login, explicit OpenFIGI search/selection/follow, language/ranking/model preferences and fake-backed generation. It checks the saved provider/model snapshot against the actual model recorded by the fake summary service. It compares counts and hashes for `articles`, `article_symbols` and `scrape_jobs`, verifies retired routes are 404, reads the authenticated aggregate history, verifies its single-source counters, and rejects fixture article fields and actual candidate IDs in that outcome. HTTP success through the real application is required; API/provider routes are not mocked in the browser.
|
||||
|
||||
`npm run test:e2e` alone still fails closed without a valid running stack manifest. Use `make test-e2e` for complete lifecycle management. The scenario has no automatic retry. Browser traces and logs can contain disposable credentials and are deliberately kept inside the cleaned workspace.
|
||||
|
||||
Reference in New Issue
Block a user