# Run, task commit and retention records
A scientific-workflow-run.v1 manifest maps logical keys to ArtifactRef values:
key, SHA-256 lowercase digest, exact byte length, role (reproduction/raw/processed/
record), and executable bit. It records UTC run_id, kind, scientific_identity,
capture_complete, outcome and removed logical keys. Inputs preserve the authored
tree; effective inputs and frozen software/data/environment comprise reproduction.
Only manifests and commit records establish destination availability; the registry
is a rebuildable summary.
Task result scientific-workflow-task-result.v3 identifies task/configuration,
resolved input anchors, software hashes, capture identity, output directory,
workload summary and exact output inventory. Output publication/readback precede
receipt publication. Successful siblings commit independently of phase success.
Reuse verifies scientific compatibility and every output. Missing active task
receipts rerun from the beginning. Input checksum anchors require v3 receipts.
Every run persists ordered event-N.json segments and status.json using socket
status/event structures. Terminal outcome is distinct from current liveness and
artifact retention. Sealing publishes preservation evidence before removal,
retains shared live content, journals deletion progress, marks raw logical keys
removed, and commits scientific-workflow-seal.v1 receipt. Repeated/interrupted
operations verify/resume recorded evidence. Full scientific replay is explicit and
uses captured comparison code with study-owned criteria.
Storage objects are immutable by digest; publication pins, consumer leases and
maintenance fences prevent readers/writers from losing shared objects. Credentials
are external operational profiles, not captured record contents. The public
artifact API validates inventory paths, streams through checksum EOF and enforces
bounded protected materialization. Refer to docs/reference/storage.md and
sealing.md for adapter and maintenance operations.