{#- The last period: the window links, the four figures, the cost chart, runs by harness and model, hand steps, and the five difficulty-by-model tables. -#} {% from "_cost_comparisons.html" import comparisons with context %} {%- set w = snap.period -%}

The last period

the ledger {% for key, label in snap.windows %}{{ label }}{% endfor %}
{#- The window is quiet only when nothing at all was recorded in it (`period` decides): a window with only the operator's ledger entries or a profile change still shows its figures, so the operator's spend and share are never hidden behind "no runs". -#} {% if not w.quiet %}
{{ w.merged }}
merged{% if w.merged_ids %} · {{ w.merged_ids[:4] | join(', ') }}{% if w.merged_ids | length > 4 %} and {{ w.merged_ids | length - 4 }} more{% endif %}{% endif %}
{% if w.first_pass.reviewed %}{{ (100 * w.first_pass.approved / w.first_pass.reviewed) | round | int }} %{{ w.first_pass.approved }} of {{ w.first_pass.reviewed }}{% else %}—{% endif %}
first-pass approval
{% if not w.cost_complete %}partial {% endif %}${{ '%.2f' % w.cost }}{{ w.priced_cost_records }} priced · {{ w.unpriced_cost_records }} unpriced{% if w.runs and w.throughput | length > 1 %} {{ f.spark(w.throughput) }}{% endif %}
cost{% if w.runs and w.throughput | length > 1 %} · runs finished per {{ w.bucket }}{% endif %}
{{ f.money(w.per_accepted) }}
per accepted task
Cost by activity, per {{ w.bucket }}
{{ f.chart(w, 640) }}
{{ f.chart(w, 360) }}
{#- The phase's definition-of-done numbers that are not on the four figures: what a person did by hand, what the rebases cost, and what the operator seat spent. Typed like the sheet's label, a figure per line, the note under each saying what it is made of. -#} {%- set rb = w.rebase -%}{%- set op = w.operator -%}
By hand, and the operator
hand merges
{{ w.hand_merges }} of {{ w.merged }}{% if w.hand_merged_ids %}{{ w.hand_merged_ids[:4] | join(', ') }}{% if w.hand_merged_ids | length > 4 %} and {{ w.hand_merged_ids | length - 4 }} more{% endif %}{% else %}every merge in the window was the loop's{% endif %}
hand steps
{{ w.hand_steps }}{% if w.hand_kinds %}{% for k, n in w.hand_kinds.items() %}{{ k | replace('_', ' ') }} {{ n }}{{ ', ' if not loop.last }}{% endfor %}{% else %}no answer, triage, pause or move{% endif %}
rebase rounds
{{ f.per_merge(rb.mechanical_per_merge) }} mechanical · {{ f.per_merge(rb.agent_per_merge) }} agentper merge: {{ rb.mechanical }} + {{ rb.agent }} over {{ rb.merges }} merge{{ 's' if rb.merges != 1 }}{% if rb.cost %} · {{ f.money(rb.cost) }}{% endif %}
operator
{% if op.sessions %}{% if not op.cost_complete %}partial {% endif %}{{ f.money(op.spend) }}{% if op.share is not none %} · {{ (100 * op.share) | round | int }} % of the window's spend{% endif %}{{ op.priced_records }} priced · {{ op.unpriced_records }} unpriced records across {{ op.sessions }} session{{ 's' if op.sessions != 1 }}{% else %}no ledger entry in this window{% endif %}
{% if w.unattributed_operator.sessions %}
unattributed
{% if not w.unattributed_operator.cost_complete %}partial {% endif %}{{ f.money(w.unattributed_operator.spend) }}{{ w.unattributed_operator.priced_records }} priced · {{ w.unattributed_operator.unpriced_records }} unpriced records; excluded from this phase
{% endif %}
{% if w.annotations %}

{% for a in w.annotations %}{{ a.at[11:16] }}Z {{ a.kind | replace('_', ' ') }}{% if a.changed %}: {{ a.changed | join(', ') }}{% endif %}{% if a.to %}: {{ a['from'] or '(none)' }} → {{ a.to }}{% endif %}{{ ' · ' if not loop.last }}{% endfor %}

{% else %}

no profile change or config reload in this window

{% endif %}
{{ comparisons(w, f) }} {% else %}
{{ f.quiet_period }}
{% endif %}