You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6189b56
Browse filesBrowse the repository at this point in the historyBrowse files
Use DATABASE_URL and rename Postgres schema knowledge → memory
Hosts pass memory.databaseUrl or DATABASE_URL (same Postgres as the hub is
fine); tables live under the memory schema. KNOWLEDGE_DATABASE_URL remains a
deprecated alias. Fresh installs only for the schema rename.
capture.ts # captureDocument, deriveFromRawCapture — the write path
@@ -75,7 +75,9 @@ fallback)` parses a positive integer or throws.
75
75
76
76
| Var | Required? | Default | Notes |
77
77
|---|---|---|---|
78
-
|`KNOWLEDGE_DATABASE_URL`|**yes**| — | the engine's own pgvector Postgres |
78
+
|`DATABASE_URL`|**yes***| — | Postgres for the memory plane (`memory.*` schema). Same DB as host is fine. |
79
+
|`KNOWLEDGE_DATABASE_URL`| no | — |**Deprecated** alias for `DATABASE_URL`|
80
+
79
81
|`DB_POOL_MAX`| no |`8`| postgres-js pool size |
80
82
|`FTS_LANGUAGE`| no |`english`| text search config for the lexical channel; fixed into the generated column at migration time — changing it later requires rebuilding the column (recipe below), and `runMemoryMigrations` fails loudly if config and column disagree. Unqualified `pg_catalog` config names only — a schema-qualified config (`myschema.mycfg`) is rejected explicitly, both when configuring and when read back from an already-migrated column. |
81
83
|`EMBED_BASE_URL`|**yes**| — | embed endpoint root, no path suffix |
@@ -207,7 +209,7 @@ migration CHECK sets match the TS constants.
207
209
208
210
### Provenance and lineage (claim-bearing substrate)
209
211
210
-
Two axes on `knowledge.version`, orthogonal to ranking priors:
212
+
Two axes on `memory.version`, orthogonal to ranking priors:
211
213
212
214
| Column / field | Values | Meaning |
213
215
| --- | --- | --- |
@@ -220,7 +222,7 @@ A derived claim is a normal version with `provenance: inferred`, `lineageClass:
220
222
221
223
### Temporal model
222
224
223
-
See `docs/TEMPORAL.md`. On `knowledge.version`:
225
+
See `docs/TEMPORAL.md`. On `memory.version`:
224
226
225
227
| Column | Role |
226
228
| --- | --- |
@@ -471,7 +473,7 @@ search); otherwise it throws `MemorySearchInputError` (400).
471
473
entity edges; `toHit` builds the wire `SearchHit` (citation/open-target
472
474
resolution via `openTarget`, mapping known adapters — `artifact`, `task`,
473
475
`workflow_run`, `mail` — to a deep-linkable `{type, id}`, else a generic
474
-
`{type: "knowledge", id: documentId}`).
476
+
`{type: "memory", id: documentId}`).
475
477
11.**Evidence** — `deriveHybridEvidence`: `"none"` if zero hits; `"weak"` if
476
478
the lexical channel contributed zero rows (a dense-only result never
477
479
reports `"strong"`); otherwise `deriveEvidence` on the lexical rows —
@@ -599,7 +601,7 @@ Document access is Interchange authz — **not** a mini-ACL.
599
601
600
602
- Write path: `resolveAccessTags` always writes `memory.owner:<caller>` and
0 commit comments