-
Notifications
You must be signed in to change notification settings - Fork 1
fix: gate vision summaries on current persisted evidence #528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8485d8a
a9a11e4
a72b3d5
700b2d7
a3dbdac
9bfce52
1ecfa8f
df15db8
2f99a76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ async def load_five_w1h_slots( | |
| can_see_post: Callable[[asyncpg.Record], bool], | ||
| ) -> dict[str, Any]: | ||
| """Build 5W1H from stored projections and visible lineage only.""" | ||
| summary = await fetch_persisted_summary(conn, post_id) or {} | ||
| summary = await fetch_persisted_summary(conn, post_id, allow_stale=True) or {} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 5W1H now reads stale or input-mismatched summaries
Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| evidence_claims = await conn.fetch( | ||
| """ | ||
| select slot_code, value_text, evidence_text | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Info: New fuzzy re-score before catalog creation
apply_prepared_corporate_entity_resolutionre-scores the name against the evolving candidate list (excludingresolved_parent_ids) before taking the advisory lock — a step absent from the old single-scoring flow. Sincecandidatesis mutated by_remember_candidateas siblings are created in one batch, a later organization can now reuse a just-created sibling, and matching two siblings can convert a would-be creation intoreason_tied_candidates. The parent-id exclusion keeps a child from collapsing into its own new parent.Was this helpful? React with 👍 or 👎 to provide feedback.