Skip to content

[PR] chore(branch): land 11 single-purpose fixes as one history-preserving batch (wave 8) - #6755

Merged
ranxianglei merged 22 commits into
batch7-wave7from
batch8-wave8
Nov 14, 2026
Merged

ranxianglei merged 22 commits into
batch7-wave7from
batch8-wave8

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Lands Afloat16's 11 latest single-purpose fixes as one history-preserving batch. Each branch is merged in with a real merge commit (Merge Afloat16/<branch> (PR #<n>) into batch8-wave8), so every original commit and author is preserved in the first-parent history.

Base note: this PR targets batch7-wave7 (#6723) — #6723 should be merged first, then this one.

PR Branch Issue What it fixes
#6725 2026-11-14_jsonl-historian-null #6724 historian JSONL export crashed on a stored content of literal JSON null (message.text on a non-object) → non-object rows now stay verbatim in full exports
#6727 2026-11-14_jsonl-ccr-originals #6726 full JSONL export dereferenced CCR placeholders to the indexed ENTRY metadata instead of the stored original bytes → resolve byRef→byHash, disk store fills gaps, corrupt/missing mirror keeps the placeholder
#6733 2026-11-14_join-message-content #6732 message readers decoded content with one content-store lookup PER ROW → metadata query stays separate, bodies fetched in bounded 500-row batches (sqlite JOIN for pointer reads, same on the mysql backend)
#6735 2026-11-14_keepalive-body-failures #6734 keepalive pings swallowed every resp.text() error (a 200 with a truncated/gzip-mangled body was treated as a normal miss) → body read errors now use the fail-streak budget, 429 keeps first-response disarming, an old response cannot spend the replacement snapshot's budget
#6739 2026-11-14_keepalive-rotated-timers #6737 credential rotation deleted the registry entry but never cancelled the scheduled ping — the dropped snapshot stayed referenced until its old cadence fired → disarm(..., "credential-rotated")
#6738 2026-11-14_cache-diff-insertion-boundaries #6736 cache-diff "mid-insert append" misclassified inserting a WHOLE message between existing ones as a semantic append (byte shape is identical) → require same element count with exactly one span growing by the insertion; growth before the root array now reports preArray divergence
#6742 2026-11-14_usage-log-attribution-tags #6740 usage-log parsing attributed samples to the new logger's [v=]/[sess=] tags (or a request scope) instead of the explicit session → strip logger tags, require the session tag directly before [acp-usage], never invent one
#6743 2026-11-14_nested-upstream-error-codes #6741 upstream alert errno extraction only read the outer error.code — native fetch failures nest the errno in cause → walk the cause chain (depth-capped, cycle-safe), outer nonempty code keeps precedence
#6747 2026-11-14_linear-fold-registration #6744 batch fold registration re-scanned the whole fold list to close open records per block (O(folds×blocks)) → closeFrom cursor; batch/individual parity kept
#6748 2026-11-14_linear-handoff-capture #6746 handoff reply metering re-encapsulated the entire accumulated text on every delta (O(n²)) → incremental byte accounting with surrogate-pair junction correction; exact UTF-8 budget boundaries kept
#6750 2026-11-14_diagnostics-unicode-bounds #6749 diagnostics truncation used plain slice, which can split a surrogate pair at the bound → safePrefix everywhere the bound applies (log tails, config, conflict detail, topic)

Verification (clean checkout of this branch, node 22.23.4, CI preload chain):

  • per-PR added-line audit vs its merge-base: all 11 clean
  • tsc --noEmit: clean
  • all 11 touched test files: 187 pass

After this merges, the 11 source PRs become branch ancestors of master and close with their Closes keywords.

Closes #6724 #6726 #6732 #6734 #6736 #6737 #6740 #6741 #6744 #6746 #6749

Afloat16 and others added 22 commits November 14, 2026 20:46
@ranxianglei ranxianglei changed the title chore(branch): land 11 single-purpose fixes as one history-preserving batch (wave 8) [PR] chore(branch): land 11 single-purpose fixes as one history-preserving batch (wave 8) Nov 14, 2026
@ranxianglei
ranxianglei merged commit c43d3d3 into batch7-wave7 Nov 14, 2026
17 checks passed
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.

2 participants