We make Proxy Mail QA. We recommend it for disposable accounts, real auth emails and evidence, not migrating code, auth or users, or establishing whole-app security.
Manual coding means no prior AI coding agent, not no IDE.
Write down what you have stopped explaining
You know why an unverified account can see an onboarding screen but not customer data. You know which callback is for staging, which sender is approved and why the reset route looks unusual. Codex cannot reliably recover those decisions from implementation alone.
Before its first edit, record:
- The actual auth provider, its environment variable names and the local or staging start command. Keep secret values out.
- What verification permits, which hosts may receive callbacks and which provider-hosted action URLs are expected.
- Whether sending another link invalidates the earlier one, the intended expiry and any invitation requirements.
- The tests to run, areas requiring review and explicit prohibitions on production changes, disabling verification and resetting the owner’s password.
Put stable repository instructions in AGENTS.md. Codex reads from repository root to working directory, choosing AGENTS.override.md before AGENTS.md, one per directory, with a 32 KiB combined default limit. Personal instructions use ~/.codex/AGENTS.md, overridden by ~/.codex/AGENTS.override.md. Arbitrarily named notes are not default instructions; other filenames require project_doc_fallback_filenames in ~/.codex/config.toml.
There is no prior agent setup to import. Ask Codex to explain auth and flag uncertainty before editing. Correct its explanation first; do not rewrite working auth for familiarity.
Choose a working environment, then connect mail
Codex provides CLI, IDE and cloud coding agents, not ordinary ChatGPT chat. Choose one that can access the repository and run your tests. Review permissions: reading code need not permit deployment changes.
For Proxy Mail QA, run:
codex mcp add proxymail-qa --url https://api.proxymail.qa/mcp
If the browser did not open, run codex mcp login proxymail-qa. Choose your test project. Authenticate an existing server rather than adding a duplicate. CLI and IDE share configuration; the IDE extension does not support plugins, and a plugin is not needed for these commands.
Unattended cloud tasks require your own scoped API key as a secret, not interactive OAuth. The app must run somewhere the test runner can reach; a cloud task’s localhost is not your laptop’s localhost. Never paste keys into chat or commit them.
Make the first comparison small enough to review
Capture a baseline on an authorised local or staging app, never production. Record revision and expected behaviour. Choose a small change, such as fixing an auth error message. Review the first diff, including unexpected configuration edits, before accepting. Repeat after that first auth-related change with a fresh account and browser session.
Use this checklist for both runs:
- Call
start_runwith a consistent name. Pass itsrun_idto every subsequent call that supports it, including email checks,add_run_noteandfinish_run.create_addresswithpassword: true, orform_values, creates an inbox, persona and password, not an app account. You, an agent or a test runner must submit the form. - Record
sinceimmediately before each submit. If available, use the timestamp frommark_submitted. Pass it towait_for_codeorwait_for_link, recording a newer one for each resend and reset. - Sign up and test the unverified gate if policy requires it. Verify, reload the session, then sign out and sign in. Check the approved provider action host and final destination; the outer link need not use your app’s host.
- Reset the test password. Check that the old password fails and the new one works. Retry a consumed link in a clean context; it must not grant fresh access.
- Test replacement separately from consumed-link reuse: for a resend, use an account that’s still unverified; for a reset, use a separate reset case. Leave A unused, request B, check A against the agreed policy and verify B completes the intended action. If A may remain valid, test B in an independent equivalent case so consuming A cannot invalidate B. Test invitations if supported. Mark server expiry skipped unless you actually wait and try an unused expired link.
- Use
check_emailfor SPF, DKIM, DMARC, link hosts withexpect_host, expiry wording and plain text. Usecount_emailsfiltered bytype,subtypeand/orcategoryand a measured window; welcome mail is not duplicate verification. Record browser results withadd_run_note. For failed browser assertions, setfailed: true(falseby default); “failed” in prose alone leaves the run green. Record skipped checks separately with reasons, not as passes or assertion failures.finish_runreports and compares recent same-name runs.
A prompt for the first diff
Copy the preceding checklist together with this prompt and supply the authorised staging target.
Use the supplied checklist; ask for it if missing.
Explain our current auth flow and instructions before editing. Preserve
working authentication and its provider. Propose one small change for
review, not a rewrite. Repeat the baseline with fresh accounts and clean
sessions. Report browser and email evidence.
Test consumed-link reuse separately from replacement. For replacement,
use a still-unverified account for resend or a separate reset case: leave
A unused, request B, check A against policy and prove B completes the action.
If A may remain valid, prove B in an independent equivalent case so
consuming A cannot invalidate B.
Pass start_run's run_id to every call that supports it, including email
checks, add_run_note and finish_run. For failed browser assertions, use
add_run_note with failed: true (default false); 'failed' in prose alone
leaves the run green. Record skips with reasons, not as passes or failures.
Never disable verification or reset the owner’s password.
Know what remains your responsibility
MCP never exposes email bodies or opens links. These checks exclude SMS, social auth, KYC, payments and a full security audit. Email expiry wording is not server enforcement; arrival is not an inbox-placement guarantee. check_delivery offers evidence about missing mail, not a certain provider-sandbox diagnosis.
OAuth cannot read saved passwords; use fresh accounts or a person’s reveal. Keep the E2E tests in the repository, run them in CI without relying on any one tool, and store PROXYMAIL_QA_API_KEY as a secret. Delete exact app test users separately from inboxes. If you later retire an agent connection, revoke it under Project settings → API keys, but don’t revoke a shared CI key.
Use the shared retest guide for future handoffs.
Sources
Reviewed 4 Dec 2026: Codex instructions, Codex connection, MCP, flow checks, CI.