Skip to content

fix(integrations): declare kiro-cli multi-install safe (#3471)#3485

Open
Noor-ul-ain001 wants to merge 1 commit into
github:mainfrom
Noor-ul-ain001:fix/3471-kiro-cli-multi-install-safe
Open

fix(integrations): declare kiro-cli multi-install safe (#3471)#3485
Noor-ul-ain001 wants to merge 1 commit into
github:mainfrom
Noor-ul-ain001:fix/3471-kiro-cli-multi-install-safe

Conversation

@Noor-ul-ain001

Copy link
Copy Markdown
Contributor

Summary

Fixes #3471.

kiro-cli keeps all of its managed files under an isolated agent root — .kiro/ with commands in .kiro/prompts — that no other integration writes to. It meets every documented criterion for multi-install safety, but KiroCliIntegration never declared multi_install_safe = True.

Because of that, co-installing kiro-cli alongside any other integration (e.g. claude) left specify integration status permanently in ERROR:

error unsafe-multi-install: Installed integrations are not all declared multi-install safe: kiro-cli

--force on install bypasses the install-time gate but does not clear the status error, and there is no flag or config to acknowledge it — so the error is permanent as long as both integrations remain installed.

Fix

Set multi_install_safe = True on KiroCliIntegration (one line + an explanatory comment).

.kiro/ is unique to kiro-cli — no other integration in the registry uses that root — so declaring it safe introduces no path or manifest collisions.

Testing

  • The registry's parametrized TestMultiInstallSafeContracts suite now covers kiro-cli automatically: it asserts a static isolated root, pairwise-distinct agent roots and command dirs, and disjoint on-disk manifests across every safe integration. All pass with kiro-cli included.
  • Added a focused regression test (test_kiro_cli_is_declared_multi_install_safe) that pins the declaration itself, so a future edit can't silently drop the flag and reintroduce the permanent ERROR.
  • tests/integrations/test_registry.py (331 → 332 tests) and tests/integrations/test_integration_subcommand.py: 473 passed, 7 skipped (skips pre-existing, unrelated).
  • ruff check clean on both changed files.

🤖 Generated with Claude Code

kiro-cli confines all of its managed files to an isolated agent root
(`.kiro/`, with commands in `.kiro/prompts`) that no other integration
writes to, so it meets every documented criterion for multi-install
safety — but `KiroCliIntegration` never set `multi_install_safe = True`.

As a result, co-installing kiro-cli alongside any other integration left
`specify integration status` permanently in ERROR:

    error unsafe-multi-install: Installed integrations are not all
    declared multi-install safe: kiro-cli

`--force` bypasses the install-time gate but does not clear the status
error, and there is no flag or config to acknowledge it, so the error is
permanent while both integrations remain installed.

Set `multi_install_safe = True`. The registry's parametrized
multi-install-safe contract tests (static isolated root, distinct agent
roots / command dirs, disjoint manifests) now cover kiro-cli
automatically, and a focused regression test pins the declaration so a
future edit cannot silently drop it and reintroduce the error.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Declares Kiro CLI safe for co-installation because its files are isolated under .kiro/.

Changes:

  • Enables multi_install_safe for Kiro CLI.
  • Adds a regression test preserving the declaration.
Show a summary per file
File Description
src/specify_cli/integrations/kiro_cli/__init__.py Declares multi-install safety.
tests/integrations/test_registry.py Adds regression coverage.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Medium

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.

[Bug]: kiro-cli integration should be declared multi_install_safe

3 participants