Skip to content

Ephemeral Documents

Agents produce structured documents at every stage of the pipeline: research findings, implementation plans, code reviews, and more. These documents are ephemeral by default -- they exist in the conversation context and are never written to disk unless you choose to save them.

Why ephemeral?

Lineup takes an ephemeral-first approach to keep your project clean:

  • No .lineup/ artifacts cluttering your repository (tactics are the only exception, and those are user-created)
  • No tool-specific files that your team has to understand or maintain
  • No stale documents from previous runs hanging around in the file tree
  • No gitignore entries needed for generated pipeline files

The only files Lineup writes to your project are the actual code changes (from the developer agent) and documentation files (from the documenter agent, if you opt in). Everything else stays in the conversation.

The YAML format

All agent output follows YAML schemas defined in the templates/ directory. Using a structured format ensures documents are consistent, parseable, and easy for downstream agents to consume.

Every document includes these core fields:

FieldValuesDescription
typeresearch, plan, implementation, review, documentation, explanationDocument type
agentresearcher, architect, developer, reviewer, documenter, teacherWhich agent produced it
dateYYYY-MM-DDCreation date
topickebab-case stringShort topic label
statusvaries by typeDocument status
pipeline_stage2, 4, 5, 6, 7, or nullPipeline stage number

Status values depend on the document type:

TypePossible statuses
Researchcomplete
Plandraft, approved, superseded
Implementationcomplete
ReviewPASS, FAIL, PASS_WITH_WARNINGS
Documentationcomplete
Explanationcomplete

Beyond these core fields, each document type has its own structure -- research findings include what_found, how_it_works, constraints, and gaps; plans include file lists and acceptance criteria; reviews include test results and pass/fail status.

How context flows between agents

The orchestrator is responsible for passing documents between agents. When it delegates to a downstream agent, it includes the relevant upstream output in the prompt:

text
Researcher findings → Architect (plan creation)
Architect plan → Developer (implementation)
Architect plan + Developer report → Reviewer (verification)
Architect plan + Developer report + Review report → Documenter (documentation)

Each agent receives the structured YAML from previous stages as input context, uses it to inform its work, and produces its own YAML output for the next stage.

This chain means that every agent builds on verified, structured context rather than starting from scratch. The researcher's findings directly shape the architect's plan, which directly shapes the developer's implementation.

Document lifecycle

DocumentProduced byConsumed byStorage
Research findingsResearcherArchitect, OrchestratorConversation only
Implementation planArchitectDeveloper, ReviewerConversation only
Implementation reportDeveloperReviewerConversation only
Review reportReviewerUser, DocumenterConversation only
Documentation reportDocumenterUserConversation only (but docs are written to project)
ExplanationTeacherUserConversation only

Note that the documenter is the only agent whose side effects persist -- it writes documentation files to your project. But even the documenter's report (listing what it created) is ephemeral.

When to save documents

All documents appear in your conversation as formatted YAML. If you want to keep one for future reference, you can copy it from the conversation and save it wherever you like.

Common reasons to save a document:

  • Plans you want to reference later or share with your team
  • Research findings that map out an unfamiliar part of the codebase
  • Explanations that serve as onboarding material

Lineup never saves these automatically -- it's always your choice.

Template schemas

Each document type has a corresponding template in the templates/ directory:

TemplateDocument type
templates/researcher.yamlResearch findings
templates/architect.yamlImplementation plan
templates/developer.yamlImplementation report
templates/reviewer.yamlReview report
templates/documenter.yamlDocumentation report
templates/teacher.yamlExplanation

These templates define the full structure that agents follow. For the complete field-by-field specification, see Document Templates.