Focus recovery scope on published artifact imports

This commit is contained in:
2026-12-01 02:14:20 +00:00
parent 935b513255
commit d8bc99b17e

View File

@@ -13,10 +13,10 @@ own the detailed evidence. This document records decisions, explains consequence
and distinguishes recommendations from approved scope. No remediation has been
implemented by this document.
The operator has settled the main direction for topics 1, 2, and 3. Checkpoint
upload timing in topic 2 and topics 4, 5, 6, and 7 need discussion. Each open
topic ends with a question and space for a response. Implementation details can
be settled during planning after the operator-facing behavior is clear.
The operator has settled the main direction for topics 1, 2, and 3. Topics 4, 5,
6, and 7 need discussion. Each open topic ends with a question and space for a
response. Implementation details can be settled during planning after the
operator-facing behavior is clear.
## 1. Coordinate destructive cleanup with other work
@@ -61,21 +61,25 @@ Operator response:
_Optional: confirm waiting or prefer an immediate busy error._
## 2. Separate published artifacts from resumable execution checkpoints
## 2. Import published artifacts and retain local resume
Status: Separation agreed; checkpoint upload timing open
Status: Scope agreed; remote execution checkpoints deferred
Finding: [CAT-02](catalog.md#cat-02--p2-make-restored-carried-products-agree-with-manifest-authority).
### The two purposes of remote storage
### Separate publication from execution recovery
Remote storage serves two independent purposes:
Publication and remote execution recovery are independent capabilities:
1. Store completed artifacts for publication and later use. Publication locks
preserve selected published files.
2. Store execution checkpoints so a saved session can later be restored and
resumed, retaining its manifest, fingerprints, and applicable provenance.
The operator has selected publication import for this development scope and
deferred remote execution checkpoints. Local execution checkpoints and ordinary
resume remain supported.
The current session manifest is Narratio's local progress ledger. It records
completed work and evidence used to decide whether that work can be reused.
The remote publication commit separately identifies published files. The current
@@ -121,71 +125,75 @@ executed in the receiving workspace.
Published products may come from different generations. This direction adds no
requirement for a publication-wide coherent pipeline generation.
### Agreed direction: resumable execution checkpoints
### Agreed operator workflows
Checkpoint recovery restores a saved execution state for continuation. It
retains the manifest's progress, fingerprints, and provenance, together with the
corresponding files needed to resume. Restoring the manifest alone is insufficient
when its completed outputs are unavailable or belong to another generation.
The immediate scope supports three distinct workflows:
Ordinary resume checks apply to the recovered execution state. Publication locks
govern published artifacts; they do not substitute older published files for
the outputs belonging to an execution checkpoint.
- Start from original sources: supply campaign/session configuration and raw
audio in a fresh workspace, then generate transcripts and artifacts.
- Start from published products: select and import finished transcripts or
artifacts as supplied inputs, then execute the downstream work that consumes
them. This starts new execution rather than recovering historical execution.
- Continue local work: rerun against the existing workspace and use its local
manifest and files to retain completed speaker/artifact work and retry unfinished
work under normal resume checks.
In the example above, publication import retrieves A as an input. A checkpoint
saved after generating B recovers the manifest describing B and the files needed
to resume that execution, including B. These are distinct recovery purposes.
For the failed-transcription example, the existing local workspace already
preserves completed speaker work. Remote backup is unnecessary for that ordinary
retry. Recovering unpublished progress after workspace loss or moving execution
to another machine is a separate capability without an established immediate
operational need.
The import workflow is a real gap. Previous-session published-artifact consumption
already exists, but starting a fresh same-session execution from a published
transcript needs explicit support. Current bounded starts require preceding
manifest stage records; copying files into place and selecting a downstream range
does not provide the agreed workflow. Imported inputs should enable their consuming
work without inventing upstream stage-completion history.
In the A/B example, publication import retrieves A and makes it usable as a
supplied input. The local workspace containing B can continue independently
through normal local resume. Recovering B's execution after losing that workspace
is deferred.
### Consequences for remediation
Separate publication import from execution recovery rather than reconstructing
generation evidence for locked published products. The earlier proposal to
reconcile historical producer evidence for publication import is superseded by
this decision.
The two purposes can share a bucket and storage adapter. They need independent
logical records and selection rules. Physical layout, command syntax, and storage
formats remain implementation-planning matters.
Use the publication inventory to select imported products and verify their
transfer, independently of a remotely saved execution manifest. The earlier
proposal to reconstruct historical producer evidence for publication import is
superseded by this decision.
Current remote-state loading, restore, status, and previous-session acquisition
depend on the uploaded session-manifest snapshot. The roadmap must examine those
consumers when separating the responsibilities. Previous-session artifact
selection already uses the publication inventory; it should consume published
products according to the import semantics above.
depend on the uploaded session-manifest snapshot. The roadmap should remove that
coupling for publication consumption and review which snapshot-publication and
execution-recovery machinery becomes unnecessary. Preserve the configuration
inputs needed for the selected workflow. Previous-session artifact selection
already uses the publication inventory and should follow the import semantics
above.
Physical layout, command syntax, and storage formats remain implementation-planning
matters. This discussion does not select a new CLI or treat the current mixed
restore behavior as the target contract.
This decision preserves local execution checkpoints and normal resume behavior.
It does not approve automatic remote backup on each local checkpoint or select
a new checkpoint upload schedule.
It adds no requirement for publication imports to carry or satisfy the original
producer's fingerprints or generation provenance.
### Open choice: checkpoint upload timing
### Deferred capability: remote execution checkpoints
The current publication-time manifest snapshot does not necessarily represent
the latest interrupted or failed local execution. "Most recent checkpoint"
must mean the most recent checkpoint saved under the chosen upload policy.
Remote checkpoint upload and recovery are outside the immediate scope. Upload
timing, cancellation behavior, transfer-failure handling, and retry machinery are
therefore deferred rather than open decisions blocking this remediation.
Possible policies for discussion:
- Explicit checkpoint upload: gives the operator control and avoids automatic
transfer overhead, but recovery reaches only the last explicitly saved state.
- Upload at invocation completion, including failed invocations: can preserve
partial progress automatically, but a process or host failure can occur before
that upload, and remote transfer failures need an explicit handling policy.
- Upload during execution at selected checkpoints: reduces potential lost work,
with additional transfer cost and checkpoint-publication lifecycle complexity.
No upload policy has been selected. Frequency, trigger, and transfer-failure
behavior remain open; the eventual roadmap should select them proportionately
to the recovery need.
### Question for discussion
When should Narratio upload resumable execution checkpoints, and what should
happen if that upload fails?
If a future operational need warrants remote checkpoints, design that recovery
workflow separately from publication import. A resumable checkpoint would need
the saved execution ledger and matching files, with ordinary resume validation;
a publication lock could not substitute an older product for a checkpoint output.
Operator response:
_Separation approved. Checkpoint upload timing and failure behavior pending
discussion._
_Approved: defer remote execution checkpoints, retain local resume, and focus on
importing published artifacts._
## 3. Inspect S3 when planning and preflighting