Repository navigation
fix(skills): log-triage hands over the entity list and questions a broad one - #8537
Conversation
Logs were opened with errors="replace", so bytes that are not valid in the file's encoding became U+FFFD without a word. An id or a message on such a line can be damaged, and a file in another encoding was read as if it were clean. Each file's coverage row now carries undecodable_chars, undecodable_lines and the encoding, and a warning names the count, the first line and what to do. Clean files report nothing new.
…oad one In real runs the model called triage_logs, then rebuilt the list of affected ids with its own script and delivered almost every id in the log as anomalous. The rule against that was only in SKILL.md, the result never said where the tool's own list was, and nothing questioned a list that held nearly the whole population. - The written list (output_path) carries the evidence per id: templates, worst severity, time range, whether routine templates name it too, and how much of the population its rarest template touches. output returns the path, the count, the total and the share. - A list holding more than a third of a known population is reported in entity_list_warning, uncut and first among the warnings: a criterion that matches most entities is not an anomaly criterion. It names the two arguments that tighten it, entity_max_share (templates rare relative to all entities) and entity_min_level (error-bearing templates only). Ids that occur only in anomaly lines are all flagged by construction, so that case gets a share_note, not the warning. - next_step says to deliver or filter the file, or how to get one, and not to recompute the list by hand. The same rule is in the tool description, which the model reads on every call.
|
Verdict: Approve with suggestions When the model asks log-triage which ids were affected, the tool now writes the list itself, with the evidence for each id, and tells the model to hand that file over rather than rebuild it. A list that names more than a third of all ids is flagged at the top of the result, along with the two arguments that narrow it. Undecodable characters are now counted per file. The logic is sound, the docs agree with each other, and the new behaviour is well tested. Nothing blocks merge.
Real-world evidenceN/A: no evidence bundle was produced for this run. This verdict rests on static review. The PR description reports an unattended Qwen3.6 run on an HPC log: before, recall was 0.81 and precision 0.03; after, the model delivered the tool's list and the task took half the time. I couldn't run the tests here because pytest isn't installed on this runner, so CI is the check for them. 🔍 Technical detailsIssues 🟢 The implausible-list advice repeats a filter already applied (
🟢 A genuine U+FFFD in the log counts as undecodable (
🟢 Magic number for ERROR (
Checked, no finding
Strengths
|
The tool description and its output_path argument ran past the 500/160 character limits the lint gate enforces. Same rules, fewer words.
Follow-up to #5465. In real runs the model called
triage_logs, then rebuilt the list of affected ids with its own script and delivered almost every id in the log as anomalous. The rule against that was only in SKILL.md, the result never said where the tool's own list was, and nothing questioned a list that held nearly the whole population.What changes
output_path, each id comes with its templates, worst severity, time range, whether routine templates name it too, and how much of the population its rarest template touches. The result returns the path, the count, the total and the share.entity_list_warning, first among the warnings. It names the two arguments that tighten it:entity_max_shareandentity_min_level. Ids that occur only in anomaly lines get ashare_noteinstead.next_stepsays to deliver or filter the file, not to recompute the list by hand. The same rule is in the tool description.undecodable_chars,undecodable_linesand the encoding, with a warning naming the first line. Clean files report nothing new.Evidence
Found in unattended runs of a large HPC log task on a local model. After the change the model delivered the tool's list instead of rebuilding it. The task still fails on naming the root-cause event, which this PR does not address.
Eval
Changes the log-triage tool description and its results, so the RC eval should watch
gaia_skills_tasksandgaia_data. No current scenario runs log-triage directly.Tests
tests/unit/test_log_triage_tool.pyandhub/agents/gaia/python/tests/test_log_triage_skill_tool.pycover the list file, the warning and its thresholds, the share note and the decode counts.