Skip to content

Inkeep OSS Sync#621

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jul 14, 2026
Merged

Inkeep OSS Sync#621
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Copybara-translated commits for Inkeep OSS Sync. Rebase-merge this PR so the prepared commits land directly on public main.

… (#2625)

* fix(open-knowledge): preserve agent byte-forms through same-block WYSIWYG edits

Blockquote lazy continuations round-trip via a 'lazy' marker-spacing
capture with a block-start replay guard; tight ATX heading-paragraph
adjacency reuses the setext sourceContiguousNext capture; Observer A's
map-driven splice recurses into a changed blockquote, list, or list item
so untouched sibling children keep their source bytes. Beyond-tolerance
test fixtures that pinned the old lazy canonicalization move to still
canonicalizing constructs (NBSP, nested-blockquote lazy, intra-item
blank runs).

* test(open-knowledge): record fuzz and stress residual evidence for the splice change

Deep fuzz at 1000 seeds measured rate 0.012 (12 failing seeds, all in the
known convergence-budget residual class; historical band is 0.010-0.026).
Stress passed on retry under normal machine load; the first stress append
records a 120s test timeout from a heavily loaded host (30s scenario ran
161s wall), kept for the trend record.

* review: harden lazy-replay guard and pin the narrowing drop-path

Bare ATX openers (1-6 hashes with no text) now classify as lazy-unsafe
per CommonMark 4.2, a clarifying comment makes the blank-line invariant
in the lazy capture local, and a new unit test drives the splice
narrowing bail on a container-data-only bullet-marker flip.

* review: pin the lazy-replay guard branches and close two robustness gaps

Unit tests drive each unsafe branch of the lazy guard through
stale-attrs simulation; the replay now also refuses 'lazy' on the first
content line (unreachable from capture, reachable from foreign attrs).
Adjacency pins cover blockquote and fenced-code siblings, the
child-splice walk is wrapped in the onFallback contract, and the
narrowable-type set documents its admission criteria.

* review: align sourceContiguousNext docs, widen guard pins, fix covers tags

The canonical mdast-augmentation JSDoc now matches the ATX-inclusive
behavior, the lazy-guard suite pins the nested-blockquote and fence
branches, and the integration tests declare the constructs they
actually cover.

GitOrigin-RevId: 56ca4fa6174133eccbbbf2b8038337b66e0894f0
@inkeep-oss-sync inkeep-oss-sync Bot merged commit 96563d1 into main Jul 14, 2026
@inkeep-oss-sync inkeep-oss-sync Bot deleted the copybara/sync branch July 14, 2026 08:23
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.

1 participant