Skip to content

fix: preserve dots in Codex configuration keys - #1140

Merged
mldangelo-oai merged 1 commit into
mdangelo/codex/pr939-split-20-installed-typesfrom
mdangelo/codex/pr939-split-21-literal-config-keys
Oct 4, 2026
Merged

mldangelo-oai merged 1 commit into
mdangelo/codex/pr939-split-20-installed-typesfrom
mdangelo/codex/pr939-split-21-literal-config-keys

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Part 21 of 46. Previous: #1139 · Next: #1141 · Stack index

Summary

Quote literal configuration keys when building Codex command-line overrides, so a dotted key remains one key. Keep an unresolved profile selection available for Codex to resolve.

Changes

  • Use the shared table serializer in the permission-checked launcher, and remove profile only when its selection was resolved locally.

Testing

At the rebuilt #1141 integration, configuration, comparison, execution-preparation, and actual worker-launch coverage passed within 123 SDK tests (three platform skips). SDK and MCP types and the SDK CI build passed.

Risk and rollout

The serializer change applies to existing permission-checked launches. It adds no settings or flags. Fresh and resumed discovery/merge worker assertions are exercised with the SDK activation in part 39.

Public disclosure review

  • No customer, partner, prospect, or user identities, data, or identifying details are included.
  • No credentials, personal data, private source, scan findings, or nonpublic links or tickets are included.
  • I reviewed the branch name, title, description, commits, changes, comments, logs, screenshots, attachments, and links for public disclosure.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-04T13:27:18.078455Z 68e772b New commits
🔒 Security Review ✅ Completed 2026-10-04T13:29:47.405723Z 68e772b New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The key serialization and unresolved-profile behaviors need focused regression coverage.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Preserves literal Codex configuration keys during Deep Scan worker setup.

Changes:

  • Centralizes configuration override serialization with quoted non-bare keys.
  • Retains unresolved profile selections for native Codex resolution.
File Description
sdk/​typescript/​src/​config.ts Adds serialization and adjusts profile resolution.
sdk/​typescript/​src/​permission-profile.ts Uses centralized serialization for worker overrides.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

delete resolved["profile"];
const selected = selectedScanProfile(config);
const resolved = deepMerge(cloneJson(config), selected ?? {});
if (selected !== undefined) delete resolved["profile"];
...Object.entries((config ?? {}) as JsonObject).map(
([name, value]) => `${name}=${inlineToml(value)}`,
),
...codexConfigOverrides((config ?? {}) as JsonObject),

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 45a300dc16

ℹ️ 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".

...Object.entries((config ?? {}) as JsonObject).map(
([name, value]) => `${name}=${inlineToml(value)}`,
),
...codexConfigOverrides((config ?? {}) as JsonObject),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Cover literal settings at the worker boundary

This changes how configuration is forwarded to every permission-checked Deep Scan worker, but the commit adds no worker-launch regression coverage for literal dotted provider names, filesystem paths, or unresolved profiles. The existing launch test uses only simple keys and checks process ordering/resumption, so a serialization error affecting fresh or resumed discovery/reducer workers would go undetected; add assertions against the emitted --config arguments for inherited literal values and intentional turn-level overrides.

AGENTS.md reference: AGENTS.md:L30-L34

Useful? React with 👍 / 👎.

@mldangelo-oai mldangelo-oai changed the title fix: preserve literal keys in Codex settings fix: preserve dots in Codex configuration keys Oct 1, 2026

@faizan-oai faizan-oai left a comment

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.

Reviewed the literal-key quoting and profile-selection changes at 45a300d. Configuration tests pass on the integrated stack; current-head CI also passed. No new issue found.

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed the profile and literal-key change at 45a300dc163f22323158cfebc5559887ba45fd92 with three independent passes and root verification. No serious actionable findings. The focused configuration/preflight/permission suites pass (45 tests, 3 skipped), and separate probes verify resolved/unresolved profile handling and TOML round trips for literal keys. Existing regression-coverage suggestions remain useful; they do not establish a runtime defect in this diff.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-20-installed-types branch from 718d2f8 to dc9dfec Compare October 1, 2026 23:44
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-21-literal-config-keys branch from 45a300d to 22c019e Compare October 1, 2026 23:44

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The previously completed three independent passes carry forward after verifying the patch is identical; root reconciled the current base and discussion.

No serious outstanding finding was identified in this change. The scoped prior review and current diff remain consistent.

Approval is for this change. Integrated-tip validation passed 1,357 SDK tests (31 skipped), 105 MCP tests (2 skipped), portable checks, types/builds and installed-package smoke. Other stack findings and known CI fixture failures still prevent the stack from being mergeable.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-20-installed-types branch from dc9dfec to d9bc13e Compare October 2, 2026 00:36
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-21-literal-config-keys branch from 22c019e to b404833 Compare October 2, 2026 00:36

