Context
Found dogfooding continue-in-background (shipped in PR #924) from a session whose consuming directory is not a git repository (home directory, claude started outside any repo). The delivery step's dirty-tree gate runs git status --porcelain -uall in the consuming project and specifies behavior for clean, dirty, and linked-worktree states — but not for "not a repository at all". The command fails with fatal: not a git repository (or any of the parent directories): .git.
The sibling save-point engine (reference/save-point.md) is unaffected — memory-dir resolution has a non-repo default. Only the gate step lacks a specified branch.
Proposed work
Spec the non-repo case in plugins/session-flow/skills/continue-in-background/SKILL.md (dirty-tree gate, step 1): when the consuming directory is not a git repository, state the honest reading explicitly — there is no uncommitted work to protect and no worktree isolation to rely on; proceed with the launch and say so in the launch report. One or two sentences at the step that owns the gate, per the skill's inline-gotcha convention.
Acceptance criteria
References
Context
Found dogfooding
continue-in-background(shipped in PR #924) from a session whose consuming directory is not a git repository (home directory,claudestarted outside any repo). The delivery step's dirty-tree gate runsgit status --porcelain -uallin the consuming project and specifies behavior for clean, dirty, and linked-worktree states — but not for "not a repository at all". The command fails withfatal: not a git repository (or any of the parent directories): .git.The sibling save-point engine (
reference/save-point.md) is unaffected — memory-dir resolution has a non-repo default. Only the gate step lacks a specified branch.Proposed work
Spec the non-repo case in
plugins/session-flow/skills/continue-in-background/SKILL.md(dirty-tree gate, step 1): when the consuming directory is not a git repository, state the honest reading explicitly — there is no uncommitted work to protect and no worktree isolation to rely on; proceed with the launch and say so in the launch report. One or two sentences at the step that owns the gate, per the skill's inline-gotcha convention.Acceptance criteria
References
git status --porcelain -uallin non-repo home dir →fatal: not a git repository