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-07 23:54:41 -04:00
2026-09-14 15:55:13 -04:00
2026-09-16 15:50:48 -04:00
2026-09-07 12:39:01 -04:00
2026-09-13 19:28:05 -04:00
2026-08-28 15:57:59 -04:00
2026-09-07 12:39:01 -04:00
2026-09-10 00:23:08 -04:00
2026-09-08 10:03:10 -04:00
2026-09-10 00:23:08 -04:00
2026-09-16 15:50:48 -04:00
2026-09-16 15:50:48 -04:00
2026-09-24 18:50:36 -04:00
2026-09-10 00:23:08 -04:00
2026-09-12 19:45:00 -04:00
2026-08-28 07:02:24 -04:00
2026-09-16 15:50:48 -04:00
2026-09-13 19:28:05 -04:00
2026-09-14 15:55:13 -04:00
2026-08-21 13:42:21 -04:00
2026-08-21 13:42:21 -04:00
2026-09-13 19:28:05 -04:00
2026-09-12 13:37:19 -04:00
2026-09-01 03:52:03 -04:00
2026-09-25 01:54:23 -04:00
2026-09-16 15:50:48 -04:00
2026-09-08 01:11:45 -04:00
2026-09-14 08:57:57 -04:00
2026-09-14 23:07:56 -04:00
2026-09-09 17:22:24 -04:00
2026-09-15 05:35:05 -04:00
2026-09-24 18:50:36 -04:00
2026-09-10 00:23:08 -04:00
2026-09-08 09:37:33 -04:00
2026-09-13 01:57:40 -04:00
2026-08-29 18:32:15 -04:00
2026-09-13 00:23:05 -04:00
2026-09-15 18:26:38 -04:00
2026-09-15 11:55:59 -04:00
2026-09-08 01:56:37 -04:00
2026-09-24 20:51:39 -04:00
2026-08-27 01:04:16 -04:00
2026-09-13 23:21:39 -04:00
2026-09-08 22:31:45 -04:00
2026-09-08 22:31:45 -04:00
2026-09-12 21:26:30 -04:00
2026-09-06 06:31:31 -04:00
2026-09-06 06:31:31 -04:00
2026-09-13 23:57:54 -04:00
2026-09-25 01:54:23 -04:00
2026-09-13 19:28:05 -04:00
2026-09-09 01:45:42 -04:00
2026-09-12 21:26:30 -04:00
2026-09-25 01:54:23 -04:00
2026-09-25 01:54:23 -04:00
2026-09-13 19:28:05 -04:00
2026-09-11 13:16:20 -04:00
2026-08-26 22:39:14 -04:00
2026-09-03 11:17:47 -04:00
2026-08-25 22:42:10 -04:00
2026-09-12 13:37:19 -04:00
2026-09-08 22:31:45 -04:00
2026-09-11 00:59:35 -04:00
2026-09-12 21:26:30 -04:00
2026-08-25 20:22:51 -04:00
2026-09-10 16:43:08 -04:00
2026-09-12 19:45:00 -04:00
2026-09-16 15:50:48 -04:00
2026-09-16 06:57:49 -04:00
2026-09-16 15:50:48 -04:00
2026-09-07 23:08:46 -04:00
2026-09-11 03:42:51 -04:00
2026-09-12 13:37:19 -04:00
2026-09-13 19:28:05 -04:00
2026-09-16 15:50:48 -04:00
2026-09-25 01:54:23 -04:00
2026-09-12 19:45:00 -04:00
2026-09-03 13:39:15 -04:00
2026-09-24 18:50:36 -04:00
2026-09-09 17:22:24 -04:00
2026-09-08 22:31:45 -04:00
2026-09-12 13:37:19 -04:00
2026-09-16 15:50:48 -04:00
2026-09-24 20:51:39 -04:00
2026-09-02 15:55:33 -04:00
2026-09-13 19:28:05 -04:00
2026-08-30 23:39:15 -04:00
2026-08-29 18:32:15 -04:00
2026-09-15 04:16:55 -04:00
2026-09-06 06:31:31 -04:00
2026-09-13 19:28:05 -04:00
2026-09-06 06:31:31 -04:00
2026-08-25 13:46:32 -04:00
2026-09-01 04:20:26 -04:00
2026-08-25 17:48:37 -04:00
2026-09-13 19:28:05 -04:00
2026-09-13 19:28:05 -04:00
2026-08-27 23:44:35 -04:00
2026-09-08 02:38:45 -04:00
2026-09-10 16:43:08 -04:00
2026-09-10 16:43:08 -04:00
2026-08-28 17:10:02 -04:00
2026-09-07 12:39:01 -04:00
2026-09-12 15:16:02 -04:00
2026-09-15 18:26:38 -04:00
2026-09-10 16:43:08 -04:00
2026-09-25 01:54:23 -04:00