odysseus/docs
Nguyen Thanh Dat c3819e3cbf
Some checks are pending
CI / Focused test guidance (report-only) (push) Waiting to run
CI / Python syntax (compileall) (push) Waiting to run
CI / JS syntax (node --check) (push) Waiting to run
CI / Python tests (pytest 1/4) (push) Waiting to run
CI / Python tests (pytest 2/4) (push) Waiting to run
CI / Python tests (pytest 3/4) (push) Waiting to run
CI / Python tests (pytest 4/4) (push) Waiting to run
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
ci / docker publish / build (amd64) (push) Waiting to run
ci / docker publish / build (arm64) (push) Waiting to run
ci / docker publish / merge manifest + tag (push) Blocked by required conditions
fix(docker): mount the ChromaDB volume where the image actually persists (#6166)
* fix(docker): mount the ChromaDB volume where the image actually persists

chromadb/chroma runs `chroma run /config.yaml`, and that config is one line:
persist_path: "/data". The image declares no VOLUME, so everything the store
writes lives in the container's writable layer. The chromadb-data volume was
mounted at /chroma/chroma — where pre-1.0 images kept the store — so it caught
nothing and the entire vector store was destroyed on every container recreate.

Nothing errors when that happens. The collection survives with a count of 0, so
retrieval simply returns nothing from then on, which reads as "no match".

docs/backup-restore.md tells users to archive the chromadb-data volume, which
means the documented backup was empty too.

Fixed in all three compose files. The volume was never written to, so there is
nothing to migrate.

* fix(tests,docs): harden volume-path test helper and document upgrade migration

tests/test_chromadb_volume_path.py
- _chromadb_volumes() now normalises long-form dict volume entries
  (source/target/type map) to 'source:target' strings, preventing
  AttributeError crashes if a future Compose change uses that syntax.
- test_chromadb_does_not_use_the_pre_1_0_path now uses split(':')[1]
  comparison instead of endswith(), so mount-option suffixes (:z, :ro)
  cannot mask a wrong legacy target path.
- Three new unit tests validate the helper against both YAML syntaxes
  and the mount-option edge case explicitly.

docs/chromadb-volume-migration.md (new)
- Step-by-step guide for users upgrading from pre-#6166 Docker installs
  whose ChromaDB data accumulated in the container's writable layer.
- Covers: detecting the situation, backing up via 'docker cp', seeding
  the named volume before recreating the container, verification, and
  rollback. Validated with disposable Docker volumes.
- Distinguishes fresh installs (no action needed) from existing
  installs with live writable-layer data (action needed before recreate).

docs/backup-restore.md
- Extended ChromaDB caveat block to cross-reference the new migration
  guide for users upgrading from pre-#6166.

Closes the P1 documentation gap and P2/P3 test-robustness findings
from the PR #6166 adversarial review.

* fix(docs,tests): eliminate ChromaDB migration data-loss risks and enforce safe cutover

- Require service quiescence before cold database copy to prevent torn SQLite pages
- Mandate container preservation via immutable Docker image commit before recreation
- Enforce positive empty check on destination volume prior to seeding
- Add staging container validation on an isolated loopback port before Compose cutover
- Provide verified rollback procedures prohibiting return to legacy /chroma/chroma mount
- Add regression test coverage for all migration safety invariants

---------

Co-authored-by: PR #6166 Reviewer <reviewer@odysseus-review.local>
2026-10-14 12:20:35 +01:00
..
frontend-architecture refactor(frontend): establish source ownership and architecture gates (#6701) 2026-10-13 21:03:48 +01:00
runtime-decomposition Merge frozen lab b1666951 (Wave 3) into Wave 4 effects provenance 2026-10-03 01:13:36 +01:00
AGENT_TURN_CONTRACT.md Squash Odysseus development history 2026-09-11 06:04:19 +00:00
BACKGROUND_TOOL_JOBS.md Squash Odysseus development history 2026-09-11 06:04:19 +00:00
chromadb-volume-migration.md fix(docker): mount the ChromaDB volume where the image actually persists (#6166) 2026-10-14 12:20:35 +01:00
CODE_REVIEW_2026-09-16.md Consolidate Odysseus agent harness and tool contracts 2026-09-17 10:07:40 +00:00
HISTORICAL_ODYSSEUS_QA_QUEUE.md Consolidate Odysseus agent harness and tool contracts 2026-09-17 10:07:40 +00:00
ODYSSEUS_FIX_WORKSTREAMS.md Consolidate Odysseus agent harness and tool contracts 2026-09-17 10:07:40 +00:00
ODYSSEUS_SFT_ALEX_CORPUS.md Consolidate Odysseus agent harness and tool contracts 2026-09-17 10:07:40 +00:00
ODYSSEUS_TOOL_INSTRUCTIONS_EXAMPLE.md Consolidate Odysseus agent harness and tool contracts 2026-09-17 10:07:40 +00:00
ref-parity-audit.md chore(tools): add a read-only ref-to-ref parity audit 2026-09-30 11:53:31 +02:00
REVIEW_FIX_PROGRESS.md Consolidate Odysseus agent harness and tool contracts 2026-09-17 10:07:40 +00:00
search-quality-audit-20260917.md Verify research-before-streaming at interactive temperature 2026-09-17 22:48:03 +00:00
skills-lifecycle.md Squash Odysseus development history 2026-09-11 06:04:19 +00:00
TYPO_ROUTING_AUDIT_20260909.md Squash Odysseus development history 2026-09-11 06:04:19 +00:00