refactor(config): remove legacy agent discovery fallbacks (ADR-0045 Phase 4 PR 3)#2448
refactor(config): remove legacy agent discovery fallbacks (ADR-0045 Phase 4 PR 3)#2448ggallen wants to merge 1 commit into
Conversation
…hase 4 PR 3) Remove the config.yaml agents: block fallback from agent slug discovery. Harness wrapper files are now the sole source of agent identity. The legacy loadKnownSlugsLegacy function, the config.yaml tier in discoverAgentSlugs, and all associated deprecation warnings are deleted. Callers (runUninstall, runGitHubUninstall) no longer parse config.yaml to pass to discoverAgentSlugs — they fall back to DefaultAgentRoles() convention when harness discovery returns empty. 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>
PR Summary by QodoRemove legacy config.yaml agent-discovery fallbacks; rely on harness wrappers only Description
Diagram
High-Level Assessment
Files changed (6)
|
Site previewPreview: https://7ddae3e1-site.fullsend-ai.workers.dev Commit: |
|
🤖 Finished Review · ✅ Success · Started 9:47 PM UTC · Completed 10:00 PM UTC |
Code Review by Qodo
Context used✅ Tickets:
🎫 Shared Feature Toggle Strategy for HCC✅ Compliance rules (platform):
51 rules✅ Skills:
writing-user-docs, writing-adrs 1. Uninstall proceeds on discovery error
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
ReviewFindingsLow
Labels: PR removes legacy config.yaml agent discovery fallbacks from CLI install/uninstall commands as part of harness migration |
Pre-existing behavior, unchanged by this PR. The old code also warned on discovery errors and fell through to defaults. The config.yaml fallback used the same forge client (
Also pre-existing and already addressed by the migration plan. The |
Summary
loadKnownSlugsLegacyand the config.yamlagents:block fallback tier fromloadKnownSlugs— harness wrapper files are now the sole discovery pathcfg *config.OrgConfigparameter and tier-2 fallback fromdiscoverAgentSlugsrunUninstallandrunGitHubUninstallcallers to stop parsing config.yaml fordiscoverAgentSlugsADR:
docs/ADRs/0045-forge-portable-harness-schema.mdPlan:
docs/plans/adr-0045-forge-portable-harness-phase4.md— PR 3Test plan
make go-test— all tests passmake lint— cleango vet ./...— cleanloadKnownSlugsreturns slugs from harness filesloadKnownSlugsreturns nil when no harness files exist (no legacy fallback)discoverAgentSlugsreturns nil when no harness files existrunUninstallfalls back toDefaultAgentRoles()when harness discovery is emptyrunGitHubUninstallfalls back toDefaultAgentRoles()when harness discovery is emptygrep -rn 'loadKnownSlugsLegacy' --include='*.go'returns no results🤖 Generated with Claude Code