fix: prevent @fill from inferring wrong Linear ticket references#73
Open
factory-nizar wants to merge 1 commit intodevfrom
Open
fix: prevent @fill from inferring wrong Linear ticket references#73factory-nizar wants to merge 1 commit intodevfrom
factory-nizar wants to merge 1 commit intodevfrom
Conversation
Contributor
|
Droid finished @factory-nizar's task —— View job |
Explicitly instruct the LLM not to guess ticket IDs from commit messages or other indirect sources. Only ticket references already present in the PR description, comments, or branch name are preserved. Removes ## Related Issues from the default output structure to avoid prompting the LLM to fill it speculatively. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
d96be44 to
cb2b94f
Compare
Contributor
|
Droid encountered an error —— View job Droid is running a security check… |
Contributor
|
Droid encountered an error —— View job Droid is running a security check… |
Contributor
|
Droid finished @factory-nizar's task —— View job |
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.
Summary
`` was associating PRs with incorrect Linear tickets. The LLM was inferring ticket IDs from commit messages and other indirect sources, sometimes guessing wrong. This fix adds an explicit instruction to the fill prompt to prevent speculative ticket association.
Changes
## Related Issuesfrom the default output structure to avoid prompting the LLM into speculative ticket association.Implementation Details
The change is scoped to
src/create-prompt/templates/fill-prompt.ts, which defines the prompt template used by `` to generate PR descriptions. Two targeted edits were made:## Related Issuesheading was removed from the default output structure template, so the LLM is no longer prompted to fill in a section that encourages guessing.Testing
[To be filled by author]
Related
FAC-18468