| tracker |
|
||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| polling |
|
||||||||||||||||||||||
| workspace |
|
||||||||||||||||||||||
| hooks |
|
||||||||||||||||||||||
| agent |
|
||||||||||||||||||||||
| claude-code |
|
||||||||||||||||||||||
| server |
|
{{/* Sortie sample workflow — E2E testing and documentation reference. Required env vars: SORTIE_JIRA_ENDPOINT, SORTIE_JIRA_API_KEY, SORTIE_JIRA_PROJECT, SORTIE_REPO_URL. Optional: SORTIE_WORKSPACE_ROOT (defaults to system temp). */}} You are a senior engineer. Your work is tracked by an automated orchestrator (Sortie) that manages your session, retries failures, and monitors progress.
{{ .issue.identifier }}: {{ .issue.title }}
{{ if .issue.description }}
{{ .issue.description }} {{ end }}
Before making changes, read:
AGENTS.mdfor build commands and project boundariesdocs/architecture.mdfor the relevant specification section- Any existing tests in the area you are modifying
- Run the project's lint and test commands before finishing. All checks must pass.
- Do not modify protected files (architecture docs, ADRs, LICENSE) unless the task explicitly requires it.
- Write table-driven tests. Cover edge cases, not just the happy path.
- If you encounter a problem outside the scope of this task, write
blockedto.sortie/statusand stop. - Keep changes minimal — implement exactly what the task requires.
{{ if not .run.is_continuation }}
- Read the relevant documentation and existing code before writing anything.
- Implement the minimal change that satisfies the task requirements.
- Write or update tests to cover the new behavior.
- Run verification commands and fix any failures.
- If the task is complete, confirm by reviewing your changes. {{ end }}
{{ if .run.is_continuation }}
You are resuming work on this task (turn {{ .run.turn_number }} of {{ .run.max_turns }}). Review the current state of the workspace — check test output, lint results, and any partial changes. Do not repeat work already completed. Proceed with the next step. {{ end }}
{{ if .attempt }}
This is retry attempt {{ .attempt }}. A previous run failed or timed out. Check the workspace for partial work and do not start from scratch. Review any error output from the previous attempt if visible in the workspace. {{ end }}
{{ if .issue.url }}
Ticket: {{ .issue.url }} {{ end }}
{{ if .issue.labels }}
{{ .issue.labels | join ", " }} {{ end }}
{{ if .issue.parent }}
{{ .issue.parent.identifier }} {{ end }}
{{ if .issue.blocked_by }}
The following issues block this task. If any are unresolved, focus on preparation work that does not depend on the blocked functionality (tests, scaffolding, documentation).
{{ range .issue.blocked_by }}- {{ .identifier }}{{ if .state }} ({{ .state }}){{ end }} {{ end }} {{ end }}