Skip to content

Distinguish SIGINT and SIGTERM exit status - #1807

Merged
mergify[bot] merged 1 commit into
mainfrom
lean178/1704-signal-exit-status
Nov 26, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
lean178/1704-signal-exit-status

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Distinguish SIGINT and SIGTERM exit status

Context and goal

  • Context: The delivery contract documents the exit codes reported by local commands.
  • Problem: Its interruption sentence names 130 for both kinds of cancellation. SIGTERM instead exits by signal.
  • Goal: Document SIGINT status 130 and SIGTERM shell status 143 and subprocess return code -15.

Closes #1704.

Acceptance

  • The Failure section distinguishes the signals and the two contexts for reporting a SIGTERM exit.
  • Runtime behavior stays the same. The existing parametrized signal test passes for SIGINT and SIGTERM.
  • Architecture and size checks pass. Trim 40-50 redundant lines from core docs without losing a rule #1741 is already merged, so the core-docs queue remains serialized.

Notes

  • Tested tests/test_cli.py -k test_status_reaps_gh_after_signal on this head. Both offline cases passed. The subprocess fixture observes 130 and -15; shells report signal termination as 128 plus the signal number, giving 143.
  • Only core/CONTRACT.md changes. The architecture account of delivery and process handling still holds.

Validation

Recorded for a4be1202d78c

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, a4be120, approve

Architecture-Review: unchanged; This correction documents existing cancellation behavior without changing delivery or process handling.
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by claude on a4be1202d78c4eda3eb538abe711a615e222b8a5, 14.9s: approve (0 critical, 0 important, 0 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

@eowca
eowca marked this pull request as ready for review November 26, 2026 10:36
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 6bee835 at 10:42 UTC

5 min in the queue, 4 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 10:37 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1815
  • ✅ Merged 10:42 · 6bee835 · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 6bee835 into main Nov 26, 2026
18 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1704-signal-exit-status branch November 26, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Distinguish SIGINT and SIGTERM in the exit-code contract

1 participant