Repository navigation
Pin what a non-object tags value from untyped code does - #43
Conversation
report() ignores a tags value that is not an object (null, a string, a number, a boolean) and sends the event with only the client's own tags, logging nothing. No test covered that branch of withVersion, and the README said nothing about it. No behavior changed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Self-review rubric (anchored on CI run 43551164740):
Observations (judgment, not blocking):
Local anchor: UNVERIFIED. Node is absent from the dispatch environment, so CI on the exact head SHA is the gate. This review was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
|
Correction to the self-review above: the first observation's README citation should read README.md:157, not README.md:248. The finding itself is unchanged. Docs check (Phase 7) passed. The changed files ( This comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
Summary
Stage B (unit-test expansion) cycle, with one matching README sentence. No behavior changed.
report()given atagsvalue that is not an object (null,42,"loose",true, as untyped code may pass) sends the event with only{ version }and writes nothing todebug. That branch ofwithVersion()(tags && typeof tags === "object") had no test. The new test sits next to the existing one for a non-objectoptions.No tracking issue: the gap was found during triage.
Triage notes
package.json,tsconfig.jsonandci.ymlagainsttrace-client.tsfound no drift.applicationname a header cannot carry) was skipped. It is owner-gated because the fix changes theUser-Agentheader insend(), which is on the do-not-auto-merge list and has to match trace-client-python and trace-client-java.enabledfails open) was skipped. It is owner-gated because the issue asks the owner to pick between two opt-out semantics shared with the other clients.Cross-client parity
No behavior that another client could observe was changed, so trace-client-python and trace-client-java need nothing.
CHANGELOG
No entry was added. No behavior changed and nothing a consumer would re-vendor for was touched: the diff is one test and one README sentence describing existing behavior.
Test plan
testjob (npm ci,npm run typecheck,npm teston Node 22) is green on the PR head, and its test count is one higher than onmain.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