| Metadata | Value |
|---|---|
| Status | Completed |
| Version | 1.2.0 |
| Last Updated | 2026-11-02 |
| Author | Sangeetha Grantha Team |
ID: TRACK-157 Status: Completed (2026-11-02) Owner: Seshadri Created: 2026-11-01 Updated: 2026-11-02
Close the open items TRACK-152 left on the collection and kshetra cards in Rasika search: make the relevance floor robust, get a human decision on the cards that appeared on non-macro probes, and give other environments a safe, checkable way to bring macro embeddings up to date.
POST /v2/catalogue/search/{hybrid|semantic} returns macroHits (cap 3, one per anchor) beside the untouched kriti items. A card must clear a floor in RasikaSearchService: dense similarity at or above 0.83, or (hybrid only) lexical score at or above 0.8.evaluate_retrieval.py against a live API or database was made. Everything below comes from the repo, TRACK-152, and the session notes it cites. Where evidence is missing, the Plan says exactly how to produce it and what Seshadri must authorise.Status: Accepted Accepted by: Seshadri (chat instruction; live runs not authorised) Accepted at: 2026-11-02
EVAL-22, SS-146-02, SS-146-03). Some may be right; none has been judged.make migrate and a macro re-embed. The only documented command for it does not run (see Spec), and the obvious script flag walks the whole catalogue.CatalogueSearchResponseDto stays as is).--via-api, re-embed) needs Seshadri’s explicit go-ahead for that run.requires_human_approval are changed only by Seshadri.embedding_profiles? Draft answer: code, because the repo has no config surface for it and a migration is not warranted.Status: Accepted Accepted by: Seshadri (chat instruction; live runs not authorised) Accepted at: 2026-11-02
RasikaSearchService: DEFAULT_HYBRID_FLOOR = MacroFloor(0.83, 0.8), DEFAULT_SEMANTIC_FLOOR = MacroFloor(0.83, Double.MAX_VALUE); a candidate clears when similarity >= minSimilarity || lexicalScore >= minLexical. The constants are global: not per mode in value (both 0.83), and not tied to a profile.MacroSearchRepository: scores every eligible macro document (about 105) by exact distance in one query and returns the top 10 anchors by RRF (hybrid) or similarity (semantic); the floor is applied afterwards in the service, so the SQL already has the similarity of all candidates in hand.evaluate_retrieval.py --via-api prints macro hits and their similarity per probe and the list “Non-macro probes with macro hits”, but it neither saves its output nor prints scores of cards that did not clear the floor. The DB path (search_macro_documents) returns top-k with similarity but is not floor-aware and also saves nothing.application_documentation/03-api/search.md, the RasikaSearchService comment and TRACK-152 agree that the exact-title kriti probes peak at similarity 0.787 (lexical 0.63).F1. The calibration rests on two positives and six negatives, and the track records disagree about which positive is weakest.
evals/retrieval_benchmarks.json has four is_macro probes: EVAL-31, SS-146-11, SS-146-12, TY-147-11. The TRACK-152 Phase 0 baseline (notes folder, track-152-phase0-baseline.md) shows EVAL-31 and SS-146-11 as HIT in both modes and TY-147-11 as MISS in both; SS-146-12 is not in the table at all (it is review_state: unresolved, the one probe filtered as needing human approval). So the floor was calibrated on two hits.search.md say the macro hits sit at 0.837 and 0.854. TRACK-152’s Progress Log says the weakest hit is EVAL-31 at 0.836. TRACK-145 (track-145-...md, section 4) records EVAL-31 at 0.854. These cannot all be right: either EVAL-31 is 0.854 and the weak 0.836/0.837 is SS-146-11, or EVAL-31 moved after the overview or snippet changes. The per-probe scores are not stored anywhere in the repo (the baseline file has hit and reciprocal rank only; the track-108 benchmark JSON has kriti scores, and its 0.8369/0.8360/0.7873 values belong to kriti items such as EVAL-16, not to macro documents). The Plan fixes this first by recording the scores.TY-147-11 misses in the evaluator. Whether that is the floor, the composer predicate (expected_composer: Tyagaraja against a cycle that abstains on attribution) or the document is unknown from the repo. It is a labelled positive that does not currently pass and needs to be understood before it can serve as calibration evidence.F2. An absolute cosine threshold is specific to one embedding model, dimension and document text. 0.83 has no meaning after a profile change, and a re-embed of the 6 updated overviews already moved scores once (TRACK-152 notes). Nothing in the code ties the floor to embedding_profiles, so a profile switch would keep a threshold calibrated on a different space.
F3. Asymmetric margin. With the recorded numbers the floor is 0.043 above the strongest recorded negative and 0.006 below the weakest recorded positive. The midpoint of 0.787 and 0.836 is about 0.8115, which would give about 0.025 on each side. Moving there without the full distribution would probably admit more cards on non-macro probes (item 2 below), so the midpoint is a candidate to test, not a decision.
F4. The negatives are the wrong negatives. The six exact-title probes are queries a user would type to find a specific kriti, so they are easy negatives. The probes that actually produced unreviewed cards (EVAL-22, SS-146-02, SS-146-03, and a Ratnatrayam query) are composer/form queries that sit near a cycle overview in embedding space. The floor has never been measured against those; they are exactly the hard cases.
F5. Rank-based rules alone cannot say “no card”. A rule such as “top 3 of 105” always returns cards; the floor exists because the group should often be empty (TRACK-152 Spec 13). A rank or gap rule is useful only on top of an absolute guard.
| Option | Idea | For | Against |
|---|---|---|---|
| A. Per-profile absolute floor at the measured midpoint | Keep similarity >= f, but keep f in a map keyed by profile (model, dimensions); set f to the midpoint between the best-scoring labelled negative and worst-scoring labelled positive |
Smallest code change; same behaviour shape; fixes F2 and F3 | Still an absolute number; needs the full distribution (F1, F4) and a re-check per profile |
| B. Relative to the query’s own score distribution | Require similarity >= mean + k * sd over all ~105 macro scores of that query (already computed in SQL), plus a low absolute guard |
Adapts to the profile and to broad queries where everything scores high | New moving part; needs k calibrated; harder to explain; a query that is legitimately close to several overviews can suppress a true card |
| C. Gap rule | Show the best candidate only if it beats the 4th candidate (or the best kriti’s similarity) by a margin, plus a low absolute guard | Directly encodes “stands out from the pack”; no per-profile constant except the guard | Weak when two cycles are both right (Ratnatrayam and Navaratnamalika); compares scores across different documents types for the kriti variant |
| D. Margin test only | Keep 0.83; add a test that fails when recorded labelled scores come within 0.02 of the floor |
Cheapest; makes the thinness visible | Does not make the floor robust; fails today (0.006) and would force A anyway |
Draft recommendation: A plus D. Move to a per-profile absolute floor at the measured midpoint of the recorded labelled distributions, and add a committed margin test that reads the recorded scores file and fails below a 0.02 margin on either side. Treat B and C as fallbacks, taken only if the recorded distribution shows no absolute value achieving 0.02 on both sides. The choice is confirmed in Plan step 4 from the data, not from this draft.
A. Floor robustness
tools/krithi-extract-enrich-worker/evals/macro_scores.json) holds, per probe, the dense similarity and the lexical score (both mode-independent; the hybrid rank is not needed because the floor reads only these two) of every candidate the macro query returned (all eligible anchors, not only those clearing the floor), the profile id/model/dimensions, and the date. It is data, committed, and regenerated only by an authorised run.macro_scores.json and asserts requirement 2 against the constants in code, so a change to either fails the build.TY-147-11 is diagnosed: it is either explained and recorded as a known non-hit with its reason, or fixed in a way that does not touch overview text without approval.search.md, the RasikaSearchService comment and the track-145 note are corrected to the recorded numbers.B. Cards on non-macro probes
EVAL-22, SS-146-02, SS-146-03 and the Ratnatrayam query, the probe text, the card(s) shown, the card’s similarity and lexical score, and a keep or drop recommendation. The table is produced from macro_scores.json and the production floor (not typed by hand) and is committed in this track file.krithi_cycle_memberships / krithis.temple_id with expected_krithi_id, which the Syama Sastri probes carry), or when Seshadri says so. Otherwise “drop”.C. Environment follow-up
application_documentation/08-operations/runbooks/ (new file macro-embeddings-runbook.md) and a pointer from search.md describes: make migrate, a no-spend dry run, an authorised macro-only re-embed, and the check below.embed_catalogue.py --macro-only) that never fetches krithi candidates and never embeds a kriti document. --macro-only --dry-run makes no API call and prints how many cycle and kshetra overviews would be embedded. Today there is no such mode: see C-finding below.embed_catalogue.py --macro-only --check) exits non-zero when any published macro document is stale, using only database reads and local hashing (no embedding call). A document is stale when any of these holds for the active profile: no embedding row exists; document_embeddings.content_hash <> search_documents.content_hash; search_documents.content_hash <> md5(indexed_content); or the overview text regenerated from current source data hashes differently from the stored content_hash. The last case is what catches a source-data change (for example a TRACK-154 temple update) that has not yet been re-indexed. A read-only SQL form of the first three conditions is also given in the runbook for environments without the worker.stale = 0, counts of cycle and kshetra documents by kind) and what to do on failure.D. Gemini usage item
search.md (“To index macro cycle and kshetra overviews”) shows a python -c snippet that imports psycopg2 and src.embeddings.client.GeminiEmbeddingClient. The worker depends on psycopg[binary] (v3) and has src/embeddings/gemini_embedder.py with GeminiEmbedder; there is no client module. The snippet cannot run as written. It also calls the indexers without a profile_id, which the functions require.embed_catalogue.py --include-macro passes the argument guard but still calls fetch_krithi_candidates(...) with no limit, then index_krithi for every returned krithi, before the macro step. Hashes make unchanged krithis cheap, but any krithi whose stored hash does not match is re-embedded with a paid call. Whether this is how the extra calls in TRACK-152’s disclosure happened is not established from the repo; it is the nearest candidate and Seshadri should compare it with the console figures.--macro-only mode and the rule that the runbook never uses --include-macro for a macro refresh.The Phase 1 recording showed that requirement 2 cannot be met by an absolute similarity floor alone (see Results). Seshadri adopted option C layered on A, so requirements 2 to 4 read:
minSimilarity and a gap (its similarity minus the 4th-best anchor’s) at or above minGap, or (hybrid) a lexical score at or above minLexical. For gemini-embedding-2 / 768: 0.81, 0.03, 0.8. All labelled positives clear; the six exact-title probes and the four wrong-looking cards (provisional labels) show no card. Margins: at least 0.02 on similarity to the weakest positive and to the exact-title peak, at least 0.01 on gap to the weakest positive, at least 0.015 on gap to the widest wrong-looking card. The 0.02 margin on the gap dimension is not achievable with three positives (actual: 0.014 and 0.017).MacroFloorsMarginTest, reading the recorded file from the repository.evaluate_retrieval.py gains --dump-macro-scores <path>. On the database path it already embeds the query and ranks macro documents; the option records the full list (not top 5) and the profile, for hybrid and semantic, one embedding call per distinct probe query shared across modes. The API path stays for end-to-end proof. This adds paid query embeddings, so it is a run Seshadri authorises (Plan, “Live runs”).MacroFloor gains no new fields; RasikaSearchService takes a Map<ProfileKey, FloorPair> (hybrid, semantic) and looks up by the active profile’s model and dimensions (PreparedQuery.profile). Missing key means no macro group.:modules:backend:api reads macro_scores.json through a test resource copy (or a path from the repo root) and checks the constants; no network.format_cycle_overview / format_kshetra_overview and the same queries as macro_indexer to regenerate text and hash, but only compares. Implemented as a function beside the indexers so the indexer and the check cannot drift (the same code builds the text).macro-embeddings-runbook.md, linked from runbooks/README.md and search.md; the broken snippet is replaced by the --macro-only command.requires_human_approval probes (SS-146-*, TY-147-*) are not edited. New labelled negatives or positives are proposed in the table for approval, not added.search_documents and document_embeddings; that is existing worker behaviour (not an application mutation covered by AUDIT_LOG). No migration in this track.The three Intent questions, with draft answers above.
Status: Accepted Accepted by: Seshadri (chat instruction; live runs not authorised) Accepted at: 2026-11-02
Nothing is implemented. Do not start until Seshadri accepts this Plan. Phases land separately.
| Path | Phase | Change |
|---|---|---|
tools/krithi-extract-enrich-worker/scripts/evaluate_retrieval.py |
1 | --dump-macro-scores <path> on the DB path; full macro candidate list per probe and mode, profile metadata |
tools/krithi-extract-enrich-worker/evals/macro_scores.json (new) |
1 | Recorded output of the authorised run |
tools/krithi-extract-enrich-worker/tests/test_evaluate_retrieval_sql.py (or a new test) |
1 | Dump format test with a fake embedder |
modules/backend/api/.../services/RasikaSearchService.kt |
2 | Profile-keyed floor map; empty group and WARN for an unknown profile; corrected comment |
modules/backend/api/src/test/.../RasikaSearchFloorTest.kt (new) and a test resource copy of macro_scores.json |
2 | Offline margin test (requirement 4) |
tools/krithi-extract-enrich-worker/scripts/embed_catalogue.py, src/embeddings/macro_indexer.py |
3 | --macro-only, --check, shared text-regeneration helper |
tools/krithi-extract-enrich-worker/tests/test_macro_indexer.py (extend) |
3 | --macro-only fetches no krithis; --check stale and fresh cases with a fake connection |
application_documentation/08-operations/runbooks/macro-embeddings-runbook.md (new), runbooks/README.md, application_documentation/03-api/search.md |
3 | Runbook, corrected command, corrected numbers |
application_documentation/10-implementations/track-145-dikshitar-kshetra-musicological-metadata.md |
2 | Correct the EVAL-31 figure only if the recorded run disagrees with it |
conductor/tracks/TRACK-157-macro-search-followups.md, conductor/tracks.md |
all | Review table, decisions, status |
No migration. No change to kriti SQL, V1, DTOs or mobile code. No .claude/ or CLAUDE.md change (so make agent-evals is not needed).
These spend Gemini quota and are not run by anyone until Seshadri says so for that run.
uv run python scripts/evaluate_retrieval.py --dump-macro-scores evals/macro_scores.json
The dump mode embeds each distinct probe query once and exits; it does not take --mode. Needs DATABASE_URL (or --db-url) for the intended database and the worker’s Gemini credentials.
uv run python scripts/evaluate_retrieval.py --mode all --via-api http://localhost:8080
uv run python scripts/embed_catalogue.py --macro-only --check
uv run python scripts/embed_catalogue.py --macro-only --dry-run
uv run python scripts/embed_catalogue.py --macro-only
The first two make no API call. Run the third only after reading their output.
Phase 0: sign-off (no code). Seshadri accepts Intent, Spec and Plan, or edits them. Seshadri also checks Gemini usage in the Google console (Progress Log, item 15).
Phase 1: record the scores (worker only).
--dump-macro-scores.macro_scores.json.TY-147-11.Phase 2: choose and test the floor (backend).
RasikaSearchFloorTest (red), then the profile-keyed floor and the empty-group-for-unknown-profile behaviour. Existing route and repository tests unchanged.items parity shows zero differences.Phase 3: environments and the freshness check (worker, docs).
--macro-only and --check.search.md.--macro-only --check against the dev database (read-only) and paste the output; with authorisation, run it in each other environment after its make migrate and re-embed, and paste the outputs.macro_scores.json, recorded 2026-11-02)Cards that a floor of 0.83 would show, per probe, using each probe’s best macro document per anchor (dense similarity, lexical score, gap4 = top similarity minus the 4th-best anchor’s). The recording is not eligibility-filtered, so a row can disappear in the API if its anchor is ineligible. Keep or drop is provisional until Seshadri decides; the first four rows follow requirement 8 (the expected kriti is a member of the card’s collection, checked by a read-only query on krithi_cycle_memberships).
| Probe | Probe text | Card | Sim / lex / gap4 | Recommendation |
|---|---|---|---|---|
EVAL-22 |
Swarajathi Kritis of Syama Sastri | Syama Sastri Swarajathi Ratnatrayam (collection) | 0.838 / 0.69 / 0.044 | Keep: the form by this composer is that set (no expected_krithi_id; judgement) |
SS-146-03 |
Syama Sastri Swarajathi in Yadukulakambhoji … Kamakshi Ni Padayugamu | same | 0.839 / 0.45 / 0.043 | Keep: expected kriti is a member |
SS-146-02 |
Syama Sastri Swarajathi in Todi … Rave Himagiri Kumari | same | 0.831 / 0.38 / 0.049 | Keep: expected kriti is a member |
SS-146-01 (“Ratnatrayam” query) |
Syama Sastri Swarajathi Ratnatrayam first gem in Bhairavi … | same | 0.824 / 0.47 / 0.042 | Keep: expected kriti is a member (below 0.83, so no card today; shows at floor 0.82) |
EVAL-05 |
Dikshitar krithi in Chidambaram describing the cosmic dance | Nataraja Temple (kshetra) | 0.849 / 0.30 / 0.041 | Keep, plausible (Seshadri to confirm) |
EVAL-20 |
Praise of Lord Shiva Nataraja in Kedaram raga | Nataraja Temple (kshetra) | 0.834 / 0.33 / 0.038 | Keep, plausible |
EVAL-27 |
Fifth enclosure Kamalamba Navavarnam Panchami vibhakti Bhairavi | Kamalamba Sannidhi (kshetra) | 0.843 / 0.34 / 0.038 | Keep, plausible (a Kamalamba Navavarnam collection card would fit better; it is second, gap2 0.005) |
EVAL-24 |
Muthuswami Dikshitar Agni lingam fire element at Tiruvannamalai | Arunachaleswarar Temple (kshetra) | 0.8304 / 0.45 / 0.047 | Keep: the TRACK-152 Spec expected this card; only 0.0004 above the floor |
EVAL-06 |
Abhayamba series krithi in Kalyani raga | Abhayamba Vibhakti Krithis (collection) | 0.8305 / 0.34 / 0.020 | Keep, plausible; weak separation (gap4 0.020) |
Unreviewed cards the TRACK-152 note did not mention appear in this recording at 0.83 (EVAL-05, EVAL-20, EVAL-27, EVAL-24, EVAL-06): either they are filtered by eligibility in the API or the note was incomplete; the --via-api run settles which.
Probes just under 0.83 whose top card looks wrong (so a lower absolute floor would add them): EVAL-08 Tiruvarur Pancha Linga Krithis for “Dikshitar krithi in Anandabhairavi” (0.823, gap4 0.009), TY-147-10 (0.821, gap4 0.004), EVAL-29 (0.819, gap4 0.013) and TY-147-04 (0.819, gap4 0.012), all Anandavalli Sametha Thanjapureeswarar Temple. These are my reading of the probe text, not labels.
Authorised by Seshadri in chat; 53 query embeddings; recorded in tools/krithi-extract-enrich-worker/evals/macro_scores.json (profile gemini-embedding-2, 768, id 01a07605-793b-7209-bbd2-f173e41b6d92; 106 macro anchors per probe).
TY-147-11 0.852 / 0.64 (Tyagaraja Ghana Raga Pancharatnam), SS-146-11 0.847 / 0.79 (Ratnatrayam), EVAL-31 0.836 / 0.49 (Bhagavati Amman Temple, the weakest). SS-146-12 is not loaded by the evaluator (unresolved review).EVAL-13 0.787, EVAL-01 0.777, EVAL-23 0.743, EVAL-04 0.732, EVAL-09 0.724, EVAL-17 0.624. Peak 0.787, as recorded. Their best lexical scores stay at or below 0.63 (EVAL-13) against a lexical floor of 0.8.EVAL-31 is 0.836 (TRACK-152 was right). TRACK-145’s 0.854 is stale. The “0.837 and 0.854” in the code comment and search.md are not the weakest hit; the other two positives are 0.847 and 0.852. Margins at 0.83: +0.006 above the weakest positive’s side, 0.043 above the strongest exact-title negative.TY-147-11 ranks first at 0.852 with composer Tyagaraja (the stored text carries [Composer: Tyagaraja]), so the evaluator’s DB path would now score it a HIT. The Phase 0 baseline MISS is stale or predates the macro text fix; the floor was never the cause.EVAL-08, TY-147-10, EVAL-29 and TY-147-04 start to clear, and they look wrong.EVAL-13, an exact-title probe, has z 3.58, higher than EVAL-31 at 3.16). The gap to the 4th anchor does separate the four wrong-looking cards (gap4 0.004 to 0.013) from the positives (0.044 to 0.050), but only as a second condition on top of an absolute floor.--via-api, 2026-11-02)Authorised by Seshadri in chat. This branch’s backend ran on port 8081 against the local database (the 8080 stack was left alone and uses older code), then evaluate_retrieval.py --mode all --via-api http://localhost:8081 posted 53 probes to V2 and V1 in both modes (about 106 query embeddings). The backend was stopped afterwards.
EVAL-31 (Bhagavati Amman Temple, 0.836), SS-146-11 (Ratnatrayam, 0.847) and TY-147-11 (Tyagaraja Ghana Raga Pancharatnam, 0.852) are HIT at rank 1 in hybrid and semantic, equal to the recorded outcomes (TY-147-11 now HIT; the Phase 0 MISS was stale).items parity with V1: 0 differences over 53 probes in both modes, so kriti ranking is unchanged. Hybrid over all 53 probes: Recall@1 81.1%, Recall@5 88.7%, MRR 0.836. Semantic: 64.2%, 79.2%, 0.703.EVAL-01, 04, 09, 13, 17, 23): no card, in both modes. The four wrong-looking probes (EVAL-08, EVAL-29, TY-147-04, TY-147-10) and EVAL-06: no card.EVAL-05 Nataraja Temple 0.849; EVAL-20 Nataraja Temple 0.834; EVAL-22 Ratnatrayam 0.838; EVAL-24 Arunachaleswarar Temple 0.830; EVAL-26 Kamalamba Sannidhi 0.814 (new: the 0.81 floor admits it, gap passes); EVAL-27 Kamalamba Sannidhi 0.843 and Kamalamba Navavarnam collection 0.839 (the collection is the better fit); SS-146-01 0.824, SS-146-02 0.831, SS-146-03 0.839, all Ratnatrayam. EVAL-06 (Abhayamba) no longer shows a card (gap 0.020 under 0.03).EVAL-26 Kamalamba Sannidhi (kshetra) for “Seventh enclosure Kamalamba Navavarnam Sarvarogahara chakra Rahasya yogini Saptami”: plausible keep; EVAL-27 also shows the Kamalamba Navavarnam collection second: keep. Seshadri to confirm all rows.format_*_overview being the single source of the text; the helper is shared with the indexer to prevent drift, and the test covers a changed temple field.--macro-only guarantees no krithi calls, and each live run is authorised separately.macro_scores.json committed with profile metadata; the dump test; worker make-equivalent checks (uv run pytest for the touched tests, ruff, mypy as the worker already requires).RasikaSearchFloorTest and the existing search tests pass under make test; --via-api output for the four macro probes equal to recorded outcomes with zero items differences from V1; the review table with Seshadri’s decisions.--macro-only and --check; pasted --macro-only --check output (stale = 0) for each environment brought up to date; make check-docs.git diff --check.--dump-macro-scores with tests (fake embedder).macro_scores.json committed, figures reconciled, TY-147-11 explained (see Results).MacroFloorsMarginTest, profile-keyed floor, gap computed in the macro SQL, corrected docs.--via-api run 2026-11-02 (see Results, live run 2).--macro-only, --check, shared freshness logic, tests, runbook, corrected search.md snippet.--macro-only --check output for each environment. Local dev database done 2026-11-02 (stale = 0 after a 2-call re-embed, see Progress Log). No other environment serves search today (Seshadri, 2026-11-02); any future one follows the runbook.SS-146-01 in the review table; Seshadri kept all rows.RasikaSearchService, MacroSearchRepository, evaluate_retrieval.py, retrieval_benchmarks.json, embed_catalogue.py, macro_indexer.py, search.md. No application code, data or embedding changed; no paid Gemini call and no live evaluator run made. Findings that change the picture: the floor was calibrated on two macro hits, and the records disagree on which is weakest (0.836 EVAL-31 in TRACK-152, 0.854 EVAL-31 in TRACK-145, 0.837 and 0.854 in the code comment); per-probe macro scores are not stored anywhere in the repo; the documented macro-only command cannot run and --include-macro alone walks the whole catalogue.evaluate_retrieval.py --dump-macro-scores (one embedding per distinct query, all published macro documents with dense and lexical scores, tested with a fake embedder); embed_catalogue.py --macro-only (never fetches krithis), --macro-only --check (database reads and local hashing, exit 1 when stale) and --macro-only --dry-run; the indexers now share build_*_documents and stale_reasons with the check, so they skip exactly what the check calls fresh (a vector whose hash differs from the document is now re-embedded, which the old skip test missed); runbook macro-embeddings-runbook.md and the corrected search.md command. Worker pytest (538 passed), ruff check, ruff format --check and mypy . pass. Not run: any live evaluator, API probe, embedding or database check. Phase 2 is blocked on live run 1.evals/macro_scores.json. Results: EVAL-31 is the weakest positive at 0.836 (TRACK-145’s 0.854 is stale); exact-title peak 0.787; TY-147-11 ranks first at 0.852 and would now HIT. Requirement 2 cannot be met by an absolute floor alone; a stop-and-report per the Plan. Review table filled (SS-146-01/02/03 keep, by membership). Phase 2 code (profile-keyed floor, margin test) waits for Seshadri’s choice of rule.MacroSearchRepository returns similarityGap (window over all eligible anchors, lowest anchor when fewer than four); RasikaSearchService takes a MacroFloors lookup, unknown profile gives no cards plus one WARN, no-profile fallback uses the lexical route only; MacroFloorsMarginTest holds the margins against macro_scores.json; the 14 RasikaSearchRoutesTest integration tests pass with a uniform synthetic-vector floor (synthetic unit vectors tie, so the gap cannot apply there). Not run: the --via-api proof (live run 2). Note the recording is not eligibility-filtered, so API gaps can differ slightly from the recorded ones; the API run settles that.--via-api proof. Ran this branch’s backend on 8081 (the worker and backend found their keys through the repo’s config loading via temporary symlinks to the gitignored files, since removed; no key was read or printed). All three macro probes HIT at rank 1, items parity 0 differences in both modes, no card on the exact-title or wrong-looking probes. Nine non-macro probes show cards; table updated. Remaining: Seshadri’s keep or drop on the review rows, the per-environment --macro-only --check, and the Gemini usage check.EVAL-05, EVAL-06, EVAL-20, EVAL-22, EVAL-24, EVAL-26, EVAL-27, SS-146-01, SS-146-02, SS-146-03). No floor change follows. Remaining: per-environment --macro-only --check and the Gemini usage check (Seshadri’s).gemini-embedding-2 / 768). --macro-only --check (read-only, no API call) reported checked = 106 | stale = 2 (cycle 0, kshetra 2): KSHETRA_OVERVIEW Bhagavati Amman Temple (Kanyakumari) and Saraswati Temple (Basara), both “source data changed since the document was stored” (the Kanyakumari wording change and the TRACK-154 Basara correction). --macro-only --dry-run (no API call) said it would embed 0 cycle and 2 kshetra overviews, 12 and 92 up to date. Seshadri authorised the re-embed: --macro-only made exactly 2 batchEmbedContents calls (both HTTP 200) and embedded 2 kshetra overviews. Re-check: Macro freshness | checked = 106 | stale = 0 (cycle 0, kshetra 0) | profile 01a07605-793b-7209-bbd2-f173e41b6d92. Gemini usage was checked in the Google Cloud console the same day: about 6.88 million embedding tokens in the last 90 days, gross ₹131.59, fully offset by savings (net ₹0.00); October 26 and 27 showed 130,751 tokens (₹2.51 gross), the upper bound for the extra calls. Remaining: the same check in any other environment that serves search.macro-embeddings-runbook.md (migrate, --macro-only --check, --dry-run, authorised --macro-only, re-check).