Repository navigation
Keep distinct source quotes available to identity adjudication - #1457
Merged
WaylandYang merged 6 commits intoDec 1, 2026
Merged
Conversation
Signed-off-by: Virtue039 <virtue039@qq.com>
…ation-quotes Signed-off-by: Virtue039 <virtue039@qq.com>
…ation-quotes Signed-off-by: Virtue039 <virtue039@qq.com>
…ation-quotes Signed-off-by: Virtue039 <virtue039@qq.com>
5 of 6 tasks
Signed-off-by: Virtue039 <77153652+virtue039@users.noreply.github.com>
virtue039
marked this pull request as ready for review
November 25, 2026 07:38
WaylandYang
approved these changes
Dec 1, 2026
WaylandYang
left a comment
Contributor
There was a problem hiding this comment.
Thanks, this is correct and well tested: deduplicating by chunk and quote, filling first passages across chunks before second ones, and the fixed ordering all look right. One note for later: name evidence now always ranks after ordinary passages, so an alias sentence can fall past the limit of 6, which matches the existing comment's intent. Merging.
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.
The adjudicator's
quotestool silently discarded every other quotation from the same chunk. In a recorded namesake failure, the graph contained both the finance director's management-award sentence and the engineer's technical-award sentence, but repeated source lookups returned only the first sentence.Deduplicate by chunk and rendered quotation instead. Return the first passage from each chunk before additional passages, retain ordinary-fact priority over name evidence, and keep the existing caller limit (six passages) and output clipping. Duplicate facts, invalidated facts and bare-name evidence do not consume additional slots. No model prompt, adjudication trigger, confidence gate, schema or extraction protocol changes.
Follow-up on
645494aSynchronized with upstream
devat87a83b9. The request-level regression now exercises ordinary adjudication and governance against PostgreSQL. It verifies that both quotations from one chunk appear in the actual model request. Fixture initialization failures clean up the temporary organization.a_name_is_a_facttests passed with database checks required. Formatting,git diff --check, andcargo clippy --locked -p utopia-server -p utopia-store --all-targets -- -D warningspassed.Earlier validation
Validation on macOS arm64 at the previous head
d1b118ae5dfb389391e50a0090222904e189b6ae, merged with devf879b45f7f1272db138c6f4e641d004243dc4ba3including #1466 and #1469:d1b118a(run 42179495429).apply_verdict. Initial request messages match the recording on both builds. Before: one award quote. After: both award quotes reach the actual model request. Both runs make six scripted calls.Fresh investigation pilot (not a corpus benchmark): fixed
qwen3.7-flash-2026-07-15, thinking disabled, temperature 0; four restored-state investigations in baseline/fix/fix/baseline order with identical initial requests. Both baseline runs merged at 0.95. The fix runs yielded one merge at 0.95 and onedifferent(0.5)left pending human review. All four runs skipped the quotes tool, so the observed variation cannot be credited to this query fix. Seven successful calls, 18,350 tokens; connectivity preflight 17 tokens separate. All results retained, no selective reruns. This pilot froze the earlier heads1142792/a6b758d; it is not a measurement of the newly integrated head.This does not establish an identity-quality improvement. Replaying the original erroneous
same(1.0)response still merges in both versions; the control is intentionally not changed to a successful answer. The upstream name-only extraction has already put two people's awards on one entity, which this source-retrieval fix cannot split. No 16-KB comparison has been run for this change. Additional passages may increase input tokens within the existing output bound. The review scope is the quote-retrieval fix and its regression coverage.Related: #1193, #1136. Neither issue is closed by this PR. #1456 remains a separate failed-acceptance draft (wrong merges 15→23); this patch does not rehabilitate its measurements.