ci(codex): protect private-home auth preflight regression - #40
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 10:33 PM ET / September 7, 2026, 02:33 UTC. ClawSweeper reviewWhat this changesAdd the existing Codex preflight regression suite to CI with an empty environment, temporary HOME, closed stdin, and timeout, and record the coverage in the changelog. Merge readiness✅ Ready for maintainer review This PR adds useful CI coverage that the pinned main workflow lacks. No actionable patch defect was found; the owner-authored PR also remains protected from automated closure. Priority: P3 Review scores
Verification
How this fits togetherThis repository supplies shared agent skills and portable helpers. Its CI smoke job runs synthetic checks of the Codex configuration and credential-delivery preflight so regressions fail before changes land. flowchart TD
A[Push or pull request] --> B[CI smoke job]
B --> C[Empty environment and temporary HOME]
C --> D[Synthetic preflight suite]
D --> E[Configuration and helper checks]
E --> F[Pass or fail CI]
C --> G[Remove temporary HOME]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep the existing synthetic preflight suite in the smoke job while preserving its separation from live credential and Keychain integration testing. Do we have a high-confidence way to reproduce the issue? Not applicable to this CI-only change: source inspection confirms the suite is absent from pinned main's workflow. The reviewer did not execute tests under the read-only review constraint. Is this the best way to solve the issue? Yes. Invoking the existing suite follows the adjacent isolated-test pattern and avoids duplicating regression logic. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b511b24d36a0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Problem
A credential helper can succeed under the operator's HOME but fail with Keychain item-not-found under the reviewer's intentionally private HOME when it relies on implicit Keychain selection.
The owner-boundary repair and synthetic private-home diagnostic already landed in 362a562. However, CI did not run that regression suite, so its coverage did not protect subsequent changes.
Change
Run the existing Codex direct-route preflight suite in the smoke job with an empty environment, a fresh temporary HOME, closed stdin, and a 60-second timeout. The suite uses synthetic helpers and configuration; it needs no Keychain, account login, network access, or live credentials. Cleanup removes only the test-owned HOME.
No provider/model/tier selection, authentication wrapper, credential storage, reviewer HOME isolation, sandbox grants, or secret-scanning behavior changes.
Verification
actionlint .github/workflows/ci.yml: passed.git diff --check: passed.HOME-dependent helper unexpectedly passed private-home check.The synthetic CI suite protects the preflight behavior; it is not a live macOS Keychain integration test.