fix(backup): a task claim does not travel in a backup (milestone 381)
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 10s
CI & Build / integration (push) Successful in 48s
CI & Build / TypeScript typecheck (push) Successful in 55s
CI & Build / Python tests (push) Successful in 1m38s
CI & Build / Build & push image (push) Successful in 29s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-23 19:11:48 -04:00
co-authored by Claude Opus 5.5
parent b06b3a1d8a
commit a585fe0be0
+11 -2
View File
@@ -180,7 +180,13 @@ _COLUMN_EXCLUSIONS: dict[str, set[str]] = {
"forge_connection_id",
},
"milestones": {"deleted_at", "deleted_batch_id"},
"notes": {"deleted_at", "deleted_batch_id"},
"notes": {
"deleted_at", "deleted_batch_id",
# A claim is a session's attention, not the work's state (milestone
# 381). Restoring one would assert that a session on another install,
# possibly long gone, is working the task right now.
"claimed_by", "claimed_at", "claim_touched_at", "claim_session",
},
"task_logs": set(),
"note_drafts": set(),
"note_versions": set(),
@@ -268,7 +274,10 @@ _IMPORT_COLUMN_EXCLUSIONS: dict[str, set[str]] = {
"design_system_id", "inception",
},
"milestones": {"id", "deleted_at", "deleted_batch_id"},
"notes": {"id", "deleted_at", "deleted_batch_id"},
"notes": {
"id", "deleted_at", "deleted_batch_id",
"claimed_by", "claimed_at", "claim_touched_at", "claim_session",
},
"task_logs": {"id"},
"note_drafts": {"id"},
"note_versions": {"id"},