Repository navigation
feat(session-flow): workflow probes git for missing files before asking #12630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
melodic-automation-lanes
wants to merge
1
commit into
main
from
work-resolve-issue/issue-12594-41563008213-1
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
.changes/session-flow/work-resolve-issue-issue-12594-41563008213-1-93e14bf0.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No test covers the new rule. Closing issue #12594 sets two criteria:
This bullet meets both. But no file under
plugins/session-flow/evals/covers the explore stage's missing-file gate. Searching fordeleted,not on diskordiff-filterfinds only the unrelatedcs-env-worktree-not-prunedandre-first-split-hopcases.That means a later edit could bring back ask-first wording, or drop one of the three branches, and nothing would fail. One example: an edit that makes a worktree-only delete (
D) count as intentional.Suggested fix: add an eval case. A scaffold could build a repo with three files and reference all of them from code:
git rm);rm);The case would then assert that:
claude-lane: claude-review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pr-unblock / address-feedback: UNCERTAIN, left open
Evidence:
plugins/session-flow/skills/workflow/context/steps.md:34,plugins/session-flow/evals/workflow-stage-5-settings-screen/case.yaml:8