Gotchas: semantic-doc-segmenter
Package-specific non-obvious patterns and pitfalls. Loaded on demand when working on this package.
- Needs
docker-compose.local.ymloverlay: The service's owndocker-compose.yamlbundles a MySQL service and test service. The overlay (generated bygenerate-env.sh) disables them and adds theplatform-localnetwork. TheCMDin.env.localmust use-f docker-compose.yaml -f docker-compose.local.yml. - Alembic migration base was broken: Base migration (
47cd9e9e0aa6) hadupgrade()aspass(tables commented out) — fixed 2026-03-12 by uncommenting inalembic/versions/47cd9e9e0aa6_base.py. Migration file is baked into the Docker image — after fixing the source, the image must be rebuilt. If the broken base already ran, wipealembic_versionso migrations re-run from scratch:docker exec platform-mysql-<user> mysql -u appuser -ppassword doc_segmenter -e "DROP TABLE IF EXISTS alembic_version;"thenaq-local-dev.sh restart semantic-doc-segmenter.