name: request-loopback-resume description: Resume previously requested work deterministically after interruptions. Use when context switches, AFK gaps, or multi-lane pauses require checkpointed state, explicit next actions, and fail-closed resume validation.
Request Loopback Resume
Use this skill when you need to return to a prior request without losing execution intent.
Workflow
- Initialize a workstream state file with task + lanes.
- Update lane status, next-step notes, and evidence artifacts during work.
- Validate state before resuming (single in-progress lane rule).
- Generate deterministic resume action (
continue,start,blocked,done).
Canonical Commands
Initialize:
python3 "$CODEX_HOME/skills/request-loopback-resume/scripts/workstream_resume.py" \
init \
--state-file .codex/workstreams/example.json \
--task "Upgrade media pipeline skills" \
--lane "skill update" \
--lane "validation" \
--lane "docs"
Update checkpoint:
python3 "$CODEX_HOME/skills/request-loopback-resume/scripts/workstream_resume.py" \
set \
--state-file .codex/workstreams/example.json \
--lane-status "skill update=completed" \
--lane-status "validation=in_progress" \
--lane-next "validation=Run arbiter + installer evidence" \
--artifact /tmp/repo-b-media-skills-arbiter.json
Resume action:
python3 "$CODEX_HOME/skills/request-loopback-resume/scripts/workstream_resume.py" \
resume \
--state-file .codex/workstreams/example.json \
--json-out /tmp/workstream-resume.json
Status Model
Allowed lane status values:
pendingin_progresscompletedblocked
Rules:
- At most one lane can be
in_progress. resumeaction iscontinuefor currentin_progresslane.- If no lane is
in_progress, action isstartfor firstpendinglane. - If only
blocked/completedlanes remain, action isblockedordone.
Checkpoint Discipline
Use deterministic checkpoint cadence:
- Write checkpoint after each lane transition (
pending -> in_progress -> completed/blocked). - Attach artifact paths for each completed lane.
- Keep one clear
lane-nextvalue for the current lane. - Re-run
resumeafter any interruption before executing further commands.
Resume Evidence Contract
Preserve:
state_file- latest
resume_json - current
lane_statusmap - latest artifact paths
If any element is missing, resume should fail closed and reroute through skill-hub.
Scope Boundary
Use this skill for resuming prior user requests and preserving deterministic continuity across interruptions.
Do not use this skill for:
- Repo-specific implementation/debugging lanes.
- Skill admission/classification decisions.
- Release version/changelog operations.
References
references/state-contract.mdscripts/workstream_resume.py
Loopback
If this lane is unresolved, blocked, or ambiguous:
- Capture latest
resumeJSON output. - Route through
$skill-hubfor chain recalculation. - Continue only after a deterministic next lane is selected.