Metis · Librarian — Index Pending Layers
index_pending_layersIndexes pending knowledge layers with manually added documents, skipping layers already indexing. Set confirm to false to report pending work without starting.
Instructions
Index every knowledge layer that has documents waiting (Keystone M6).
The sweep behind "I dropped a PDF into the folder". Pack installs and Zotero
imports schedule their own indexing, but a file copied in by hand — which is
what _TO-OBTAIN.md asks for — has no code path to notice it. This closes that
gap, and is what the nightly job should call.
Runs detached and single-flight: a layer already indexing is left alone rather
than started twice.
Args:
confirm: False to report what is pending without starting anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |