Skip to main content

Module v1_templates

Module v1_templates 

Source
Expand description

Two-tier picker — Phase 1 migration (seeded-def → user-agent promote).

Structs§

TemplatePromoteStats
Stats from migrate_promote_template_sessions_v1. Logged at INFO.

Enums§

CopyAction 🔒
Per-file decision inside move_zone’s retry-aware loop. See the doc comment in move_zone for which round each variant addresses.

Functions§

migrate_promote_template_sessions_v1
Phase 1 two-tier picker migration: promote any seeded template that carries a session zone into a fresh user-owned definition, then move its :current + :archive:* zones onto the new definition_id.
move_zone 🔒
Move every file in old_zone to new_zone, preserving names + bytes. Implemented as read-write-delete because FileStore doesn’t expose a native rename; the cost is bounded by the per-zone file count (1-2 in practice — output.state.json + output).