Skip to content

feat: Enhance Markdown formatting in output schemas for improved readability and clarity#169

Merged
rostilos merged 3 commits intomainfrom
1.5.5-rc
Mar 17, 2026
Merged

feat: Enhance Markdown formatting in output schemas for improved readability and clarity#169
rostilos merged 3 commits intomainfrom
1.5.5-rc

Conversation

@rostilos
Copy link
Owner

@rostilos rostilos commented Mar 17, 2026

Summary by CodeRabbit

  • Documentation

    • Enhanced Markdown guidance for code review issue descriptions and suggested fixes to improve readability and consistency across prompts.
  • Chores

    • Removed a generated test-report artifact.
    • Minor repository metadata updates (non-functional header and reference adjustments).

@rostilos rostilos changed the title feat: Enhance Markdown formatting in output schemas for improved read… feat: Enhance Markdown formatting in output schemas for improved readability and clarity Mar 17, 2026
@coderabbitai
Copy link

coderabbitai bot commented Mar 17, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 16f65502-b65e-474d-8cc4-82f55356bb23

📥 Commits

Reviewing files that changed from the base of the PR and between 350cf27 and 6023d3b.

📒 Files selected for processing (1)
  • LICENSE
💤 Files with no reviewable changes (1)
  • LICENSE

📝 Walkthrough

Walkthrough

Updates include a frontend submodule reference change, deletion of a generated test-report artifact, minor license header edit, and expanded Markdown-formatting guidance in prompt templates and schema field descriptions for the inference-orchestrator.

Changes

Cohort / File(s) Summary
Submodule Update
frontend
Frontend submodule commit reference updated; no functional changes.
Test Artifact Removal
java-ecosystem/target/failsafe-reports/failsafe-summary.xml
Deleted generated failsafe test report artifact.
Schema Documentation
python-ecosystem/inference-orchestrator/src/model/output_schemas.py
Updated CodeReviewIssue.reason and CodeReviewIssue.suggestedFixDescription descriptions to require Markdown formatting.
Prompt Template Updates
python-ecosystem/inference-orchestrator/src/utils/prompts/constants_stage_1.py, python-ecosystem/inference-orchestrator/src/utils/prompts/constants_stage_2.py
Expanded guidance in prompt templates to require Markdown (inline code, bold, bullets, short code blocks) for reason/suggestion fields; no logic changes.
License Header
LICENSE
Removed a copyright year line from the license header; license terms unchanged.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐇 I nibble Markdown leaves at dawn,

Bold and bullets gently drawn.
Inline code tucked neat and tight,
Reviews hop clear in morning light.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes across multiple files—enhancing Markdown formatting guidance in output schemas and prompt templates for improved readability.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 1.5.5-rc
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
python-ecosystem/inference-orchestrator/src/utils/prompts/constants_stage_1.py (1)

128-130: Consider centralizing Markdown-format guidance text to prevent drift.

