Repository navigation
feat(sessions): add the session closer planner and runner - #1855
Merged
Merged
Conversation
close.rs plans which finished sessions to close and runs the guarded worktree path on fakes: the typed verdict from the worktree report texts, the in-use check, an audit row before the removal, and a close only when the worktree path is gone. A refusal stores a block code, retries after a day, and writes an audit row only when the code changes. Nothing calls it yet. Refs #536 Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
igorjs
enabled auto-merge
November 15, 2026 10:45
Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
S8b of #536, first of three PRs for WU-10 (the closer).
sessions/close.rsadds the named constants, the single report-text-to-Verdictmapping (fails closed), theGuardsandAuditSinktraits,plan(done sessions quiet for more than 900 s, retry after 86400 s, own session excluded) andrunfor the guarded worktree path: verdict, in-use check, audit row first, remove, close only when the path is gone. A refusal sets a block code and writes an audit row only when the code changes. The module is dead code untilsessions sweep --apply(S9).Notes for reviewers
set_blocked; S8d adds the branch step, no-worktree and closed-PR rows, bounds, real guards and the real-git tests. WU-10 is far over 500 lines, so it ships in parts.worktree/mod.rs(same strings).Removal::Nothing, repeat refusals writing a second audit row, stale-row test that was really idle, circular verdict table.Refs #536