Commit 2d3468a
committed
feat(cli): add runtime fallback to agents repo for unconfigured agents
When an agent is not registered in config.yaml, resolveAgentSource now
attempts to fetch the latest harness from fullsend-ai/agents before
falling back to the scaffold-embedded harness on disk.
The fallback resolves the main branch HEAD SHA via the forge.Client
interface, validates the SHA format, constructs a pinned URL with
integrity hash, checks the org allowlist before any outbound fetch,
and uses the existing FetchAgentHarness path for full security
validation.
Only known first-party agents (triage, code, fix, review, retro,
prioritize) are eligible for fallback; the fallback is skipped in
offline mode or when no forge client is available. This is a
transitional mechanism for the agent extraction
(docs/plans/agent-extraction-to-agents-repo.md) and will be removed
once all users have migrated to config-driven registration (ADR 0058
Phase 5).
Signed-off-by: Greg Allen <gallen@redhat.com>
Signed-off-by: Claude <noreply@anthropic.com>
Signed-off-by: Greg Allen <gallen@redhat.com>1 parent d7a3a60 commit 2d3468a
6 files changed
Lines changed: 1155 additions & 11 deletions
File tree
- docs
- ADRs
- plans
- internal/cli
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
0 commit comments