SpecsCLIIssue #22 Report AI Title Body
Issue
Plan and closeout for making dp report accept raw issue context and generate maintainer metadata server-side.
Initial Situation
dp report forced operators to provide --title and --body before it could create a report. That made the command feel like hand-authoring a maintainer issue instead of reporting raw friction.
Issue
Issue #22 asks for AI-generated report titles and an implicit body. The operator should be able to provide raw report text and structured context, then let Harness generate the final title/body.
Plan
- Make
titleandbodyoptional in the sharedHarnessReportInputschema. - Add raw context fields used by the CLI report flow:
area,skillPack,command,expected,actual,steps, andlabels. - Update
dp reportto accept--messageas the primary report input and keep--title/--bodyas optional compatibility hints. - Move final title/body generation into the API report submit path.
- Use deterministic fallback title/body for public CLI submissions. Use AI SDK with OpenRouter only for authenticated backoffice operator requests when
OPENROUTER_API_KEYis configured. - Validate with CLI, contract, and API tests.
Result
Resolved. The CLI now submits report drafts to the control-plane API; the API validates raw context and generates final title/body before persistence and GitHub issue creation.