docs consolidation work
This commit is contained in:
@@ -124,9 +124,9 @@ Excititor workers now hydrate signature metadata with issuer trust data retrieve
|
||||
|
||||
`GET /v1/vex/statements/{advisory_key}` produces sorted JSON responses containing raw statement metadata (`issuer`, `content_hash`, `signature`), normalised tuples, and provenance pointers. Advisory AI consumes this endpoint to build retrieval contexts with explicit citations.
|
||||
|
||||
### 1.5 Postgres raw store (replaces Mongo/GridFS)
|
||||
### 1.5 PostgreSQL raw store
|
||||
|
||||
> Mongo/BSON/GridFS are being removed. This is the canonical design for the Postgres-backed raw store that powers `/vex/raw` and ingestion.
|
||||
> This is the canonical design for the PostgreSQL-backed raw store that powers `/vex/raw` and ingestion.
|
||||
|
||||
Schema: `vex`
|
||||
|
||||
@@ -167,7 +167,7 @@ Schema: `vex`
|
||||
3. If `size <= inline_threshold_bytes` (default 256 KiB) set `inline_payload=true` and store in `content_json`; otherwise store bytes in `vex_raw_blobs` and set `inline_payload=false`.
|
||||
4. Persist `content_size_bytes` (pre-canonical length) and `payload_hash` for integrity.
|
||||
|
||||
**API mapping (replaces Mongo/BSON)**
|
||||
**API mapping**
|
||||
List/query `/vex/raw` via `SELECT ... FROM vex.vex_raw_documents WHERE tenant=@t ORDER BY retrieved_at DESC, digest LIMIT @n OFFSET @offset`; cursor uses `(retrieved_at, digest)`. `GET /vex/raw/{digest}` loads the row and optional blob; `GET /vex/raw/{digest}/provenance` projects `provenance_json` + `metadata_json`. Filters (`providerId`, `format`, `since`, `until`, `supersedes`, `hasAttachments`) map to indexed predicates; JSON subfields use `metadata_json ->> 'field'`.
|
||||
|
||||
**Write semantics**
|
||||
@@ -178,8 +178,8 @@ List/query `/vex/raw` via `SELECT ... FROM vex.vex_raw_documents WHERE tenant=@t
|
||||
**Rollout**
|
||||
|
||||
1. Add migration under `src/Excititor/__Libraries/StellaOps.Excititor.Storage.Postgres/Migrations` creating the tables/indexes above.
|
||||
2. Implement `PostgresVexRawStore` and switch WebService/Worker DI to `AddExcititorPostgresStorage`; remove `VexMongoStorageOptions`, `IMongoDatabase`, and GridFS paths.
|
||||
3. Update `/vex/raw` endpoints/tests to the Postgres store; delete Mongo fixtures once parity is green. Mark Mongo storage paths as deprecated and remove them in the next release.
|
||||
2. Implement `PostgresVexRawStore` and switch WebService/Worker DI to `AddExcititorPostgresStorage`.
|
||||
3. Update `/vex/raw` endpoints/tests to the PostgreSQL store.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user