Repository navigation
feat: promote terraform and database detectors to stable - #96
Merged
Merged
Conversation
Add blind corpus pins so both detectors meet the stable evidence minimums, and record that level. Co-authored-by: Cursor <cursoragent@cursor.com>
arminazimi
force-pushed
the
feat/56-stable-terraform-database
branch
from
November 14, 2026 18:41
ef9e2f5 to
3c4ec3e
Compare
arminazimi
added this pull request to the merge queue
Nov 14, 2026
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.
Closes #56
What changed
Promote the
terraformanddatabasedetectors from experimental to stable under decision 0013. Both now meet the stable evidence rows: at least 20 repositories with findings, 60 expected findings, 4 zero-finding repositories, and a blind share of at least two thirds. The selection rules were written intodocs/validation/ecosystems.mdon 2026-11-14 before the searches ran.Blind selection (2026-11-14):
gh search code --limit 40forrequired_version,cluster_version,min_master_version, andkubernetes_version(--extension tf), then filename.terraform-version. No extra finding pins were needed: corpus-wide Terraform findings already met the stable rows.terraform aws module example(stars 10..2000, not archived). That query returned two repositories and was exhausted, so the walk continued onterraform aws examplewith the same filters. Kept empty pins:RJPearson94/terraform-aws-open-next-examples,kung-foo/multiregion-terraform,nicksantamaria/example-terraform-aws-vpc-peering.BabyJ723/blast-ONscanned empty and was skipped because the default branch is onlyLICENSE.postgres:12,postgres:13,postgres:11, andmysql:5.7in Compose filenames, thenengine_versionwith"5.7,"12., and"13.(--extension tf; those three returned no hits), thenPOSTGRES_12andMYSQL_5_7. Kept the first Compose repositories under 12,000 KB whose offline scan reported adatabase.*finding, stopping at 25 new expected database findings.postgres:16,postgres:17, andmysql:8.4in Compose filenames. KeptJ-Schoepplenberg/royce(postgres:16),alex-kosarev/sc24(postgres:16), andfuma-nama/fuma(postgres:16.4).Terraform
RJPearson94/terraform-aws-open-next-examples,kung-foo/multiregion-terraform,nicksantamaria/example-terraform-aws-vpc-peering)countEvidenceexpected findings stay 498)--ecosystem terraform: precision 1, recall 1 (14 true positives, 0 false positives, 0 false negatives)Database
database.*expected findings (countEvidence36 → 61)--ecosystem database: precision 1, recall 1 (40 true positives, 0 false positives, 0 false negatives)No detector code changes. Transitive npm lockfile findings are not corpus expectations, matching the corpus harness.
Quality bar
Read docs/QUALITY.md before you change code, data, or docs. CI enforces its nine criteria: add no new debt, and allowlist existing debt only with an expiry.
Checks CI cannot make
changes/for user-visible changes (not for docs, test, ci, chore, build, refactor, or style)Verification
npm run checkpassed locally (4639 tests, 0 failures).npm run validate:public-repos -- --offline --ecosystem terraform— terraform precision 1, recall 1.npm run validate:public-repos -- --offline --ecosystem database— database precision 1, recall 1.antono4/openmindwas left out of that run because GitHub returns 404 for the pinned repository (pre-existing rust pin). It is still in the corpus.Notes for reviewers
The ordered candidate lists are the pins under
benchmarks/public-repositories/terraform/(9238–9240) andbenchmarks/public-repositories/database/(9241–9258), plus the rules indocs/validation/ecosystems.md. Ground truth notes quote the line at the pinned commit and cite the vendor lifecycle page.lastFullRunwas not rewritten (npm run record:corpus-runwas not run).Made with Cursor