refactor(harness): migrate loadKnownSlugs to harness-first discovery - #2361
Conversation
Site previewPreview: https://534e1cb5-site.fullsend-ai.workers.dev Commit: |
|
🤖 Finished Review · ✅ Success · Started 8:05 PM UTC · Completed 8:17 PM UTC |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Looks good to me Previous runReviewFindingsLow
Info
Previous run (2)ReviewFindingsMedium
Low
Info
|
21feb10 to
5f459cd
Compare
|
🤖 Finished Review · ✅ Success · Started 8:42 PM UTC · Completed 8:53 PM UTC |
ADR-0045 Phase 3, PR 4: loadKnownSlugs now discovers agent identity from harness wrapper files in the config repo via DiscoverRemoteAgents before falling back to the config.yaml agents: block. When the legacy path is used, a deprecation warning is emitted. Signed-off-by: Greg Allen <gallen@redhat.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
5f459cd to
f902ef8
Compare
|
🤖 Finished Review · ✅ Success · Started 12:18 AM UTC · Completed 12:27 AM UTC |
|
🤖 Finished Retro · ✅ Success · Started 1:20 AM UTC · Completed 1:29 AM UTC |
Retro: PR #2361 —
|
Summary
loadKnownSlugs()ininternal/cli/admin.goto prefer harness wrapper files over theconfig.yamlagents:block for agent identity discovery.loadKnownSlugsLegacyand introduces a newloadKnownSlugsthat callsharness.DiscoverRemoteAgentsfirst, falling back to the legacy path with a deprecation warning.Test plan
TestLoadKnownSlugs_HarnessFilesPreferred— harness files present → uses harness slugs, no deprecation warningTestLoadKnownSlugs_FallbackToAgentsBlock— no harness dir → falls back toconfig.yaml, emits deprecation warningTestLoadKnownSlugs_HarnessFilesWithoutRoleSlug_FallsBack— harness files without role/slug → falls back toconfig.yamlTestLoadKnownSlugs_NeitherSource_ReturnsNil— no harness files, no config.yaml → returns nilTestLoadKnownSlugs_DuplicateRoles_FirstWins— duplicate roles in harness files → first entry (sorted order) winsmake lintpassesgo vet ./internal/cli/cleango test ./internal/cli/all tests pass🤖 Generated with Claude Code