Registry Mirror
Skip to content

Conversation

@yuval-k

@yuval-k yuval-k commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

2 conditions
Accepted - for translation error
ResolvedRefs - for reference issues (i.e. model config referencing a secret)

@yuval-k
yuval-k requested a review from a team as a code owner August 28, 2026 20:45
@github-actions github-actions Bot added the enhancement New feature or request label Aug 28, 2026
@yuval-k
yuval-k force-pushed the yuval-k/model-config-status branch from fb541b3 to 6b41882 Compare August 28, 2026 20:45
Comment thread go/core/v2/translator/reader.go Outdated
}

type ModelConfigTranslation struct {
Model adk.Model

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All harnesses should consume a validated and resolved ModelConfig, but this shared type is kagent-specific because it embeds adk.Model, and collectionReader constructs it with kagenttranslator.NewModelCompiler. Could this instead be a harness-neutral resolved model containing validated config, resolved non-secret values, references, and provenance, leaving ADK, Codex, and Claude rendering to their adapters?

Comment thread go/core/v2/controller/modelconfig.go Outdated
statuses, _ := krt.NewStatusCollection(modelConfigs, func(ctx krt.HandlerContext, modelConfig *kagentv1alpha3.ModelConfig) (*kagentv1alpha3.ModelConfigStatus, *ModelConfigReconciliation) {
state := &ModelConfigReconciliation{ModelConfigName: krt.Named{Namespace: modelConfig.Namespace, Name: modelConfig.Name}}
reader := collectionReader{ctx: ctx, configMaps: configMaps, secrets: secrets, modelConfigs: modelConfigs}
translation, translationErr := kagenttranslator.NewModelCompiler(reader).TranslateModel(context.Background(), modelConfig)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make this shared resolution return typed semantic-vs-reference failures and validate the effective provider references? Right now TranslateModel dereferences SAP/Bedrock Secrets and Foundry ConfigMaps, so missing references also set Accepted=False, while addSecret misses the TLS caCertSecretKey, SAP client_id/client_secret, and Bedrock fixed credential keys. That can make the two conditions inconsistent or report ResolvedRefs=True for unusable credentials.

yuval-k and others added 2 commits September 1, 2026 18:56
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
@EItanya
EItanya force-pushed the yuval-k/model-config-status branch from f321f97 to c7007d3 Compare September 1, 2026 19:01
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
@EItanya
EItanya enabled auto-merge (squash) September 1, 2026 20:55
@EItanya
EItanya disabled auto-merge September 1, 2026 21:08
@EItanya
EItanya merged commit 9623d27 into main Sep 1, 2026
22 checks passed
@EItanya
EItanya deleted the yuval-k/model-config-status branch September 1, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants