fix(agent-shin): keep grace-window wording readable at 24h

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mateo 2026-08-16 21:00:33 +00:00
parent b506501126
commit c74287b75b
3 changed files with 3 additions and 3 deletions

View file

@ -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 (

View file

@ -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"

View file

@ -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