✨ feat(bridge): 🧩 rag.index served end to end — blob reads, note index, chat channel
The live service advertised `rag.index` and then typed-refused every request
(`index_path_unwired`), so the note "Özet oluştur" surface could never fill:
the backend stored no `rag_output` row. The refusal is gone; the capability is
now served for real.
* transport: `read_blob()` opens the client-initiated stream the contract
names (one `BlobRequest` → `BlobResponse` header → exactly `size` RAW bytes),
bridged from the executor thread by `_LoopBlobReader`; the transport installs
it on the dispatcher at registration.
* indexing (`service/notes_index.py`): the note's own title+content always, plus
every attachment read over its own blob stream — PDFs through the corpus's
own canonical loader, plain text decoded directly — chunked, embedded in one
pass (`embed_both`), and written into the school's note index.
* store (`index/notes.py`): one bucket per school, `replace_note()` swaps a
note's rows as a unit (a re-index cannot duplicate); `rag.chat` merges this
channel's ranked hits into the subject corpus's (`Generator(note_index=…)`),
with `chunks_by_id`/`span_meta` consulting the live index through
`NoteAwareChunks`.
* one refused attachment never aborts an index: the note body lands, the answer
names what failed (`failed[]`), and the reply echoes `files[].id` so the
backend can stamp the doc id it minted.
Honest limit (documented in `index/notes.py` and PROJECT_STATE): a note's
(class, subject) is not on the wire — the payload carries the course uuid only —
so the note channel is school-scoped; the (class, subject) gate cannot be
applied to it. The note index is in-process: a restart loses it and the next
note edit re-dispatches.
Tests: `test_bridge_transport.py` runs the acceptance path against the fake
QUIC backend (blob bytes served on a client stream, `files[0].id` echoed) and
proves a refused blob is reported, not fatal; `test_notes_index.py` covers the
offline indexing path (body-only, re-index dedup, failure isolation, school
filter, `rerank_select` compatibility). Pre-fix run (src stashed) shows
`'index_path_unwired' != 'malformed'` plus both acceptance tests failing.
Unit suite: 1387 passed, 34 skipped. PDF branch smoke-checked against a real
4.5 KB textbook PDF (15 units → 5 children).