Skip to content

[codex] Track project Codex config safely#8

Merged
austinkennethtucker merged 1 commit into
mainfrom
codex/track-project-codex-config
Jun 22, 2026
Merged

[codex] Track project Codex config safely#8
austinkennethtucker merged 1 commit into
mainfrom
codex/track-project-codex-config

Conversation

@austinkennethtucker

Copy link
Copy Markdown
Contributor

Summary

  • Add a minimal tracked .codex/config.toml scaffold for repo-local Codex project configuration.
  • Replace the broad .codex/ Git ignore with a narrow allow-list for .codex/config.toml and one-level .codex/rules/*.rules files.
  • Update repo hygiene checks and tests so Codex auth/state files, sessions, caches, unknown .codex files, and nested rule paths remain blocked.

Why

Codex supports project-scoped .codex/config.toml files in trusted repositories, but this repo also needs a strict boundary between shareable project config and local Codex/ChatGPT credentials. This keeps project config shareable while preserving the existing data/codex-home auth boundary.

Validation

  • python3 scripts/check_repo_hygiene.py
  • PYTHONPATH=. .venv/bin/pytest -q tests/test_repo_hygiene.py
  • Previously run before commit: full pytest suite, both compose security checks, compileall, and TOML parse for .codex/config.toml.

Notes

The PR intentionally leaves .dockerignore excluding .codex, so project Codex settings can be shared in Git without entering the Docker image build context.

@austinkennethtucker austinkennethtucker marked this pull request as ready for review June 22, 2026 16:47
@austinkennethtucker austinkennethtucker merged commit 9fda064 into main Jun 22, 2026
6 of 9 checks passed
@austinkennethtucker austinkennethtucker deleted the codex/track-project-codex-config branch June 22, 2026 16:47
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