From c74287b75ba5cf7a9dfea468e5f2ab8348c81ff9 Mon Sep 17 00:00:00 2001 From: mateo Date: Sun, 16 Aug 2026 21:00:33 +0000 Subject: [PATCH] fix(agent-shin): keep grace-window wording readable at 24h Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/scripts/close_low_quality_prs.py | 2 +- .github/scripts/triage_rollout_heads_up.py | 2 +- tests/test_litellm/test_triage_rollout_heads_up.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/close_low_quality_prs.py b/.github/scripts/close_low_quality_prs.py index cdb0fe670e0..57de4b45e14 100644 --- a/.github/scripts/close_low_quality_prs.py +++ b/.github/scripts/close_low_quality_prs.py @@ -271,7 +271,7 @@ def format_close_comment(score: int, threshold: int) -> str: """ score_sentence = ( f"Greptile's most recent review scored this PR **{score}/5**, below " - f"our merge bar of **{threshold}/5**, and the {GRACE_PERIOD_LABEL} grace period since " + f"our merge bar of **{threshold}/5**, and the grace period ({GRACE_PERIOD_LABEL}) since " "the warning has elapsed.\n\n" ) return ( diff --git a/.github/scripts/triage_rollout_heads_up.py b/.github/scripts/triage_rollout_heads_up.py index 44f69ed82ce..488b49f8ad5 100644 --- a/.github/scripts/triage_rollout_heads_up.py +++ b/.github/scripts/triage_rollout_heads_up.py @@ -224,7 +224,7 @@ def format_heads_up_comment( f"- If this {noun} still fails the rubric at **{cutoff_str}**, " "we'll close it.\n" f"- From then on the bot runs daily, and every {noun} that fails " - f"the rubric gets a **{GRACE_PERIOD_LABEL} lifetime**: one warning " + f"the rubric gets **{GRACE_PERIOD_LABEL} to fix it**: one warning " f"comment, then auto-close {GRACE_PERIOD_LABEL} later.\n" "\n" f"{_recovery_section(kind)}\n" diff --git a/tests/test_litellm/test_triage_rollout_heads_up.py b/tests/test_litellm/test_triage_rollout_heads_up.py index 303115fc61d..bcea2422984 100644 --- a/tests/test_litellm/test_triage_rollout_heads_up.py +++ b/tests/test_litellm/test_triage_rollout_heads_up.py @@ -175,7 +175,7 @@ class TestHeadsUpCommentBody: assert "09:00 UTC" in body # deadline is timezone-explicit assert "we'll close it" in body # hard deadline, not a passive notice assert ( - f"{heads_up_module.GRACE_PERIOD_LABEL} lifetime" in body + f"{heads_up_module.GRACE_PERIOD_LABEL} to fix it" in body ) # post-rollout steady state assert "Greptile" in body and "3/5" in body # specific shortfall assert "QA proof" in body # missing piece surfaced