Problems
ProviderList missing ANSI stripping
cli.go ProviderList does not strip ANSI codes before parsing. SandboxList, GatewayList, InferenceModel, and ActiveGateway all do. ProviderList is the only parser that skips this.
Fix: Add cleaned := ansiRE.ReplaceAllString(line, "") before strings.Fields(line) in ProviderList.
Missing tests for output-parsing methods
cli_test.go has tests for ProviderList, ProviderGet, InferenceGet, SandboxCreate, SandboxDelete — but zero coverage for:
- GatewayList (complex branching for * active marker)
- SandboxList (ANSI stripping)
- InferenceModel (Model: line parsing)
- ActiveGateway (* prefix parsing)
- CLIVersion, CLIPath
Fix: Add stub-script tests using the existing writeStub pattern.
deploy --remote --kubeconfig not forwarded
Bash deploy.sh accepts --kubeconfig and exports it. Go deploy.go hardcodes only --remote when delegating to the bash script. Users running harness deploy --remote --kubeconfig /path get an unknown-flag error.
Fix: Forward all extra args to the bash script, or add --kubeconfig flag and pass it through.
Severity: Medium
Found by: 5-dimension code audit (gateway interface + equivalence review)
Problems
ProviderList missing ANSI stripping
cli.goProviderList does not strip ANSI codes before parsing. SandboxList, GatewayList, InferenceModel, and ActiveGateway all do. ProviderList is the only parser that skips this.Fix: Add
cleaned := ansiRE.ReplaceAllString(line, "")beforestrings.Fields(line)in ProviderList.Missing tests for output-parsing methods
cli_test.gohas tests for ProviderList, ProviderGet, InferenceGet, SandboxCreate, SandboxDelete — but zero coverage for:Fix: Add stub-script tests using the existing writeStub pattern.
deploy --remote --kubeconfig not forwarded
Bash
deploy.shaccepts--kubeconfigand exports it. Godeploy.gohardcodes only--remotewhen delegating to the bash script. Users runningharness deploy --remote --kubeconfig /pathget an unknown-flag error.Fix: Forward all extra args to the bash script, or add
--kubeconfigflag and pass it through.Severity: Medium
Found by: 5-dimension code audit (gateway interface + equivalence review)