Skip to content

Produce written audit record for TOML read-merge-write correctness#4128

Merged
Trecek merged 2 commits into
developfrom
t5-p6-a8-wp1-produce-written-audit-record-confirming-the-tom/4057
Jun 27, 2026
Merged

Produce written audit record for TOML read-merge-write correctness#4128
Trecek merged 2 commits into
developfrom
t5-p6-a8-wp1-produce-written-audit-record-confirming-the-tom/4057

Conversation

@Trecek

@Trecek Trecek commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Produce a written audit record confirming that the TOML read-merge-write path in _codex_config.py and _codex_hooks.py is correct (unknown keys are preserved, no destructive overwrite), and add four new tests validating unknown-key preservation through ensure_codex_mcp_registered and sync_hooks_to_codex_config. The audit document at .autoskillit/temp/audit_toml_read_merge_write_2026-06-27.md confirms six findings about the read-merge-write path; tests verify behavior in tests/backend/test_codex_hooks_round_trip.py, tests/execution/backends/test_codex_config.py, and tests/hooks/test_codex_hooks.py.

Individual Group Plans

Group 1: t5-p6-a8-wp1-audit-toml-read-merge-write_plan_2026-06-27_080000

Produce a written audit document confirming that the TOML read-merge-write path in _codex_config.py and _codex_hooks.py is correct (unknown keys are preserved, no destructive overwrite), then add four new tests validating unknown-key preservation through ensure_codex_mcp_registered and sync_hooks_to_codex_config. No production source files are modified.

Group 2: t5-p6-a8-wp1-produce-written-audit-record_plan_2026-06-27_075138

Create the missing audit findings document at .autoskillit/temp/audit_toml_read_merge_write_2026-06-27.md confirming six findings about the TOML read-merge-write path in _codex_config.py and _codex_hooks.py. No source code or test changes — the tests already exist and pass. This is a documentation-only deliverable.

Closes #4057

Implementation Plan

Plan files:

  • /home/talon/projects/autoskillit-runs/impl-20260627-075138-527422/.autoskillit/temp/make-plan/t5-p6-a8-wp1-audit-toml-read-merge-write_plan_2026-06-27_080000.md
  • /home/talon/projects/autoskillit-runs/impl-20260627-075138-527422/.autoskillit/temp/make-plan/t5-p6-a8-wp1-produce-written-audit-record_plan_2026-06-27_075138.md

🤖 Generated with Claude Code via AutoSkillit

Token Usage Summary

Step Model count uncached output cache_read peak_ctx turns cache_write time
plan* opus[1m] 2 2.9k 17.8k 1.8M 87.3k 60 105.9k 15m 14s
verify* sonnet 2 200 26.0k 1.1M 60.4k 63 81.9k 10m 11s
implement* MiniMax-M3 2 124.7k 13.9k 2.7M 0 93 0 7m 7s
audit_impl* sonnet 2 1.2k 20.1k 467.4k 49.5k 31 68.2k 10m 20s
prepare_pr* MiniMax-M3 1 46.9k 3.3k 202.5k 0 15 0 48s
compose_pr* MiniMax-M3 1 36.7k 1.7k 140.8k 0 11 0 32s
review_pr* sonnet 3 308 42.5k 1.7M 66.5k 100 132.9k 12m 3s
Total 212.9k 125.3k 8.2M 87.3k 388.9k 56m 17s

* Step used a non-Anthropic provider; caching behavior may differ.

Token Efficiency

Step LoC Changed cache_read/LoC cache_write/LoC output/LoC
plan 0
verify 0
implement 123 22298.0 0.0 113.0
audit_impl 0
prepare_pr 0
compose_pr 0
review_pr 0
Total 123 66550.5 3161.8 1018.7

Model Usage Breakdown

Model steps uncached output cache_read cache_write time
opus[1m] 1 2.9k 17.8k 1.8M 105.9k 15m 14s
sonnet 3 1.7k 88.6k 3.3M 283.0k 32m 35s
MiniMax-M3 3 208.3k 18.9k 3.1M 0 8m 27s

Trecek and others added 2 commits June 27, 2026 08:12
Add four new tests verifying that the TOML read-merge-write path in
ensure_codex_mcp_registered and sync_hooks_to_codex_config preserves unknown
top-level scalar keys (model, theme, disable_telemetry):

- TestDestructiveOverwritePrevention.test_preserves_unknown_top_level_scalars
- TestDestructiveOverwritePrevention.test_preserves_unknown_top_level_scalars_on_re_registration
- TestSyncHooksToCodexConfig.test_sync_preserves_unknown_top_level_scalars (in test_codex_hooks.py)
- TestSyncHooksToCodexConfig.test_preserves_unknown_top_level_scalars (in test_codex_hooks_round_trip.py)

No production source files modified.
Document six findings confirming the TOML read-merge-write path in
_codex_config.py and _codex_hooks.py preserves unknown configuration keys:
- _upsert_config_value helper does not exist
- ensure_codex_mcp_registered follows read-mutate-write
- _serialize_toml has no key allowlist
- _format_toml_value raises TypeError on unsupported types
- sync_hooks_to_codex_config touches only 'hooks'
- Three new tests close the pre-existing coverage gap

No source code or test changes; documentation-only deliverable.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@Trecek Trecek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

AutoSkillit PR Review — Verdict: approved. No blocking issues found.

@Trecek Trecek added this pull request to the merge queue Jun 27, 2026
Merged via the queue into develop with commit fc7f574 Jun 27, 2026
3 checks passed
@Trecek Trecek deleted the t5-p6-a8-wp1-produce-written-audit-record-confirming-the-tom/4057 branch June 27, 2026 16:00
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.

1 participant