~bigbes/sr-ht-spec: 4ad85257

feat(cmd): reindex a space when a push lands

The push notifier was a Phase 1 stub that logged 'reindex pending' because
bleve did not exist yet. It does now, so a pushed document was readable
but never searchable, and the reconciler reported permanent staleness.

Pushes touching only proposal branches skip the rebuild: the index holds
the approved revision, and making unreviewed text searchable is the same
leak as serving it from the read plane.

The index stamp is written last and only on success. Written earlier it
would assert the index reflects a revision it does not — the exact
staleness the reconciler exists to catch, and it would catch nothing.

The hook server is now built after the surfaces, since the notifier
reindexes through the same single-writer index they read from.

bigbes <bigbes@gmail.com> — 2026-07-22 15:39:02 UTC

Commit 4ad8525764dbfb0f7f03eae106b4436cc44040ccview raw patch

Parent(s): 2928bf9d

1 changed file(s)

FileStatus+
cmd/specsrht/main.go M +60 -13