Document the worktree slug caveat for the postmortem default log dir #18
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
postmortem.pyresolves the default project log dir from cwd(
postmortem/scripts/postmortem.py:302-304,cwd.replace("/", "-")). Asession run inside a git worktree therefore resolves to a different slug
than the primary clone, and after exiting a worktree the default follows
the new cwd — so grading a worktree run from the primary clone silently
targets the wrong slug.
postmortem/SKILL.md:78-81documents only the cwddefault, with no worktree note.
The escape hatches already exist —
--project-dir,--cwd, and--file(which bypasses slug derivation entirely),
postmortem/scripts/postmortem.py:298-300,326-328— they are justundocumented for this case.
Acceptance:
postmortem/SKILL.mdnotes that the default log dir is cwd-derivedand diverges under a worktree, and points at
--project-dir/--fileto grade a worktree run.