Index Rebuild¶
Incrementally (re)build the consolidated index (work_buddy/index/) into its separate db. Flag-gated — a no-op while index.enabled is false; when enabled it refreshes the named partition (including native journal, projects, contracts, or personal_knowledge), or all partitions when none is given. Database partitions snapshot durable search events, build and verify source/index parity, then acknowledge exactly that snapshot; interruption leaves replayable lag. The result carries wb.search-outbox-delivery/v1 readiness evidence. Pass force:true only for a deliberate partition backfill. The op self-skips while any build holds the shared writer gate.
Skill name: index_rebuild
Category: context
Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
force |
bool |
No | Full partition backfill using the same build-verify-ack delivery boundary (default False = incremental replay/content diff) |
max_items |
int |
No | Positive per-run cap on changed/deleted source items for a named incremental partition build; partial progress resumes automatically (incompatible with force) |
max_vector_batches |
int |
No | Positive per-run cap on 256-document missing-vector batches for a named incremental partition build; partial progress resumes automatically (incompatible with force) |
partition |
str |
No | Partition to (re)build (e.g. 'knowledge'); omit to build all partitions |