Extract a shared server-config path helper #438
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#438
Loading…
Reference in a new issue
No description provided.
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?
The dashboard server config file's path (
~/.local/share/iw/server/config.json) is spelled out independently at every reader:ServerClient.getServerConfigcore/commands/Dashboard.scaladashboard/jvm/src/infrastructure/ServerWorkspace.scala(added by IW-423 Phase 2 — the binder resolvingworkspaceBackend)and the CLI's
iw doctorbinder passesNonebecause the path is never read on that side at all.IW-423 grew this from three independent spellings of the path to four, with no shared helper to centralize it.
analysis.mdRisk 6 for IW-423 names this cost and explicitly defers it, because extracting the helper touches no behaviour that issue was chartered to change.Lesson: a fourth caller reading the same on-disk path independently is the signal that a shared path helper would pay for itself.
Fix: extract something like
ServerConfigRepository.defaultPathand route every reader through it.Recorded during IW-423; see
project-management/issues/IW-423/LESSONS.mdentry 6.Intake: agent-ready
Workflow: waterfall
Reason: all gates passed
Analysis: project-management/issues/IW-438/analysis.md on branch IW-438
Implement: needs-human
Reason: batch-implement exit 1 — the kanon plugin did not compile against this branch's iw-cli core, so no phase ran
The installed kanon plugin (
lib/batch/ForgeCatchUp.scala:143) expectsEither[String, …]fromfetchPullRequestForBranch. iw-climainnow returnsEither[TrackerError, …](#778, #779, #780). Nobatch-implement.logwas written; the command output was:The issue itself is not at fault. Update the kanon plugin to the
TrackerErrorport, then release this issue toagent-readyagain.Release: the implement loop failed this issue for a reason outside it. The kanon plugin did not compile against iw-cli main, because the tracker port now returns TrackerError (iw-cli #778). The plugin fix is dev-docs #484, and iw-cli 0.22.1 carries the core change. The issue goes back to the implement loop.