Skip to content

refactor(install): one home for the prior-install ownership invariant - #36

Merged
br4vesirrobin merged 1 commit into
mainfrom
refactor/install-ownership-invariant
Aug 23, 2026
Merged

refactor(install): one home for the prior-install ownership invariant#36
br4vesirrobin merged 1 commit into
mainfrom
refactor/install-ownership-invariant

Conversation

@br4vesirrobin

Copy link
Copy Markdown
Contributor

Architecture-review follow-up (ai-catapult front, bounded slice).

Reading install.js honestly revised the original review: the three harness installers are already clean section seams, so extracting them to files would relocate complexity rather than concentrate it. The real duplication was smaller and is now fixed:

  • assertOwnInstallTarget() owns the foreign-target refusal + --force warning that existed verbatim in both installClaude and installCodex
  • isSafeToOverwrite() probes all three harness manifests via one loop (previously .opencode-plugin payloads fell through to the empty-dir heuristic)

Gates: npm test 188 passed / 0 failed. The larger host-installer seam stays staged for a planned run rather than forced here.

The foreign-target refusal + --force warning block existed verbatim in
both installClaude and installCodex; assertOwnInstallTarget now owns it.
isSafeToOverwrite also probes all three harness manifests through one
loop instead of two copied blocks, covering .opencode-plugin payloads
that previously fell through to the empty-dir heuristic.
@br4vesirrobin
br4vesirrobin merged commit 06e1b8f into main Aug 23, 2026
8 checks passed
@br4vesirrobin
br4vesirrobin deleted the refactor/install-ownership-invariant branch August 23, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant