Move the GitHubHookDoctor binder out of core/model/ #430
Labels
No labels
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#430
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?
Problem
core/CLAUDE.md:24states thatmodel/takes no imports fromadapters/,output/ordashboard/. One file still breaks it:The cause is the same one fixed in
TerminalWorkspaceChecks(commit45c3b02):a pure decision and its impure binder live in the same file, so the binder's
dependency on
adapters/is charged tomodel/.Fix
Split the same way. Keep the pure verdict in
core/model/, taking its processprobe and client as injected parameters. Move the binder to
commands/github.hook-doctor.scala, which is where the checks are alreadyassembled and which may import
adapters/.commands/github.hook-doctor.scalacurrently reads:Both would bind explicitly, as
start.hook-doctor.scalanow does.Acceptance
rg 'import iw\.core\.(adapters|output|commands)' core/model/returns nothing.Origin
Found while triaging LESSONS.md for IW-422. Review finding W11 flagged the same
violation in
TerminalWorkspaceChecksand accepted it because this file had setthe precedent. That file is now fixed, so this is the last instance and the rule
can be enforced again.