Repository navigation
Document delivery exit codes and status semantics #1572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -284,8 +284,8 @@ meta-directives; native repository instructions remain an instruction surface. | |
| Fail closed on missing tools and command errors, preserve the failing command | ||
| and output tail, and keep a short, safe detail about the cause or stage when | ||
| operator-facing code wraps an error. Stop on terminal failures or quota errors. | ||
| Exit 3 means waiting: rerun the bounded waiter. Exit 5 means changes requested, | ||
| not a crash. | ||
| Exit 3 means waiting or timeout. Review exits 4 when independent review is | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Exit 3 line no longer tells the agent what to do next I checked the new exit-code text against The problem is the wording that was dropped. The old text said "Exit 3 means waiting: rerun the bounded waiter" and "Exit 5 means changes requested, not a crash." The new text only says what each code means, not what to do. This paragraph is the agents' failure-handling guidance, so an agent that gets exit 3 or 5 no longer has a next step here. Line 46 does say to rerun the last Smallest fix: put the actions back without losing the new facts, e.g. "Exit 3 means waiting or timeout: rerun the bounded waiter. Review exits 4 when independent review is unavailable and 5 when changes are requested (a verdict, not a crash). Interruption exits 130." |
||
| unavailable and 5 when changes are requested. Interruption exits 130. | ||
|
|
||
| **Never pipe a `loopzero` command, even with `set -o pipefail`: the pipeline | ||
| can report the filter's exit code in place of the command's verdict.** Redirect | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Status line drops 'configured repository' and doesn't mention the no-PR case
The new README wording is accurate:
cmd_statusalways returns 0 after printingready: yes/no(cli.py:1720–1725). It also returns 0 when the branch has no PR yet (line 1710), which the new sentence doesn't mention.The rewrite also changed "authenticated access to the configured GitHub repository" to "authenticated GitHub access". The old wording was more precise: the account needs access to
config.repo, not just any GitHub login.Optional fix: keep "to the configured repository", and if you want, add "status exits 0 unless it errors; only
readyandmergegate on readiness" to make the difference between status and readiness explicit.