Commit 0b50a56
Make Guardex Codex lanes approval-free by default (#554)
Guardex launches Codex inside sandbox worktrees, but approval prompts still interrupt lane completion unless every caller remembers to pass -a never. The launcher now injects that conservative approval policy by default while preserving the Codex sandbox and respecting explicit caller approval flags. The conflict-review relaunch path uses the same argument builder so takeover/retry sessions behave consistently.
Constraint: User asked for a durable fix instead of per-session flags
Rejected: Use --dangerously-bypass-approvals-and-sandbox by default | it would also drop sandboxing, which is broader than needed
Confidence: high
Scope-risk: narrow
Directive: Do not remove explicit-flag detection unless Codex CLI flag compatibility is rechecked
Tested: bash -n scripts/codex-agent.sh templates/scripts/codex-agent.sh
Tested: node --test test/sandbox.test.js
Tested: openspec validate agent-codex-codex-task-2026-05-11-12-44 --type change --strict
Tested: openspec validate --specs
Not-tested: node --test test/metadata.test.js remains red on unrelated Cosign installer pin expectation
Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>1 parent 74e4489 commit 0b50a56
6 files changed
Lines changed: 101 additions & 3 deletions
File tree
- openspec/changes/agent-codex-codex-task-2026-05-11-12-44
- specs/codex-task
- templates/scripts
- test
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
70 | 94 | | |
71 | 95 | | |
72 | 96 | | |
| |||
1039 | 1063 | | |
1040 | 1064 | | |
1041 | 1065 | | |
1042 | | - | |
| 1066 | + | |
| 1067 | + | |
1043 | 1068 | | |
1044 | 1069 | | |
1045 | 1070 | | |
| |||
1097 | 1122 | | |
1098 | 1123 | | |
1099 | 1124 | | |
| 1125 | + | |
1100 | 1126 | | |
1101 | 1127 | | |
1102 | 1128 | | |
1103 | | - | |
| 1129 | + | |
1104 | 1130 | | |
1105 | 1131 | | |
1106 | 1132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
400 | | - | |
| 401 | + | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
| |||
414 | 415 | | |
415 | 416 | | |
416 | 417 | | |
| 418 | + | |
| 419 | + | |
417 | 420 | | |
418 | 421 | | |
419 | 422 | | |
| |||
0 commit comments