/comet flow. These files support context compression, recovery after an interruption, evidence recording, and handoff between phases. Your actual deliverables remain the requirement documents, the design, and the code.
Knowing these files helps you recover after context compression, know where to look when something goes wrong, and check the delivery before archiving.
How artifacts move through the stages

Each kind of artifact supports context, recovery, handoff, or verification evidence.
Below,<classic-root> stands for the Classic OpenSpec root. New projects store it in docs/openspec/; projects that keep the old layout use openspec/. The location is set by classic.artifact_layout. See project file structure.
.comet.yaml: the state file for the whole workflow
This is the only state file shared across phases. Fields are filled in progressively as the workflow advances. See state management.
The Classic workflow treats
.comet.yaml as the authoritative record of current state.
.comet/state-events.jsonl is an append-only audit log that explains how the state
reached its current value. .comet/run-state.json and trajectory.jsonl hold
internal execution details that Comet maintains. Cross-session recovery relies mainly on
.comet.yaml, the formal documents, and the checkpoint markdown; read the event log
only when you need to find out why a state changed.state-events.jsonl (state transition audit)
It is not the source of current state;
.comet.yaml remains authoritative. Use the event log to answer questions such as: was this phase changed by the guard, a manual transition, or archiving? Which fields actually changed?
Artifacts of the design stage
The design stage produces the most intermediate artifacts, because it supports context compression and the shift from OpenSpec documents to an implementation design.Formal sources and the optional reading view
Classic reads proposal, design, tasks, and the delta Specs directly. The Agent reads the material it needs for the task and does not build a hash package. When you want all of the context in one Markdown file, runcomet handoff <change-name> design --write --full. It writes the original source content to .comet/handoff/design-context.md in the current change. The view is for reading only; it does not replace the formal sources or the design approval. See comet handoff.
brainstorm-summary.md
It records:
- The confirmed technical approach
- Key trade-offs and risks
- The test strategy
- The Spec Patch, if any
- Unconfirmed items, marked
pendingorcandidate
Artifacts of the build stage
The build stage artifacts support sub-agent scheduling recovery and task tracking.Implementation plan
The plan frontmatter is the evidence verify relies on:
base-ref is the commit SHA before implementation starts; verify uses it to recalculate the size of the change. Comet writes the plan path to .comet.yaml.
subagent-progress.md
It records the scheduling state of the current task:
- The current plan task text and the matching OpenSpec task text
- The current stage (
implementing,task-review,checkoff,done,blocked) - The implementation commit hash, changed files, and RED/GREEN evidence
- The selected
review_mode - Review stages that have passed and reviewer feedback that is still open
- The current number of review-and-fix rounds
tasks.md
Comet has no separate checkbox file; task state lives in
tasks.md. Use grep -c '\- \[ \]' tasks.md to count open items and comet-state task-checkoff <file> <text> to verify that a specific task is checked off.
In subagent mode, the implementer cannot check off tasks. Only the main session does so, after the task-level review that review_mode requires has passed. With review_mode: off there is no reviewer, so check-off relies on the self-test evidence.
Artifacts of the verify stage
Verification report
Comet writes the
verification_report path to .comet.yaml, and the guard requires the file to exist when verify-pass is applied.
Implementation Divergence note (optional)
When you accept the deviation, the reason and its impact go into the verification report. At archive time, the normal flow adds
archived-with to the Design Doc.
Artifacts of the archive stage
Archiving creates no new files. It annotates existing artifacts and moves directories.Frontmatter annotations
Archive directory
The whole change directory moves to<classic-root>/changes/archive/YYYY-MM-DD-<name>/, including .comet.yaml, .comet/handoff/, .comet/subagent-progress.md, and the delta spec. After the move, .comet.yaml has archived: true.
Artifacts by purpose
Find the right artifact
Next step
- Workflow concepts — Where these artifacts fit in the five stages
- State management —
.comet.yamlfields and state invariants - Context compression — How formal sources stay usable after compression
- comet handoff — How the reading view is generated
- Resuming interrupted work — Using these artifacts to resume

