#13991·dagger

Custom check reports

Author: shykesCreated Aug 27, 2026Updated Sep 25, 2026

Context

Modules can expose checks (idempotent functions that reports whether the workspace passes or fails a custom criteria - test execution, lint, formatting, etc etc.).

Module developers annotate their function with +check or @check and it will be executed by dagger check. The function must return Void if the check passes, or throw an error when it fails.

Problem

In addition to pass/check, many checks also need to share a report: a custom artifact that the user may download to learn more about the details of the check. These artifacts can be in various formats, sometimes standardized like JUnit XML files, sometimes implemented by an open-source tool (most linters have a custom report format), and sometimes entirely custom. It may be a single file, or a richer artifact with an archive of screenshots, etc.

The problem: Dagger checks have no way to present these reports to the client.

Solution

Extend the Checks interface so that check functions can return custom artifacts in addition to pass/fail; and all clients (libraries, modules, CLI, Cloud) can use them in the most useful way possible.

Design is TBD