testzeus-reports
Create custom reports using the Reports page workflow; manage drafts, versioned templates and reusable definitions; preview, confirm, schedule, recall, compare, download and share canonical reports.
Category: reports · Version: 1.1.0 · Requires: testzeus-auth
Triggers: report, custom report, new report, download report, export results, ctrf, pdf report, report history, compare reports, report template, share report
Overview
Bugsy and Reports → New Report use the same /api/v1/reporting domain, not a
chat-only report builder. Use canonical reporting records as the source of truth.
A chart in a chat message is not a generated report or downloadable artifact.
Custom reports
- Use
get_report_builder_contextfor the supported form fields, templates and approved notification channels. Ask the question the report should answer, its name, and the completed test runs to include. Resolve IDs using tools; usequery_platform_recordsfor filtered or latest-N run selection before the preview; never invent an ID or silently widen scope to every tenant run. - Call
prepare_custom_reportwithname,prompt,testRunIds, optionaltemplateId, and a uniqueidempotencyKey. Formats mirror the page: PDF, CTRF JSON (json), CSV, evidence ZIP, interactive HTML. Defaults are PDF + JSON + HTML.when=nowis the default;when=schedulerequires a numeric five-field UTC cron. Notifications are explicitly opt-in. - Show the exact preview: title, scope counts, files, quality safeguards, delivery, timing, warnings and expiry. Reconciliation and evidence are required; secrets are redacted; partial reports are disallowed by default, exactly as on the page. Nothing has been generated at this point.
- Wait for explicit user confirmation.
confirm_report_actionmust use the matching token and idempotency key from that preview. Do not expose the token, auto-confirm in the same turn, or refresh the preview after a plain “yeah”. Changed scope/question/template/formats/delivery requires a new preview. - Confirmation may return a queued report. Poll
get_reportorlist_reportsbefore saying it is completed. Link to canonical report history/detail, not guessed filenames or raw storage URLs.
Drafts, templates and definitions
Use create_report_draft / update_report_draft to iterate on saved specs;
updates carry expected_revision. Use list_report_templates,
create_report_template, list_report_template_versions and
publish_report_template_version for immutable reusable templates.
create_report_definition publishes a reusable definition from draft/template/spec.
preview_report_action remains the advanced-spec and suite-attachment path;
it has the same mandatory preview/confirmation boundary.
For a supplied CSV, XLSX or DOCX use import_report_template with the current
request's authorized upload path (never expose that path). Native XLSX fill is
opt-in and download-only; do not promise arbitrary workbook layouts are editable.
Schedules and suite attachments require canonical preview actions schedule
and attach_suite, not guessed direct collection writes.
Existing reports and files
list_reports recalls saved reports, including filters and latest/history.
get_report provides quality, provenance, effective spec and artifacts.
compare_reports compares canonical generated reports.
download_report uses a real report ID and format. prepare_report_share opens
platform-controlled sharing; never invent a public link or automatically send
files to a notification channel. CTRF and native XLSX remain download-only.
Use submit_report_feedback for explicit ratings/corrections.
Presentation
Reports use host-standard Card, MarkdownText, collapsible quality details and alerts. Avoid raw JSON, fake Dashboard components and unrequested charts. Generation success must not be overwritten with the prerequisite run/template listing. Validation errors should explain what must change, not invite a blind retry. Logs and failure history are separate QA tools, not a substitute for custom report generation.