Skip to content

test(search): keep Kiro out of older hosts' expected history-search agents - #27002

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/kiro-history-search-wire-tests
Oct 9, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/kiro-history-search-wire-tests

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 0
Prod 0 0 0 0

ELI5

main's "cross-version wire compatibility" CI job is red. Seven session-history-search tests expect older Orca hosts to accept Kiro in a search filter. They never could, and the app already correctly leaves Kiro out when talking to them. Only the tests' expected lists were wrong. This fixes those lists.

What Changed

Before: every PR whose CI runs the cross-version wire job failed it. The failures were in qoder-history-search-downgrade.unit.test.ts (5 tests) and session-search-agent-set-downgrade.unit.test.ts (2 tests). For example, the test expected kiro in the agent filter sent to a v1.4.211 host, but the filter actually sent doesn't include it.

After: the tests expect what the app correctly does: Kiro is withheld from older hosts, the same as Jcode and the other agents added after those releases.

Mechanism: these tests build "the agents an older host understands" as AI_VAULT_AGENTS minus the agents added later. #26695 (Kiro session history) added kiro to AI_VAULT_AGENTS, and updated the same exclusion lists in the unit tests (session-search-agent-compatibility.test.ts, ai-vault-search.test.ts). It missed the two cross-version tests, which only run in that CI job. Test-only change; no product code changes.

Why

The product code is right. LEGACY_SEARCH_AGENTS in src/shared/ai-vault-search-agent-compatibility.ts is frozen to the v1.4.211 parser and has no Kiro capability flag, so Kiro is never sent to a host that hasn't said it supports it. Changing the code to send Kiro would make those older hosts reject the whole search.

Linked Issue

None. Found while checking CI on #26962, where the same 7 failures appear. They reproduce on a clean main (d358e5973cf).

Visual Proof

N/A. Test-only change with no UI.

Testing

  • tests/e2e/cross-version-wire/: 35 files and 182 tests pass locally. Before this change, the two files had 7 failures on clean main.

  • oxlint is clean on both files.

  • Automated tests updated

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

…gents

#26695 added Kiro to the history-search agent catalog and updated the
unit tests, but the cross-version wire tests still built their expected
older-host agent list as 'everything except the agents added later',
which now included Kiro. Older hosts never accepted Kiro, and the
client correctly withholds it, so those 7 tests failed on main.
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0ff4d3a8-174b-4cbe-b92b-5f1ab7f6e5d5

📥 Commits

Reviewing files that changed from the base of the PR and between f0dd050 and 5eac4a6.


📒 Files selected for processing (2)
  • tests/e2e/cross-version-wire/qoder-history-search-downgrade.unit.test.ts
  • tests/e2e/cross-version-wire/session-search-agent-set-downgrade.unit.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.



📝 Walkthrough

Walkthrough

The cross-version downgrade tests now exclude kiro from the expected legacy and projected agent lists. The updates cover the Qoder capability test and the fallback search request test.


Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 5eac4

The changes are limited to expected agent lists in older-host tests. No merge-blocking risk is identified in the supplied context.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check Warning The description clearly explains the failure, scope, rationale, affected tests, and verification results. It does not provide the required linked issue and omits several template sections, including R… Add an actual linked issue in the required Fixes #... section, or provide the applicable pre-existing issue for a maintainer PR. Complete the omitted template sections or explicitly mark them as not applicable.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely describes the test change: excluding Kiro from expected history-search agents on older hosts.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

Full details: Description check

Explanation

The description clearly explains the failure, scope, rationale, affected tests, and verification results. It does not provide the required linked issue and omits several template sections, including Review, Notes, Checklist, and AI Disclosure.



  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR


🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@brennanb2025
brennanb2025 merged commit a825a84 into main Oct 9, 2026
51 of 53 checks passed
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