How it works
How Tevrin takes an idea to a release
From idea to release: each phase’s input, agent, artifact and approval gate, plus review cycles, release versions and rollback.
The lifecycle
Phase by phase
Every phase has an input, an agent, an artifact you can read and edit, and a gate before the next one.
0AnalysisOptional
- Input
- An existing repository, when you choose to infer its stack.
- Agent
- Stack Analyst
- Artifact
- Stack profile: the layers, hosts and structure it found, with blanks for you to fill.
- Gate
- An Owner edits and approves the profile, which pins the stack.
1Refinement
- Input
- Your idea, plus any imported tracker items and, for an existing repo, a codebase summary.
- Agent
- Idea Refinement
- Artifact
- Project request
- Gate
- You approve the project request.
2Specification
- Input
- The approved project request.
- Agent
- Spec Generator, with the stack’s specialist knowledge
- Artifact
- Technical specification
- Gate
- Spec approval gate (strict and advisory modes).
3Planning
- Input
- The locked specification.
- Agent
- Plan Generator
- Artifact
- Implementation plan: ordered steps, the files each touches and their dependencies.
- Gate
- Plan approval gate (strict mode).
4Execution
- Input
- The locked plan and a working copy of the repository.
- Agent
- Code Generator, as the specialist for each step’s layer
- Artifact
- Code, one step at a time, committed to the version’s branch and pull request.
- Gate
- Every step passes the Execution Guardian: one step at a time, within the plan and file limits, no secrets.
5Review
- Input
- The code, your Git host’s checks and, when deployments are set up, the preview.
- Agent
- Code Review
- Artifact
- Review report with a compliance score and drift, and an optimisation plan when another cycle is needed.
- Gate
- Pre-release gate when the score clears the threshold, in every mode.
6Release
- Input
- The approved pre-release gate.
- Agent
- None: Tevrin does the release itself
- Artifact
- Merged pull request, a version tag, a release on your Git host and, when set up, the production deployment.
- Gate
- Released. Start the next version when you’re ready.
Gates
Approval modes
In every mode, the release waits for the pre-release gate and problems raise an escalation gate. Gate decisions are final and recorded.
| Mode | Spec approval | Plan approval | Pre-release |
|---|---|---|---|
| Strict A person approves both the specification and the plan before work moves on. | Gate | Gate | Gate |
| Advisory The default. The specification needs a gate; an approved plan goes straight to execution. | Gate | No gate | Gate |
| Autonomous Approved artifacts move on without extra gates. | No gate | No gate | Gate |
Review
Review cycles
- A score below 0.75, or severe drift from the spec, escalates to a person.
- A score at or above the project’s threshold (0.90 by default) makes the version release-eligible.
- Otherwise the review writes an optimisation plan, and execution runs another cycle.
- Reaching the cycle limit (3 by default), or a cycle that doesn’t improve the score, escalates.
- An escalation gate is decided with continue, roll back or accept.
Release
Release versions and checkpoints
Each release has a semver version, such as 1.2.0. Inside it, the project moves through numbered checkpoints: every forward phase change creates one.
After a release, start the next version with a new request and go round the lifecycle again on the existing code. A released version is closed.
Undo
Rollback and invalidation
Roll back to any earlier checkpoint of the version in development. The project returns to that phase, and later artifacts are marked invalidated, never deleted.
Approving a new version of an earlier artifact invalidates what was built from it. Approve a new spec, and the plan and its steps become invalid and the project falls back to Planning.
Deployments can be rolled back per platform where the platform supports it.