fix: D32 layer-2 grounds against the union of source-derived texts - #173
Merged
Conversation
…NOR) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GKENhTLJg1HqhbdwCmmkbc
fazpu
enabled auto-merge (squash)
July 29, 2026 13:05
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Urgent fix from the GLM-5.2 smoke, diagnosed by the #161 loss ledger: 371 of 411 grounding rejections were correct decontextualizations killed by wrong attribution labels — the model adds "Caroline" (verbatim in the target chunk's turn line) but tags it
header/prefix, and the per-element membership check rejects it. 27 claims survived from 19 documents.The fix: layer-2 membership checks the union of source-derived bundle texts (target chunk, header, same-section neighbours, stored prefix); the model's
source_kindstays recorded as advisory provenance but cannot reject a grounded addition. Section summaries remain outside the union — the fact-injection defense is unchanged and the poison probes still bite (asserted). The prompt now states in-chunk text needs noadded_contextat all.E2_EXTRACTOR_VERSION→07g:union-grounding-1; dated amendments in the E2/E3 design §3.3 and D32.Review: Grok APPROVE (2 MINOR / 2 NIT; the docs-honesty MINOR fixed in the second commit — the union excludes summaries, not the prefix, which is D79's accepted second-order channel). Final review by Claude. Fast gate local; full matrix in CI.