Skip to content

List an overlong installation ID among the "unavailable" reasons - #12

Merged
dmccoystephenson merged 1 commit into
mainfrom
feature/docs-unavailable-install-id
Oct 20, 2026
Merged

dmccoystephenson merged 1 commit into
mainfrom
feature/docs-unavailable-install-id

Conversation

@dmccoystephenson

Copy link
Copy Markdown
Member

Stage A — documentation accuracy sweep of README.md, the header comments, Makefile, CMakeLists.txt and the CI description, checked against trace_client.hpp.

Summary

  • README "Turning it off": the list of causes for disabledReason() == "unavailable" left out an explicit InstallId over 255 bytes. The constructor rejects one alongside an overlong version (trace_client.hpp, init(): explicitId.size() > MAX_LENGTH), and the installation-ID section of the README already says so. The list has been brought in line. The behaviour is covered by the existing test aBlankInstallIdMeansNoneAndAnOverlongOneIsRejected.
  • trace_client.hpp: the doc comment for detail::json ("The report body. JSON is written by hand…") had ended up above INSTALL_TAG, separated from json() by withInstall, isValidInstallId, randomUuid, pathKind and makeParentDirectories. It has been moved back above json(). The change is comment-only, so no code changes.

The rest of the sweep found no other drift. Every number in the promise table (256, 5 s, 255 bytes, 32 tags), the opt-out values and precedence, the disabled-reason strings, the curl command line and proto line, the User-Agent/version triple (0.3.0), the build targets and the CI matrix description match the source.

Test plan

  • make test (g++, C++11): 50 tests, 0 failed checks. The test count is unchanged because no tests were added.
  • CI Build green on the PR head

Deferred

No tracking issue: these gaps were found during the documentation sweep.

This 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

The README's "Turning it off" list of what makes disabledReason()
"unavailable" left out an explicit InstallId over 255 bytes, which the
constructor rejects alongside an overlong version. Also move the json()
doc comment back above json(); it sat above INSTALL_TAG instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dmccoystephenson

Copy link
Copy Markdown
Member Author

Self-review rubric (scored against CI run 39412216947 on head 2f8d833, plus the diff):

  • Scope: PASS. Two files are touched. README.md gets one sentence in "Turning it off". trace_client.hpp has a comment moved, with no code change.
  • Tests-new: PASS (n/a). No new public function was added.
  • Tests-fix: PASS (n/a). This is a docs-only fix and no behaviour changed. The documented behaviour is already asserted by aBlankInstallIdMeansNoneAndAnOverlongOneIsRejected.
  • Sibling structure / renames: PASS (n/a). No new files and no renames.
  • Docs: PASS. The README list now matches init()'s REASON_UNAVAILABLE condition: blank base URL, blank application, blank version, version over MAX_LENGTH, explicitId.size() > MAX_LENGTH, plus the thread-start and Emscripten paths. It also agrees with the README's own installation-ID section.
  • Issue resolution: PASS (n/a). No Closes. The gap was found during the sweep.
  • CI: PASS. All 12 jobs of Build are green: linux ×6, linux-libcurl, sanitizers ×2, macos, windows.
  • Registered: PASS (n/a). No test functions were added. Local make test printed 50 tests, 0 failed checks, the same count as main.
  • C++11: PASS. The c++11 g++/clang++ legs are green under -Werror.
  • No new dependency: PASS. No #include and no link flag changed.
  • Never throws: PASS. No code changed.
  • Curl argv fixed: PASS. Argv, config quoting and spawn code are untouched.
  • Version triple: PASS. It is unchanged at 0.3.0 in all three places.
  • Sanitizers: PASS. Both linux-sanitizers jobs are green.

Judgment note: README.md:128 — "a blank base URL, application name or version" could be misread to mean that a blank explicit installation ID is also "unavailable". It is not: a blank ID means none is sent. The new wording says "explicit installation ID over 255 bytes" only, which keeps that distinction. No change needed.

Do-not-auto-merge check: neither Makefile/CMakeLists.txt/workflows, nor curl argv/quoting/spawn, nor the version or wire format is touched. No single file has more than 50 deleted lines.

This review was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).


drafted by Claude on behalf of Daniel Stephenson

@dmccoystephenson
dmccoystephenson merged commit 6b9fe49 into main Oct 20, 2026
11 checks passed
@dmccoystephenson
dmccoystephenson deleted the feature/docs-unavailable-install-id branch October 20, 2026 11:04
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.

1 participant