The same formatting rules now appear in multiple prompt/schema locations; extracting a shared constant/template would make future edits safer and keep Stage 1/Stage 2/schema wording in sync.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@python-ecosystem/inference-orchestrator/src/utils/prompts/constants_stage_1.py`
around lines 128 - 130, Extract the repeated Markdown-format guidance into a
single shared constant (e.g., PROMPT_MARKDOWN_GUIDANCE) and replace the
duplicate literal strings used for the "reason", "resolutionReason", and
"suggestedFixDescription" entries in constants_stage_1.py with that constant;
update any other prompt/schema modules that contain the same text to import and
reuse this constant so Stage 1/Stage 2/schema wording remains centralized and
consistent, and ensure the constant name is exported so callers (prompt builders
that reference "reason", "resolutionReason", or "suggestedFixDescription") can
reference it.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In
`@python-ecosystem/inference-orchestrator/src/utils/prompts/constants_stage_1.py`:
- Around line 128-130: Extract the repeated Markdown-format guidance into a
single shared constant (e.g., PROMPT_MARKDOWN_GUIDANCE) and replace the
duplicate literal strings used for the "reason", "resolutionReason", and
"suggestedFixDescription" entries in constants_stage_1.py with that constant;
update any other prompt/schema modules that contain the same text to import and
reuse this constant so Stage 1/Stage 2/schema wording remains centralized and
consistent, and ensure the constant name is exported so callers (prompt builders
that reference "reason", "resolutionReason", or "suggestedFixDescription") can
reference it.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d9d7751b-c959-40e5-8994-4451fa1bfd79

📥 Commits

Reviewing files that changed from the base of the PR and between dcacfdb and 350cf27.

📒 Files selected for processing (5)
  • frontend
  • java-ecosystem/target/failsafe-reports/failsafe-summary.xml
  • python-ecosystem/inference-orchestrator/src/model/output_schemas.py
  • python-ecosystem/inference-orchestrator/src/utils/prompts/constants_stage_1.py
  • python-ecosystem/inference-orchestrator/src/utils/prompts/constants_stage_2.py
💤 Files with no reviewable changes (1)
  • java-ecosystem/target/failsafe-reports/failsafe-summary.xml

@codecrow-local
Copy link

codecrow-local bot commented Mar 17, 2026

⚠️ Code Analysis Results

Quality Gate Default Quality Gate: ✅ PASSED

Summary

Pull Request Review: feat: Enhance Markdown formatting in output schemas for improved readability and clarity

Status PASS WITH WARNINGS
Risk Level LOW
Review Coverage 5 files analyzed in depth
Confidence HIGH

Executive Summary

This PR updates Markdown formatting within output schemas and prompt constants to improve readability and clarity. While the changes are primarily cosmetic, they affect the structure of strings processed by the inference orchestrator. The primary risk involves potential inconsistencies between Stage 1 and Stage 2 prompts, which could impact downstream regex-based parsing or JSON extraction.

Recommendation

Decision: PASS WITH WARNINGS

The PR is technically sound, but approval is conditioned on verifying that Markdown enhancements are applied consistently across both pipeline stages. Ensure that updated formatting does not interfere with existing data flow parsers before merging.

Issues Overview

Severity Count
🔵 Low 1 Minor issues and improvements

Analysis completed on 2026-03-17 07:51:13 | View Full Report | Pull Request


📋 Detailed Issues (1)

🔵 Low Severity Issues

Id on Platform: 3805

Category: 🏗️ Architecture

File: .../prompts/constants_stage_2.py:1

Potential Formatting Inconsistency Between Stage 1 and Stage 2 Prompts

Potential Formatting Inconsistency Between Stage 1 and Stage 2 Prompts
The PR aims to enhance Markdown formatting in output schemas. There is a risk that formatting updates applied to constants_stage_2.py (or its associated schema) may not be mirrored in constants_stage_1.py, leading to a disjointed user experience or inconsistent LLM parsing behavior across the inference pipeline stages.
Evidence: Dependency analysis shows constants_stage_2.py is linked to constants_stage_1.py within the same package. Changes to output schemas typically require synchronization across all pipeline stages to ensure the LLM maintains a consistent 'persona' and formatting style.
Business impact: Inconsistent formatting can lead to downstream parsing errors if regex or JSON extractors expect a unified Markdown structure across different stages of the inference orchestrator.
Also affects: python-ecosystem/inference-orchestrator/src/utils/prompts/constants_stage_1.py

💡 Suggested Fix

Verify that any Markdown enhancements (such as bolding keys, list indentation, or code block usage) are applied consistently to both constants_stage_1.py and constants_stage_2.py. If a shared schema utility exists, consider centralizing the formatting logic there.

View Issue Details


Files Affected

  • .../prompts/constants_stage_2.py: 1 issue

@rostilos rostilos merged commit fdb4bfd into main Mar 17, 2026
2 checks passed
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.

1 participant