Skip to content

Word the truncated-tree branch fallback neutrally - #436

Merged
ptr727 merged 1 commit into
developfrom
fallback-neutral-wording
Jul 25, 2026
Merged

Word the truncated-tree branch fallback neutrally#436
ptr727 merged 1 commit into
developfrom
fallback-neutral-wording

Conversation

@ptr727

@ptr727 ptr727 commented Jul 25, 2026

Copy link
Copy Markdown
Owner

The degraded branch-check fallback (three-tree filter cannot run - a tree is truncated or unavailable) has only the compare's file count, which cannot tell direction or filter cherry-picked content-equivalent changes. Reword it to assert only what is known - the paths differ, and a forward-sync or reconciliation may be needed - instead of claiming develop is behind. Routed from Copilot on promotion #434.

spec/audit.py --selftest PASS, spec/validate.py OK.

🤖 Generated with Claude Code

When the three-tree filter cannot run (a tree is truncated or
unavailable), the audit has only the compare's file count, which cannot
tell direction or filter cherry-picked content-equivalent changes. Assert
only what is known - the paths differ - and that a forward-sync or a
reconciliation may be needed, rather than claiming develop is behind.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 25, 2026 04:06

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

This PR adjusts the degraded branch-drift fallback message in spec/audit.py to avoid asserting a specific drift direction when the three-tree classification cannot run (e.g., truncated or unavailable trees). It keeps the finding accurate by stating only what the compare API can truly confirm in that scenario: the branches differ on some set of paths, and follow-up action may be needed.

Changes:

  • Reword the truncated/unavailable-tree DRIFT message to be direction-neutral.
  • Clarify in the message that direction cannot be classified when the tree data is missing/truncated.

@ptr727
ptr727 merged commit b2af045 into develop Jul 25, 2026
7 checks passed
@ptr727
ptr727 deleted the fallback-neutral-wording branch July 25, 2026 04:08
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