Problem
harness providers --force in Go only deletes the three named providers (github, vertex-local, atlassian) but does NOT delete custom profiles before reimporting. The bash providers.sh explicitly iterates sandbox/profiles/*.yaml, extracts each profile ID, and runs provider profile delete before reimporting.
Impact: --force in Go silently fails to update custom profiles that already exist — the import skips them.
Fix
- Add
ProviderProfileDelete(id string) error to the Gateway interface
- In
cmd/providers.go force path: iterate sandbox/profiles/*.yaml, parse id: field, call ProviderProfileDelete(id) before reimporting
- Match bash behavior at
providers.sh lines 57-63
Severity: High
Found by: 5-dimension code audit (equivalence review)
Problem
harness providers --forcein Go only deletes the three named providers (github, vertex-local, atlassian) but does NOT delete custom profiles before reimporting. The bashproviders.shexplicitly iteratessandbox/profiles/*.yaml, extracts each profile ID, and runsprovider profile deletebefore reimporting.Impact:
--forcein Go silently fails to update custom profiles that already exist — the import skips them.Fix
ProviderProfileDelete(id string) errorto the Gateway interfacecmd/providers.goforce path: iteratesandbox/profiles/*.yaml, parseid:field, callProviderProfileDelete(id)before reimportingproviders.shlines 57-63Severity: High
Found by: 5-dimension code audit (equivalence review)