Already-landed reconciliation reports must include PR inventory pagination proof #308

Closed
opened 2026-07-07 00:50:54 -05:00 by jcwalker3 · 1 comment
Owner

Already-landed PR reconciliation workflows list open PRs and classify candidates, but final reports do not always include pagination/final-page proof.

Problem:

If reconciliation claims it inspected open PRs or found all already-landed blockers, it must prove the PR inventory was complete. Otherwise, agents may miss additional already-landed PRs or incorrectly report queue state.

Required behavior:

  1. Reconciliation workflows must list open PRs with pagination proof.

  2. Pagination proof must include one of:

    • explicit no-next-page / final-page evidence from the MCP response
    • traversal until an empty or final page is returned
    • explicit requested page size and response count proving the page limit was not hit
  3. Final reconciliation reports must include:

    • requested page size
    • page count fetched
    • returned PR count per page
    • final-page/no-next-page proof
  4. Do not claim all already-landed PRs were found unless inventory completeness is proven.

Acceptance criteria:

  • Reconciliation reports fail validation if inventory proof is missing.
  • Reports cannot claim complete queue scan without pagination proof.
  • Tests cover first page below limit, first page exactly at limit, multiple pages, and missing pagination metadata.
Already-landed PR reconciliation workflows list open PRs and classify candidates, but final reports do not always include pagination/final-page proof. Problem: If reconciliation claims it inspected open PRs or found all already-landed blockers, it must prove the PR inventory was complete. Otherwise, agents may miss additional already-landed PRs or incorrectly report queue state. Required behavior: 1. Reconciliation workflows must list open PRs with pagination proof. 2. Pagination proof must include one of: * explicit no-next-page / final-page evidence from the MCP response * traversal until an empty or final page is returned * explicit requested page size and response count proving the page limit was not hit 3. Final reconciliation reports must include: * requested page size * page count fetched * returned PR count per page * final-page/no-next-page proof 4. Do not claim all already-landed PRs were found unless inventory completeness is proven. Acceptance criteria: * Reconciliation reports fail validation if inventory proof is missing. * Reports cannot claim complete queue scan without pagination proof. * Tests cover first page below limit, first page exactly at limit, multiple pages, and missing pagination metadata.
jcwalker3 added the status:in-progress label 2026-07-07 08:07:54 -05:00
Author
Owner

Implementation ready for review in PR #376.

Adds assess_reconcile_inventory_report() to require pagination metadata and final-page proof before reconciliation reports claim a complete open-PR scan.

Implementation ready for review in PR #376. Adds `assess_reconcile_inventory_report()` to require pagination metadata and final-page proof before reconciliation reports claim a complete open-PR scan.
sysadmin removed the status:in-progress label 2026-07-07 09:26:06 -05:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Scaled-Tech-Consulting/Gitea-Tools#308