refactor(#2512): propagate discovery errors and address review findings#2519
refactor(#2512): propagate discovery errors and address review findings#2519fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
Change discoverAgentSlugs and loadKnownSlugs to return errors instead of swallowing them. When DiscoverRemoteAgents fails with a transient error and no usable agents are found, the error is now propagated so callers can distinguish "no harness files exist" from "discovery failed." runUninstall and runGitHubUninstall now abort when discovery errors with no slugs, preventing silent fallback to default naming that could orphan GitHub Apps after deleting the config repo. Also: add ADR-0045 breadcrumb comments, tighten runGitHubUninstall variable declaration to short form, rename TestDiscoverAgentSlugs_HarnessFirst to TestDiscoverAgentSlugs_HarnessDiscovery, and add transient error tests for both discoverAgentSlugs and runUninstall. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
E2E tests did not runE2E tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the See E2E testing guide for details. |
Site previewPreview: https://f35c5660-site.fullsend-ai.workers.dev Commit: |
|
🤖 Finished Review · ✅ Success · Started 4:24 PM UTC · Completed 4:36 PM UTC |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
ReviewFindingsMedium
Low
Labels: PR modifies CLI install/uninstall slug discovery from harness wrapper files. |
|
/fs-fix. Rebase to get the latest sources. Fix so the code coverage test passes. Then address all actionalble review issues as well, even low ones. |
|
/fs-fix. Rebase to get the latest sources. Fix so the code coverage test passes. Then address all actionable review issues as well, even low ones. |
Change discoverAgentSlugs and loadKnownSlugs to return errors instead of swallowing them. When DiscoverRemoteAgents fails with a transient error and no usable agents are found, the error is now propagated so callers can distinguish "no harness files exist" from "discovery failed."
runUninstall and runGitHubUninstall now abort when discovery errors with no slugs, preventing silent fallback to default naming that could orphan GitHub Apps after deleting the config repo.
Also: add ADR-0045 breadcrumb comments, tighten runGitHubUninstall variable declaration to short form, rename TestDiscoverAgentSlugs_HarnessFirst to TestDiscoverAgentSlugs_HarnessDiscovery, and add transient error tests for both discoverAgentSlugs and runUninstall.
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Closes #2512
Post-script verification
agent/2512-refactor-config-review-findings)619c19d688c0aa3c25af0be4fd8b07cbc8099241..HEAD)