Repository navigation
CLI wording: help, next steps and refusals (v0.10.1 review) - #627
Merged
Merged
Conversation
… README Every subcommand gets a description and examples; success lines say what was saved and print the next commands with the user's options (quoted); refusals say what, why and what to do. Codes, severities and paths are unchanged. README and user guide follow the complete workflow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp99saj5j4QZfMeAZQUm
guijacquemet
pushed a commit
that referenced
this pull request
Dec 4, 2026
Conflicts with #627's wording resolved: cli.py and cli_describe.py keep both sides' new functions; tissue-mask checks its prerequisites before creating the masks folder and keeps #627's created flag; the comparability refusal keeps #627's sentence and #628's pointer to the Check and save card; the user guide keeps #627's text and says check reuses the earlier run's exclusions and masks folder. Follow-ups of the merge: describe_command's ignored-option refusals moved to _ignored_options (C901); check_ignore wraps an unreadable ignore list with unreadable_fix, as ignore_masks does, so the early refusal keeps the recovery text; the header-rewrite test expects #627's message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
guijacquemet
pushed a commit
that referenced
this pull request
Dec 4, 2026
- describe_ids.REASONS and description_run_text._MEANINGS keyed by the
Code / Refusal constants of description_rules, not code strings, and
_meaning reads a code's family instead of matching code prefixes: the
Spec's "no second copy of the rules" scan (test_spec_no_fallback)
allows code tables only in description_rules.py.
- test_description_write_types and test_calibrate_containment expect the
new wording ("of type numpy.bool, E_TYPE)", "Calibration saved to").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary (by module)
cli.py,cli_describe.py,cli_run.py,cli_calibrate.py,cli_convert.py,cli_declare_masks.py,cli_tissue_mask.py,cli_masks.py: each subcommand now has a description and examples in--help, and the option help is rewritten. Success lines say what was saved and where, then print the next commands with the user's options, shell-quoted.cli_run_options.py,cli_describe_options.py(new,ui): the option definitions moved out ofcli_run.pyandcli_describe.pyto stay under the 600-line limit.parse_sizeandadd_describe_parserare re-exported, so existing imports still work.required_description,fast_answers,describe_questions,describe_ids,mask_declare,ignored_masks,description_run_text,run/preflight,he_tissue_mask,tissue_masks_folder,projection_issues,conversion_issuesandrun_inputs_text: each says what was refused, why, and what to do. Commands sit on their own lines.report.py,mask_text.py,run_inputs_tissue.py: the wording of the stopped-run, mask-property and tie texts.docs/user_guide.md: the complete workflow (describe, publish, check, run), both masks-folder layouts,plane_histograms.parquet, pinned install lines, and the §8 entries that matched the old messages.Decisions
numpy.swapaxestext was kept becausedocs/contract.mdfixes it.R_FAST_LAYOUT_CONTRADICTIONstill nameschannels_from = "unit", as experiment-v1 §8 requires.Notes for review
physical_issues(output_folder=...)is not yet passed fromcli.pyorrun/description_run.py, so those commands still sayOUTPUT.@v0.10.1fail until that tag exists.convert --helpnow lists--store,--memory-limitand--remove-stale-lockafter the projection options.Tests
Only targeted tests were run here. The full suite and release gates are left to the owner's local session.
test_cli_convert_mask: a wrong assertion edit, now reverted (passes).test_a_non_editable_install…tests intest_he_tissue_mask.pyandtest_he_tissue_array.py: they need a non-editable install and fail underPYTHONPATH=src. The first was confirmed to fail the same way with these changes stashed.ruff check/ruff format --check: clean.tools/check.py --rules: no new violations.Plan: PR2 (behaviour, next, separate branch from
integration/v0.10.1)convertrefuses--axesthat contradict an RGB header.checkvalidates whatrunvalidates (apart from pixels) and reuses the recorded masks and exclusions.describe --publishexits 1 when a header contradicts the description.declare-masks --typeand--ignorebecome atomic.tissue-maskchecks its prerequisites first.Each change comes with tests.
Generated by Claude Code