> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ravenna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Build lifecycle templates

> Create a lifecycle template, add its steps with owners, offsets and dependencies, choose each step's kind, and publish it so lifecycles can start from it.

## Mental model

* A template has a draft (`definition`, saved as you edit) and published versions. Publish creates the next version; lifecycles pin their version.
* The starting point sets the anchor label, phases and stakeholder roles; the builder edits steps and settings only.
* Step fields: Kind (Manual, Form, Workflow, Access), Owner (a channel in any workspace, The person, a role, or an agent), Depends on, Unlocks (offset in days from the anchor), Due (days after the scheduled Unlocks day, not after dependencies clear).
* Completion: Manual when its ticket closes or Mark done; Form when the form is submitted (Skip moves past it); Workflow when its Lifecycle Step workflow closes the ticket; Access grant when access is provisioned (needs access requests, `sar3`); Access revoke all once the revocations are started (Ravenna-managed entitlements only; in-progress and skipped ones are noted on the ticket, failures mark the step Needs attention).
* Publish fails when an active Lifecycle Step workflow would break (step removed, no longer a Workflow step, opens in another workspace, or an answer it reads is gone).


## Related topics

- [Run lifecycles](https://docs.ravenna.ai/documentation/automate/lifecycles/run.md)
- [Create a lifecycle template](https://docs.ravenna.ai/api/lifecycles/create-a-lifecycle-template.md)
- [Delete a lifecycle template](https://docs.ravenna.ai/api/lifecycles/delete-a-lifecycle-template.md)
- [Get a lifecycle template](https://docs.ravenna.ai/api/lifecycles/get-a-lifecycle-template.md)
- [List lifecycle templates](https://docs.ravenna.ai/api/lifecycles/list-lifecycle-templates.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.