Repository navigation
SQL: evidence-free .sql follows proving Postgres siblings (Part of #5622) - #5723
Merged
Merged
Conversation
…t of #5622) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 20, 2026 10:43
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 20, 2026 10:50
Contributor
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.
Part of #5622 (slice 2 of the PostgreSQL dialect; slice 1 was #5642).
What changed
language_lens._proof_only_sibling_vote: a.sql/.ddl/.dmlfile with no Postgres-only evidence of its own joins the proof-only language (postgresql) when at least 2 same-folder siblings resolved to it by content and it holds >= 70% of the resolved votes (strict lead). Every claimant votes, so a folder of proven db2/sqlite scripts is not captured by a few Postgres files; siblings with no evidence cast no vote; other folders do not vote. The vote overrides the extension-count physics (which otherwise picks sqlite), then the existing Tier 1.5 lock applies._resolve_by_sibling_contentgainedmin_votes(default 1: existing callers unchanged); its memo key now includes the candidate set andmin_votes.test_postgresql_strict.py.Class table (evidence-free file beside Postgres files)
.sql,.ddl,.dmlbeside 2 proving siblingsEvidence
sqldoom
95753a20e(cloned to scratch):galaxyscope --db-only: 67 filespostgresql, 110 functions (= 110CREATE [OR REPLACE] FUNCTIONby grep), 5 classes, no sqlite/db2_sql file. Before slice 2 the issue measured 45 db2_sql + 20 sqlite files.Gates:
pr_gates.py --fast6/6;test_postgresql_strict.py+test_language_lens.py+test_detection_resolution_order.py156 passed.Golden differential:
crucible_check.pyPASS on both legs (full_precision, zero_dependency) with NO re-bless: zero drift on the db2/sqlite/postgresql goldens (no language-crucible folder holds >=2 proving Postgres siblings beside evidence-free files).Sibling gaps
dns_request.sql(sqlmap)%RANDSTR3%placeholders as routine names: a placeholder-tolerant name class (not here: different mechanism,func_startchange plus rosetta plant)..psql/.pgsqlare owned outright by extension, so the discriminator is never consulted for them: audit needed (different mechanism).Remaining slices
.psql/.pgsqldiscriminator audit;%PLACEHOLDER%routine names; keyword-rosettadata/postgresqlfolder;docs/language_status/README.mdrow; fidelity table /FIDELITY_PROVENANCE;\iimport support.Cross-repo
No companion PRs.
🤖 Generated with Claude Code