> v1 freeze note (2026-05-13): SciDEX v1 is frozen for code changes
> (see AGENTS.md § "v1 FROZEN — No Code Changes"). This spec touches
> v1 PG data + would land new scripts in v1, so it cannot be implemented
> in v1 by default. Two viable paths: (a) redirect the work into
> SciDEX-Substrate (the v2 backend) if/when substrate has migrated
> the relevant data, or (b) request the narrow "data-corruption fix"
> carve-out from a human, with the new code framed as read-only repair
> against the v1 DB. Until one of those happens, this spec is captured
> for the record but not actionable.
Effort: deep
After the 2026-05-18 recovery session, 1,421 of 8,120 figure artifact
rows have no file anywhere — not on disk, not in any of the
.orchestra-worktrees/* candidate dirs, not in the two most recent S3
backup tarballs that were sampled. The recovery session's working theory
is that these rows were generated inside short-lived worker worktrees
that got reaped before the file made it into the canonical
SciDEX-Artifacts submodule (the commit_artifact write-through path is
mandatory but pre-dated some of the older figure generation code).
There are three plausible dispositions:
artifact_links, hypothesis evidence, analysis HTML thatdeprecated_reason='no_file' so the lifecycle stateThe right answer depends on how heavily-referenced the rows are. We don't
know without checking; a blanket mass-delete would be the kind of
catastrophic action the post-merge guard exists to prevent.
Decide and apply a disposition for the 1,421 orphan figure rows that is
proportional to their reference count: hard-delete the truly orphaned, mark
deprecated for the linked-but-unreachable, leave alone the ones that turn
out to be findable after all (with rebind via a quick last-pass).
figure files on disk with nofigure (vs the notebook problem) but aartifact_links, hypothesis_papers, analysis HTML embed{{artifact:ID}} marker count.
lifecycle_state='deprecated' anddeprecated_reason='no_file_after_2026_05_18_recovery'.
lifecycle_state='active' figureartifact_links,hypothesis_evidence joins, wiki content_md {{artifact:ID}}deprecated. Record the partitionactive figure rows lack a file.unassigned