Repository navigation
Description
Problem
The body rule of a delivery pull request has two meanings:
CONTRIBUTING.mdline 181 says that the body has "at most 1,000 characters before the trailers" and ends withCloses #<issue>and theChange:line. The messageform_body_long(src/devops_cli/lang/en/messages.pyline 1699) says "The body has {length} characters before its trailers" and "Shorten the text aboveCloses".body_form_problems(src/devops_cli/roadmap/pull_form.pyline 259) measures the lines up to and including theChange:line. It counts theClosesline, the empty lines and theChange:line, about 120 characters for a typical change folder.
Thus a body whose text above Closes has 990 characters passes the rule as the document gives it, but devops pr ready reports "The body has 1107 characters before its trailers" and blocks the merge. On 2026-11-21 this happened on PR #6625 and PR #6629: the agents measured the text before Closes and got 974 and 891 characters. The #6450 delivery met the same difference.
Expected
One meaning in the code, the message and the document. Either the code measures only the text above the Closes line, which is what the document and the message say, or the document and the message say that the limit includes the Closes and Change: lines. The plan check (plan_check.py line 279) measures the whole body; the same text must name that too.
Acceptance criteria
- Test first: a body whose measured part is just over the limit by the chosen meaning is refused, and the message names the part that it measured. The test fails on the base.
CONTRIBUTING.md, the message and the docstring ofbody_form_problemsgive the same meaning.
Dependencies
None.
Source
Source: #6629
Alternatives check of 2026-11-21: none.
Tool: none found.
Reason: Searches found only generic PR guidance and PR-creation actions; no open tool implements this repository's 1,000-character delivery body rule or the split between body text and its Closes/Change trailers, so the fix stays in the existing checker.
Lacks:
- No checker for a 1,000-character delivery body limit
- No split of body text from Closes and Change trailers
- No agreement between code, message and CONTRIBUTING.md
Proposed design
Problem statement
The delivery body check counts the Closes and Change: lines in the 1,000-character limit. CONTRIBUTING.md and the form_body_long message say that the limit covers only the text above Closes. The plan body check counts its whole body too. Thus a body that the document allows is refused, and the merge waits. The fix gives one measured part for delivery and plan bodies.
Acceptance criteria
Requirement: Delivery limit measures text above Closes
The delivery body form check SHALL measure only the text above the Closes line, with its trailing blank lines removed, against the 1,000-character limit.
Scenario: A delivery body at the limit above Closes
- WHEN A delivery body holds 1,000 characters above its
Closesline and itsClosesandChange:lines add 120 characters - THEN
body_form_problemsreturns noform_body_longproblem
Requirement: An over-limit body names the measured text
The delivery body form check SHALL refuse a body whose text above Closes is over 1,000 characters and SHALL name that text as the measured part.
Scenario: A delivery body over the limit above Closes
- WHEN A delivery body holds 1,001 characters above its
Closesline and itsClosesandChange:lines add 120 characters - THEN
body_form_problemsreturnsform_body_longwith length 1001, and the text ofform_body_longnames the text aboveCloses
Requirement: Plan limit measures text above Plans
The plan body form check SHALL measure only the text above the Plans line against the same 1,000-character limit.
Scenario: A plan body at the limit above Plans
- WHEN A plan body holds 1,000 characters above its
Plansline and itsPlansandChange:lines add 120 characters - THEN the plan body form check returns no body-length problem
Requirement: The docstring names the measured text
The docstring of body_form_problems MUST state that the limit measures only the text above the Closes line.
Scenario: The docstring of the body check
- WHEN The test reads
body_form_problems.__doc__ - THEN the docstring names the text above
Closesas the only measured part
Existing Tool Considered
The alternatives check in the issue body (2026-11-21) gives the verdict none, with no tool. The proposal adds no new component: it edits the existing delivery body checker in src/devops_cli/roadmap/pull_form.py, the plan body check and their tests. It builds no new code, so it has no build cost.
Key questions
- Which part of a delivery body does the 1,000-character limit measure?: Only the text above the
Closesline. TheClosesandChange:lines are trailers and do not count. (best practice) [sources: CONTRIBUTING.md:181, src/devops_cli/lang/en/messages.py:1699, src/devops_cli/roadmap/pull_form.py:259]- Chosen: Measure only the text above
Closes. CONTRIBUTING.md saysat most 1,000 characters before the trailersand the message saysShorten the text aboveCloses``. - Rejected: Include the
ClosesandChange:lines in the limit. It contradicts the document and the message, and it refuses a body that they allow.
- Chosen: Measure only the text above
- Does the plan body form check use the same measured part?: Yes. It measures only the text above the
Plansline against the same 1,000-character limit, so thePlansandChange:lines do not count. (best practice) [sources: src/devops_cli/roadmap/plan_check.py:279, src/devops_cli/roadmap/pull_form.py:259, CONTRIBUTING.md:181]- Chosen: Measure only the text above
Plans. It gives one meaning for delivery and plan bodies and keeps the trailer text out of the limit. - Rejected: Keep the whole-body measure and name the difference in the text. It gives two meanings for one limit, and the document gives no such difference.
- Chosen: Measure only the text above
- Do
CONTRIBUTING.mdand theform_body_longmessage need an edit?: No. Both already state the chosen meaning.CONTRIBUTING.mdsaysat most 1,000 characters before the trailers, and the message saysThe body has {length} characters before its trailersandShorten the text aboveCloses``. The fix changes the code to agree with them. [sources: CONTRIBUTING.md:181, src/devops_cli/lang/en/messages.py:1699]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 21, 2026
The defect blocks PR merges on PR #6625 and #6629, causing repeated agent failures.Both concern the 1,000 character body limit in pull_form, but #2585 adds a warning threshold while the candidate fixes which lines the limit counts.devops-cli-service commentedon Nov 21, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 21, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (5)
Searches run:
Sources:
devops-cli-service commentedon Nov 21, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
9 remaining items
fix(pr): the body limit counts the Closes and Change lines (#6633)
devops-cli-service commentedon Nov 21, 2026
Stopped at group 1.
Failed check:
pytest on base: tests/roadmap/stage/test_roadmap_stage_plan.py, tests/roadmap/steps/test_roadmap_step_open.py, tests/roadmap/test_roadmap_plan_check.py, tests/r.Failure class:
test.Action taken: none.
Action left:
repair: give the failure to a fix step.pytest on base: tests/roadmap/stage/test_roadmap_stage_plan.py, tests/roadmap/steps/test_roadmap_step_open.py, tests/roadmap/test_roadmap_plan_check.py, tests/rReason:
Last message of the agent (a claim that no check verified): I finished group 1 and ticked tasks 1.1 and 1.2. What I changed -
src/devops_cli/roadmap/pull_form.py: addedmeasured_body_text(body, line)— the text above the first<line> #line, trailing blank lines removed, the whole body when there is no such line._text_problemsnow takesline=and measureslen(text.rstrip());body_problemspassesline="Closes",plan_body_problemspassesline="Plans", andopen_body_problemsmeasuresmeasured_body_text(body, "Closes"). The docstrings ofbody_problems,open_body_problemsand_text_problemsstate the measured part. -src/devops_cli/lang/en/messages.py:form_body_longnames the measured line through{line}and keeps the phraseShorten the text above …thattests/commands/test_pr_describe.pyreads (that file is not in the group'sChanges);plan_check_body_longnames the text abovePlans. -tests/roadmap/test_roadmap_pull_form.py: addedtest_a_body_over_the_limit_above_closes_is_refused(1,001 aboveCloses+ 120 chars of trailers →form_body_longwith 1001, namingCloses),test_a_body_at_the_limit_above_closes_has_no_problem(1,000 → no problem) and a docstring test; both new body tests failed on the base (The body has 1121 characters before its trailers). Updated the plan-text test to expectPlans. -tests/roadmap/steps/test_roadmap_step_open.py: added a draft-body test foropen_body_problemsat and over the limit aboveCloses. Plan defect that forced extra edits. TThe job discarded this work. The diff is cut to 20000 characters. Read it before you retry:
The item is Blocked, and the job will not run it. Fix the cause. Then comment
implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits ofroadmap.implement.digest_clears_per_classandroadmap.implement.digest_clears_per_itemallow it.dan-petty commentedon Nov 21, 2026
implement: retry
devops-cli-service commentedon Nov 21, 2026
Cleared the stop at group 1 by the rule
retry: a person commentedimplement: retry. The item is Ready again, and the Service takes it in the next round.fix(pr): the body limit counts the Closes and Change lines (#6633)
fix(pr): Measure the body above its trailer lines (#6633)
devops-cli-service commentedon Nov 22, 2026
Released in v0.191.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.191.1
devops-cli-service commentedon Nov 22, 2026
Live since 2026-11-22 02:54 UTC