@@ -977,9 +977,10 @@ def _maybe_start_title_generation(investigation: Investigation, user_id: int | N
977977 "Describe a completed Sentry investigation. Do not use tools. Return exactly one raw JSON "
978978 "object with the keys title, summary, and summary_description and no other text. title "
979979 "must identify the incident in at most 5 words. summary must state what happened in at "
980- "most 10 words. summary_description must be 2 or 3 newline-separated, concise lines covering "
981- "the investigation's key evidence and the most useful next steps for a human fixing the "
982- "issue. Distinguish established facts from hypotheses and do not invent a cause. Put title "
980+ "most 10 words. summary_description must use casual, plain language in 1 or 2 short "
981+ "newline-separated sentences: lead with the strongest evidence and optionally add the most "
982+ "useful next step. Avoid headings and jargon. Distinguish established facts from hypotheses "
983+ "and do not invent a cause. Put title "
983984 "first in the JSON object. Do not call any function to write or save the result.\n "
984985 "<source_context>\n "
985986 f"{ json .dumps (investigation_source (investigation ))} \n </source_context>\n "
@@ -1121,7 +1122,7 @@ def _parse_completion_metadata(content: str) -> dict[str, str] | None:
11211122 if not (
11221123 1 <= len (title .split ()) <= TITLE_WORD_LIMIT
11231124 and SUMMARY_MIN_WORDS <= len (summary .split ()) <= SUMMARY_WORD_LIMIT
1124- and 2 <= len (description_lines ) <= 3
1125+ and 1 <= len (description_lines ) <= 3
11251126 ):
11261127 return None
11271128 summary_description = "\n " .join (description_lines )
0 commit comments