---
name: ethanyoq/session-resume
source: https://app.decimal.ai/s/ethanyoq-session-resume@1/SKILL.md
source_sha256: 2cdb5f1d01dd
---

# Session Resume (A12 · part 1)

Detects partial state of an interrupted disease-market-sizing-orchestration run by scanning the per-disease cache directory.

## Functions

`detect_partial_state(slug_dir: Path) -> PhaseState` — returns last_completed_phase + next_phase + reason.
`resume_from(slug_dir: Path) -> str` — human-readable resume message.

## Phase progress signals

| Phase complete | Signal in `.cache/<slug>/` |
|---|---|
| 1 (contract) | `contract.json` exists |
| 2 (staging) | `staging.json` exists |
| 3 (recall) | `sources/` non-empty |
| 4 (compose+audit) | both `citations_index.json` and `verification_report.json` exist with `verdict: "ok"` |
| 5 (bundle) | `output/delivery_manifest.json` exists |

## Usage

Always called by `disease-market-sizing-orchestration.run()` at the very start to decide whether to start fresh or continue from a partial run.