# Authority initialization and automatic indexing — November 6, 2026

This update repairs missing native authority initialization that could cause a
Z39.50 bibliographic save or blank authority search to fail. Setup enables change
capture before scanning existing records, queues missing authority entries, and
validates complete native projection coverage before initial activation. Queries
remain native Rust; no automatic Zebra or Elasticsearch fallback is introduced.

## Automatic processing

Setup and updates ensure the every-minute authority worker and daily reconciliation
jobs exist. An initial bounded cycle starts after update worker locks release;
the schedule continues larger backlogs automatically. Explicitly paused jobs remain
paused and produce a clear warning. Existing configured job times are preserved. Add `--resume-authorities` to the current
bundled setup/update command to resume them deliberately. Refresh beside the
Configure page's authority counts reads current status; it does not start workers.

## Existing catalog data is preserved

Some historical authority-table rows contain bibliographic-shaped MARC. The native
projection retains their actual local IDs, supported existing heading fields and
Any text. Missing headings and types stay empty, with explicit source diagnostics;
no authority ID or heading is invented. Original MARC, books, items and existing
links are not rewritten or deleted. Unsupported mappings and unreadable records
remain actionable errors. Searchable legacy rows may still need cataloguing review.

## Install and verify

1. Upload the complete current KPZ without uninstalling RustSearch.
2. Use Configuration → Update RustSearch and its current bundled SSH command.
   Earlier engine builds require `--update`; a KPZ upload or `--existing-engine`
   alone cannot add the new stored-authority projection capability.
3. Add `--resume-authorities` if you intend to resume an explicit authority pause.
   A site already running this repair's engine can use
   `--existing-engine --resume-authorities` for the scheduling refresh.
4. Monitor authority indexed/pending/retrying counts and initialization readiness.
   Setup completion does not imply a large initial queue is already finished.
5. Before SELECTING RUSTSEARCH IN SEARCHENGINE, confirm authority readiness, then
   verify blank authority search and Z39.50 import/save on the intended instance.
   The separate OPAC enable flag is independent.

Production requires schema 7 or newer. The updater preserves the selected search
engine. Existing compatible bibliographic indexes need no full reindex; authority
initialization or queued reconciliation proceeds separately.

## Validation and limits

Passed 1,852 Perl assertions, 297 Python tests (five privileged skips), and 19
native HTTP assertions. All 69,976 authorities from the affected Koha 26.05.05
instance passed isolated projection, including Any, Match, preferred-heading
coverage and Koha display. Its production drain subsequently finished with zero
pending/retrying jobs; the operator confirmed blank authority search and the
previously failing Z39.50 save after selecting RustSearch. The automatic-schedule
patch additionally tests pause/resume, missing jobs, unrelated-job preservation,
rollback behavior and starting the worker after update locks release. This is
bounded evidence on x86-64, not certification of every campus, MARC mapping or
provider image. Historical performance charts and prior features are unchanged.
