ducoterra
eebc824636
Build and Push Containers / build-and-push-app (push) Successful in 1m50s
Build and Push Containers / build-and-push-db (push) Successful in 14s
phase: 162_search_recall_small_sources
**Phase 162 — final verification pass (all tasks already complete; verified + docs pass)**
- Verified: `_fold` (NFKD+casefold, stdlib) inside `_normalize_name` — `BESTÅ`→`besta` question side, `BÅsta.md`→`basta` path side; A2 match classes/ranking/caps/bonus untouched; FTS/cosine/A8 untouched.
- Verified: `grep_document` folds both sides via the imported `_fold` (no second copy); regex-teaching lines byte-identical; 3 copy sites updated.
- Verified: `regenerate_overview` appends the deterministic `Sources: <name> (<k> doc|docs)` tail (happy path only; zero-doc + `LLMError` rows byte-identical; `build_overview_prompt`/`load_kb_overview`/`build_kb_section` untouched).
- Verified: `TOOLS_SECTION` grep sentence updated + D4 search-discipline sentence present **verbatim**, immediately after the grep sentence; `PERSONA`/LOW pins byte-identical (`test_prompt_lock.py`).
- Measured evidence (in `.agents/reports/162_…/task04_prefix_evidence_and_battery.md` + re-measured every run by `test_under_rank_is_measured_not_assumed`): pre-fix tokens `['build','best']` → IKEA doc rank 6 (outside top-5); post-fix `['build','besta']` → suggested #1, cosine unchanged 0.382.
- `uv run pytest tests/e2e/test_search_recall_small_sources.py -v --no-cov` → **7 passed** (isolated); neighbours `test_kb_overview{,_freshness} test_name_signal_read_chips test_grep_regex_teaching test_harness_aligned_tools test_agent_document_tools test_tool_call_compact` → **24 passed**.
- `uv run pytest --cov=app --cov-report=term-missing` → **3756 passed**, app coverage **99%** (>90%).
- `uv run ruff check .` → All checks passed; `uv run pyright` → **0 errors**.
- Completion criteria: fold both ways ✅ · `Sources:` tail ✅ · TOOLS_SECTION + D4 verbatim + re-cut pins ✅ · E2E green/battery recorded/full suite/coverage/lint ✅ · docs pass ✅ · commit + dir move = harness.
- Battery: 5 phase-119 questions byte-identical to the phase-119 record (GATE PASS); the 2 Besta questions **skipped loudly** — verified the 2026-09-05 replica dump has zero `ikea` matches (`grep -c -i ikea data/bor_live_kb_replica.dump.sql` = 0); rank gate stays with the owner's live KB.
- Docs fixed: README — overview-tail doc + `BOR_KB_OVERVIEW_MAX_CHARS` tail-cut constraint, the phase-162 search-discipline paragraph, per-phase (not per-story) E2E wording, new "Retrieval regression battery" section; AGENTS.md — rule 4 per-phase wording + battery command in Quick reference. (The overview's expected "AGENTS.md §6 tool table" does not exist in this repo — the grep contract line lives in README's tool table, already updated.)
- Deviations (recorded, not assumed): `_fold` adds `casefold` (required for the pinned `ß → ss`); `①` NFKD-decomposes to `1` (the overview's parenthetical was wrong) and is excluded by `NAME_TOKEN_MIN_LEN`; pre-fix evidence lives in the reports dir because task files are read-only for this pass.
- Owner follow-up A6 (runtime, not code): add the Tuning-tab steering note "IKEA's BESTÅ assembly PDF is a live source — search it as `BESTÅ` or `AA-1272068`".
- Next pending phase: none — 162 is the only entry in `todo/` (harness moves it to `complete/`).
2026-10-07 01:42:01 -04:00
..
2026-08-21 13:42:21 -04:00
2026-09-07 12:39:01 -04:00
2026-09-30 19:16:35 -04:00
2026-10-06 06:36:09 -04:00
2026-09-01 23:51:43 -04:00
2026-09-11 22:48:02 -04:00
2026-09-10 16:43:08 -04:00
2026-09-16 15:50:48 -04:00
2026-09-16 15:50:48 -04:00
2026-10-04 14:24:33 -04:00
2026-09-16 15:50:48 -04:00
2026-10-04 14:24:33 -04:00
2026-08-31 01:35:28 -04:00
2026-09-07 12:39:01 -04:00
2026-09-13 19:28:05 -04:00
2026-09-07 12:39:01 -04:00
2026-09-07 12:39:01 -04:00
2026-09-28 07:49:37 -04:00
2026-10-04 22:18:31 -04:00
2026-09-14 15:55:13 -04:00
2026-09-16 15:50:48 -04:00
2026-09-25 05:19:18 -04:00
2026-09-16 15:50:48 -04:00
2026-09-16 15:50:48 -04:00
2026-09-08 00:33:21 -04:00
2026-10-04 22:18:31 -04:00
2026-09-25 01:54:23 -04:00
2026-09-16 15:50:48 -04:00
2026-09-16 15:50:48 -04:00
2026-09-16 15:50:48 -04:00
2026-09-16 15:50:48 -04:00
2026-10-04 09:23:54 -04:00
2026-10-04 09:23:54 -04:00
2026-10-05 19:07:33 -04:00
2026-09-11 22:48:02 -04:00
2026-09-15 04:16:55 -04:00
2026-09-12 15:56:43 -04:00
2026-09-24 18:50:36 -04:00
2026-10-04 16:32:50 -04:00
2026-10-02 02:35:03 -04:00
2026-10-02 07:16:08 -04:00
2026-10-02 02:35:03 -04:00
2026-10-02 02:35:03 -04:00
2026-10-01 11:13:43 -04:00
2026-09-28 21:15:03 -04:00
2026-09-07 12:39:01 -04:00
2026-09-11 22:48:02 -04:00
2026-09-13 19:28:05 -04:00
2026-09-16 15:50:48 -04:00
2026-09-16 06:57:49 -04:00
2026-09-12 21:26:30 -04:00
2026-09-08 09:37:33 -04:00
2026-09-06 06:31:31 -04:00
2026-09-11 22:48:02 -04:00
2026-09-13 23:57:54 -04:00
2026-09-15 00:37:38 -04:00
2026-10-04 14:24:33 -04:00
2026-10-04 14:24:33 -04:00
2026-09-28 13:45:31 -04:00
2026-09-11 22:48:02 -04:00
2026-09-11 22:48:02 -04:00
2026-10-04 16:32:50 -04:00
2026-10-07 01:42:01 -04:00
2026-10-07 01:42:01 -04:00
2026-10-04 16:32:50 -04:00
2026-10-04 16:32:50 -04:00
2026-09-16 15:50:48 -04:00
2026-09-24 18:50:36 -04:00
2026-09-14 23:07:56 -04:00
2026-09-07 12:39:01 -04:00
2026-09-16 15:50:48 -04:00
2026-10-04 16:32:50 -04:00
2026-09-30 10:49:40 -04:00
2026-09-16 15:50:48 -04:00
2026-09-08 16:02:45 -04:00
2026-09-08 01:56:37 -04:00
2026-10-01 07:03:15 -04:00
2026-10-01 08:49:50 -04:00
2026-09-16 15:50:48 -04:00
2026-09-11 22:48:02 -04:00
2026-09-10 16:43:08 -04:00
2026-09-11 22:48:02 -04:00
2026-10-06 01:42:44 -04:00
2026-09-16 15:50:48 -04:00
2026-10-04 16:32:50 -04:00
2026-10-04 14:24:33 -04:00
2026-10-04 14:24:33 -04:00
2026-10-01 16:58:01 -04:00
2026-10-04 14:24:33 -04:00
2026-10-04 14:24:33 -04:00
2026-09-12 19:45:00 -04:00
2026-09-16 15:50:48 -04:00
2026-09-28 11:49:55 -04:00
2026-10-01 01:27:46 -04:00
2026-09-30 12:55:23 -04:00
2026-09-30 12:55:23 -04:00
2026-10-06 14:44:41 -04:00
2026-09-07 12:39:01 -04:00
2026-09-28 07:49:37 -04:00
2026-09-16 15:50:48 -04:00
2026-09-07 12:39:01 -04:00
2026-09-15 05:35:05 -04:00
2026-09-12 13:37:19 -04:00
2026-10-07 01:42:01 -04:00
2026-10-01 12:48:04 -04:00
2026-09-16 15:50:48 -04:00
2026-09-25 05:19:18 -04:00
2026-09-16 15:50:48 -04:00
2026-09-11 22:48:02 -04:00
2026-09-07 12:39:01 -04:00
2026-09-16 15:50:48 -04:00
2026-09-09 01:45:42 -04:00
2026-09-09 14:08:18 -04:00
2026-09-16 15:50:48 -04:00
2026-08-31 05:20:25 -04:00
2026-09-10 16:43:08 -04:00
2026-09-07 12:39:01 -04:00
2026-09-12 13:37:19 -04:00
2026-09-07 12:39:01 -04:00
2026-09-12 19:45:00 -04:00
2026-09-16 06:57:49 -04:00
2026-09-16 15:50:48 -04:00
2026-10-02 02:35:03 -04:00
2026-10-02 02:35:03 -04:00
2026-10-02 02:35:03 -04:00
2026-10-02 02:35:03 -04:00
2026-10-03 01:52:41 -04:00
2026-10-02 02:35:03 -04:00
2026-10-02 02:35:03 -04:00
2026-10-02 02:35:03 -04:00
2026-10-04 14:24:33 -04:00
2026-10-04 16:32:50 -04:00
2026-10-04 14:24:33 -04:00
2026-10-04 20:46:57 -04:00
2026-09-10 16:43:08 -04:00
2026-09-16 06:57:49 -04:00
2026-10-06 14:44:41 -04:00
2026-10-06 14:44:41 -04:00
2026-10-06 14:44:41 -04:00
2026-09-07 12:39:01 -04:00
2026-09-12 15:16:02 -04:00
2026-10-06 01:42:44 -04:00
2026-10-06 14:44:41 -04:00
2026-09-13 19:28:05 -04:00
2026-09-24 18:50:36 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-10-05 02:52:55 -04:00
2026-09-25 01:54:23 -04:00
2026-10-04 14:24:33 -04:00
2026-09-12 13:37:19 -04:00