← ClaudeAtlas

dhpk-opsx-load-contextlisted

Load opsx-apply-resume Resume Phase context via a 3-tier fallback (claude-mem pinned obs → compact JSON → handoff summary), optionally fetching cross-session observations. Use when: opsx-apply-resume enters Resume Phase Steps 1b–1d. Not for: saving observations (use dhpk-opsx-post-observation) or goal generation (use dhpk-opsx-apply-goal). Output: CONTEXT_SOURCE + session_goal/completed/in_progress/cross_session_observations fields.
hmj1026/dhpk · ★ 2 · Data & Documents · score 71
Install: claude install-skill hmj1026/dhpk
# opsx-load-context Context loading skill for `opsx-apply-resume` Resume Phase. Implements a 3-tier fallback so that context is always available even if earlier tiers fail. ## When NOT to Use - Saving / posting a session observation → use `dhpk-opsx-post-observation` - Generating a `/goal` condition for a fresh session → use `dhpk-opsx-apply-goal` - Any phase other than `opsx-apply-resume` Resume Phase (Steps 1b–1d) ## Inputs | Variable | Source | Description | |----------|--------|-------------| | `claude_mem_obs_id` | Handoff frontmatter | Integer obs ID, or null / absent | | `compact_json_path` | Handoff frontmatter | Relative path like `compact-notes/compact-*.json`, or absent | | `next_action_hint` | First Next Action from handoff | Key terms for cross-session search; may be empty | ## Fallback Chain Work through tiers in order. Stop at the first successful tier and record `CONTEXT_SOURCE`. --- ### Pre-chain — Hard-rule escalation (highest priority — blocking human decision) **Condition**: An active change carries a `.hard-rule-escalation.md` written by `dhpk-opsx-apply-goal` because unattended implementation hit an explicit hard-rule conflict that could not be resolved without human input. Check this before routine carry-forward such as `.resume-note.md`. ```bash ESCALATION=$(ls -t openspec/changes/*/.hard-rule-escalation.md 2>/dev/null | head -1) ``` - File found → read it and surface it as a blocking human decision. Set `CONTEXT_SOURCE = ".hard-rule-esca