From Task to results
Select the diagram to open the full-size SVG in a new tab. Master and Worker are runtime roles of AgentLens instances. An OceanBase lease elects the Master, which schedules, dispatches and rescues tasks. A Worker’s Runner executes each Task. The export box is a responsibility inside Runner, not a separate deployed service.Execution steps
- Restore the Task execution snapshot and resolve its Job, Dataset, diagnosers and query window.
- Read candidate traces and lightweight fields from SigNoz telemetry tables. An optional Selector chooses the shared sample set.
- Run
pre_evaluateto decide final, skip or further evaluation. Hydrate complete traces only when required. - Build one shared runtime projection for the trace. Rules that require only raw spans can continue to use that raw data.
- Execute Rule or LLM checks, accumulate statistics, then construct DiagnosisRecords according to the save policy.
- Commit terminal state with worker and attempt checks. Export terminal TaskStats only after terminal compare-and-set (CAS) succeeds.
Reads and writes use different channels
When platform-issued ingestion is configured, AgentLens requests a short-lived token from Django for the persisted Job’s Space and Agent, then exports directly to the gateway. Django issues credentials without receiving or forwarding the diagnosis body on this path.
Why success may yield no details or score
- Details default to BAD only. Setting
save_badcase_onlyto false also saves GOOD and FAILED results produced by full evaluation. - Final
pre_evaluateresults enter statistics only. Legal skips produce neither Metrics nor DiagnosisRecords. - Statistics accumulate before detail filtering. BadCase counts cannot reconstruct the full sample count.
- Running statistics remain in Runner memory; the Task list is not a continuous progress feed.
- v3 quality summaries require valid coverage. Skips, failures, missing coverage or incomplete source reads can leave a summary empty. Signal-only checks or no samples also produce no quality score.