Skip to content

ci: correct django-quotename ground truth; pin prism v0.87.25 - #2

Merged
tabladrum merged 1 commit into
mainfrom
ci/django-quotename-alias-sites
Oct 15, 2026
Merged

tabladrum merged 1 commit into
mainfrom
ci/django-quotename-alias-sites

Conversation

@tabladrum

@tabladrum tabladrum commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

The django quote_name ground truth missed three call sites that call quote_name through a local alias:

  • django/db/backends/postgresql/operations.py:sequence_reset_sql: qn = self.quote_name, then qn(...) at lines 261–267
  • django/core/management/commands/createcachetable.py:create_table: qn = connection.ops.quote_name
  • django/contrib/gis/db/backends/mysql/schema.py:_create_spatial_index_sql: qn = self.connection.ops.quote_name

The list already counted the same pattern in the cache backend (quote_name = connection.ops.quote_name), and a signature change breaks all three. prism v0.87.25 finds the first one through its new alias handling, which made the old list report it as a false positive (precision 0.970). With the corrected list (35 sites): v0.87.25 scores R 0.943 / P 1.000, v0.87.22 scores R 0.914 / P 1.000. The base recall is set to the measured 33/35. The other two need connection.ops typed, which grove can't do statically.

Also: the CI pin moves from prism v0.87.21 to v0.87.25 and the decoy injector from astkit v0.16.0 to v0.16.8.

Local run of ci_invariants with v0.87.25 on a fresh corpus: all invariants held.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KXa6Cv1ZUXcdMqXcJfQFhX

… v0.87.25

The ground truth listed the cache backend's alias calls
(quote_name = connection.ops.quote_name) but missed three functions that
call quote_name through a local alias: postgresql sequence_reset_sql
(qn = self.quote_name), createcachetable create_table and the GIS MySQL
_create_spatial_index_sql (qn = ...connection.ops.quote_name). A
signature change breaks all three. Base recall is the measured 33/35
(v0.87.25; v0.87.22 scores 32/35), precision 1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KXa6Cv1ZUXcdMqXcJfQFhX
@tabladrum
tabladrum force-pushed the ci/django-quotename-alias-sites branch from 5572e86 to 277cda8 Compare October 15, 2026 14:26
@tabladrum
tabladrum merged commit 9338f06 into main Oct 15, 2026
1 check passed
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