diff --git a/.claude/knowledge/journal/2026-11-24.md b/.claude/knowledge/journal/2026-11-24.md new file mode 100644 index 00000000..b1f9d147 --- /dev/null +++ b/.claude/knowledge/journal/2026-11-24.md @@ -0,0 +1,5 @@ +# Learning journal 2026-11-24 + +### 2026-11-24: Release and changelog — Condensed release notes must keep backend scope and user-visible consequences +**Context:** In PR #650 (prepare release 3.1.0), the detailed Unreleased CHANGELOG bullets were condensed into short 3.1.0 entries. The reviewer flagged that the `oauthScopes` bullet no longer said the change was Thrift-only, that M2M now sends the configured scopes instead of `all-apis`, or that a U2M token with mismatched scopes forces a new browser login. +**Rule:** When condensing Unreleased changelog entries into a release section, keep each entry's backend scope (Thrift-only or kernel-only), its old-to-new default values, and any forced user action such as re-login, re-auth or config change, and compare each condensed bullet against its original text. diff --git a/.claude/knowledge/lessons.md b/.claude/knowledge/lessons.md index 0b3ae3f9..2df6ad17 100644 --- a/.claude/knowledge/lessons.md +++ b/.claude/knowledge/lessons.md @@ -1,6 +1,6 @@ # Lessons - + ## Configuration and authentication - L-0001 (3×, #457): Trace option support through DBSQLClient, auth adapters and each transport. Type declarations and class comments do not establish forwarding; shared preparation can precede backend-specific filtering. @@ -49,6 +49,7 @@ - L-0040 (1×, #596): Error telemetry may carry class, SQLSTATE and terminal/retryable status only; exclude messages, stacks, URLs and other free-form error text. - L-0041 (1×, #608): Decode every napi error, including status/hasMore calls. Any call that may fetch must share fetchChunk's best-effort failure cleanup, with rejecting-fake tests per call site. - L-0042 (1×, #619): Detect user close/cancel with dedicated persistent intent flags read before cleanup, not lifecycle.isClosed. Fetch-failure cleanup must still close cancelled operations. +- L-0076 (1×, #633): Tests asserting a spy/getter was not called must also prove the stubbed path ran (e.g. call counts on inputs) and that slow-path cases do trigger the spy. ## Resources, networking and performance - L-0043 (1×, #497): Portable Bash with nounset must guard empty-array expansion on older shells and distinguish unset-only defaults from unset-or-empty defaults. @@ -68,6 +69,9 @@ - L-0057 (1×, #595): ProxyAgent needs TLS options at its top level. Verify proxy TLS/mTLS with a real CONNECT proxy and generated test certificate. - L-0058 (1×, #577): Merge Arrow result rows with indexed concatChunks copies. Preserve provider batches and track owned leftover slices with offsets. - L-0059 (1×, #611): Every auxiliary HTTP request, including OAuth, exchange and CloudFetch, must use the connection provider's getAgent to honor proxy/TLS settings. +- L-0073 (1×, #637 #633 #628): Optimized Arrow row paths must deep-equal the legacy converter for scalar, struct/list/map, null, empty and dictionary columns in object and array modes; keep legacy quirks (e.g. dictionary decimals as unscaled strings). +- L-0074 (1×, #628): Object rows keyed by server column names need a fallback or safe keys when names repeat, include __proto__, or Arrow field names/counts differ from the Thrift schema. +- L-0075 (1×, #627): Node Buffers may be pooled or subarray views: apply byteOffset/length whenever reading buf.buffer, and test zero-copy decoding with both shapes. ## Bot workflow and CI - L-0060 (1×, #499): In bot workflows with both schedule and workflow_dispatch triggers, keep numeric input knobs string-typed and parse them downstream. @@ -78,3 +82,7 @@ - L-0065 (1×, #566): Build after installs that omit prepare so generated lib/version.ts exists before tests/type checks. - L-0066 (1×, #566 #562): Serialize branch-editing bot flows with one per-PR concurrency group and restore dependency-setup lockfile rewrites before agent edits. - L-0067 (1×, #621 #620): GitHub Actions expressions allow hyphens in dot-dereferenced names; do not flag or rewrite `${{ inputs.some-name }}` as subtraction. +- L-0077 (1×, #628): When changing backend-shared code (lib/result/, shared e2e utils), extend the kernel-e2e workflow path filter so the kernel suite actually runs. + +## Release and changelog +- L-0078 (1×, #650): Condensed release-note bullets must keep backend scope (Thrift/kernel-only), old-to-new defaults and forced user actions like re-login; compare each against its Unreleased original.