Commit 18a2bc3
Forward --backend through skill Step-5 template + document codex surface area
R0 review on PR #421 caught the exact "incomplete parameter propagation"
anti-pattern: the script accepted --backend via argparse, but the skill's
Step-5 command template never forwarded it. Effect: `/ai-review-local
--backend codex` (or `--backend api`) was silently ignored, and the script's
default `auto` always won.
Fix:
- Step 5 command template now includes `--backend "$backend"`
- Step 5 bullet list documents that --backend always passes through
- New test `test_skill_step5_command_template_forwards_backend` pins
the template (asserts both the literal `--backend ` token and the
`$backend` shell variable are present)
Also documents codex backend's surface area in the skill doc:
Under codex backend, Codex can read any file under the repo root (via
`--cd`), not just the staged diff. Same surface as direct `codex` use,
but the Step-3b pre-upload secret scan only covers diff content, NOT
files Codex may load on its own. Recommend `--backend api` (or a
sanitized worktree) when the repo contains sensitive files outside the
diff.
This is documentation, not enforcement — sandboxing reads to a temp
checkout would defeat the agentic value (Codex needs the full repo to
do cross-surface audits). Users opting into codex are already running
`codex` directly as part of `codex login` setup.
197 tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7840885 commit 18a2bc3
2 files changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| |||
356 | 363 | | |
357 | 364 | | |
358 | 365 | | |
| 366 | + | |
359 | 367 | | |
360 | 368 | | |
361 | 369 | | |
362 | | - | |
| 370 | + | |
363 | 371 | | |
364 | 372 | | |
365 | 373 | | |
| |||
370 | 378 | | |
371 | 379 | | |
372 | 380 | | |
| 381 | + | |
373 | 382 | | |
374 | 383 | | |
375 | 384 | | |
| |||
385 | 394 | | |
386 | 395 | | |
387 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
388 | 403 | | |
389 | 404 | | |
390 | 405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2045 | 2045 | | |
2046 | 2046 | | |
2047 | 2047 | | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
2048 | 2068 | | |
2049 | 2069 | | |
2050 | 2070 | | |
| |||
0 commit comments