PREPARE BEFORE THE JOB
Keep credentials out of Git. Keep run context isolated.
Before a run, an administrator creates the service account and read grant. The trusted runner prepares the non-secret bug.md and source.json job inputs. Credentials stay in a separate OS/container boundary with a 0700 directory and 0600 file, so Codex and tests cannot access them. The fetched HTML and PR notes use an isolated .agent-context/ working directory that is excluded from Git. Codex reads the HTML as reference content; it is never executed.
- Install
ledCLI 4.2.0, authenticate Codex, and provide the approved network access for the API and repository checks. - Give the separate GitHub publisher only the branch and draft PR permissions it needs; it does not receive LedgerInfra credentials.
- Define the repository test policy and run those checks before the draft PR is opened; a failed fetch or test returns the job to a person.
- Use a 0700 credentials directory and 0600 credential file. One token lasting at most 15 minutes wraps exactly one fetch, with no refresh in the Codex process.
