Repository navigation
fix(presets): admit reviewed ACP endpoint connections - #235
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Harbor’s ACP agent rejects the
model_apioption, so reviewed endpoint presets could not start an ACP run.This change keeps the approved endpoint URL and key delivery, while leaving ACP options in the form Harbor accepts.
A source-pinned ACP agent can now use a reviewed endpoint connection without changing other agent presets.
What Changed
ACP gets its client configuration from its pinned source. The connection still requires an explicitly named API style and one approved grant.
model_apiin the ACP agent’s nativekwargs; keep it for agents that support the option.model_apivalues.I checked pinned Harbor revision
fcf27e5502e30436b067ef2d655368e86cc42cf9:src/harbor/agents/installed/acp.py(AcpOptions,AcpAgent),src/harbor/agents/options.py(InstalledAgentOptions) andsrc/harbor/models/agent/acp_source.py(AcpAgentSource). Harbor already owns source installation and ACP execution. This change adds no runner, mirrored field, or result format.Testing
The targeted ACP test and the full suite pass when the test locale matches its USD-format expectation. A live ACP endpoint run remains to be checked before this draft is ready.
LC_ALL=en_US.utf8 npm test(1,718 passed)npm run format:check,npm run lint,npm run typecheck,npm run build,npm run check:generatednpm audit --audit-level=low(zero vulnerabilities)npm run test:e2e(77 passed)uv run python scripts/check_public_privacy.py .Risks
ACP does not store an API-style argument in its native JobConfig. The reviewed source must configure the intended client; an ambiguous grant is refused on restart. The hosted canary has not run yet. An unset locale on this machine uses
en-SGand fails three unchanged currency-string assertions because it printsUS$instead of$.Follow-ups
Run the hosted ACP canary against a reviewed source and verify its results and cleanup before marking this pull request ready. No related issue was opened.