ducoterra
a19d78d284
Build and Push Containers / build-and-push-app (push) Successful in 1m57s
Build and Push Containers / build-and-push-db (push) Failing after 13s
phase: 122_image_documents
**Phase 122 (image documents) — final verification pass: all green. No code changes were needed; defects found: none.**
**Verified (implementation already complete in working tree, reviewed end-to-end):**
- Toggle (`BOR_IMAGES`/`BOR_IMAGE_EXTENSIONS`/`BOR_IMAGE_DIR`, off by default) + `GET /api/config` `images` flag
- Ingest: bytes digest, `image_dir` persistent copy, `content = summary = vision description` (chat-model call; only text embedded), fail-soft skip + `images_failed` counter
- Serve/display: `/api/documents/{id}/image` route (404 matrix), viewer `<img>` + description, Sources 48px lazy thumbnails, chat inline source figure (alt = summary), agent `read` marker
- Prune guard: images-off syncs never prune `is_image` docs
**Test / lint / coverage (exact commands & outcomes):**
- `uv run pytest` → exit 0 (green; note: pytest 9.1.1 `-q` omits the final count line in output — exit code authoritative)
- `uv run pytest --cov=app --cov-report=term-missing` → **2715 passed, exit 0, TOTAL 99%** (>90% gate)
- `uv run ruff check . && uv run pyright` → "All checks passed!" / "0 errors, 0 warnings, 0 informations"
- `uv run pytest tests/e2e/test_image_documents.py -v --no-cov` → **4 passed, exit 0** (isolation)
**Completion criteria:** (1) images=true → described/embedded/displayed docs: ✅ (E2E + integration) · (2) images=false byte-identical + image docs survive sync: ✅ (E2E negative app + unit/integration) · (3) viewer + chat rendering with alt text; failed description skips + logs, sync completes: ✅ · (4) test/lint/coverage gates: ✅ · (5) commit + phase move: deferred to harness per this pass's rules (working tree left uncommitted).
**Notable deviation (pre-existing, documented in code):** image route uses `require_user` (phase-79 posture, same gate as the document content endpoint) rather than the phase text's "public" parenthetical — matches the endpoint it mirrors.
**Next pending phase:** `123_chat_image_questions`.
2026-09-25 01:54:23 -04:00
..
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 10:57:07 -04:00
2026-09-05 16:04:40 -04:00
2026-09-05 16:59:31 -04:00
2026-09-05 21:50:56 -04:00
2026-09-06 06:31:31 -04:00
2026-09-07 12:39:01 -04:00
2026-09-07 12:39:01 -04:00
2026-09-07 12:39:01 -04:00
2026-09-07 12:39:01 -04:00
2026-09-07 23:08:46 -04:00
2026-09-07 23:54:41 -04:00
2026-09-08 00:33:21 -04:00
2026-09-08 01:11:45 -04:00
2026-09-08 01:56:37 -04:00
2026-09-08 02:38:45 -04:00
2026-09-08 05:51:23 -04:00
2026-09-08 16:02:45 -04:00
2026-09-09 01:45:42 -04:00
2026-09-09 14:08:18 -04:00
2026-09-09 17:22:24 -04:00
2026-09-10 00:23:08 -04:00
2026-09-10 16:43:08 -04:00
2026-09-11 00:59:35 -04:00
2026-09-11 03:42:51 -04:00
2026-09-11 13:16:20 -04:00
2026-09-11 22:48:02 -04:00
2026-09-13 00:23:05 -04:00
2026-09-13 01:57:40 -04:00
2026-09-12 13:37:19 -04:00
2026-09-12 15:16:02 -04:00
2026-09-12 15:56:43 -04:00
2026-09-12 16:37:50 -04:00
2026-09-12 19:45:00 -04:00
2026-09-12 21:26:30 -04:00
2026-09-13 19:28:05 -04:00
2026-09-13 23:21:39 -04:00
2026-09-14 16:01:58 -04:00
2026-09-14 01:27:16 -04:00
2026-09-14 15:55:13 -04:00
2026-09-14 23:07:56 -04:00
2026-09-15 00:37:38 -04:00
2026-09-15 03:11:05 -04:00
2026-09-15 04:16:55 -04:00
2026-09-15 05:35:05 -04:00
2026-09-15 06:11:38 -04:00
2026-09-15 18:26:38 -04:00
2026-09-16 06:57:49 -04:00
2026-09-16 15:50:48 -04:00
2026-09-24 18:50:36 -04:00
2026-09-24 20:51:39 -04:00
2026-09-25 01:54:23 -04:00