Skip to content

Trim the CLI contract to the documented surface - #2095

Merged
Mikola Lysenko (mikolalysenko) merged 1 commit into
mainfrom
docs/trim-cli-contract
Nov 16, 2026
Merged

Mikola Lysenko (mikolalysenko) merged 1 commit into
mainfrom
docs/trim-cli-contract

Conversation

@mikolalysenko

Copy link
Copy Markdown
Collaborator

Removes one paragraph from CLI_CONTRACT.md: the description of a hidden, experimental subcommand. The contract describes the supported surface, and that subcommand carries no stability guarantee.

Two things the paragraph said are kept, in general form:

  • Stop signals. The exit status of a stop signal when socket-patch is a container's PID 1 (128 + the signal's number) holds for every subcommand, so it moves to Exit codes.
  • No guarantee for hidden, undescribed surface. The Semver policy now says that a subcommand or flag which --help does not show and the contract does not describe can change or be removed in any release.

A source comment that pointed readers at the removed paragraph is updated. No behavior changes.

/code-review high was run on this change. From its findings: the stop-signal sentence and the general no-guarantee sentence were added, and the unrelated Windows test fix was split into its own PR. Not changed: the other internal commands keep their own paragraphs.

🤖 Generated with Claude Code

Removes the paragraph on a hidden, experimental subcommand from
CLI_CONTRACT.md. The one statement in it that holds for every
subcommand, the exit status of a stop signal as a container's PID 1,
moves to Exit codes. The Semver policy now says in general what that
paragraph said for one command: what --help does not show and the
contract does not describe carries no guarantee.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@cursor

cursor Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Documentation and comment updates only; no runtime or CLI parsing changes.

Overview
Removes the experimental hot-patch subcommand section from CLI_CONTRACT.md so the contract only documents the supported CLI surface. Behavior is unchanged; hot-patch remains a hidden command in code.

Two behaviors that lived only in that removed paragraph are now documented generally:

  • Stop signals — under Exit codes, all subcommands release apply.lock on SIGINT/SIGTERM/SIGHUP; as PID 1 in a container, exit status is 128 + the signal number.
  • Semver — anything hidden from --help and not described in the contract may change or be removed in any release.

The HotPatch variant comment in lib.rs is updated to state it is intentionally omitted from the contract rather than cross-referencing the old paragraph.

Reviewed by Cursor Bugbot for commit 69d23d6. Configure here.

Merged via the queue into main with commit b2412d9 Nov 16, 2026
50 checks passed
@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the docs/trim-cli-contract branch November 16, 2026 18:14
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.

2 participants