Focus recovery scope on published artifact imports
This commit is contained in:
@@ -13,10 +13,10 @@ own the detailed evidence. This document records decisions, explains consequence
|
|||||||
and distinguishes recommendations from approved scope. No remediation has been
|
and distinguishes recommendations from approved scope. No remediation has been
|
||||||
implemented by this document.
|
implemented by this document.
|
||||||
|
|
||||||
The operator has settled the main direction for topics 1, 2, and 3. Checkpoint
|
The operator has settled the main direction for topics 1, 2, and 3. Topics 4, 5,
|
||||||
upload timing in topic 2 and topics 4, 5, 6, and 7 need discussion. Each open
|
6, and 7 need discussion. Each open topic ends with a question and space for a
|
||||||
topic ends with a question and space for a response. Implementation details can
|
response. Implementation details can be settled during planning after the
|
||||||
be settled during planning after the operator-facing behavior is clear.
|
operator-facing behavior is clear.
|
||||||
|
|
||||||
## 1. Coordinate destructive cleanup with other work
|
## 1. Coordinate destructive cleanup with other work
|
||||||
|
|
||||||
@@ -61,21 +61,25 @@ Operator response:
|
|||||||
|
|
||||||
_Optional: confirm waiting or prefer an immediate busy error._
|
_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).
|
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
|
1. Store completed artifacts for publication and later use. Publication locks
|
||||||
preserve selected published files.
|
preserve selected published files.
|
||||||
2. Store execution checkpoints so a saved session can later be restored and
|
2. Store execution checkpoints so a saved session can later be restored and
|
||||||
resumed, retaining its manifest, fingerprints, and applicable provenance.
|
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
|
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.
|
completed work and evidence used to decide whether that work can be reused.
|
||||||
The remote publication commit separately identifies published files. The current
|
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
|
Published products may come from different generations. This direction adds no
|
||||||
requirement for a publication-wide coherent pipeline generation.
|
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
|
The immediate scope supports three distinct workflows:
|
||||||
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.
|
|
||||||
|
|
||||||
Ordinary resume checks apply to the recovered execution state. Publication locks
|
- Start from original sources: supply campaign/session configuration and raw
|
||||||
govern published artifacts; they do not substitute older published files for
|
audio in a fresh workspace, then generate transcripts and artifacts.
|
||||||
the outputs belonging to an execution checkpoint.
|
- 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
|
For the failed-transcription example, the existing local workspace already
|
||||||
saved after generating B recovers the manifest describing B and the files needed
|
preserves completed speaker work. Remote backup is unnecessary for that ordinary
|
||||||
to resume that execution, including B. These are distinct recovery purposes.
|
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
|
### Consequences for remediation
|
||||||
|
|
||||||
Separate publication import from execution recovery rather than reconstructing
|
Use the publication inventory to select imported products and verify their
|
||||||
generation evidence for locked published products. The earlier proposal to
|
transfer, independently of a remotely saved execution manifest. The earlier
|
||||||
reconcile historical producer evidence for publication import is superseded by
|
proposal to reconstruct historical producer evidence for publication import is
|
||||||
this decision.
|
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.
|
|
||||||
|
|
||||||
Current remote-state loading, restore, status, and previous-session acquisition
|
Current remote-state loading, restore, status, and previous-session acquisition
|
||||||
depend on the uploaded session-manifest snapshot. The roadmap must examine those
|
depend on the uploaded session-manifest snapshot. The roadmap should remove that
|
||||||
consumers when separating the responsibilities. Previous-session artifact
|
coupling for publication consumption and review which snapshot-publication and
|
||||||
selection already uses the publication inventory; it should consume published
|
execution-recovery machinery becomes unnecessary. Preserve the configuration
|
||||||
products according to the import semantics above.
|
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.
|
This decision preserves local execution checkpoints and normal resume behavior.
|
||||||
It does not approve automatic remote backup on each local checkpoint or select
|
It adds no requirement for publication imports to carry or satisfy the original
|
||||||
a new checkpoint upload schedule.
|
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
|
Remote checkpoint upload and recovery are outside the immediate scope. Upload
|
||||||
the latest interrupted or failed local execution. "Most recent checkpoint"
|
timing, cancellation behavior, transfer-failure handling, and retry machinery are
|
||||||
must mean the most recent checkpoint saved under the chosen upload policy.
|
therefore deferred rather than open decisions blocking this remediation.
|
||||||
|
|
||||||
Possible policies for discussion:
|
If a future operational need warrants remote checkpoints, design that recovery
|
||||||
|
workflow separately from publication import. A resumable checkpoint would need
|
||||||
- Explicit checkpoint upload: gives the operator control and avoids automatic
|
the saved execution ledger and matching files, with ordinary resume validation;
|
||||||
transfer overhead, but recovery reaches only the last explicitly saved state.
|
a publication lock could not substitute an older product for a checkpoint output.
|
||||||
- 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?
|
|
||||||
|
|
||||||
Operator response:
|
Operator response:
|
||||||
|
|
||||||
_Separation approved. Checkpoint upload timing and failure behavior pending
|
_Approved: defer remote execution checkpoints, retain local resume, and focus on
|
||||||
discussion._
|
importing published artifacts._
|
||||||
|
|
||||||
## 3. Inspect S3 when planning and preflighting
|
## 3. Inspect S3 when planning and preflighting
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user