Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/TASKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ Statuses: ✅ done · 🔄 doing · ⬜ remaining · ✂️ cut (stretch only, p
| T02 | `489c035` | `uv run pytest` — 38 passed (36 new config tests); `ruff check` + `ruff format --check` clean; `mypy` strict clean. Verified: user-over-preset deep merge; §9.7 contents binding for v1/v2/v3 + shared fixed answerer; fingerprint stable across reloads, differs across versions, and reacts to every binding-field change (parametrized, 17 fields); invalid configs rejected with key path. |
| T03 | `arch/caliper/t03` → PR #4, squash merge `b643290` (code commit `2409b2a`) | `uv run pytest` — 63 passed (25 new: 19 unit accessors/schema/chunk tables incl. FTS sync + cosine; 6 integration trigger enforcement); `ruff check` + `ruff format --check` + `mypy` strict clean; sqlite-vec loads on Windows (`vec_version()`); vec0 cosine ≈ 0 on unit vector. |
| T04 | `arch/caliper/t04` → PR #5, squash merge `a051f3b` (code commits `e6b5517`, `89e5423`) | `uv run pytest` — 97 passed (30 new providers/fakes tests); `ruff check` + `ruff format --check` + `mypy` strict clean. Live smoke 2026-11-16: **Gemini leg PASSED** (chat on `gemini-3.5-flash-lite`, 768-dim embed norm 1.000000, cost estimated, 429 backoff demo). **Ollama leg deferred** (user decision; Ollama not installed — re-run `scripts/smoke.py` after install). OQ1 (RPD verification in AI Studio) still open. Found+fixed the genai weakref bug (`GeminiSession`). |
| T05 | `arch/caliper/t05` → PR #8, squash merge `36d2d75` (code commit `68b23c2`) | `uv run pytest` — 154 passed (32 new source tests: fetch-once/cache/pin, 5-page URL mapping, exclusions, DI fetcher seam); `ruff check` + `ruff format --check` + `mypy` strict clean. Live verification 2026-11-16: real tarball fetched once → `data/cache/azure-docs/2acd0be….tar.gz`, pin `main@2acd0be` (§9.4 format), second fetch zero-network; A1 layout confirmed live (334 azure-functions + 145 service-bus `.md`, 15 `/includes/` files to exclude, single `azure-docs-<sha>/` top-level dir for T07 to strip). |
| T09 | `arch/caliper/t09` → PR #7, squash merge `b8c1155` (code commit `1f2beb0`) | `uv run pytest` — 134 passed standalone (12 new retrieval tests: determinism, exactly-`final_k`, oracle cosine ordering, fewer-rows/empty/missing index, typed errors); 166 on the combined T05+T09 stack; `ruff check` + `ruff format --check` + `mypy` strict clean; CI green on PR (run 43921677210). |

## Doing

| ID | Branch | Status |
|---|---|---|
| T05 | arch/caliper/t05 | implemented, verification below |
| T09 | arch/caliper/t09 | implemented, verification below |
_(none — next up: **T06** (needs T05), **T10** + **T11** (need T09); **T13** (needs T03) also unblocked — parallelizable pairs per §14.3)_

## Remaining

Expand Down Expand Up @@ -110,6 +109,7 @@ Statuses: ✅ done · 🔄 doing · ⬜ remaining · ✂️ cut (stretch only, p
- **T04 — OQ1 still open:** free-tier RPD for `gemini-3.5-flash-lite` must be verified live (AI Studio) at the smoke run and logged in §18.
- **T04 — live smoke result (2026-11-16):** Gemini leg PASSED live — chat OK on `gemini-3.5-flash-lite` (26/18 tokens), embed OK 768-dim norm 1.000000, cost estimated from `prices.json`, 429 backoff demo logged. Ollama leg deferred: Ollama not installed; re-run `uv run python scripts/smoke.py` after `ollama pull qwen2.5:7b-instruct` + `nomic-embed-text`. User decision recorded 2026-11-16.
- **T04 — bug found by the live smoke:** google-genai's `Models` holds only a weak reference to its `Client`; dropping the Client fails every request ("client has been closed"). Fixed in `89e5423`: `GeminiSession` owns the `genai.Client`, factories and smoke pass it to the backends (`keepalive` slot). This would have broken the production ask path at T11/T12 — worth remembering when reading T04's diff.
- **build-state — test-count arithmetic:** T04's Done row records its pre-squash verification (97 = 30 new); the T04 squash actually landed 59 provider/fakes tests, giving 122 total after T03's 63. Recorded here so the ledger reconciles; the T05 (154 = 122 + 32) and T09 (134 standalone, 166 on the combined stack) counts above are post-squash and exact.
- **T05 — `ingest/__init__.py` marker ownership:** T05 created `src/caliper/ingest/__init__.py` as an empty package marker (one docstring line, no code) so `caliper.ingest.source` is importable. §14.2 assigns this file to T07 — it remains T07-owned from here on; T05 made no other change to it.
- **T05 — cache dir source:** `CaliperConfig` (T02, `extra="forbid"`, fingerprint-relevant fields only per §11.2) has no cache-dir field, so `fetch_corpus`/`read_cache_meta` read `CALIPER_CACHE_DIR` directly, default `data/cache` (§11.2); constants `CACHE_DIR_ENV_VAR`/`DEFAULT_CACHE_DIR` live in `source.py`. No `config.py` edit was made (forbidden for T05); if a field is ever added, `_cache_dir` should prefer it over the env var.
- **T05 — public API frozen for T06/T07:** `fetch_corpus(cfg, *, refresh=False, fetcher=None) -> Path`; `read_cache_meta(cfg) -> CacheMeta` (frozen dataclass `branch`/`sha`/`source_ref`/`fetched_at` — T07 reads it for the §9.4 summary instead of re-resolving the ref); `format_source_ref(sha) -> str` (`main@<7-char sha>`); `page_to_url(rel_path) -> str`; `discover_pages(extracted_root) -> list[str]` (sorted, forward-slash, corpus-relative, exclusions applied); `SourceError`; constants `AZURE_DOCS_REPO`, `AZURE_DOCS_BRANCH`, `ARTICLE_TREES`, `LEARN_BASE_URL`, `HTTP_TIMEOUT_S`; type alias `Fetcher = Callable[[str], bytes]`. `fetch_corpus` performs no DB writes (§7.4) and extracts nothing — extraction/chunking starts at T06/T07.
Expand Down
Loading