Issue Workflow Lifecycle
This page describes how issue workflow execution is modeled and processed in Sealant.
Goal
Run issue-to-PR work in isolated environments while keeping lifecycle, events, artifacts, and reporting reproducible.
High-level flow
- A product/API surface submits issue workflow context and execution preferences.
- The control plane validates inputs and persists workflow + execution state.
- The system composes execution environment requirements (shared with sandbox composition model).
- Worker-side execution runs the workflow and records lifecycle events.
- Outputs such as summaries, diff metadata, and pull-request links are persisted.
- Product surfaces read structured state for progress and reporting.
Package responsibilities by phase
1) Workflow state model
@sealant/db- persists issue workflow entities and execution lineage
- stores execution events, validation results, diff files, summaries, artifacts, and PR links
2) Source and auth context
@sealant/source-integrations- resolves provider data and access details (GitHub support today)
- supports repository selection/reference handling used by workflow execution
3) Environment composition and build
@sealant/validators- defines shared execution environment contracts
@sealant/rabbitmq- provides queue transport primitives for execution orchestration
@sealant/sandboxes- provides compile/publish/runtime infrastructure reused by issue workflow execution
4) Harness and execution tooling
@sealant/sandboxes- contains harness integration logic used by sandbox and issue workflow execution paths
Persisted execution reporting
Issue workflow persistence (in @sealant/db) includes:
- workflow and execution status
- event timeline
- validation results
- diff file metadata
- produced artifacts and summaries
- issue/pr linkage and execution-level PR link relations
This is the core of auditability and reproducibility for issue workflows.
Current status notes
- Database-level issue workflow modeling is already substantial.
- Runtime and worker orchestration for end-to-end issue workflows is still evolving.
- The architecture is intentionally shared with sandbox lifecycle to reduce duplicated execution plumbing.
Related docs
apps/docs/contents/packages/db.mdapps/docs/contents/packages/validators.mdapps/docs/contents/packages/source-integrations.mdapps/docs/contents/packages/rabbitmq.mdapps/docs/contents/packages/sandboxes.md