daydream
Daydream CLI docs

Artifacts and evaluation

Storage and finalization

Live artifacts use ~/.daydream/runtime/SOURCE_KEY/ outside the checkout. Temporary worktrees use ~/.daydream/workspaces/SOURCE_KEY/operational/. Private storage does not provide an operating-system sandbox. Startup moves existing untracked output into private storage. Tracked files at generated paths stop preflight.

Finalization freezes evidence, captures enabled dataset records, assembles and evaluates archives, then publishes checkout output. Wait for finalization before consuming output, even after GitHub posting succeeds. Conflicting writes preserve competing bytes and report a conflict.

Finalized checkout pathContents
.daydream/runs/RUN_ID/trajectory.jsonAgent Trajectory Interchange Format (ATIF) 1.7 record.
.daydream/runs/RUN_ID/trajectories/Parallel child trajectories.
.daydream/diff.patchCaptured review diff.
.daydream/deep/Review, fix, test, publication, and recovery evidence.
.daydream/exploration/Context and cache identity.
.daydream/recommended.patchFix patch captured before later tests or restoration.
.review-output.mdRendered report.

Compare recommended.patch with fix outcomes and the final Git diff before applying recovery changes. See CLI reference for report cleanup and Repository improvement for Improve output.

Inspect evidence

Files under .daydream/deep/ describe reached stages. Inspect coverage, verdict, and handoff records before resuming failed review, repair, push, or continuous integration work. Missing optional files do not establish failure. A local test verdict establishes only observed host behavior.

Trajectories record messages, tool calls, available reasoning, timing, tokens, costs, and phase data. Missing backend measurements remain unavailable. --trajectory PATH selects an external trajectory with live atomic updates. Unsupported atomic filesystem operations fail preflight. Interrupted trajectories can use .partial and extra.partial = true. A terminated process or missing output supplies no valid current result.

Archives and exports

OutputContents and limits
Central archiveManifest, trajectories, diff, available artifacts, and normally evaluation.json. index.db indexes finalized metadata.
--dump-artifacts DIRExact finalized bundle bytes merged into the destination, preserving unrelated files. No secret scanning or sanitizing.
Findings exportEnvelope version 2, with terminal result version 1. Binds repository, pull request, head, and diff.
Dataset captureImmutable evidence and appended observations. See Corpus preparation.

Archives use DAYDREAM_ARCHIVE_DIR or ~/.daydream/archive. --no-archive disables the archive. --no-eval disables deterministic evaluation. See Corpus preparation for capture controls. Inspect dumps before sharing. Use separate dump destinations for concurrent runs. Copy or frozen-integrity failures can fail finalization. For an unsupported index schema, use a fresh archive root. Daydream preserves unsupported indexes.

Findings readers reject unsupported contracts. A changed pull request head stops commit-bound export. Diagram exports contain no review coverage. Use unique, initially absent export paths because failed replacement can preserve an older file. See Automation for separate posting jobs.

Evaluation and summaries

Deterministic evaluation reads frozen evidence without model calls. Reports include finding counts, timing, costs, tool counts, coverage, and quality measurements when available. Source-read measurements do not establish review completeness or diagram validity. Missing correctness evidence leaves the composite reward unavailable.

daydream summarize PATH prints a Markdown summary and phase table from a trajectory or archive directory. The command starts no agents and performs no GitHub writes. An invalid or empty path returns 1. If every trajectory fails parsing, the command returns 2.

Run finalization and findings validation define these contracts.

Back to Daydream