honcho/tests/scripts
Rob Sherman a5a959ad50
feat(scripts): add --strategy flag with auto privilege detection for relocate fallback
Adds _can_defer_constraints() to probe whether the current role can ALTER
the sessions table's constraints, and _resolve_strategy() to resolve 'auto'
(the new default) to 'in_place' or 'create_new' based on that probe.

apply_moves() now defaults to strategy='auto' and raises MoveError on
unknown values instead of silently routing to create_new. The CLI gains
--strategy {auto,in_place,create_new} and the dry-run output shows which
concrete strategy will run.

Claude-Session: https://claude.ai/code/session_017E61SyPWyCgohR5wUwNXG7
2026-06-29 19:48:53 -07:00
..
__init__.py Make embeddings configurable (#678) 2026-05-14 15:03:35 -04:00
test_configure_embeddings.py feat: add new cloudevents for api routes (#637) 2026-05-20 18:25:30 -04:00
test_move_session_workspace.py feat(scripts): add --strategy flag with auto privilege detection for relocate fallback 2026-06-29 19:48:53 -07:00