{% extends "base.html" %} {% block title %}Telemetry{% endblock %} {% block content %}

Telemetry

From {{ attune_home }}/telemetry/usage.jsonl.

Events
{{ '{:,}'.format(telemetry.total_requests) }}
Total spend
${{ '%.2f'|format(telemetry.total_cost) }}
Reported savings
${{ '%.2f'|format(telemetry.total_savings) }}

By workflow (top 20)

{% if telemetry.by_workflow %} {% for name, count, cost in telemetry.by_workflow %} {% endfor %}
WorkflowEventsCost
{{ name }}{{ count }}${{ '%.4f'|format(cost) }}
{% else %}

No telemetry events yet.

{% endif %}

Last 14 days

{% if telemetry.by_day %} {% for day, count, cost in telemetry.by_day %} {% endfor %}
DayEventsCost
{{ day }}{{ count }}${{ '%.4f'|format(cost) }}
{% else %}

No daily activity in the last 14 days.

{% endif %}
{% if telemetry.last_event_at %}

Last event recorded: {{ telemetry.last_event_at }}

{% endif %} {# US-6 three-panel receipt: reach + freshness + spend together. #}

Reach — latest complete snapshot

{% if reach.latest_complete %}

Snapshot {{ reach.latest_complete.date }} observed {{ reach.latest_complete.taken_at }}

{% for pkg, stats in reach.latest_complete.packages.items() %} {% endfor %}
Packagelast_daylast_weeklast_month
{{ pkg }}{{ stats.last_day }}{{ stats.last_week }}{{ stats.last_month }}
{% else %}

No complete reach snapshot yet.

{% endif %} {% if reach.newer_incomplete %}

⚠ Newer snapshot {{ reach.newer_incomplete.date }} is INCOMPLETE (missing: {% for pkg in reach.newer_incomplete.missing %}{{ pkg }}{% if not loop.last %}, {% endif %}{% endfor %}) — it does not replace the complete snapshot above.

{% endif %}

Freshness — usage.jsonl last write

{% if freshness.exists %}

Last write: {{ freshness.last_write_at }} ({{ '%.1f'|format(freshness.age_hours) }}h ago)

{% if freshness.stale %}

STALE — no usage.jsonl write in over 48 hours.

{% else %}

Fresh (under the 48-hour threshold).

{% endif %} {% else %}

⚠ usage.jsonl not found — freshness unknown (treated as stale).

{% endif %}
{% include "_spend_alarm.html" %}

Short-term memory

Context the memory hooks inject each session, from {{ attune_home }}/telemetry/memory_events.jsonl. This is measured cost (tokens added to context) — not a savings figure.

{% if memory_summary and memory_summary.total_events %}
Tokens injected (est.)
{{ '{:,}'.format(memory_summary.total_est_tokens) }}
Events
{{ '{:,}'.format(memory_summary.total_events) }}
Avg tokens / session
{{ '{:,.1f}'.format(memory_summary.per_session_avg_tokens) }}
{% for name, row in memory_summary.by_event.items() %} {% endfor %}
EventFiresTokens (est.)
{{ name }}{{ row.n }}{{ '{:,}'.format(row.est_tokens) }}
{% if memory_signal %}

Estimated intervention signal

{{ memory_signal.caption }}

Rule surfacings (upper bound)
{{ '{:,}'.format(memory_signal.rule_surfacings) }}
Distinct rules
{{ '{:,}'.format(memory_signal.distinct_rules) }}
{% if memory_signal.top_rules %} {% for rule, count in memory_signal.top_rules %} {% endfor %}
RuleSurfaced
{{ rule }}{{ count }}
{% endif %} {% endif %} {% if memory_feedback %}

Noise signal

{{ memory_feedback.caption }}

Findings rejected
{{ '{:,}'.format(memory_feedback.rejected) }}
Findings stashed
{{ '{:,}'.format(memory_feedback.findings_written) }}
Rejection rate
{{ '{:.1%}'.format(memory_feedback.rejection_rate) }}
{% if memory_feedback.by_source %} {% for src, count in memory_feedback.by_source.items() %} {% endfor %}
SourceRejected
{{ src }}{{ count }}
{% endif %} {% endif %} {% else %}

No memory events yet.

{% endif %}

Dashboard interactions (this session)

In-memory counters since the dashboard process started. Resets on restart; no PII, no disk write.

Pill clicks
{{ '{:,}'.format(interaction_totals.get('pill_clicks', 0)) }}
Recommendation card clicks
{{ '{:,}'.format(interaction_totals.get('rec_card_clicks', 0)) }}
Scope picker changes
{{ '{:,}'.format(interaction_totals.get('scope_picker_changes', 0)) }}
{% if interaction_top.pill_clicks %}

Top pills clicked

{% for name, count in interaction_top.pill_clicks %} {% endfor %}
WorkflowClicks
{{ name }}{{ count }}
{% endif %} {% if interaction_top.rec_card_clicks %}

Recommendation cards by kind

{% for kind, count in interaction_top.rec_card_clicks %} {% endfor %}
KindClicks
{{ kind }}{{ count }}
{% endif %} {% if interaction_top.scope_picker_changes %}

Scope picker changes by workflow

{% for name, count in interaction_top.scope_picker_changes %} {% endfor %}
WorkflowChanges
{{ name }}{{ count }}
{% endif %} {% if not interaction_top.pill_clicks and not interaction_top.rec_card_clicks and not interaction_top.scope_picker_changes %}

No dashboard interactions recorded yet this session.

{% endif %}
{% endblock %}