@alandelong-oai alandelong-oai left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed the real PR diff at b404833a6aef4f44aa14ad4bfba0b5f9a9c7d499. The patch is unchanged from the prior three-pass review. I reconciled the inherited changes in touched files and retained the prior verified findings and tests.

No serious outstanding finding identified in this patch; prior conclusions remain consistent with the unchanged change or the current re-review.

Validation across touched paths at branch tip 06e75cfe: 1,356 SDK tests, 867 Python tests plus 100 subtests, and 108 MCP tests passed; builds, types, portable checks and installed-package checks passed. These are integration checks at the branch tip, not a claim that every intermediate PR or its CI is clean. Latest workflow runs for this unchanged head were verified successful at 2026-10-02 01:26 UTC. Earlier failed or canceled job records are superseded; this CI status correction does not alter the review decision.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-21-literal-config-keys branch from b404833 to d75c4fd Compare October 2, 2026 01:37
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-20-installed-types branch 2 times, most recently from c3f46fd to a3f0652 Compare October 2, 2026 01:56
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-21-literal-config-keys branch from d75c4fd to 8ca7ef6 Compare October 2, 2026 01:56

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Retained the three independent passes for the identical patch and reconciled inherited touched-file changes at 8ca7ef618dea.

No actionable introduced finding survives the independent reviews and root reconciliation of this exact patch, touched-file changes, and current integration checks.

Current tip 355ec321 passed 75 report-projection tests, portable source checks, SDK build:ci and plugin build. The immediately preceding tip fec36f1d passed 1,360 SDK tests, 873 Python tests plus 100 subtests, 109 MCP tests, builds/types and the clean 600-entry installed-package check. Only report_projection.py and its test changed between those tips; SDK/MCP runtime files are byte-identical. Both descend from main 008a8b4d. These are integration checks, separate from own-head probes. No native Windows local run.

No serious outstanding finding introduced by this PR. Code review approval does not establish CI or merge readiness.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-21-literal-config-keys branch from 8ca7ef6 to 8311e7c Compare October 2, 2026 02:47
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-20-installed-types branch from a3f0652 to 27f214e Compare October 2, 2026 02:47

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Retained the three independent passes for the verified identical patch and reconciled inherited touched-file changes at 8311e7c8e4eb.

No actionable introduced finding survives the independent reviews and root reconciliation of this exact patch and inherited changes in touched files.

Integrated tip 6ef8cbb8, based on 008a8b4d, passed 1,388 SDK tests, 879 Python tests plus 100 subtests, 109 MCP tests, portable checks, builds and the clean 600-entry installed-package check. These are branch-tip integration checks, separate from own-head probes; no local Windows execution was performed.

No serious outstanding finding introduced by this PR. Code approval is separate from CI and merge readiness.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-21-literal-config-keys branch from 8311e7c to ba67e0d Compare October 2, 2026 03:52
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-20-installed-types branch from 27f214e to 45a4b91 Compare October 2, 2026 03:52
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Unknown error
ℹ️ 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".

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Retained three prior independent passes for the verified identical patch and reconciled inherited touched-file changes at ba67e0d2f3f0.

No actionable introduced finding survives the independent reviews and root reconciliation of this exact patch and inherited changes in touched files.

Branch tip 3e0083d9, based on 008a8b4d, passed 1,392 SDK tests, 881 Python tests plus 100 subtests, 109 MCP tests, builds, portable source checks and the 600-entry installed-package check. These are tip checks, separate from own-head probes. No local Windows run was performed. The tip excludes the dependency update merged separately in #1184; combined validation remains outstanding.

No serious outstanding finding introduced by this PR. Code approval is separate from CI and merge readiness.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-20-installed-types branch from 45a4b91 to e863285 Compare October 4, 2026 13:27
@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/pr939-split-21-literal-config-keys branch from ba67e0d to 68e772b Compare October 4, 2026 13:27

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed exact head 68e772bc8917b214d85446df0c916989e16e86b5 against base e8632855b945645edc4ae39a7fdc2948f9407c1d.

Three fresh independent HIGH passes reviewed the complete actual 60-line diff, both touched source files and captured instructions, followed by root synthesis. No changed tests or fixtures are present. No actionable introduced finding was established in this contribution. Native configuration behavior outside the touched scope remains a review limitation.

This head still inherits the separate #1123 source findings: saved replay can import the current ambient knowledge base when the saved selection is empty, and native preparation rejects a redundant absolute glob allow grant despite required root read. This approval covers this PR contribution; those inherited findings remain open.

Hosted CI for this exact head was green in the observation from 2026-10-04 13:55:27.631308 UTC to 13:55:51.281423 UTC. Completed raw job evidence retains its original collection times. No local tests, builds, model calls, native execution, Windows/Linux execution, clean install, whole-stack integration or deployment validation was performed in this review. Source approval, hosted CI and whole-stack integration remain separate.

@mldangelo-oai
mldangelo-oai merged commit 51cfc35 into mdangelo/codex/pr939-split-20-installed-types Oct 4, 2026
47 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/pr939-split-21-literal-config-keys branch October 4, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants