Skip to content

Enhance string literal extraction and increase LLM output limits#28

Merged
oarisur merged 3 commits into
mainfrom
drift-detection-fix
May 27, 2026
Merged

Enhance string literal extraction and increase LLM output limits#28
oarisur merged 3 commits into
mainfrom
drift-detection-fix

Conversation

@oarisur
Copy link
Copy Markdown
Owner

@oarisur oarisur commented May 27, 2026

No description provided.

oarisur added 2 commits May 27, 2026 11:38
- Added a new function `extractStringLiterals` in `diff-parser.ts` to capture meaningful string literals from changed lines, filtering out common non-architectural strings.
- Updated `parsePRFiles` to include extracted string literals alongside changed symbols.
- Introduced a regex in `doc-extractor.ts` to capture quoted string values from documentation, aiding in matching diffs that change string literals.
- Modified `findCandidateSections` to incorporate changed literals from the diff for improved section scoring.
- Increased the threshold for candidate section matching in `drift-detector.ts` from 3 to 6 to refine detection accuracy.
- Updated `ChangedFile` interface in `types.ts` to include `changedLiterals` for better data structure representation.
…een LLM calls

- Increase max_tokens/maxOutputTokens from 1024 to 2048 across OpenAI,
  Anthropic, and Gemini to prevent JSON response truncation
- Add 1.5s rate-limit delay between consecutive LLM calls in
  drift-detector to avoid 429 storms on free-tier APIs
- Update README cost estimate to reflect topN=6 (N×6 calls per PR)
@oarisur
Copy link
Copy Markdown
Owner Author

oarisur commented May 27, 2026

@copilot resolve the merge conflicts in this pull request

Copy link
Copy Markdown

Copilot AI commented May 27, 2026

@copilot resolve the merge conflicts in this pull request

Resolved in commit 9531425 by merging origin/main into this branch and completing conflict resolution.

@github-actions
Copy link
Copy Markdown

✅ Knowledge Diff — No Rationale Drift Detected

Checked 3 changed file(s) against 1 documentation file(s) — all clear.

🧠 knowledge-diff • analysed 5 candidate pair(s)

@oarisur oarisur merged commit f9179ef into main May 27, 2026
@oarisur oarisur deleted the drift-detection-fix branch May 27, 2026 14:23
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.

2 participants