From a4d96230ad99c65a5d998b140deeed9ea4448f05 Mon Sep 17 00:00:00 2001 From: "melodic-automation-lanes[bot]" <337595936+melodic-automation-lanes[bot]@users.noreply.github.com> Date: Tue, 3 Nov 2026 03:08:53 +0000 Subject: [PATCH] Resolve issue #12594 Lane-Activity: work-resolve-issue/resolve-issue --- ...olve-issue-issue-12594-41563008213-1-93e14bf0.md | 11 +++++++++++ .../session-flow/skills/workflow/context/steps.md | 13 +++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .changes/session-flow/work-resolve-issue-issue-12594-41563008213-1-93e14bf0.md diff --git a/.changes/session-flow/work-resolve-issue-issue-12594-41563008213-1-93e14bf0.md b/.changes/session-flow/work-resolve-issue-issue-12594-41563008213-1-93e14bf0.md new file mode 100644 index 00000000000..21c49d14ece --- /dev/null +++ b/.changes/session-flow/work-resolve-issue-issue-12594-41563008213-1-93e14bf0.md @@ -0,0 +1,11 @@ +--- +bump: minor +--- + +### Changed + +- `/session-flow:workflow`'s explore stage no longer asks before investigating a file that is + missing from disk. It first runs `git status` and `git log` on that path, both read-only. + A staged or committed delete counts as intentional: the stage skips it and says so. A file + deleted only in the working tree is investigated. The stage asks only when neither command names + the path or a command fails. diff --git a/plugins/session-flow/skills/workflow/context/steps.md b/plugins/session-flow/skills/workflow/context/steps.md index 4029f894534..72c2cb0a8fd 100644 --- a/plugins/session-flow/skills/workflow/context/steps.md +++ b/plugins/session-flow/skills/workflow/context/steps.md @@ -31,8 +31,17 @@ Structured local codebase exploration: read the relevant code, git history, file dependencies. Understand current state before changing anything. - Survey breadth-first (glob/grep), confirm the files the change touches, then read those in full -- When files referenced in git status or history don't exist on disk, ask before investigating. - They may be intentionally deleted +- When code, `git status` or history references a file that is not on disk, probe before any + investigation the task did not ask for. Run + `git --no-optional-locks status --porcelain -- ` and + `git log --oneline -1 --diff-filter=D -- `, each its own read-only call. A status line + decides first; the deleting commit counts only when status prints nothing: + - **Intentional**: a staged removal (`D` in the first status column), or no status line and a + commit that deleted the path. Skip investigating it and say so, citing the status line or + commit + - **Unexplained**: deleted only in the working tree (`D` in the second status column). + Investigate it like any other file in scope + - **Not settled**: neither probe names the path, or a probe fails. Ask before investigating - **Effort:** reading and surveying code with no change made ## 2. Research