---
title: {{ frontmatter.title | yaml_scalar }}
id: {{ frontmatter.id | yaml_scalar }}
tags: {{ frontmatter.tags | yaml_inline_list }}
status: {{ frontmatter.status | yaml_scalar }}
aliases: {{ frontmatter.aliases | yaml_inline_list }}
date: {{ frontmatter.date | yaml_scalar }}
task-id: {{ frontmatter.taskId | yaml_scalar }}
task-group: {{ frontmatter.taskGroup | yaml_scalar }}
project-id: {{ frontmatter.projectId | yaml_scalar }}
task-type: {{ frontmatter.taskType | yaml_scalar }}
worker-id: {{ frontmatter.workerId | yaml_scalar }}
approved: {{ "true" if frontmatter.approved else "false" }}
{% if implementationPlanning is defined and implementationPlanning.get("planningContract") == "selected-direction" -%}
selected-direction-ref: {{ frontmatter.selectedDirectionRef | yaml_scalar }}
{% else -%}
implementation-option: {{ frontmatter.implementationOption | default("") | yaml_scalar }}
{% endif -%}
schema-version: {{ schemaVersion | yaml_scalar }}
---
{#
  The spine renders these by hand or leaves them to the human HTML, so the
  closing `md_rest("")` sweep must not repeat them: `frontmatter` and `header`
  appear above, `humanSummary` is the HTML's own narrative, and `verdictCard`
  is a non-authoritative index of `finalVerdict`, which §Final Verdict already
  carries in full.
-#}
{{ md_claim("schemaVersion", "meta", "frontmatter", "header", "humanSummary", "verdictCard", "executionRoles", "executionIdentityVersion") }}

# {{ frontmatter.title }}

- Task Key: `{{ header.taskKey }}`
- Created At: `{{ header.createdAt }}`
- Task Type: `{{ header.taskType }}`
- Report Owner: `{{ header.reportOwner }}`
- Report Author: `{{ header.reportAuthor }}`
{% if header.leadAuthoredFallback %}- Lead-authored fallback: report-writer dispatch failed — `{{ header.leadAuthoredFallback.dispatchFailureReason }}`; permitted by the user in `{{ header.leadAuthoredFallback.approvalSidecar }}`
{% endif %}- Lead Model: `{{ header.leadModel | model_detail }}`
- Okstra Version: `{{ header.okstraVersion }}`

## AI Handoff Summary

- Verdict: `{{ finalVerdict.verdictToken }}`
- Direction: `{{ finalVerdict.direction }}`
- Rationale IDs: {{ finalVerdict.rationaleRowIds | join(", ") }}
- Blocking IDs: {{ aiBlockingIds | join(", ") if aiBlockingIds else "none" }}
- Next step: {{ finalVerdict.nextStep }}
{% if executionIdentityVersion == 2 %}

## Execution Roles

{{ executionRolesTable }}
{% endif %}

## Decision Context

### Final Verdict

{{ md("finalVerdict", 4) }}

### Summary

{{ md("summary", 4) }}

### Rationale

{{ md("rationale", 4) }}
{% if md_has("ticketCoverage") %}

### Ticket Coverage

{{ md("ticketCoverage", 4) }}
{% endif %}

## Next Task Contract

### Recommended Next Steps

{{ md("recommendedNextSteps", 4) }}

### Follow-up Tasks

{{ md("followUpTasks", 4) }}

## Clarification and User Decisions

{{ md("clarificationItems", 3) }}
{% if md_has("clarificationCarryIn") %}

### Clarification Carried In

{{ md("clarificationCarryIn", 4) }}
{% endif %}

## Evidence Ledger

### Evidence

{{ md("evidence", 4) }}

### Missing Information

{{ md("missingInformation", 4) }}

### End-State Coverage

{{ md("endStateCoverage", 4) }}
{% if md_has("analysisCommon") %}

### Analysis Common

{{ md("analysisCommon", 4) }}
{% endif %}

## Task Deliverable: {{ aiTaskDeliverableTitle }}
{% if aiTaskTemplate %}

{% include aiTaskTemplate %}
{% else %}

{{ md_rest(aiTaskProperty, 3) }}
{% endif %}

{% if md_has("agentActivity") %}
## {{ t("agentActivity.heading") }}

{{ t("agentActivity.intro") }}

{{ md("agentActivity", 3) }}
{% endif %}

## Cross Verification Audit

{{ md("crossVerification", 3) }}

## Execution Audit

{{ md("executionStatus", 3) }}

## Token and Cost Audit

{{ md("tokenUsage", 3) }}
{% set trailing = md_rest("", 3) %}
{% if trailing %}

## Additional Report Data

{{ trailing }}
{% endif %}
