codex
codex copied to clipboard
Feature request: task-level capability preflight and effective permission provenance before execution
Problem
Long-running Codex engineering tasks may spend substantial effort implementing and testing a change before discovering that a mandatory deployment, connector, credential, tool or permission prerequisite is unavailable. General health checks and global permission settings do not establish whether the intended operation is possible in the actual execution environment.
Proposal
Provide an optional task-level preflight for CLI, Desktop, Cloud and delegated workflows:
- Resolve the user-authorised objective and required capabilities, separating essential prerequisites from optional conveniences.
- Show applicable tool availability, authentication readiness (never reveal credentials), repository/environment identity, configured versus effective permission policy, policy provenance, and known execution limits.
- Use non-mutating capability checks where supported. Label uncertain, unavailable and untested checks distinctly; do not claim a future action is guaranteed.
- Identify blocked required operations before substantial resource consumption. Suggest supported alternatives and allow unaffected work to continue within scope when appropriate.
- Recheck changed or expiring prerequisites before significant external actions; never consume an approval merely to test whether it exists.
- Expose the resulting capability manifest in the UI and a documented machine-readable form. Preserve existing security enforcement and legitimate approval gates.
Acceptance criteria
- A task requiring an unavailable deployment capability identifies that blocker before expensive implementation where it can be known from a safe preflight.
- Different configured and effective permissions are shown separately, with the source of the effective policy or an explicit unknown.
- No protected action, secret disclosure, privilege change or approval bypass occurs during preflight.
- A later permission or environment change invalidates the affected checks rather than silently reusing stale results.
- Partial work and genuine blockers remain distinguishable from completion.
Related: #25590 (effective permission inconsistency), #64997 (instruction provenance). This is a preventive task-level feature, not a request to relax access controls.