docs(#251): add shell return-vs-exit correctness rule#282
docs(#251): add shell return-vs-exit correctness rule#282fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
Add a Shell scripting section to AGENTS.md with guidance on the return-vs-exit distinction in executed vs sourced scripts. The review agent previously dismissed a top-level return in an executed script as harmless dead code (PR fullsend-ai#3182). In bash, return at script top level is invalid and causes a hard abort under set -euo pipefail, regardless of reachability. Closes #251
|
🤖 Finished Review · ✅ Success · Started 4:41 PM UTC · Completed 4:45 PM UTC |
Review — approvePR: #282 · SummarySingle-file documentation change adding a "Shell scripting" section to AnalysisCorrectness — The technical content is accurate. Intent & coherence — The committed text matches the proposed change in issue #251 verbatim. The commit message uses the correct Style & placement — The new Security — Documentation-only change; no security implications. Documentation currency — N/A (this is the documentation change). Cross-repo contracts — No external interfaces affected. No findings above the severity threshold.
Labels: PR adds documentation to AGENTS.md |
|
/fs-fix |
|
🤖 Finished Fix · ✅ Success · Started 5:38 PM UTC · Completed 5:44 PM UTC |
🔧 Fix agent — iteration 1 (human-triggered)No actionable review feedback was found. The review body was empty and the human instruction was 'none'. The PR modifies only AGENTS.md (a protected path). No code changes were made. Disagreed (1):
Tests: passed Updated by fullsend fix agent |
Add a Shell scripting section to AGENTS.md with guidance on the return-vs-exit distinction in executed vs sourced scripts. The review agent previously dismissed a top-level return in an executed script as harmless dead code (PR fullsend-ai#3182). In bash, return at script top level is invalid and causes a hard abort under set -euo pipefail, regardless of reachability.
Closes #251
Post-script verification
agent/251-shell-return-rule)d8e3df7c018996e396c79b8ecd59e4145a628a6f..HEAD)