GitAdapter dirtyState, stageAll and commit cannot take destroyOnExit, so a shutdown-safe caller must repeat them #620

Closed
opened 2026-09-25 07:35:22 +00:00 by claude · 1 comment
Member

Follows #616, which gave ProcessAdapter.run a destroyOnExit parameter.

kanon (dev-docs #346) needs git to run during JVM shutdown, so its LiveWorkingTree (iw-plugin/lib/cli/WorkingTree.scala) repeats core GitAdapter.dirtyState, stageAll and commit with the same failure texts. Only destroyOnExit = false differs.

Requested: let GitAdapter.dirtyState, stageAll and commit take destroyOnExit (default true) and pass it to ProcessAdapter.run. Then the plugin can delegate to core instead of repeating these three methods.

Source: dev-docs DEVDOCS-346 code review, composition finding (review-phase-01-20260925-092800.md).


Type: feature
Filed from: /home/mph/ops/kanon-DEVDOCS-346 on branch DEVDOCS-346

Follows #616, which gave `ProcessAdapter.run` a `destroyOnExit` parameter. kanon (dev-docs #346) needs git to run during JVM shutdown, so its `LiveWorkingTree` (`iw-plugin/lib/cli/WorkingTree.scala`) repeats core `GitAdapter.dirtyState`, `stageAll` and `commit` with the same failure texts. Only `destroyOnExit = false` differs. Requested: let `GitAdapter.dirtyState`, `stageAll` and `commit` take `destroyOnExit` (default `true`) and pass it to `ProcessAdapter.run`. Then the plugin can delegate to core instead of repeating these three methods. Source: dev-docs DEVDOCS-346 code review, composition finding (`review-phase-01-20260925-092800.md`). --- **Type:** feature **Filed from:** `/home/mph/ops/kanon-DEVDOCS-346` on branch `DEVDOCS-346`
Author
Member

Intake: agent-ready
Workflow: waterfall
Reason: all gates passed
Analysis: project-management/issues/IW-620/analysis.md on branch IW-620

Intake: agent-ready Workflow: waterfall Reason: all gates passed Analysis: project-management/issues/IW-620/analysis.md on branch IW-620
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
iterative-works/iw-cli#620
No description provided.