Skip to content

[PR] chore(branch): land 17 single-purpose fixes as one history-preserving batch (wave 6) - #6713

Merged
ranxianglei merged 34 commits into
masterfrom
batch6-wave6
Nov 14, 2026
Merged

ranxianglei merged 34 commits into
masterfrom
batch6-wave6

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Lands all 17 of Afloat16's open single-purpose fixes as one history-preserving batch. Each branch is merged in with a real merge commit (Merge Afloat16/<branch> (PR #<n>) into batch6-wave6), so every original commit, author, and cherry-picked-free provenance is preserved in the first-parent history — the 17 source PRs can then be closed as superseded (they are branch ancestors of master after this lands).

Per-PR content:

PR Branch Issue What it fixes
#6654 2026-11-14_buffered-sse-field-semantics #6652 SSE buffered-field semantics: only a truly empty line dispatches (whitespace-only lines are content per the spec); a colon-free field line yields an empty value (data alone → ""); exactly one optional space is stripped (event: answer → " answer "); unknown fields and comments never reset state
#6656 2026-11-14_bounded-context-profile #6655 context-analysis init profile: top-100 per-message sample kept incrementally (binary-search insert, no final sort) instead of sorting every snapshot
#6660 2026-11-14_parallel-tool-affinity #6659 affinity-neutral turns: parallel tool results (Gemini/Responses lanes) — a single toolBody variable dropped every result but the last; now each response becomes its own neutral tool turn, and call-round merging matches the OpenAI render
#6663 2026-11-14_linear-boot-file-index #6662 SessionStore boot: the per-file root index did an array copy per file ([...old, file]); now pushes into a preallocated root array
#6668 2026-11-14_linear-subagent-capture #6666 subagent session-id capture: out.includes(id) dedupe (O(n²) past a few thousand sessions) → Set, insertion order preserved
#6670 2026-11-14_bounded-history-filter #6669 two splice(0, n, ...arr.filter(...)) call sites (opencode-v2 hooks, compress-loop failed round) throw a RangeError above ~125k arguments → in-place compaction
#6674 2026-11-14_linear-preflight-accounting #6673 preflight fold accounting: three messages.filter(m => effectiveMessageIds.includes(m.id)) O(messages×ids) → single Set-based pass
#6679 2026-11-14_tool-witness-recency #6678 tool-use-id ring eviction: full scan by recorded time (which broke under clock rollback — the ring could stay over cap) → Map insertion-order LRU with re-record refresh
#6683 2026-11-14_linear-fork-ref-membership #6682 plugin fork: five prefix.some(...) ref-membership filters (O(prefix×refs)) → one Set built once
#6685 2026-11-14_linear-external-summary-references #6684 external-summary refold: blocks.some(b => b.directBlockIds.includes(id)) → Set of selected block ids
#6689 2026-11-14_unbounded-cache-size-buckets #6687 cache report: Math.min(...hits) over a size bucket throws above the argument limit (150k-sample session) → reduce
#6691 2026-11-14_cache-diff-root-array #6690 cache-diff root message array location: the regex scan let a NESTED messages example inside tool schemas mask the real root array (wrong divergence attribution) → single-pass JSON depth/string-aware scan
#6696 2026-11-14_literal-inline-code #6695 server Markdown: */[/] inside inline code were still parsed as emphasis/links → entity-encoded before the <code> wrap
#6698 2026-11-14_literal-blockquote-entities #6697 server Markdown: a literal &gt; entity at line start was mistaken for a blockquote marker → only real > starts quotes
#6701 2026-11-14_escaped-image-markers #6700 incoming-image markers: JSON unicode escapes (\u0064ata:) made every image marker miss → markers match both literal and \uXXXX forms without decoding the whole body
#6705 2026-11-14_linear-fold-rewrites #6704 fold-coverage rewrite: in-place splice loop with list.includes per replacement (repeated tail shifts) → single-pass count-map rebuild, array identity preserved
#6708 2026-11-14_ipv6-bypass-literals #6707 NO_PROXY IPv6 bypass: equivalent literal spellings (expanded groups, uppercase hex, ::ffff:-embedded IPv4) never matched the URL-canonicalized host → canonicalize the token before comparing; port and precedence rules unchanged

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

After this merges, I'll close the 17 source PRs with a superseded-by comment (their commits live on here verbatim).

Closes #6652 #6655 #6659 #6662 #6666 #6669 #6673 #6678 #6682 #6684 #6687 #6690 #6695 #6697 #6700 #6704 #6707

Afloat16 and others added 30 commits November 14, 2026 13:56
@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: batch6-wave6 (d64086b)

Latest build — install this exact version

npm install -g billion-context@0.0.9973-pr.6713.8ea577d

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Recent builds (commit → version)

commit version build
d64086b billion-context@0.0.9973-pr.6713.8ea577d build

Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr6713.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei ranxianglei changed the title chore(branch): land 17 single-purpose fixes as one history-preserving batch (wave 6) [PR] chore(branch): land 17 single-purpose fixes as one history-preserving batch (wave 6) Nov 14, 2026
@ranxianglei
ranxianglei merged commit a8bbb8d into master Nov 14, 2026
56 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.1196-master.a8bbb8d (rolling master tag).

npm install -g billion-context@0.0.1196-master.a8bbb8d  # this exact build
npm install -g billion-context@master  # always the newest merged build

npm view billion-context@master prints the current version at any time.

Louie0806 added a commit to Louie0806/billion-context that referenced this pull request Nov 14, 2026
…fted-name-leak

Syncs the lane onto master a8bbb8d (PR ranxianglei#6713, batch6-wave6: 35 commits,
39 files). Two files overlapped with the lane and auto-merged:

- src/loop/core.ts: upstream replaced the splice/filter drop with an in-place
  compaction (kept counter). The lane's isDraftDump detection point is unchanged.
- src/plugin.ts: upstream hoisted the forkRefs Set in handlePluginFork and
  reused it in four filters. The lane's isDraftDump(proseAcc) sites are unchanged.

Verified on the merged tree: kernel build 0, tsc --noEmit 0 errors, all five
gates 0, config-docs fixed point holds (no drift), and the lane suites are green
(issue5175 66/0, tag-echo 79/0, issue2190-degen-close 32/0,
issue3905-announcement-tail 19/0, issue2303-draft-tail 14/0,
notice-registry 5/0, persist-zstd 17/0, issue5403-watermark-fastpath 1/0,
plugin-fork 58/0, native-compact-terminal 1/0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment