Repository navigation
Document console_view's extra-argument exit and the unknown usage-reporting version - #65
Merged
dmccoystephenson merged 2 commits intoNov 11, 2026
Conversation
console_view.py exits 2 when the environment ID is followed by further arguments, which the README and the module docstring did not mention; a main()-level test now covers it. The README also now says that usage reporting sends "unknown" as the version when version.txt cannot be read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
readVersion catches OSError alone; a version.txt that cannot be decoded raises a ValueError that buildClient turns into a disabled client, so "unreadable" overstated the fallback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Self-review rubric (head
One finding was fixed during review:
Out-of-diff observation, not acted on here: that decode-error path turns reporting off for the run and prints This review was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
dmccoystephenson
deleted the
feature/readme-console-view-and-version-accuracy
branch
November 11, 2026 08:20
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
A Stage A documentation accuracy sweep was run against the source. Two gaps were found and are fixed here:
console_view.pyexits with status2and prints the usage line when the environment ID is followed by further arguments (parseEnvironmentIdrequires exactly one argument). The README'sText renderingsection and the module docstring said only "missing or is not an integer". Both now name the extra-argument case, and amain()-level test (test_a_further_argument_prints_the_usage_and_exits_two_without_reaching_viron) pins it. Before this, onlyparseEnvironmentIdwas tested for that case.usage_reporting.pysendsunknownas the version whenversion.txtis missing, cannot be opened or is empty (readVersion() or UNKNOWN_VERSION;readVersioncatches onlyOSError, so an undecodable file instead disables reporting throughbuildClient). The README'sUsage reportingsection now says so. That behaviour was already covered bytest_missing_version_file_reports_an_unknown_version.No production behaviour is changed. Only a docstring in
console_view.pyis edited.No tracking issue: the gaps were found during the sweep.
Deferred issues
Every open issue was left for later because each one needs an owner decision or is too large for this cycle:
environments.jsonshould record the Viron server.Vironsubmodule also needs explicit authorization.Test plan
python3 -m py_compile *.pypassespython3 -m unittest discover -s testspasses locally:Ran 206 tests ... OK(Python 3.8; Viron is stubbed)Testsworkflow is green on this PRThis PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
🤖 Generated with Claude Code
drafted by Claude on behalf of Daniel Stephenson