Repository navigation
Pin that a clear on never undoes another switch's opt-out - #47
Merged
Merged
Conversation
The README and the TraceClient doc comment promise that nothing in the client turns a switch back on. No test covered it: TRACE_USAGE_REPORTING=on alongside DO_NOT_TRACK=1, and enabled: true alongside an environment opt-out, were never exercised. Test only; no behavior changed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Self-review rubric (head f09f603, CI run 44694829386):
Judgment call flagged: Local anchor UNVERIFIED (no Node in this checkout); CI on the head SHA was the gate. Do-not-auto-merge list: no match (test file only). This review was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
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
environment opt-outsblock. It pins the promise in the README ("nothing in this client ever turns a switch back on") and in theTraceClientdoc comment ("nothing in this client turns a switch back on").TRACE_USAGE_REPORTINGset to a clear "on" (on,true,yes,1, any case) alongsideDO_NOT_TRACK=1was never exercised. Neither wasenabled: true(or a string "on") alongside an environment opt-out: the precedence test only usesenabled: false.environmentOptsOutreturnstrue,disabledReasonis"environment",enabledisfalse, and the server receives nothing.A Stage A documentation sweep was run first. README, TSDoc, CHANGELOG,
package.json,tsconfig.jsonandci.ymlwere checked againsttrace-client.ts, and no drift was found. The[Unreleased]CHANGELOG heading for 0.5.0 was left alone, because cutting the release is the owner's call.Test plan
testjob green on the head SHA (npm run typecheck,npm test), with pass count equal to test count (91 expected)Triage notes
enabledis now read throughTraceClient.allowsReporting()).User-Agentheader insend(). That is wire format, on the do-not-auto-merge list, and has to be kept in lockstep with trace-client-python and trace-client-java. It is awaiting an owner decision.No tracking issue: the gap was found during triage.
Cross-client and changelog
CHANGELOG.mdentry, since nothing user-visible changed.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