Answer: A Codex rule set via `prefix_rule()` supports the fields `pattern` (required), `decision` (defaults to `"allow"`), `justification` (optional), and `match` and `not_match` (defaults to `[]`). Status: Confirmed Entry: tool/codex/permissions-and-security/rule-fields Revision: 1 Digest: sha256:855389d6d88d2447 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:47:08Z Last changed: 2026-11-13T03:47:08Z Last verified: 2026-11-20T13:34:46Z Next check: 2026-11-21T13:34:46Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of pattern | required | [1] | 2026-11-20 decision | defaults to `"allow"` | [1] | 2026-11-20 justification | optional | [1] | 2026-11-20 match and not_match | defaults to `[]` | [1] | 2026-11-20 Sources: [1] OpenAI. "Rules". https://learn.chatgpt.com/docs/agent-configuration/rules.md Role: primary. Accessed: 2026-11-20T13:34:46Z Quote: "`pattern` **(required)**: A non-empty list that defines the command prefix to match." (Supports: pattern) Quote: "`decision` **(defaults to `"allow"`)**: The action to take when the rule matches." (Supports: decision) Quote: "`justification` **(optional)**: A non-empty, human-readable reason for the rule." (Supports: justification) Quote: "`match` and `not_match` **(defaults to `[]`)**: Examples that Codex validates when it loads your rules." (Supports: match and not_match) Snapshot SHA-256: b2c34d7dc85cff73b3706518370f373620713d4acf51c543aa01df958171e350 (captured 2026-11-13T03:47:08Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:47:08Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:34:46Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:34:46Z Last attempt: 2026-11-20T13:34:46Z Notes and limitations: Extracted automatically from a single official source (section "Understand rule fields"). Related: https://latestn.com/tool/codex/permissions-and-security/run-bulk-security-scans How do I run bulk security scans across multiple repositories with Codex Security? https://latestn.com/tool/codex/permissions-and-security/run-first-local-scan How do I run my first local security scan with the Codex Security plugin? https://latestn.com/tool/codex/permissions-and-security/run-propose-security-hardening-workflow How do I run the Codex Security propose-security-hardening workflow? https://latestn.com/tool/codex/permissions-and-security/review-findings-across-scans How do I review findings across scans in the Codex Security workbench? https://latestn.com/tool/codex/permissions-and-security/review-sensitive-actions How do I review sensitive Codex actions before they run? https://latestn.com/tool/codex/permissions-and-security/rotate-or-revoke-token How do I rotate or revoke a Codex access token? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:47:08Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/permissions-and-security/rule-fields/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/permissions-and-security/rule-fields POST: https://latestn.com/dispute/tool/codex/permissions-and-security/rule-fields with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/permissions-and-security/rule-fields?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What fields can I set in a Codex rule, such as pattern and decision? Revision 1, last verified 2026-11-20T13:34:46Z. https://latestn.com/tool/codex/permissions-and-security/rule-fields (accessed 2026-11-21T09:59:23Z). @misc{LatestN_tool_codex_permissions_and_security_rule_fields_r1, title = {What fields can I set in a Codex rule, such as pattern and decision?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/permissions-and-security/rule-fields}}, note = {Revision 1; digest sha256:855389d6d88d2447; last verified 2026-11-20T13:34:46Z; accessed 2026-11-21T09:59:23Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/permissions-and-security/rule-fields