Skip to content

fix: describe the level as the confidence badge in the assistant prompt - #525

Merged
caitlon merged 1 commit into
devfrom
fix/assistant-prompt-confidence-label
Oct 3, 2026
Merged

caitlon merged 1 commit into
devfrom
fix/assistant-prompt-confidence-label

Conversation

@caitlon

@caitlon caitlon commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Problem

The assistant's system prompt described the project's level as an agreement label. The results screen shows that level as the confidence badge, so an answer could name something the user does not see.

Change

One paragraph of the pinned facts is reworded. In api/assistant/agent/prompt.py the paragraph keeps the 20 and 40 percent thresholds, says the screen shows the level as the confidence badge, and says it tells how close the mean and the median are. Every other sentence of the prompt is unchanged, and so are the agreement_level values.

Verification

  • uv run pytest tests/unit/api/assistant -n 0 -q: 978 passed. A new test in test_prompt.py fails on the old wording.
  • ./scripts/ci/ci-local.sh fast: lint clean, 3267 backend tests passed. The frontend half did not run in that tree; this change has no frontend files.

Migrations

None.

Screenshots

None.

@caitlon caitlon added this to the v1.1-polish milestone Oct 3, 2026
@caitlon caitlon added type:bug Something is broken area:api FastAPI backend labels Oct 3, 2026
@caitlon caitlon self-assigned this Oct 3, 2026
@greptile-apps

greptile-apps Bot commented Oct 3, 2026

Copy link
Copy Markdown

Automatic reviews are disabled for this repository.

@github-actions github-actions Bot added the size:S Under 300 changed lines. label Oct 3, 2026
@sonarqubecloud

sonarqubecloud Bot commented Oct 3, 2026

Copy link
Copy Markdown

@caitlon
caitlon merged commit d5ad697 into dev Oct 3, 2026
20 of 22 checks passed
@caitlon
caitlon deleted the fix/assistant-prompt-confidence-label branch October 3, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:api FastAPI backend size:S Under 300 changed lines. type:bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant