Skip to content

Frame the staleness-diff -/+ lines more precisely#238

Merged
ptr727 merged 1 commit into
developfrom
docs/staleness-check-precision
Jul 3, 2026
Merged

Frame the staleness-diff -/+ lines more precisely#238
ptr727 merged 1 commit into
developfrom
docs/staleness-check-precision

Conversation

@ptr727

@ptr727 ptr727 commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Follow-up to #236, addressing a Copilot point raised on promotion PR #237: describing - lines as "real staleness" and + lines as "just" unpromoted work overstates what git diff origin/main origin/develop proves.

Why

A hunk where develop merely modified the same code shows both a - (main's old form) and a + (develop's new form) - that is normal unpromoted work, not staleness. Calling every - line "real staleness" is inaccurate.

What changed

Reframe - lines as main-only differences to inspect for staleness, and note that a -/+ pair in one hunk is usually just develop's own modification; a - line with no corresponding develop-side replacement is the stronger staleness signal.

Targets develop; promotion PR #237 will carry it to main.

Copilot AI review requested due to automatic review settings July 3, 2026 17:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Refines the documentation in AGENTS.md about how to interpret git diff origin/main origin/develop when checking whether develop is stale relative to main, clarifying that -/+ pairs can simply reflect normal develop modifications and that “main-only removals” are a stronger staleness indicator.

Changes:

  • Rephrases the “develop staleness” guidance to treat - lines as main-side differences to inspect, not automatically “real staleness”.
  • Adds nuance that a -/+ pair in a hunk is usually just develop’s own modification, while an unpaired - is a stronger staleness signal.

Comment thread AGENTS.md Outdated
@ptr727 ptr727 force-pushed the docs/staleness-check-precision branch from 2a66361 to 4462e00 Compare July 3, 2026 17:27
@ptr727 ptr727 requested a review from Copilot July 3, 2026 17:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread AGENTS.md Outdated
A `-`/`+` pair in one hunk is normally develop modifying that code (normal
unpromoted work), not staleness, so "- lines = real staleness" overstated it.
Reframe `-` lines as main-only differences to inspect, and call out that a `-`
line with no develop-side replacement is the stronger staleness signal.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ptr727 ptr727 force-pushed the docs/staleness-check-precision branch from 4462e00 to 1d94581 Compare July 3, 2026 17:29
@ptr727 ptr727 requested a review from Copilot July 3, 2026 17:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@ptr727 ptr727 merged commit ba5bdf5 into develop Jul 3, 2026
11 checks passed
@ptr727 ptr727 deleted the docs/staleness-check-precision branch July 3, 2026 17: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