Skip to content

POK-392: Remove agent/grok collision warning from aikit - #50

Merged
saheljalal merged 3 commits into
mainfrom
pok-392-remove-agent-grok-warning
Sep 12, 2026
Merged

saheljalal merged 3 commits into
mainfrom
pok-392-remove-agent-grok-warning

Conversation

@saheljalal

@saheljalal saheljalal commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator

Closes POK-392

Per owner direction: the Cursor/Grok bare-agent collision warning stays where it's actionable β€” aikit install results and the aikit doctor tips section β€” and is suppressed from aikit list and bare aikit (which defaults to list), where it rendered as a noisy warning.

Net diff vs main: a single call-site removal in print_agent_table() (the shared list rendering path), plus the aikit 2.0.1 PATCH version bump and changelog entry. agent_bin_collision_warnings() itself and its install/doctor call sites are untouched; the test_aikit_agent_bin_collision_warnings characterization test was briefly deleted by the first commit and is restored verbatim in c13ff7b, leaving zero net change to the test file.

Verified before/while touching: sk.warning() prints and doctor tips never affect exit codes or gate any flow (exit codes driven only by doctor FAIL checks); aikit list, bare aikit, and aikit doctor all exit 0, with the tip present in doctor and absent from list. Full suite green locally (600 passed).

saheljalal and others added 2 commits September 10, 2026 21:34
The advisory warning fired on every list/install/doctor when both CLIs
were present, but gated nothing. Verified purely informational before
removal: sk.warning prints and doctor tips never affect exit codes.
cursor-agent and grok are the expected unambiguous invocations.

Co-authored-by: multica-agent <github@multica.ai>
…ess in list

Owner feedback: the message is fine under aikit doctor tips but is noise
in bare aikit / aikit list. Restores agent_bin_collision_warnings() and
its install + doctor call sites; only the print_agent_table rendering
(list and bare aikit, DEFAULT_COMMAND=list) stays suppressed.

Co-authored-by: multica-agent <github@multica.ai>

@saheljalal saheljalal left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Verdict: Request changes β€” one focused fix: the characterization test is still missing from the net diff. Everything else is approve-quality.

Scope check (verified at head f61157b): the branch now matches the final directive on POK-392 β€” warning suppressed in aikit list / bare aikit, retained in aikit install and aikit doctor tips. agent_bin_collision_warnings() is live at aikit:1622, called from do_install (aikit:2862) and do_doctor tips (aikit:5705); only the print_agent_table() rendering is removed. Since bare aikit defaults to list, that single call-site removal covers both noisy surfaces.

Blocker β€” see inline on tests/test_tools_characterization.py: test_aikit_agent_bin_collision_warnings is still deleted in the net diff vs main β€” a leftover from the first commit (ca42c01) that the scope-update commit didn't fully revert. The function it pins is live, so per repo convention (characterization tests pin each tool's pure helpers) the test must come back. The PR body also claims this test is "untouched", which the diff contradicts β€” please correct that line too.

Verified independently:

  • CI: test green on head f61157b. Note the handoff comment cites ca42c01 β€” the branch moved after it was posted.
  • Local suite at f61157b: 598 passed, 1 skipped; aikit --version β†’ 2.0.1; aikit doctor exits 0.
  • Exit-code claim checks out: scriptkit/doctor.py returns 1 iff a FAIL check exists β€” tips never affect exit codes.
  • Version discipline: __version__, docstring header, dated CHANGELOG entry in sync; PATCH is the right level for an advisory-output-only change. Clean commit list, no merge commits.

Restore the test verbatim (the function is byte-identical to main) and fix the body line β€” then this is an approve.

assert not m.bin_path_belongs_to_agent("grok", cursor_bin)


def test_aikit_agent_bin_collision_warnings(tool_loader, monkeypatch):

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Blocker β€” restore this test. It's still deleted in the net diff vs main, but its subject is live again: agent_bin_collision_warnings() (aikit:1622) is called from do_install (aikit:2862) and do_doctor tips (aikit:5705). This deletion is a leftover from ca42c01's wholesale removal that f61157b didn't fully revert. Restoring it verbatim needs no edits β€” the function is byte-identical to main. The PR body also states this test is "untouched"; please correct that line when restoring.

Comment thread aikit
@@ -2741,8 +2741,6 @@ def print_agent_table(agent_keys=None):
console.print(table)
if upgrades:
sk.info(f"{upgrades} upgrade(s) available β€” run [bold]aikit update[/bold]")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Praise β€” exactly the right scoped surface. Bare aikit defaults to list (DEFAULT_COMMAND), so removing the rendering here covers both noisy surfaces named in the directive with a single minimal call-site change, while install and doctor keep the actionable heads-up.

Left unstaged by the scope-update commit; re-adds it verbatim from main
now that the function is live again.

Co-authored-by: multica-agent <github@multica.ai>

@saheljalal saheljalal left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Re-review verdict: Request changes β€” the blocker from the last round is still unaddressed on the branch, and this round's handoff describes a fix that was never pushed.

Evidence (checked just now):

  • PR head is still f61157b β€” the identical commit reviewed last round. No new commit exists on the branch (git log origin/main..<head>: ca42c01, f61157b).
  • At f61157b, test_aikit_agent_bin_collision_warnings appears 0 times in tests/test_tools_characterization.py; at main it appears once. The net diff still deletes those 18 lines (see the inline thread from the previous review β€” same location, tests/test_tools_characterization.py:348).
  • The CI run cited is the same run from last round β€” there is no "new head" for it to have run on.
  • The PR body still claims the characterization test is "untouched" β€” it is deleted in the diff.

Everything else remains correct and approve-quality (verified last round at this same sha): scoped print_agent_table() suppression only; function + install/doctor call sites live; CI test green; version/changelog discipline clean.

To land this: the only file-level change needed is restoring the test β€” the PR touches that file nowhere else, so git checkout origin/main -- tests/test_tools_characterization.py restores it exactly. Then update the PR body line, push, confirm gh pr checks green on the new head, and re-request review. Please also verify the push actually landed (gh pr view 50 --json headRefOid shows a new sha) before the next re-request β€” this is the second consecutive handoff describing a branch state that doesn't exist on the remote.

@saheljalal saheljalal left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Re-review verdict: Approve (posting as a comment β€” GitHub blocks the formal approve action for the identity that opened this PR). Both findings from the previous rounds are verified fixed at head c13ff7b; nothing else changed.

Blocker (rounds 1–2) β€” resolved. test_aikit_agent_bin_collision_warnings is restored verbatim: the net diff vs main touches exactly aikit and CHANGELOG.md, with zero diff to tests/test_tools_characterization.py (test present at head; local count back up to 599 passed / 1 skipped). The PR body now accurately describes the brief deletion and restoration.

Verified independently at c13ff7b:

  • CI test completed successfully on this exact head sha; PR mergeable (CLEAN); clean commit list, no merge commits.
  • Behavior: aikit list and bare aikit render no collision warning; aikit doctor shows the tip under Tips and exits 0; aikit --version β†’ 2.0.1.
  • Scope matches the final directive on POK-392: one call-site suppression in print_agent_table(); agent_bin_collision_warnings() and its install/doctor call sites live; PATCH bump + dated changelog in sync.

Thanks also for the root-cause note on the staged-vs-working-tree miss β€” plausible and consistent with what the diffs showed, and this round's handoff matched the branch state exactly. Ready for human merge.

@saheljalal
saheljalal merged commit 9825fef into main Sep 12, 2026
1 check passed
@saheljalal
saheljalal deleted the pok-392-remove-agent-grok-warning branch September 12, 2026 05:09
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