Repository navigation
refactor(agent): declare adapter capabilities - #217
Merged
Merged
Conversation
JHWang-1997
reviewed
Aug 20, 2026
JHWang-1997
left a comment
Collaborator
There was a problem hiding this comment.
The requested/effective split is useful, but the effective provider identity can diverge from the provider actually used by Codex when provider configuration falls back to local defaults. The inline comment includes a concrete example and suggested resolution.
JHWang-1997
enabled auto-merge
August 26, 2026 06:15
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
model_namesemanticsConfiguration semantics
requested_configuration: values selected through YAML, CLI, environment, and credential precedenceapplied_configuration: values skill-up forwards to the CLI after adapter normalization; local CLI settings may still override themobserved_configuration: emitted only when every runner session explicitly reports the same model; per-case observations remain inobserved_modelWhen Codex cannot apply a requested custom provider, its applied provider, model, endpoint, and provider-scoped credential are all omitted before falling back to local Codex settings.
Custom engines consume the top-level provider/model/API-key identity, but custom endpoints and parameters remain under
engine.custom.http.urlandengine.custom.kwargs; unused top-levelbase_urlorengine.kwargsare now surfaced rather than reported as applied.Capability warnings do not include configured kwarg values, preventing an accidentally supplied credential from being persisted in logs or
result.json.No auth probe or extra model request is introduced, so existing local CLI login remains valid without consuming tokens merely to inspect state.
Model connection follow-up
The design follows Harbor's useful layering (
ProviderAccess->ResolvedModelConnection-> native agent config) without copying its model-based provider inference or credential alias fan-out. Protocol-aware connection resolution, adapter materialization,--providercompatibility, and native configuration remain staged follow-ups in #196 rather than expanding this PR.Compatibility
model_namesemantics are preservedTesting
make verifymake testmake e2ego test -tags e2e -v ./e2e -run TestPipeline_ReportsRequestedAppliedAndUnknownObservedModel -count=1One separate self-review-triggered E2E rerun observed the existing local Qoder behavior where a successful run reports zero token usage; the full pre-push
make e2erun passed.Part of #196