Skip to content

Commit 43dc682

Browse files
committed
docs(service-knowledge): the minimal preset mounts no queue
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
1 parent 640b356 commit 43dc682

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.changeset/37735-knowledge-record-sync-queue.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Metadata-protocol: none
99

1010
A save of a record a knowledge source indexes used to sync its document inside the write: with a realtime service composed, the save waited for the re-read, the split, the embedding call and the store write, all before the write's unit of work committed. A failed sync was one `warn` line and was never retried, and a write that then rolled back could leave a document built from a row that never committed, or delete the document of a row that still matched.
1111

12-
Where the kernel composes a durable `queue` service (the platform's `QueueServicePlugin` over a data engine, which the standard runtime always mounts) and a data engine is bound, the sync now runs through the `knowledge-record-sync` queue:
12+
Where the kernel composes a durable `queue` service (the platform's `QueueServicePlugin` over a data engine, which the standard runtime mounts on every preset but `minimal`) and a data engine is bound, the sync now runs through the `knowledge-record-sync` queue:
1313

1414
- **A save publishes and returns.** Either trigger — the realtime subscription, or the after-write hooks on a kernel without one — publishes one message per source that indexes the object on record change: the source's index key, the object, the record id and the reason (`event`, or `freshness` for the repair a search starts). Never a field value. The save does not wait for the embedder.
1515
- **After the commit, and never for a rollback.** The message is published through the engine's `runAfterOpenUnitsCommit`, once the write's own unit or a caller's `engine.transaction()` commits, and not at all when it rolls back. So nothing is processed before the write commits, and after a rollback the index equals the committed database.

‎content/docs/protocol/knowledge.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ leaves the index agreeing with the database.
954954
Where the kernel composes a durable `queue` service — the platform's
955955
`QueueServicePlugin` over a data engine, whose database adapter keeps messages
956956
in `sys_job_queue` — and a data engine is bound, the sync runs through that
957-
queue (ADR-0161 K1). The standard runtime always mounts `queue`.
957+
queue (ADR-0161 K1). The standard runtime mounts `queue` on every preset but `minimal`.
958958

959959
- **A save publishes; it does not sync.** For each source that indexes the
960960
written object on record change, either trigger (the realtime subscription,

‎packages/services/service-knowledge/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ writes or removes its document. The save does not wait for the embedder. A
2727
failed sync is retried (`recordSyncRetry`, eight attempts over about six and a
2828
half minutes by default), then kept as a dead letter (`listFailed`) that the
2929
reconcile repairs. This needs a durable `queue` service — the platform's
30-
`QueueServicePlugin` over the ObjectQL engine, which the standard runtime always
31-
mounts; with only the kernel's in-memory fallback the sync runs inline, as the
30+
`QueueServicePlugin` over the ObjectQL engine, which the standard runtime mounts
31+
on every preset but `minimal`; with only the kernel's in-memory fallback the sync runs inline, as the
3232
boot says once at `warn`. A host that mounts the service by hand adds:
3333

3434
```ts

0 commit comments

Comments
 (0)