refactor(cli): migrate uninstall flows to harness-first agent discovery - #2364
Merged
Merged
Conversation
Site previewPreview: https://7e543980-site.fullsend-ai.workers.dev Commit: |
|
🤖 Finished Review · ✅ Success · Started 8:11 PM UTC · Completed 8:23 PM UTC |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Looks good to me Previous runReviewFindingsHigh
Medium
Low
|
Uninstall commands (runUninstall and runGitHubUninstall) now discover agent slugs from harness wrapper files in the config repo before falling back to the config.yaml agents: block. A shared discoverAgentSlugs helper encapsulates the three-tier fallback chain (harness files → agents: block → caller default) and emits a deprecation warning when the legacy path is used. This is Phase 3, PR 5 of ADR-0045 (forge-portable harness schema). Signed-off-by: Greg Allen <gallen@redhat.com> Signed-off-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
ggallen
force-pushed
the
worktree-adr-0045-phase3-pr5
branch
from
June 16, 2026 20:39
f06928a to
25a286f
Compare
|
🤖 Finished Review · ✅ Success · Started 8:43 PM UTC · Completed 8:55 PM UTC |
8 tasks
|
🤖 Finished Retro · ✅ Success · Started 12:25 AM UTC · Completed 12:35 AM UTC |
Retro: PR #2364 — migrate uninstall flows to harness-first agent discoveryVerdict: Clean workflow, no new proposals needed. Timeline
What went well
Minor gaps observed (already tracked)
No new proposals warranted — existing issues cover the observed gaps. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
discoverAgentSlugshelper (internal/cli/discover_slugs.go) that encapsulates three-tier agent slug discovery: harness wrapper files →config.yamlagents:block → caller default (e.g.,DefaultAgentRoles()convention)runUninstall(admin.go) andrunGitHubUninstall(github.go) to calldiscoverAgentSlugsbefore falling back to legacy app-set namingagents:block instead of harness filesThis is Phase 3, PR 5 of ADR-0045 (forge-portable harness schema). It depends on PR 2 (remote harness discovery via
DiscoverRemoteAgents).Dependency graph
Test plan
TestDiscoverAgentSlugs_HarnessFirst— harness files preferred overagents:blockTestDiscoverAgentSlugs_FallsBackToAgentsBlock— falls back with deprecation warningTestDiscoverAgentSlugs_HarnessWithoutSlug_FallsBack— harness with role but no slug triggers fallbackTestDiscoverAgentSlugs_NeitherSource_ReturnsNil— both empty returns nilTestDiscoverAgentSlugs_DeduplicatesSlugs— duplicate slugs across harnesses are deduplicatedTestDiscoverAgentSlugs_EmptyAgentsBlock_ReturnsNil— empty agents block doesn't trigger warningTestRunUninstall_UsesHarnessDiscovery— uninstall prefers harness slugsTestRunUninstall_FallsBackToAgentsBlockWithWarning— uninstall fallback with warningTestRunGitHubUninstall_UsesHarnessDiscovery— GitHub uninstall prefers harness slugsTestRunGitHubUninstall_FallsBackToAgentsBlock— GitHub uninstall fallback with warningmake go-test— full suite passesmake lint— clean🤖 Generated with Claude Code