Task · SKT-0051

Emit the captured agento11y_eval enqueue and judge-cost families

Description

The 2026-09-06 heuristic-evaluator capture (signals/sigil.md, Lane C) observed two Agent Observability evaluation families that the ai_agent workload does not emit: agento11y_eval_enqueue_total {evaluator_kind, rule} (work items enqueued; observed 26 against 26 successful evaluator executions) and agento11y_eval_judge_cost_usd_total {evaluator, evaluator_kind, rule, gen_ai_agent_name, gen_ai_request_model, gen_ai_request_provider, model, provider} (cumulative judge spend; observed two judge requests, 916 input and 84 output tokens, USD 0.001336 on the configured judge model). Both are catalogued with provenance and marked catalogue-only. Emit them from internal/workload/aiagent/evals.go under the same evaluator fixture the other agento11y_eval_* counters use: enqueue counts one per scoring event that a rule samples; judge cost accrues only for evaluator_kind=llm_judge from the ledger’s token counts times the judge model’s price in signals/genai-models.md, never a fabricated constant. Labels exactly as captured; an absent dimension is omitted.

Acceptance Criteria

Definition of Done

Implementation Plan

Wave 2026-09-09: implement enqueue and judge-cost emission test-first from sampled evaluator events and ledger token pricing, update the signal catalogue, and prove both families with an explicit judge fixture dump.

Implementation Notes

2026-09-09 completion evidence: failing-first tests cover sampled enqueue behavior, heuristic enqueue without judge cost, cumulative state, exact label keys, and the captured 916-input/84-output token arithmetic yielding USD 0.001336 from the priced model row. just check passed after the required just gen. Two explicit grafana-ai-o11y dumps contained agento11y_eval_enqueue_total {[evaluator_kind rule]} and agento11y_eval_judge_cost_usd_total {[evaluator evaluator_kind gen_ai_agent_name gen_ai_request_model gen_ai_request_provider model provider rule]}; the full dumps were byte-identical and matched the catalogue. The single permitted e2e invocation and exact-head CI passed.

Final Summary

Emits sampled evaluator enqueue totals and cumulative token-priced judge cost with the captured labels and arithmetic, documented in the signal catalogue and verified by tests, explicit dumps, the repository gate, e2e, and exact-head CI.

View the source file on GitHub