Skip to content

Commit fdb4bfd

Browse files
authored
Merge pull request #169 from rostilos/1.5.5-rc
feat: Enhance Markdown formatting in output schemas for improved readability and clarity
2 parents dcacfdb + 6023d3b commit fdb4bfd

6 files changed

Lines changed: 7 additions & 16 deletions

File tree

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Functional Source License, Version 1.1, MIT Future License
2-
32
Copyright 2025-2026 CodeCrow
43

54
## Terms and Conditions

java-ecosystem/target/failsafe-reports/failsafe-summary.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

python-ecosystem/inference-orchestrator/src/model/output_schemas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def normalize_scope(cls, v) -> str:
5959
return "LINE"
6060

6161
title: Optional[str] = Field(default=None, description="Short issue title, max 10 words (e.g., 'Missing null check in user lookup')")
62-
reason: str = Field(description="Detailed explanation of the issue, evidence, and impact")
63-
suggestedFixDescription: str = Field(description="Description of the suggested fix")
62+
reason: str = Field(description="Detailed explanation of the issue, evidence, and impact. Use Markdown formatting (inline code, bold, bullet lists, short code blocks) for readability.")
63+
suggestedFixDescription: str = Field(description="Description of the suggested fix. Use Markdown formatting (inline code, bold, bullet lists) for readability.")
6464
suggestedFixDiff: Optional[str] = Field(default=None, description="Optional unified diff format patch for the fix")
6565
isResolved: bool = Field(default=False, description="Whether this issue from previous analysis is resolved")
6666
# Resolution tracking fields

python-ecosystem/inference-orchestrator/src/utils/prompts/constants_stage_1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@
125125
"line": "42",
126126
"codeSnippet": "REQUIRED: exact line of source code at the issue location (copied verbatim from diff/file). Issues WITHOUT codeSnippet are DISCARDED.",
127127
"title": "Short issue title, max 10 words",
128-
"reason": "Detailed explanation of the issue",
128+
"reason": "Detailed explanation of the issue in **Markdown** format. Use inline code (`backticks`), bold, bullet lists, and short code blocks where appropriate to improve readability.",
129129
"resolutionReason": "When isResolved=true: specific explanation of HOW/WHY the issue was fixed (must NOT repeat the issue description)",
130-
"suggestedFixDescription": "Clear description of how to fix the issue",
130+
"suggestedFixDescription": "Clear description of how to fix the issue in **Markdown** format. Use inline code (`backticks`), bold, and bullet lists where appropriate.",
131131
"suggestedFixDiff": "Unified diff showing exact code changes (MUST follow SUGGESTED_FIX_DIFF_FORMAT)",
132132
"isResolved": false
133133
}}

python-ecosystem/inference-orchestrator/src/utils/prompts/constants_stage_2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@
6868
"line": 42,
6969
"codeSnippet": "exact verbatim line of code from primary_file where the issue is most evident",
7070
"affected_files": ["path1", "path2"],
71-
"description": "Pattern or risk spanning multiple files",
71+
"description": "Pattern or risk spanning multiple files, in **Markdown** format. Use inline code, bold, and bullet lists where appropriate.",
7272
"evidence": "Which files exhibit this pattern and how they interact",
7373
"business_impact": "What breaks if this is not fixed",
74-
"suggestion": "How to fix across these files"
74+
"suggestion": "How to fix across these files, in **Markdown** format. Use inline code, bold, and bullet lists where appropriate."
7575
}}
7676
],
7777
"data_flow_concerns": [

0 commit comments

Comments
 (0)