Skip to content

fix(upstream): parse wrapped provenance trailers - #380

Merged
incognitojam merged 1 commit into
mainfrom
fix/upstream-provenance-wrapped-trailers
Sep 19, 2026
Merged

incognitojam merged 1 commit into
mainfrom
fix/upstream-provenance-wrapped-trailers

Conversation

@incognitojam

Copy link
Copy Markdown
Owner

GitHub can wrap long squash-commit trailers across physical lines. The provenance parser previously read only the labelled line, so the 27-source Upstream-PR trailer from #370 was rejected and reconciliation continued to show already-landed sources such as #5769 as pending.

This updates trailer parsing to consume comma-continued lines for both pull-request and commit provenance while stopping at complete trailers. The regression coverage includes GitHub-wrapped PR and commit values and verifies that unrelated numeric lines are not treated as provenance.

Validation:

  • vp test run scripts/upstream-provenance.test.ts scripts/upstream-tracking-issue.test.ts --exclude '.scratch/**' — 34 tests passed
  • Targeted lint and formatting checks passed
  • git diff --check origin/main...HEAD passed

Written by an agent (styal, gpt-5.6-sol).

@incognitojam
incognitojam merged commit d72bc16 into main Sep 19, 2026
11 checks passed
@incognitojam
incognitojam deleted the fix/upstream-provenance-wrapped-trailers branch September 19, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant