Harness Intelligence Wiki
ReferenceTech DebtApiReports

Server Report Label Setup

Server Report Label Setup

Initial Debt

Codex review found that server-side dp report issue creation posted GitHub issues with classifier labels without first creating labels that might not exist.

Why It Matters

GitHub rejects issue creation when unknown labels are included. That turns a valid report into HarnessReportPersistenceUnavailable.

Resolution

apps/api/src/reports.ts now creates each report label before posting the issue. It treats GitHub 422 as already-existing label parity with the previous CLI implementation.

Validation

  • apps/api/src/reports.test.ts verifies label setup runs before report issue creation.

Closeout

Resolved in PR #24 follow-up after Codex review.

On this page