| name | onboard-session |
| description | Cold-start runbook — orient at the start of a session or after a context reset/compaction. Use when a session begins, resumes, or is compacted (especially if the SessionStart snapshot shows in-flight work or pending proposals), or when the user says "catch up", "where did we leave off", "onboard", "what's the current state". Reads the latest handoff, re-reads CLAUDE.md, checks live HPC processes + run state, and hands off to arm-hpc-monitoring / curate-knowledge as needed. |
| modes | {"requires_fates":false,"nutrient_pathway":"any","scope":["session"],"summary":"Cold-start session runbook; model-agnostic."} |
Onboard a Session (cold-start runbook)
The interactive agent often starts cold — a fresh session, a resume, or after
compaction. This skill is the checklist that restores full context and catches in-flight
work before you act. It pairs with the G2 SessionStart hook
(.claude/hooks/session-start.py), which already surfaces a snapshot (branch,
uncommitted count, latest handoff, pending-knowledge count, live processes). The hook
gives the data; this skill is what you do with it.
Run this whenever the snapshot shows in-flight work, after a compaction, or when the
user asks you to catch up. Skip the HPC steps if no ensemble is active.
Step 1 — restore context
- Re-read
CLAUDE.md (root). Required after compaction (memory:
re-read CLAUDE.md after compaction) — it carries the branch banner (this branch is
intentionally pinned to api-31-0, disconnected from main) and the operating rules.
Don't reconstruct the knowledge system from AGENTS.md's one-liner — CLAUDE.md
§"RAG/GraphRAG System" (+ docs/a2mc_reference/rag_reference.md) carries the full
hybrid vector + two-layer knowledge graph + curated YAML detail.
- Read the latest handoff / session log — the SessionStart snapshot names it; else
ls -t memory/dev_logs/*Handoff* memory/dev_logs/*Session_Log* | head. Read it for
open threads + "state at session end". Skim the 2–3 most recent dated dev_logs for
anything still mid-flight.
- Verify branch:
git branch --show-current → confirm it matches your intended working branch (main or your feature branch).
git status -s for uncommitted work the previous session left.
- Read the offline resume brain (docs/31/34) — the SessionStart snapshot prints an
Offline state:
line from the highest-round workflow_state_offline_r{RR}.json (position + next_action + any
phase6_decision binding target). If a round is mid-refinement, note the binding target + next
targeted experiment — that is the objective to drive toward (feedback_performance_experiment_is_the_objective),
not the loudest crash thread.
- Recall the operating discipline. Skim
AGENTS.md §"Offline-Agent Operating Discipline" — the four
recurring failure modes (verify before claiming · track the objective · drive, don't wait · trust the
skill) and the gate enforcing each. Lead memory: feedback_offline_agent_operating_discipline.
Step 2 — check for in-flight HPC work
ps -ef | grep "$USER" | grep -E 'monitor|submit|extract' | grep -v grep
- If an auto-monitor / submitter / extractor is running → an ensemble is in flight.
Invoke the
arm-hpc-monitoring skill (CLAUDE.md Rule 6) to arm Monitor on the
live logs with the event + error filters. Read the active handoff log for the
round-scoped event names/filenames.
- Check run state if a round is active:
squeue -u "$USER" (or the round's job
prefix) and, for completion, tools/diagnose_ensemble_status.py. Re-derive counts from
live squeue + disk NC counts + the most recent dated log (memory:
verify run-state before quoting) — don't trust stale numbers in an old log.
Step 3 — check pending knowledge
If the snapshot reports pending proposals (or
use_cases/*/memory/gained_knowledge/auto_discovered_pending.json has open items),
invoke the curate-knowledge skill to review + promote/discard them. Online runs
stage proposals here; they only enter the curated KB when a human-in-the-loop session
curates them.
Step 4 — drive the next action, don't wait (docs/35)
Close the onboarding by advancing the workflow, not with a bare readout. When the offline resume
brain (workflow_state_offline) holds an active goal + a next_action (the SessionStart ► NEXT:
line), execute it — you are the superset of the autonomous orchestrator, which drives itself with no
per-phase prompt ([[feedback_offline_agent_drives_the_workflow]]). Lead with: "Round R{N}, phase X;
next action = <...>. Proceeding with it — will pause only at a fork or hard stop." Then do it.
DRIVE (just do it — surface results, not permission requests):
- arm/re-arm monitors; extract completed data; run a planned experiment; skip-test on existing data;
advance to the next phase per the 7-phase workflow + iteration rules; regenerate a plot; commit routine work.
PAUSE for the human (a genuine fork or hard stop):
- a Phase-6 converge / redesign / stop→model-dev decision (the
docs/34 objective gate — a hard pause);
- a curated-KB write (
inject-knowledge / curate-knowledge promote — Tier-3, human-gated);
- an expensive / irreversible action (a full-ensemble redesign, a large HPC spend, anything hard to undo);
- the standing hard stops: destructive / outside-repo actions, a claim about the user, an ambiguous instruction.
Everything not in the PAUSE list, you drive. Surface proposals + results, not "shall I…?" for mechanical steps.
What this skill does NOT do
- It does not replace the G2 SessionStart hook (that runs automatically and surfaces
the snapshot); this skill acts on it.
- It does not arm monitors itself — it delegates to
arm-hpc-monitoring.
- For the full monitoring reactions, invoke the
arm-hpc-monitoring skill
(required when an ensemble is in flight, per CLAUDE.md Rule 6).
Changelog
- 2026-07-06: Point Step 1 at
AGENTS.md §"Offline-Agent Operating Discipline" — the consolidated
4-failure-mode stance (docs/36, reinforcement #4); lead memory feedback_offline_agent_operating_discipline.
- 2026-07-06: Cold-start driving reinforcement (docs/35, FM-3): Step 1 reads the offline resume brain
(
workflow_state_offline + phase6_decision); Step 4 reframed from "summarize + propose" to "drive the
next action, don't wait" with an explicit DRIVE-vs-PAUSE list. Pairs with the SessionStart ► NEXT: line
- AGENTS.md core rule 10. See
feedback_offline_agent_drives_the_workflow.
- 2026-06-17:
## Changelog convention adopted (see .claude/skills/README.md). Earlier history: git log + memory/dev_logs/.