Skip to content

Project priority audit silently omits items beyond 1,000 #1458

Description

@Chris0Jeky

Problem

scripts/github/Sync-TaskdeckProjectPriority.ps1 defaults to -Limit 1000 and reports a clean audit when that cap is saturated, without proving that all project items were inspected. On 2026-07-24 it reported scanned: 1000, needsUpdate: 0, while targeted project-item reads showed both issue #1456 and PR #1457 had Priority I labels but an empty project Priority field.

This violates the project-automation invariant that no issue or PR item may have empty Priority, and can make handoffs claim clean metadata when newer project items were never audited.

Evidence

Acceptance criteria

  • Audit/apply mode examines every issue and PR item in the configured project, using reliable pagination or another complete retrieval path.
  • If completeness cannot be established, the script exits nonzero and does not print a clean result.
  • Add regression coverage for a project with more than 1,000 items or an equivalent mocked pagination/saturation case.
  • Repair project Priority for Restore Taskdeck Codex deny-floor adapter and prove live hook trust #1456 and Add pinned Codex deny-floor adapter #1457 to Priority I and verify them with targeted reads.
  • Re-run the full project audit and prove no issue/PR project item has empty or mismatched Priority.
  • Update docs/GITHUB_PROJECT_AUTOMATION.md and docs/TESTING_GUIDE.md if the invocation or verification contract changes.

Scope

Project-automation substrate only. Do not change product behavior. Treat the current empty #1456/#1457 priorities as a merge-gate metadata defect, separate from #1457's human /hooks trust gate.

Metadata

Metadata

Assignees

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions