Skip to content

config: own layer provenance types - #29722

Merged
anp-oai merged 2 commits into
mainfrom
codex/split-config-layer-types
Jun 24, 2026
Merged

config: own layer provenance types#29722
anp-oai merged 2 commits into
mainfrom
codex/split-config-layer-types

Conversation

@anp-oai

@anp-oai anp-oai commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Why

Config layer provenance describes how effective configuration was assembled, so it belongs with the config loader rather than in app-server's serialized API types.

What changed

  • Moved ConfigLayerSource, ConfigLayerMetadata, and ConfigLayer ownership into codex-config.
  • Kept app-server's wire payloads unchanged and added explicit conversions at the app boundary.
  • Removed lower-level app-server-protocol dependencies from config consumers.

Stack

This is PR 3 of 6, stacked on PR #29721. Review only the delta from codex/split-auth-domain-types. Next: PR #29723.

Validation

  • codex-config coverage passed.
  • App-server config-manager and config RPC coverage passed.

@anp-oai
anp-oai force-pushed the codex/split-config-layer-types branch from c7ae534 to 61f5258 Compare June 23, 2026 21:50
@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch 2 times, most recently from f00f809 to 64120ff Compare June 23, 2026 22:03
@anp-oai
anp-oai force-pushed the codex/split-config-layer-types branch from 61f5258 to 015c659 Compare June 23, 2026 22:03
@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from 64120ff to 76d09e4 Compare June 23, 2026 22:20
@anp-oai
anp-oai force-pushed the codex/split-config-layer-types branch from 015c659 to ed61b3f Compare June 23, 2026 22:21
@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from 76d09e4 to 8b382e2 Compare June 23, 2026 22:53
@anp-oai
anp-oai force-pushed the codex/split-config-layer-types branch from ed61b3f to 1e52f8f Compare June 23, 2026 22:53
@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from 8b382e2 to d7542b0 Compare June 23, 2026 23:35
@anp-oai
anp-oai force-pushed the codex/split-config-layer-types branch from 1e52f8f to a73bfc8 Compare June 23, 2026 23:35
Comment thread codex-rs/app-server/src/config_layer.rs
Comment thread codex-rs/app-server/src/config_layer.rs
Comment thread codex-rs/app-server/src/config_layer.rs
@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from d7542b0 to d9cced7 Compare June 24, 2026 00:30
@anp-oai
anp-oai force-pushed the codex/split-config-layer-types branch from a73bfc8 to f093c8f Compare June 24, 2026 00:30
@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from d9cced7 to 80adf1c Compare June 24, 2026 00:46
@anp-oai
anp-oai force-pushed the codex/split-config-layer-types branch from f093c8f to e70d4aa Compare June 24, 2026 00:46
@anp-oai
anp-oai marked this pull request as ready for review June 24, 2026 01:03
@anp-oai
anp-oai requested a review from a team as a code owner June 24, 2026 01:03
@anp-oai

anp-oai commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: e70d4aa79a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from 80adf1c to 0690561 Compare June 24, 2026 02:53
anp-oai added a commit that referenced this pull request Jun 24, 2026
## Why

Authentication mode is a domain concept used by login, model selection,
telemetry, and transports. Keeping the canonical type in app-server
protocol forces those lower-level crates to depend on an unrelated wire
API.

## What changed

- Added canonical `codex_protocol::auth::AuthMode` domain values.
- Kept the app-server wire DTO unchanged and added an explicit app-side
conversion.
- Removed production app-server-protocol dependencies from login,
model-provider-info, models-manager, and otel call paths.

## Stack

This is PR 2 of 6, stacked on [PR
#29714](#29714). Review only the
delta from `codex/split-json-rpc-protocols`. Next: [PR
#29722](#29722).

## Validation

- Auth and login coverage passed in the focused protocol/domain test
run.
- App-server account and auth conversion coverage passed.
Base automatically changed from codex/split-auth-domain-types to main June 24, 2026 03:10
@anp-oai
anp-oai force-pushed the codex/split-config-layer-types branch from e70d4aa to 80ed159 Compare June 24, 2026 03:12
@anp-oai
anp-oai force-pushed the codex/split-config-layer-types branch from 80ed159 to 3942ea3 Compare June 24, 2026 03:42
@anp-oai
anp-oai enabled auto-merge (squash) June 24, 2026 03:42
@anp-oai
anp-oai merged commit 1d65cca into main Jun 24, 2026
31 checks passed
@anp-oai
anp-oai deleted the codex/split-config-layer-types branch June 24, 2026 04:03
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants