Skip to content

fix(orbit): sprint open counts both dates in Orbit's 56-day limit - #353

Merged
piwi3910 merged 1 commit into
mainfrom
fix/sprint-ends-inclusive
Dec 3, 2026
Merged

piwi3910 merged 1 commit into
mainfrom
fix/sprint-ends-inclusive

Conversation

@piwi3910

@piwi3910 piwi3910 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

What

procoder sprint open --ends in Orbit mode now accepts an end date at most 55 days away. It used to accept 56.

Why

Orbit runs a sprint for at most 56 days and counts both the start and the end date (internal/sprints.MaxDays). A sprint ending 56 days after its start would run 57 days, so Orbit refuses it. procoder accepted that date, created the sprint, and then Orbit refused to start it. The result was a stranded future sprint.

How

  • internal/orbitcmd/sprint.go: refuse days >= 56. The message explains why the limit is 55 days.
  • internal/orbit/orbittest: the fake's start step now refuses what Orbit refuses (422 sprint_dates_invalid). It used to enforce no limit at all, which is how this got through.
  • docs/orbit-backend.md: states the limit as 55 days away and explains why.
  • .procoder/github/LESSONS.md: one lesson, with its adaptation in the fake.

Docs impact: docs/orbit-backend.md updated. No other page states the limit.

Testing

  • TestOrbitSprintOpenLimitCountsBothDates: 56 days away is refused and nothing is written; 55 days away opens. With the old > put back, the test fails with Orbit's own refusal and the stranded sprint.
  • procoder test: all 62 Go packages pass.
  • procoder check: nothing blocking.
  • procoder lessons: 49 lessons, none unlearned.

…ay limit

Orbit runs a sprint for at most 56 days, both dates inclusive
(internal/sprints.MaxDays), so it refuses a sprint ending 56 days after
its start. sprint open accepted --ends 56 days away. Orbit then refused
the start, and the sprint created just before was stranded as a future
sprint. --ends may now be at most 55 days away, and the message says why.

The fake Orbit never enforced the limit. Its start step now refuses what
Orbit refuses (422 sprint_dates_invalid), and
TestOrbitSprintOpenLimitCountsBothDates pins the 55/56 boundary. Lesson
recorded in .procoder/github/LESSONS.md.
Copilot AI balanced review requested due to automatic review settings December 3, 2026 11:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@piwi3910
piwi3910 merged commit 4666392 into main Dec 3, 2026
6 checks passed
@piwi3910
piwi3910 deleted the fix/sprint-ends-inclusive branch December 3, 2026 11:31
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.

2 participants