spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

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

Open Noor-ul-ain001 opened this issue 4 months ago • 0 comments

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

Noor-ul-ain001 avatar Jul 13 '26 04:07 Noor-ul-ain001