Skip to content

Say every case REASON_UNAVAILABLE covers in its comment - #37

Merged
dmccoystephenson merged 1 commit into
mainfrom
feature/unavailable-reason-comment
Nov 20, 2026
Merged

dmccoystephenson merged 1 commit into
mainfrom
feature/unavailable-reason-comment

Conversation

@dmccoystephenson

Copy link
Copy Markdown
Member

Summary

Stage A documentation accuracy sweep. Every README section, the Makefile/CMakeLists.txt comments, the CI description and the in-header comments were checked against trace_client.hpp. One drift was found and is fixed here:

  • The doc comment on REASON_UNAVAILABLE (trace_client.hpp:117) named only "no way to send on this platform, or the client could not start its thread". init() (trace_client.hpp:1220-1222) also sets it for a blank base URL, application or version, and for a version or explicit installation ID over MAX_LENGTH bytes — which the README's "Turning it off" section already lists. The comment now names every case.
  • The class comment's summary of the reasons ("or no way to send (REASON_UNAVAILABLE)") is widened to match.

Comment-only: no code, wire format, version or test changes. No other drift was found by the sweep; the two known divergences (TRACE_CLIENT_CURL on Windows, #1; version dropped at the 32-tag cap, #21) are already tracked and await an owner decision, so the README was deliberately left as is on those points.

No tracking issue — gap found during the sweep.

Deferred issues

Test plan

  • CI Build green on the PR head (all jobs). The local build could not be run: the dispatch sandbox denied running the compiler, so the local anchor is UNVERIFIED and CI is the anchor for this comment-only change to trace_client.hpp.

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 comment on REASON_UNAVAILABLE named only a platform with no way to
send and a thread that would not start, but init() also uses it for a
blank base URL, application or version and for a version or explicit
installation ID over MAX_LENGTH bytes -- as the README already says.
Comment-only; no behavior changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dmccoystephenson

Copy link
Copy Markdown
Member Author

Self-review rubric (anchored on CI run 44707360282 at the PR head):

  • Scope: PASS — the diff touches only two comment blocks in trace_client.hpp (the REASON_UNAVAILABLE doc comment and the class comment's list of reasons); no code, formatting or unrelated churn.
  • Tests-new: PASS (not applicable) — no new public method or function is added.
  • Tests-fix: PASS (not applicable) — not a bug fix; no production behavior changes.
  • Sibling structure: PASS — no new file.
  • Sibling renames: PASS — nothing renamed.
  • Docs: PASS — the new comment lists exactly the cases init() assigns REASON_UNAVAILABLE (trace_client.hpp:1224-1226: blank base URL/application, blank version, version or explicit ID over MAX_LENGTH), plus the no-send platform (start()'s #else branch) and the catch (...) in init(); this matches the README "Turning it off" list word for word in substance.
  • Issue resolution: PASS (not applicable) — no Closes #N; a sweep finding with no tracking issue.
  • CI: PASS — all 11 jobs green (linux g++/clang++ × c++11/17/20, linux-libcurl, linux-sanitizers thread and address,undefined, macos, windows).

Repo-specific:

  • Registered: PASS (not applicable) — no test added.
  • C++11: PASS — linux c++11 legs green under -Werror.
  • No new dependency: PASS — no #include or link flag changed.
  • Never throws: PASS — no code changed.
  • Curl argv fixed: PASS — argv, config quoting and spawn code untouched.
  • Version triple: PASS — no version string changed.
  • Sanitizers: PASS — both sanitizer jobs green.

Local anchor: UNVERIFIED — the dispatch sandbox denied running the compiler, so make test could not be run locally; CI on the exact head SHA serves as the anchor for this comment-only change.

Judgment note: trace_client.hpp:1024-1025 — "a blank or overlong argument" is a summary; a blank key yields REASON_NO_KEY instead, which the same sentence already states earlier and which is covered by the "first match wins" wording just above. Left as is.

Do-not-auto-merge check: only comment lines in trace_client.hpp change; none of the protected surfaces (curl argv, config quoting, process spawn, proto, TRACE_CLIENT_VERSION, wire format, Makefile, CMakeLists.txt, workflows) are touched.

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


drafted by Claude on behalf of Daniel Stephenson

@dmccoystephenson
dmccoystephenson merged commit 96439f5 into main Nov 20, 2026
11 checks passed
@dmccoystephenson
dmccoystephenson deleted the feature/unavailable-reason-comment branch November 20, 2026 09: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