Measured on a 2.7 MB production plan (plan-cxpaket.sqlplan, kept out of git): - rewrite_sql becomes option_type + sql_to_run. The old name told the model 'query rewrite only', so an index option carried no CREATE INDEX anywhere in the pipeline and the report had zero SqlBlocks. It now requires paste-ready T-SQL per option, and the report prompt makes a SqlBlock per non-null sql_to_run a hard requirement. - verify_semantics keys on option_type === 'rewrite' rather than 'has sql', so index and statistics options are not flagged just for carrying DDL. - dropPlaceholderSql: 'SELECT ... FROM ... OPTION (MAXDOP 1)' is not runnable and was rendered as if it were. Ellipsis SQL is now nulled, and digestForModel reports sql_truncated so the model is told not to offer a rewrite for a statement it never received. - max_tokens 2048 -> 4096 for both calls: the larger JSON outgrew the old ceiling and the user waited 38s for 'malformed JSON'. A truncated response now says how many characters it got, and extra params still override the ceiling. - Real plan, live: 52s, 17 cards, 3 SqlBlocks with real table names and no placeholders, 3 ScoreBars, headline 'Query Plan Timeout on Parallel Join'. 43 unit, 23 e2e. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
28 lines
377 B
Plaintext
28 lines
377 B
Plaintext
# next
|
|
/node_modules
|
|
/.next
|
|
/out
|
|
/build
|
|
next-env.d.ts
|
|
*.tsbuildinfo
|
|
|
|
# env + secrets
|
|
.env*
|
|
!.env.example
|
|
|
|
# runtime data (sqlite)
|
|
/data
|
|
/.playwright-data
|
|
|
|
# e2e artifacts
|
|
/.auth
|
|
/test-results
|
|
/playwright-report
|
|
|
|
# e2e fixture input is committed; scratch output is not
|
|
.DS_Store
|
|
.playwright-data
|
|
|
|
# real production plans dropped in for debugging stay out of git
|
|
/plan-*.sqlplan
|