feat: add trusted project instructions mode#102
Open
caseysilver-oai wants to merge 1 commit into
Open
Conversation
679468d to
81ab153
Compare
81ab153 to
387fd74
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
project-instructions-mode: default-branchwhile preserving the existingworkspacebehavior when the input is omittedAGENTS.override.md/AGENTS.mdfiles for the path toworking-directory, write them intoCODEX_HOME, and suppress checked-out project-doc discovery for that Codex runprojects={}in the opt-in safe mode so project-local.codex/config.tomlis not loaded even if a reused Codex home previously trusted the repocodex-homevalues inside the GitHub workspace in the opt-in safe mode so PR-controlled repository files cannot become Codex user configWhy
When
codex-actionevaluates pull request-controlled repository contents, branch-local project instruction files can become part of the model-visible instruction channel. Project-local Codex config can do the same when the checkout is considered trusted. This change adds a hardened opt-in mode for workflows that want trusted default-branch instructions, while keeping existing action behavior unchanged unless users explicitly enable it.Validation
pnpm run checkpnpm test