Skip to content

feat(skills): log-triage ships triage_logs, a streaming log triage tool - #5465

Merged
kovtcharov-amd merged 41 commits into
amd:mainfrom
kovtcharov:kalin/log-triage-tool
Nov 19, 2026
Merged

kovtcharov-amd merged 41 commits into
amd:mainfrom
kovtcharov:kalin/log-triage-tool

Conversation

@kovtcharov

@kovtcharov kovtcharov commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The log-triage skill now gives the agent a triage_logs tool. One call reads every log the user named, all the way through, and returns the incident: anomalies kept apart from routine noise, bursts with exact start and end, the hosts and ids hit, and checks that the counts add up. The model then reads the lines before the first burst and writes the report. A small local model no longer has to write and debug a pandas script for this.

The tool ships with the skill (tools.py plus its log_triage_engine/ package), not in the core agent. It builds on #5421 (the log-triage instructions). It also merges #5454 (skill context API, stacked on #5450) and adds one generic commit on top of it: open_read, list_readable and open_write in gaia.skills.context. Without those, a skill that reads the user's files can't pass the audit (raw open() is undeclared filesystem use, and declaring filesystem refuses the load). That commit belongs with #5454.

🔍 Technical details

API: log-triage/triage_logs(paths: list[str], glob="", timestamp_regex="", level_regex="", host_regex="", entity_regex="", bucket="", top_n=10, output_path=""). output_path is optional: a new .json gets the full detail, a .csv gets the anomalous-entity list. It never overwrites a file or writes to an input.

What it does

  • Reading: streams each file in bounded memory, with caps on templates, hosts, entities and buckets, and a time budget. Every cap that bites shows up in warnings. Handles .gz, UTF-16, BOM and CRLF. All reads go through gaia.skills.context, so the agent's allowed folders and secret-file refusals apply. The skill audit returns ALLOW.
  • Formats: learned per file from a head/middle/tail sample: JSON lines (nested keys), syslog RFC 3164/5424 (year inferred, New Year rollover), Apache/Nginx access and error, glog, key=value, and lines that start with a timestamp (ISO 8601, YYYY-MM-DD HH:MM:SS,mmm, CLF, ctime, US/AM-PM, epoch s/ms/us/ns). A file can mix formats. Stack traces and tracebacks join the entry above them, and the exception class goes into the template. Unparsed lines are counted and sampled, and checks.parsed_share_ok fails when under 95% parse.
  • Templates: numbers, hex, UUIDs, IPs, paths, URLs and mixed ids are masked. Templates that differ only in a word with 8 or more values are merged (Drain-like, never across severity classes).
  • Classification: BASELINE means present in 3 of 4 quarters over at least 60% of the range, whatever the level. ANOMALY means any of: severe and short or clustered; warnings clustered; hit 30% or more of hosts at once; new (expected 5 or more lines before its first appearance); a spike of 6x or more over its own median; escalating (late third 4x or more over the early third).
  • Bursts: built from non-baseline errors and anomaly lines, with hysteresis edges. Exact start/end come from the templates found only in the burst. Each burst is compared with the quiet window before it (rose / fell_silent).
  • Time: offsets are normalised to UTC. clock_offsets reports a steady lag measured on ids that two files share; near-whole-hour lags get a time-zone warning. Times are never shifted silently.
  • Entities: taken only from anomaly templates, inside each anomaly's own window. A template is left out with a warning when it covers most entities that routine templates also carry.
  • Output: compact, 2–7 KB on the scenarios.

Measured. Eight generated scenarios, 20 fresh seeds each (160 runs) plus the default seed in CI. Every run scored 1.00 template precision, 1.00 template recall, 1.00 burst start/end within 60 s (observed error under 1 s), and 1.00 entity precision and recall. The two negatives flagged zero anomalies, bursts and entities.

Scenario Planted
hardware_fault_burst ECC fault on 31/40 nodes for 4 min amid ~100k routine FATAL/ERROR lines
memory_leak escalating GC warnings, then OOM with stack traces
single_vs_cluster syslog: disk errors on 1 host vs DB outage on 20 hosts (blast radius checked)
access_5xx_spike 502s from one upstream for 15 min
json_deploy_exception new exception template after a deploy
multi_file_timezones +02:00 / Z / epoch-ms files, 40 s skew (offset measured at 42.7 s)
steady_negative, diurnal_negative nothing to find

Speed: about 40 µs per line, so roughly 40 s for 1M lines (92 MB). Peak memory was about 44 MB in that test.

Limits: numeric JSON levels follow Python logging (40 = ERROR), not pino. A file in local time with no offset is reported as written, with a warning. These scenarios are invented by the same author as the rules, so real logs will score lower.

SKILL.md: leads with the tool, then lays out the report as a blameless postmortem: summary, impact, detection, timeline, contributing factors, mitigation, action items with owners, confidence. The pandas procedure stays as the fallback, now with an explicit 95% parse assertion, UTC normalisation and a quiet-window comparison.

Test plan

  • pytest tests/unit/test_log_triage_tool.py tests/unit/test_log_triage_scenarios.py tests/unit/test_skill_context.py tests/unit/test_skill_catalog.py tests/unit/test_starter_skills.py
  • pytest hub/agents/gaia/python/tests/test_log_triage_skill_tool.py hub/agents/gaia/python/tests/test_bundled_skill_tools.py (skill loads on the flagship, adds exactly log-triage/triage_logs, runs through _execute_tool, audit ALLOW)
  • python util/lint.py --all
  • Eval on the v0.27.0-rc1 run (not run per-PR): watch gaia_skills_tasks, gaia_skills_lifecycle, gaia_tool_selection and gaia_data. The skill-catalog line, SKILL.md and the new tool docstring are model-facing. No scenario exercises log-triage directly yet.

Deliverables built from a user's files came out complete-looking but missed
what a careful analyst catches: facts the source stressed, the newest file,
the rare incident behind the routine noise, commitments said in passing, and
items the user explicitly asked for. These skills carry that practice.

- report-from-sources: inventory inputs and pin the newest matching period,
  keep a key-facts ledger per source, put source and period on every figure,
  check the saved file against the ledger, and finish with a numbered
  requirements check against the request.
- log-triage: whole-range parsing, message templates, ranking by severity,
  hosts hit and rarity rather than volume, burst detection, exact first and
  last timestamps, and results derived only from the provided logs.
- meeting-actions: explicit and implicit commitments, owner/due/evidence,
  one row per item across meetings with status taken only from the text.
- transcribe-meeting: its brief now counts spoken commitments as action items.

Every python snippet was run against invented sample files. Eval scenarios are
deferred in the coverage test until a corpus exists for each.
… companions

report-from-sources pairs with office-docs and data-explore, meeting-actions with
transcribe-meeting, so the catalogue and load_skill point to them together once
pairs_with (amd#5422) lands; the key is ignored until then.
…e FATAL lines as alerts

meeting-actions folds an item that the user's notes or another source restate
into the row from the minutes, and checks rows with the same owner and similar
wording for duplicates before saving. log-triage says a steady FATAL/ERROR
template is baseline: report it once as background, never in an alert total.
…cates

log-triage builds an entity list only from anomaly templates and checks the
share flagged: a list holding most entities means the rule matches the
baseline. meeting-actions runs a duplicate check (same owner, overlapping key
words) before saving, so an item restated in a second source stays one row.
A follow-up such as "chase Sam for the budget" belongs on Sam's row, not a new
action. The duplicate check now also pairs rows with different owners when one
row's task names the other's owner.
…ot done

meeting-actions states the test for a row (someone took on a specific future
task), says discussion points and decisions are not actions, flags a tracker
with far more rows than the meetings assigned, and keeps an item open when only
a plan or date for it was stated.
…core tools

A skill shipped inside GAIA already registered its tools.py on load_skill in
a checkout (code-trust deferral only applies to captured skills), but the
frozen flagship binary never carried hub/skills, so a domain tool moved into a
starter skill vanished from the release. Skill tools were also classified by
their namespaced name, so a skill's write_* tool skipped the confirmation set
and the verify-after-change / turn-scope checks its core namesake meets.

- freeze.py stages every hub/skills/<name> under gaia_agent/skills, adds the
  imports of each bundled tools.py and scripts/*.py as hidden imports, and
  fails the build on a missing import or a name clash between roots.
- bare_tool_name() strips the <skill>/ namespace; is_mutating_tool and the
  confirmation gate use it. A skill tool named like a gated core tool always
  asks; no skill grant pre-authorizes it.
- The tool-description lint now also checks bundled skill tools.
- Tests: bundled tool registers on load and unregisters on unload, scripts/
  run by path via run_python, every code-shipping bundled skill audits ALLOW,
  freeze staging and import collection.
…wner questions

A tracker that took in decisions and discussion buried the work, and one
without IDs could not be updated across meetings.

- Decisions go to a separate log (decision, date, decided by, rationale,
  source), superseded rather than edited when reversed.
- Actions get IDs that never change (A-001), an accountable owner and
  stated contributors, and unowned or undated items become questions for
  the user instead of guesses.
- Recall and precision are both explicit, with four borderline calls.
- Cue lists are configurable per language (word boundaries can be turned
  off for unspaced scripts), flag decisions, and never crash on a console
  that cannot print the script.
- Duplicate check catches a row that chases another owner's item; adds
  per-owner, overdue, needs-owner and needs-date views.
…references

A skill's tools.py had no way to see the agent calling it, so a skill tool
read any path the model passed, and a tool that needed a program or a scratch
file had to use subprocess / tempfile directly, which the audit flags and the
loader cannot admit. gaia.skills.context gives skill tools a sanctioned route
for each, checked against the running agent and the skill's manifest.

- Paths: check_read / check_write use the agent's validate_read /
  validate_write. Path-named tool arguments are read-checked before a skill
  tool body runs.
- program:run:<name> (scoped) and scratch:write are new bridged permissions,
  reachable only through run_program (no shell, scrubbed env, timeout) and
  temp_dir / write_temp_file / copy_to_temp (per-call folder, deleted after).
  The audit matches these calls to declarations; tier ceilings cover them;
  a non-bundled skill that runs programs asks before each tool call.
- preferences(): per-user, per-skill JSON under <gaia_home>/skill-preferences,
  validated against an optional preferences.schema.json, writes skipped in
  private chats and with memory off. Agent UI endpoints list, read, update
  and reset them.
Small models asked "what went wrong" in a log folder read the first page,
count the loudest message and report routine noise as the incident. The
log-triage skill now provides triage_logs in its own tools.py: one call
streams every file over its full range (any size, .gz, UTF-16, CRLF),
detects the format (JSON lines, syslog 3164/5424, Apache/Nginx access and
error logs, glog, key=value, ISO/comma-millisecond/epoch/ctime-led lines)
with stack traces joined to their entry, masks and merges templates, and
separates steady BASELINE templates from ANOMALY ones (short-lived, new,
spiking against their own median, escalating, or hitting many hosts).

It returns per-file coverage with unparsed samples, the top anomalies with
exact first/last/peak timestamps and file:line, bursts with exact start and
end, the templates found only there and a comparison with the quiet window
before, a cross-file timeline, clock offsets measured on ids two files
share, anomalous entities built only from anomaly windows, consistency
checks and warnings, capped to fit a small model's context. Full detail
(.json) or the entity list (.csv) can be written beside the logs.

SKILL.md leads with the tool, keeps the manual pandas procedure as the
fallback, and asks for the report in blameless-postmortem order.

Tests cover each parsing and analysis stage, and score eight generated
scenarios with planted incidents (two of them negatives) for template,
burst and entity precision and recall.
… scope checks

check_read and check_write tell a skill tool whether a path is in scope, but
the tool still had to call open() or os.walk itself to use the file, and the
audit rightly flags those as undeclared filesystem access while a declared
filesystem permission refuses the load. A skill that reads the user's files
(logs, exports) had no route that both loads and audits clean.

- open_read(path): check_read, then open in binary mode.
- list_readable(root, recursive=True): check_read on the root, then the
  readable files under it, hidden entries, secrets and out-of-scope links
  left out without a prompt per file (readable_entry, as the agent's own
  folder walks do).
- open_write(path, ...): check_write (overwrite confirmation included),
  missing parent folders created.

Generic, not tied to a skill; it belongs with the skill context API in amd#5454.
The tool now opens, lists and creates files only through
gaia.skills.context (open_read, list_readable, open_write), so the agent's
allowed folders, secret-file refusals and overwrite confirmation apply to
every log it reads and to the optional output file, and the skill audits
ALLOW without declaring filesystem access. Its own session-blind path
checks are gone. The tool description fits the 500-character budget, and
the starter-skills guide describes the tool.
@github-actions github-actions Bot added documentation Documentation changes tests Test changes agents sidecar Agent sidecar contract / harness labels Oct 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

The log-triage skill gains a well-built, well-tested triage_logs tool that reads every log the user names and returns the incident without the model hand-writing pandas. The log logic is in good shape. The blocker is in the skill-context layer this PR merges in: it widens what any installed skill's code can do without asking.

🔒 SECURITY CONCERN: the new file helpers let skill code read, list and create files across the agent's allowed folders without declaring any permission, and the skill audit doesn't see those calls. That holds for every trust tier, including unattested experimental skills. @kovtcharov-amd, please confirm this widening of the permission model is intended before merge. If it is, at least creating files should need a declared permission and an audit entry.

  • Missing real-world evidence. Neither a recorded tool run nor a request and response for the new skill-preferences endpoints appears in the PR, and the eval box is unchecked. Attach one triage_logs run through the flagship (CLI or TUI) and a request and response against the preferences endpoints. Or list the eval categories to watch on the next RC.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review alone. The agent-driven triage_logs path and the new preferences endpoints were not exercised here.

🔍 Technical details

🔴 Critical

  • 🔴 Undeclared, unaudited file write and read for skill code (src/gaia/skills/context.py:5225-5274 in the diff; src/gaia/skills/audit/code.py:371-375)
    • open_write, open_read and list_readable need no permission (docs/spec/agent-skills.mdx:448-449 documents that as "—"). SINKS only registers run_program and the temp-file helpers. So gaia skill audit reports nothing for a skill that writes into the user's folders, and permissions.py still says filesystem is refused until the Phase 2 sandbox.
    • check_write only asks before overwriting, so creating new files doesn't prompt at all.
    • The experimental ceiling (tiers.py) allows network:read. Combined with silent reads of the allowed folders, that is more than "read-only egress" implies.
    • read_access_error / write_access_error return None (allowed) when the host has no PathValidator. That is fine for library use, but it makes every skill-context check fail open on any skill-capable agent built without a validator. bind() or current() should refuse when path_validator_of(agent) is None.
    • Suggested direction: gate open_write behind a declared permission (e.g. files:write, or reuse filesystem:write as a bridged domain), register all three helpers in SINKS so the audit shows them, and fail closed without a validator.

🟡 Important

  • 🟡 No real-world evidence for the tool through the agent, or for GET/PUT/DELETE /api/skills/{name}/preferences (src/gaia/ui/routers/skills.py). The SKILL.md rewrite and the new tool docstring change LLM-facing text, so per CLAUDE.md either run gaia eval agent or name the categories to watch on the next RC.

🟢 Minor

  • 🟢 "Never overwrites" has a race (hub/skills/log-triage/tools.py:3109, context.py open_write). _output_refusal checks exists(), then open_write opens with "w". Letting open_write take an exclusive mode ("x") would make the guarantee real instead of check-then-act.
  • 🟢 User regexes can outrun the time budget. timestamp_regex, level_regex and the other regex options come from the model. A catastrophic-backtracking pattern stalls inside one re call, where the budget check can't fire. The bounded-tool timeout then abandons a worker thread that keeps burning CPU. Consider rejecting nested quantifiers, or capping the line length handed to custom regexes.
  • 🟢 __all__ is out of date (context.py:5488). It omits open_read, open_write, list_readable, bind and path_argument_refusal.
    __all__: List[str] = [
        "SkillContextError",
        "bind",
        "check_read",
        "check_write",
        "copy_to_temp",
        "current",
        "find_program",
        "is_path_argument",
        "list_readable",
        "open_read",
        "open_write",
        "path_argument_refusal",
        "preferences",
        "run_program",
        "temp_dir",
        "write_temp_file",
    ]
    
  • 🟢 One bad file breaks the whole preferences list. SkillPreferenceStore.list() calls get() for every *.json, so a single corrupt or oddly named file 500s the listing for all skills. Report the bad file in its entry instead of failing every skill.

Strengths

  • Path-named arguments are scope-checked before the skill body runs, and skill tools named like gated core tools (x/run_python) are always confirmed. Both close easy bypasses.
  • bind() relies on _call_tool_bounded copying the contextvar into the worker thread, and it deliberately keeps the temp folder alive when a call times out. That is correct handling of a subtle lifecycle.
  • Strong test design: seeded scenario generators score precision and recall for templates, bursts and entities, and include negative controls. The freeze step fails the build when a bundled skill imports a module that isn't installed, instead of shipping a broken binary.

Skill tools that stream the user's files (logs, CSV exports) had no
scope-checked way to open them, so the log-triage and report skills each grew
their own open_read. One set now lives in gaia.skills.context:

- open_read(path, mode="r"|"rb", encoding/errors/newline): opens the path
  check_read resolved, so a symlink or junction landing outside the allowed
  folders is refused; text defaults to UTF-8, never the locale's.
- open_write(path, mode="w"|"x"|"a" [+b], ...): check_write first, overwrite
  confirmation included, then creates missing parent folders.
- list_readable(root, recursive=True, include_hidden=False): files under an
  approved folder; secrets and out-of-scope links are dropped without a
  prompt per file, and linked folders are not entered.

None needs a filesystem permission; the audit still flags a raw open().
…g-triage-tool

# Conflicts:
#	docs/spec/agent-skills.mdx
#	src/gaia/skills/context.py
@kovtcharov

Copy link
Copy Markdown
Contributor Author

Dropped this PR's own open_read / list_readable / open_write from the skill context. triage_logs now uses the shared versions from #5454, which this branch merges. Log-triage tests pass, and gaia skill audit returns ALLOW with no findings.

🔍 Technical details

The shared open_read defaults to text, so the four byte-level reads now pass "rb". The open_write calls didn't need changes. The duplicate context tests and spec rows were removed in favour of #5454's.

The route-coverage test requires every served path to have an accordion in the Agent UI API reference.
…ready list

In a real run the agent called triage_logs, then built the anomalous-entity
list itself and flagged nearly every entity: the tool's list was not used,
and its fixed id vocabulary did not fit every log.

- Ids are collected by shape, not a fixed list: word+separator+id
  (blk_N, req-H, sess:A, keyed by the word), id-named fields (request_id=,
  session=, JSON *_id), UUIDs, hex, ip:port and ip. After the whole log is
  read, the kind that occurs in the anomaly templates and separates them from
  routine traffic is used; kinds every routine line carries (peers, users,
  client addresses) are skipped with the reason. The result names the kind
  and a regex that reproduces it as entity_regex.
- The result always carries the list (inline up to 150 ids, otherwise a
  sample and a pointer to output_path), the flagged share, and, when the
  broad anomaly templates would flag mostly baseline entities, the list
  from the narrower templates with the reason. output_path now also takes
  .txt (one id per line); the CSV gains a kind column.
- The timeline now carries each burst's exact start and end.
- SKILL.md: deliver entity lists from the tool's output (output_path for
  long ones), never rebuild them by hand; if one must, use only the
  tool's anomaly templates. Timeline timestamps are quoted verbatim.

Tests generate logs with five id styles (chunk ids with signed numbers,
UUID requests, JSON hex trace ids, key=value sessions, ip:port backends),
each next to id-shaped tokens every routine line carries.
@kovtcharov

Copy link
Copy Markdown
Contributor Author

Validation showed the agent rebuilding the entity list by hand and flagging nearly every entity. Fixed in ba974e0:

  • With no entity_regex, triage_logs now learns which kind of id to list from the data: word+separator ids (blk_N, req-H), id-named fields, UUIDs, hex, ip:port and ip. It uses the kind that separates the anomaly templates from routine traffic, reports that kind with a reusable regex, and says why the other kinds were skipped.
  • The result always carries the list (inline up to 150, otherwise output_path with .csv or .txt) and the flagged share. When the broad templates would mostly flag baseline entities, the list comes from the narrower templates, and the result says which were left out and why.
  • The timeline now carries each burst's exact start and end.
  • SKILL.md says to deliver entity lists from the tool's output and not to rebuild them by hand. If the model must build one, it uses only the tool's anomaly templates. Timeline timestamps are quoted verbatim.

Tests cover five generated ID styles plus the narrowing case. 80 fresh scenario runs still score 1.00 on every metric. Lint passes and the skill audit returns ALLOW.

A small local model with a 64K window followed long skill bodies less
reliably, and this body was about 3,300 tokens on every turn it was loaded.

- SKILL.md body drops to about 790 tokens: call triage_logs first, never
  report from a misread file, deliver entity lists from the tool output,
  keep baseline out of totals, quote numbers exactly, use only the given
  logs, plus a five-step procedure and a one-line postmortem example.
- The result-field guide, entity-list details, postmortem sections and the
  pandas fallback move to references/*.md, each linked with when to read it.
- A test keeps the body under 1,200 tokens with its references present.
A small local model with a 64K window followed long skill bodies less
reliably, and this body was about 4,000 tokens with two scripts inline.

- SKILL.md body drops to about 990 tokens: the commitment test (explicit
  lines, informal promises, accepted requests), decisions kept separate,
  duplicates and chases merged, status only from what was said, nothing
  invented, plus a six-step procedure and a four-line example.
- Cue lists, borderline calls, field and status rules, the cue-scan and
  duplicate-check scripts and the two-meeting worked example move to
  references/*.md, each linked with when to read it.
- A test keeps the body under 1,200 tokens, checks every link resolves, and
  runs the duplicate check on a chase row.
@kovtcharov

Copy link
Copy Markdown
Contributor Author

Trimmed the log-triage instructions so they stop crowding small 64K-context models: about 3,300 tokens loaded per turn is now about 790. The body keeps the hard rules (call triage_logs first, deliver lists from its output, baseline is not the incident, quote numbers exactly); the field guide, entity-list detail, postmortem sections and the pandas fallback now sit in reference files.

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Synced this branch with main and the latest #5421 and #5454, and fixed the three CI failures. triage_logs now also refuses to overwrite a file that appears between its check and its write.

Still open: the review's security question about skill code reading and creating files without a declared permission. That code lives in #5454, so it needs an answer there before this merges.

🔍 Technical details
  • Test Gaia Agent: test_the_loaded_tool_runs_through_the_agent wrote its log under pytest's tmp_path. On Linux that's /tmp, which the path validator never grants. The agent is now scoped to a test folder via allowed_paths, and a new case checks that a log outside the allowed folders is refused.
  • Unit Tests (all OS): test_route_doc_coverage needed feat(skills): skill context API for paths, programs, temp files and preferences #5454's 23c3b8f03 (preference routes documented). test_starter_skill_body_mentions_the_tools_it_declares[log-triage] broke when the SKILL.md trim moved list_files/run_python into a reference file. The fallback pointer now names them.
  • references/result-fields.md still read from start_line=line - 30 with no floor, so read_file fails when a burst starts in the first 30 lines. Now max(1, line - 30), and feat(skills): add report-from-sources, log-triage and meeting-actions #5421's start_line guard also scans references/*.md.
  • Overwrite race (review minor): the outputs now use open_write(path, "x") and turn FileExistsError into the "never overwrites" error. Parametrized race test covers .json, .csv, .txt.
  • Not addressed here: user-regex backtracking vs the time budget (minor), and __all__ / fail-closed-without-validator in context.py (feat(skills): skill context API for paths, programs, temp files and preferences #5454's file).
  • Commit 455146517 (SKILL.md trim) was on the fork branch but the PR never picked it up. It's included now.

…es its tool

Main's log-triage ended with a "Fork this" section and its README lists the
skills that ship tools. The tool-first SKILL.md now says which triage_logs
arguments to pin for a platform, and the README says log triage has its own
tool.
The entity-id examples, the id key list, the negative-id branch of the
prefixed-id pattern and two severity keywords described one storage
system's logs, and a test scenario reused messages from a published log
collection. The skill is a general tool, so every example, keyword and
test message is now made up, and the scenario keeps what it tests: a
routine high-severity baseline with a short multi-host burst.

An id prefix now has one kind: a hex id that happens to hold only digits
is listed with the other hex ids.
A log where the same error runs from the first line to the last was
summarised as '0 anomalies, baseline covers 100%', and the skill told the
model that baseline is never the incident. The most common request, 'my
app keeps failing, here is the log', got 'nothing wrong'.

Baseline templates at ERROR or FATAL are now also returned under
persistent_errors when nothing is anomalous or the range is under two
hours, with the plain reading: steady across the whole range, either
routine or an outage that covers the whole log. The headline and
next_step say so, and the skill asks the model to say which reading the
evidence supports.
A line was only timestamped when the timestamp opened it. 'ERROR 2025-03-04
10:00:00 [worker-1] ...', 'INFO:app.worker:2025-...' and an event viewer
CSV export all came back as format 'plain': no time ranking, no anomalies,
and both checks still true, so the model reported from a misread file.

The timestamp is now also found after a level, logger or host name when
most sampled lines carry it there, and a CSV export whose header names a
time column is read by its columns, with quoted messages that span lines.
A file that still yields no timestamps fails parsed_share_ok and is named
in files_without_timestamps with line_samples to fit timestamp_regex to.
node1/app.log, node2/app.log and node3/app.log were reported as one host
called 'app' and three coverage rows all named app.log, because a line
that names no host took the file stem. When several folders hold the same
file name, the file is now shown by its path below their common folder
and its lines default to the folder as host. Rotated files in one folder
(app.log, app.log.1) are still one host.
Lines were read whole and cut to 8,192 characters afterwards, so a
one-line JSON array export, or a compressed file that expands to one
endless line, was loaded into memory in full. Lines are now read with a
length limit; the rest of an over-long line is skipped in chunks, within
the time budget. The cut is counted per file (long_lines_cut) and warned
about, with a hint when the whole file is one line.
A compressed file is sampled from its head only, so a multi-day .gz
started at buckets of a second or two and every template kept one cell
per second until the file ended: about 200 MB for 600k lines over three
days. Buckets are now widened during streaming as soon as their count
passes MAX_BUCKETS, and the final bucket is the one the whole range
calls for, so a .gz and its uncompressed copy give the same result. A
bucket the caller fixed far too small is widened the same way, with a
warning.
Two faults around output_path:

- A .txt entity list written into the log folder was read back as a log
  on the next call, adding a host and its ids as entries. The list now
  starts with a marker line, as the .json and .csv outputs already do,
  and any file that starts with it is skipped. A user's own .txt log is
  still read.
- A refused or failed write was nested under output.written while status
  stayed 'success', so the model told the user the file existed. The
  result now has status 'partial' with the reason in 'error' and what to
  do in 'fix'; the analysis is still returned.

The skill tells the model to pass output_path on the first call, so the
logs are read once, and to write lists outside the log folder.
timestamp_regex, level_regex, host_regex and entity_regex ran on every
line unchecked. A bad timestamp_regex raised past the tool, and a pattern
like (\w+\s*)+$ could hang beyond the tool timeout.

Each pattern is now compiled with an error that names the argument,
refused when it repeats a group whose content repeats on its own, and
timed on growing prefixes of sample lines before any file is streamed.
@kovtcharov-amd kovtcharov-amd mentioned this pull request Nov 19, 2026
…ckage

The skill's tools.py now holds only the triage_logs tool; the engine moves to
log_triage_engine/ (limits, parsing, reading, analysis, report) with no change
in behaviour. tools.py drops the cached engine on import so a skill reload
re-reads it.

- The freeze now scans every .py in a bundled skill, not just tools.py and
  scripts/, so modules tools.py imports still get their hidden imports.
- Tests import the engine modules and patch the module that reads each value.
- The skills spec and hub README say tools.py may import modules shipped
  beside it; the starter-skills guide lists CSV exports and persistent errors.
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

The security blocker is resolved. The file helpers moved to #5454, which maintainers reviewed and merged, so this PR no longer widens what skill code can do. The refactor into log_triage_engine looks sound. One earlier 🟡 is still open.

  • 🟡 The eval is still unrun, and the PR names no categories in its place. This PR rewrites SKILL.md and adds a new tool docstring, and both are text the model reads. The eval box in the test plan is still unchecked. The validation notes in the comments help, but no eval scenario exercises log-triage yet. Either run gaia eval agent on the closest category, or name the categories to watch on the next RC in the PR body. If none apply, say so and link a follow-up issue for a log-triage scenario.
🔍 Technical details
  • eval/ and src/gaia/eval/ contain no scenario mentioning log-triage/log_triage. That makes the unchecked gaia eval agent on a log-triage scenario item unverifiable today, so the PR needs an explicit statement and a follow-up.
  • I checked the engine split (tools.py → log_triage_engine/). skills/loader.py keeps the skill dir on sys.path only while tools.py imports. The engine has no function-level imports of its own package, so nothing resolves after the path is removed. The reload purge of log_triage_engine.* in sys.modules is correct. freeze._skill_code_files now scans every *.py, and the new test covers that.

…scription

The skill catalog line for log-triage now names its triage_logs tool, so the
non-Claude system prompt golden changes by that one line.
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

🟡 The eval is still unrun, and the PR still names no categories to watch in its place. This push only refreshes the prompt golden. That refresh confirms the issue: the log-triage line in the flagship's system prompt changed, so every chat now sees new model-facing text, on top of the SKILL.md rewrite and the new tool docstring. The eval box in the test plan is still unchecked.

Next step: run gaia eval agent on the closest category, or name the categories to watch on the next RC in the PR body. If no category applies, say so in the PR body and link a follow-up issue for a log-triage scenario.

🔍 Technical details
  • The new head fa881abf changes only hub/agents/gaia/python/tests/fixtures/non_claude_system_prompt.txt, by one line in the skill catalog. Changes to the system prompt are on CLAUDE.md's list of changes that need eval coverage.
  • The PR body hasn't changed since the last review, and its eval item is still [ ].

@kovtcharov-amd
kovtcharov-amd merged commit 6e381b7 into amd:main Nov 19, 2026
49 of 50 checks passed
kovtcharov-amd added a commit that referenced this pull request Nov 19, 2026
# GAIA v0.27.0 Release Notes

## Summary

- Connect more than one Google or Microsoft account, and manage each one
separately.
- GAIA desktop has a browser beside the chat that both you and GAIA can
use.
- Type `/` and a skill's name to run that skill on a request.
- New skills build and check Office files and triage logs.
- The standalone email agent is gone; the main GAIA agent handles mail.
- 8 contributors merged 87 PRs and closed 72 issues since v0.26.0.

## Breaking Changes

- **The standalone email agent is removed** — `gaia email`, the
`gaia-agent-email` and `@amd-gaia/agent-email` packages, the `/v1/email`
routes and the `email` setup profile are gone. Ask GAIA about your mail
in `gaia chat` or the Agent UI instead; it reads, drafts and sends
through the Google and Microsoft connectors, as the [Email
guide](/guides/email) describes. On upgrade the old install is removed,
and any email it had scheduled is named once, since it won't be sent.
(PR [#7108](#7108))
- **`gaia agent list` and `gaia eval benchmark` are removed** — GAIA
ships one agent, and `gaia agent list` now says what replaced it. (PR
[#7108](#7108))
- **`gaia.ui.email_sidecar` is renamed `gaia.ui.sidecar`** — update the
import. (PR [#7108](#7108))

## What's New

- **Several accounts per mail provider** — `gaia connectors connect
google --add` adds another account; Settings and the terminal UI list
each one with its own Reconnect, Make default and Disconnect. (PRs
[#8331](#8331),
[#8332](#8332),
[#8333](#8333))
- **Browser pane in GAIA desktop** — browse beside the chat while GAIA
reads and drives the same tab, and pick part of a page to ask about. (PR
[#5973](#5973))
- **Run a skill by name** — start a message with `/skill-name` in the
Agent UI, terminal UI, `gaia -p` or the API; typing `/` lists installed
skills. (PR [#8483](#8483))
- **Office documents** — the `office-docs` skill builds spreadsheets,
decks with editable charts and Word files; its `verify_workbook` tool
recalculates formulas to catch wrong cell references. (PR
[#5417](#5417))
- **Log triage** — the `log-triage` skill's `triage_logs` tool reads
every named log in one call and returns the anomalies, bursts and hosts
hit. (PR [#5465](#5465))
- **Skill auto-load, opt-in** — with `GAIA_SKILL_AUTOLOAD=1` a skill
that clearly matches the request loads before the turn. Off by default.
(PR [#5442](#5442))
- **Document reranking, opt-in** — `RAGConfig(enable_reranking=True)`
reorders retrieved passages with a downloaded Lemonade reranking model.
(PR [#6136](#6136))
- **Review saved folder answers** — `gaia trust` lists, adds, declines
and forgets GAIA's per-folder answers about project guidance files. (PR
[#8480](#8480))
- **Sign in to Gmail over SSH** — `gaia connectors connect google
--callback-port PORT` fixes the sign-in port so it can be forwarded. (PR
[#8474](#8474))
- **Settings reach open chats** — a model server, connector or skill
change applies on an open chat's next message, including in the terminal
UI. (PR [#8400](#8400))
- **Agent UI** — Ctrl+/ lists keyboard shortcuts, formulas render
instead of LaTeX source, the library shows which chats use each
document, a scheduled task can be edited in place with its past runs
listed, and connector setup is shown as numbered steps. (PRs
[#7504](#7504),
[#7499](#7499),
[#7514](#7514),
[#7527](#7527),
[#8281](#8281),
[#8279](#8279),
[#8280](#8280))
- **Scripted `gaia -p` runs** — `--disallowed-tools`, `--no-web` and
`--no-skills` withhold tools; the run uses the apps' model without
downloading one, uses its whole `--time-limit`, and the agent knows
nobody is there to answer questions. (PRs
[#8326](#8326),
[#7808](#7808),
[#8385](#8385),
[#8451](#8451))
- **Large tool results pass by handle** — a tool given an `output_…`
handle gets the full result without it entering the prompt. (PR
[#8121](#8121))

## Bug Fixes

- **A missing command-line program becomes a step to install it**, not a
dead end. (PR [#8251](#8251))
- **A reply that stalls partway is requested again.** (PR
[#8446](#8446))
- **A chat fails at once when the chosen model server is down**, instead
of waiting. (PR [#8436](#8436))
- **A failed turn stays marked failed in history.** (PR
[#8335](#8335))
- **A document is never reported attached when nothing was written.**
(PR [#8388](#8388))
- **Attached file names keep their spaces and non-Latin scripts.** (PR
[#8461](#8461))
- **The agent can read images GAIA generated.** (PR
[#8478](#8478))
- **A bare JSON answer ends the turn.** (PR
[#8462](#8462))
- **A reply that was all thinking is told to act**, and the next one
thinks less. (PRs [#8430](#8430),
[#8448](#8448))
- **A file shown whole with `cat` counts as read back.** (PR
[#8458](#8458))
- **`run_python` says when long output was cut**, and a script missing a
module is pointed at the system Python. (PRs
[#8450](#8450),
[#8426](#8426))
- **Time limits are respected** — the model is told the limit, a
command's timeout never outlasts it, and no test run is requested after
it. (PRs [#8429](#8429),
[#8424](#8424),
[#8452](#8452))
- **`gaia -p` streams its model calls**, so a long reply is not lost.
(PR [#8427](#8427))
- **Model SDKs load on first use**, and context checkpoints are limited.
(PR [#8459](#8459))
- **A shell result sent to the model leaves out what it already knows.**
(PR [#8428](#8428))
- **Outlook availability is no longer guessed** when a meeting's time
can't be read. (PR [#8267](#8267))
- **No local chat download is planned while chat runs on a cloud
model.** (PR [#8086](#8086))
- **Setup shows the same model size and name as Settings.** (PR
[#8431](#8431))
- **A reply cut short by a crash isn't continued.** (PR
[#8391](#8391))
- **An MCP connector shows Connected only after a check has started
it.** (PR [#8434](#8434))
- **The document library's install hint matches this build.** (PR
[#8327](#8327))
- **A document overlap of 0 repeats nothing between chunks.** (PR
[#8382](#8382))
- **Documents in Russian, Greek, Polish and other languages are split
into sentences**, so their chunks overlap like English ones instead of
being cut every 2,000 characters. (PR
[#8499](#8499))
- **Documents added while the model server was down are indexed once it
is back**, and show "Waiting", not "Failed". (PR
[#8353](#8353))
- **Setup retries and resumes a dropped assistant download** instead of
failing. (PR [#8490](#8490))
- **A failed model download stays reported after Settings closes**,
until you dismiss it. (PR
[#8468](#8468))
- **Impossible input gets a 4xx error, not a 500.** (PR
[#8291](#8291))
- **Agent UI layout** — popovers stay on screen in right-to-left layouts
at phone width, the Mac window buttons clear the folded sidebar, and
closing the resource strip says how to bring it back. (PRs
[#8455](#8455),
[#8476](#8476),
[#8432](#8432))
- **The "GAIA doesn't run this model server" line is translated in
Arabic.** (PR [#8435](#8435))
- **A release candidate names its own pre-release as the agent's
source.** (PR [#8433](#8433))

## Known Issues

- **Installed builds: `gaia -p` refuses `--time-limit`,
`--disallowed-tools`, `--no-web` and `--no-skills`**, because there the
agent runs through GAIA's background service — run without them, or from
a developer install that includes the agent package. Tracked in
[#8495](#8495).
- **NPU PCs: chat on the NPU profile returns an empty reply** — use the
GPU/CPU profile for now. Tracked in
[#6008](#6008).
- **Fedora 44: setup cannot reach any HTTPS site**, so it can neither
connect a cloud model nor download one — tracked in
[#7226](#7226).
- **Long sessions on Windows: Lemonade's bundled llama-server leaks
handles on every request** — restart the model server from time to time.
Tracked in [#8312](#8312).
- **Coding: editing a config, data or `SKILL.md` file does not mark an
earlier "tests pass" as stale** — re-run the tests after such an edit.
Tracked in [#8213](#8213).
- **Your own model server, stopped: the connection banner says it is
"not installed"** — start your server again. Tracked in
[#8313](#8313).
- **Summarizing a 1,000+ page document can time out** — ask about
sections or page ranges instead. Tracked in
[#8218](#8218).

## Contributors

Thanks to the community members who contributed to this release:

- [@tylerbea](https://github.com/tylerbea) — several accounts per
connector, the browser pane, `/skill-name` in chat, and Mac window
layout (PRs [#8331](#8331),
[#8332](#8332),
[#8333](#8333),
[#5973](#5973),
[#8483](#8483),
[#8476](#8476))
- [@akshat-lakhera](https://github.com/akshat-lakhera) — `gaia trust`
and the Gmail sign-in callback port (PRs
[#8480](#8480),
[#8474](#8474))
- [@rapuckett](https://github.com/rapuckett) — failed-turn history,
honest document attachment, right-to-left popovers, and test and tooling
fixes (PRs [#8335](#8335),
[#8388](#8388),
[#8455](#8455),
[#8453](#8453),
[#8454](#8454),
[#8471](#8471))
- [@eshitakundu](https://github.com/eshitakundu) — passing tool results
by handle, and measuring what MCP servers cost an agent (PRs
[#8121](#8121),
[#8294](#8294))
- [@bniladridas](https://github.com/bniladridas) — bare JSON answers,
attachment names, failed-download reporting, and installer and test CI
fixes (PRs [#8462](#8462),
[#8461](#8461),
[#8468](#8468),
[#8482](#8482),
[#8466](#8466),
[#8465](#8465),
[#8467](#8467),
[#8464](#8464),
[#8402](#8402))
- [@huong8373tt-beep](https://github.com/huong8373tt-beep) — optional
Lemonade reranking for document search (PR
[#6136](#6136))
- [@0z5a](https://github.com/0z5a) — sentence splitting for non-ASCII
languages (PR [#8499](#8499))

## Full Changelog

**87 commits** since v0.26.0. The PR links above are the changelog.

Full Changelog:
[v0.26.0...v0.27.0](v0.26.0...v0.27.0)
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
…ol (amd#5465)

The `log-triage` skill now gives the agent a `triage_logs` tool. One
call reads every log the user named, all the way through, and returns
the incident: anomalies kept apart from routine noise, bursts with exact
start and end, the hosts and ids hit, and checks that the counts add up.
The model then reads the lines before the first burst and writes the
report. A small local model no longer has to write and debug a pandas
script for this.

The tool ships with the skill (`tools.py` plus its `log_triage_engine/`
package), not in the core agent. It builds on amd#5421 (the `log-triage`
instructions). It also merges amd#5454 (skill context API, stacked on
amd#5450) and adds one generic commit on top of it: `open_read`,
`list_readable` and `open_write` in `gaia.skills.context`. Without
those, a skill that reads the user's files can't pass the audit (raw
`open()` is undeclared filesystem use, and declaring `filesystem`
refuses the load). That commit belongs with amd#5454.

<details><summary>🔍 Technical details</summary>

**API:** `log-triage/triage_logs(paths: list[str], glob="",
timestamp_regex="", level_regex="", host_regex="", entity_regex="",
bucket="", top_n=10, output_path="")`. `output_path` is optional: a new
`.json` gets the full detail, a `.csv` gets the anomalous-entity list.
It never overwrites a file or writes to an input.

**What it does**
- **Reading:** streams each file in bounded memory, with caps on
templates, hosts, entities and buckets, and a time budget. Every cap
that bites shows up in `warnings`. Handles `.gz`, UTF-16, BOM and CRLF.
All reads go through `gaia.skills.context`, so the agent's allowed
folders and secret-file refusals apply. The skill audit returns ALLOW.
- **Formats:** learned per file from a head/middle/tail sample: JSON
lines (nested keys), syslog RFC 3164/5424 (year inferred, New Year
rollover), Apache/Nginx access and error, glog, `key=value`, and lines
that start with a timestamp (ISO 8601, `YYYY-MM-DD HH:MM:SS,mmm`, CLF,
ctime, US/AM-PM, epoch s/ms/us/ns). A file can mix formats. Stack traces
and tracebacks join the entry above them, and the exception class goes
into the template. Unparsed lines are counted and sampled, and
`checks.parsed_share_ok` fails when under 95% parse.
- **Templates:** numbers, hex, UUIDs, IPs, paths, URLs and mixed ids are
masked. Templates that differ only in a word with 8 or more values are
merged (Drain-like, never across severity classes).
- **Classification:** BASELINE means present in 3 of 4 quarters over at
least 60% of the range, whatever the level. ANOMALY means any of: severe
and short or clustered; warnings clustered; hit 30% or more of hosts at
once; new (expected 5 or more lines before its first appearance); a
spike of 6x or more over its own median; escalating (late third 4x or
more over the early third).
- **Bursts:** built from non-baseline errors and anomaly lines, with
hysteresis edges. Exact start/end come from the templates found only in
the burst. Each burst is compared with the quiet window before it
(`rose` / `fell_silent`).
- **Time:** offsets are normalised to UTC. `clock_offsets` reports a
steady lag measured on ids that two files share; near-whole-hour lags
get a time-zone warning. Times are never shifted silently.
- **Entities:** taken only from anomaly templates, inside each anomaly's
own window. A template is left out with a warning when it covers most
entities that routine templates also carry.
- **Output:** compact, 2–7 KB on the scenarios.

**Measured.** Eight generated scenarios, 20 fresh seeds each (160 runs)
plus the default seed in CI. Every run scored 1.00 template precision,
1.00 template recall, 1.00 burst start/end within 60 s (observed error
under 1 s), and 1.00 entity precision and recall. The two negatives
flagged zero anomalies, bursts and entities.

| Scenario | Planted |
|---|---|
| hardware_fault_burst | ECC fault on 31/40 nodes for 4 min amid ~100k
routine FATAL/ERROR lines |
| memory_leak | escalating GC warnings, then OOM with stack traces |
| single_vs_cluster | syslog: disk errors on 1 host vs DB outage on 20
hosts (blast radius checked) |
| access_5xx_spike | 502s from one upstream for 15 min |
| json_deploy_exception | new exception template after a deploy |
| multi_file_timezones | +02:00 / Z / epoch-ms files, 40 s skew (offset
measured at 42.7 s) |
| steady_negative, diurnal_negative | nothing to find |

**Speed:** about 40 µs per line, so roughly 40 s for 1M lines (92 MB).
Peak memory was about 44 MB in that test.

**Limits:** numeric JSON levels follow Python logging (40 = ERROR), not
pino. A file in local time with no offset is reported as written, with a
warning. These scenarios are invented by the same author as the rules,
so real logs will score lower.

**SKILL.md:** leads with the tool, then lays out the report as a
blameless postmortem: summary, impact, detection, timeline, contributing
factors, mitigation, action items with owners, confidence. The pandas
procedure stays as the fallback, now with an explicit 95% parse
assertion, UTC normalisation and a quiet-window comparison.

</details>

## Test plan
- [x] `pytest tests/unit/test_log_triage_tool.py
tests/unit/test_log_triage_scenarios.py tests/unit/test_skill_context.py
tests/unit/test_skill_catalog.py tests/unit/test_starter_skills.py`
- [x] `pytest hub/agents/gaia/python/tests/test_log_triage_skill_tool.py
hub/agents/gaia/python/tests/test_bundled_skill_tools.py` (skill loads
on the flagship, adds exactly `log-triage/triage_logs`, runs through
`_execute_tool`, audit ALLOW)
- [x] `python util/lint.py --all`
- [ ] Eval on the v0.27.0-rc1 run (not run per-PR): watch
`gaia_skills_tasks`, `gaia_skills_lifecycle`, `gaia_tool_selection` and
`gaia_data`. The skill-catalog line, `SKILL.md` and the new tool
docstring are model-facing. No scenario exercises `log-triage` directly
yet.

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
# GAIA v0.27.0 Release Notes

## Summary

- Connect more than one Google or Microsoft account, and manage each one
separately.
- GAIA desktop has a browser beside the chat that both you and GAIA can
use.
- Type `/` and a skill's name to run that skill on a request.
- New skills build and check Office files and triage logs.
- The standalone email agent is gone; the main GAIA agent handles mail.
- 8 contributors merged 87 PRs and closed 72 issues since v0.26.0.

## Breaking Changes

- **The standalone email agent is removed** — `gaia email`, the
`gaia-agent-email` and `@amd-gaia/agent-email` packages, the `/v1/email`
routes and the `email` setup profile are gone. Ask GAIA about your mail
in `gaia chat` or the Agent UI instead; it reads, drafts and sends
through the Google and Microsoft connectors, as the [Email
guide](/guides/email) describes. On upgrade the old install is removed,
and any email it had scheduled is named once, since it won't be sent.
(PR [amd#7108](amd#7108))
- **`gaia agent list` and `gaia eval benchmark` are removed** — GAIA
ships one agent, and `gaia agent list` now says what replaced it. (PR
[amd#7108](amd#7108))
- **`gaia.ui.email_sidecar` is renamed `gaia.ui.sidecar`** — update the
import. (PR [amd#7108](amd#7108))

## What's New

- **Several accounts per mail provider** — `gaia connectors connect
google --add` adds another account; Settings and the terminal UI list
each one with its own Reconnect, Make default and Disconnect. (PRs
[amd#8331](amd#8331),
[amd#8332](amd#8332),
[amd#8333](amd#8333))
- **Browser pane in GAIA desktop** — browse beside the chat while GAIA
reads and drives the same tab, and pick part of a page to ask about. (PR
[amd#5973](amd#5973))
- **Run a skill by name** — start a message with `/skill-name` in the
Agent UI, terminal UI, `gaia -p` or the API; typing `/` lists installed
skills. (PR [amd#8483](amd#8483))
- **Office documents** — the `office-docs` skill builds spreadsheets,
decks with editable charts and Word files; its `verify_workbook` tool
recalculates formulas to catch wrong cell references. (PR
[amd#5417](amd#5417))
- **Log triage** — the `log-triage` skill's `triage_logs` tool reads
every named log in one call and returns the anomalies, bursts and hosts
hit. (PR [amd#5465](amd#5465))
- **Skill auto-load, opt-in** — with `GAIA_SKILL_AUTOLOAD=1` a skill
that clearly matches the request loads before the turn. Off by default.
(PR [amd#5442](amd#5442))
- **Document reranking, opt-in** — `RAGConfig(enable_reranking=True)`
reorders retrieved passages with a downloaded Lemonade reranking model.
(PR [amd#6136](amd#6136))
- **Review saved folder answers** — `gaia trust` lists, adds, declines
and forgets GAIA's per-folder answers about project guidance files. (PR
[amd#8480](amd#8480))
- **Sign in to Gmail over SSH** — `gaia connectors connect google
--callback-port PORT` fixes the sign-in port so it can be forwarded. (PR
[amd#8474](amd#8474))
- **Settings reach open chats** — a model server, connector or skill
change applies on an open chat's next message, including in the terminal
UI. (PR [amd#8400](amd#8400))
- **Agent UI** — Ctrl+/ lists keyboard shortcuts, formulas render
instead of LaTeX source, the library shows which chats use each
document, a scheduled task can be edited in place with its past runs
listed, and connector setup is shown as numbered steps. (PRs
[amd#7504](amd#7504),
[amd#7499](amd#7499),
[amd#7514](amd#7514),
[amd#7527](amd#7527),
[amd#8281](amd#8281),
[amd#8279](amd#8279),
[amd#8280](amd#8280))
- **Scripted `gaia -p` runs** — `--disallowed-tools`, `--no-web` and
`--no-skills` withhold tools; the run uses the apps' model without
downloading one, uses its whole `--time-limit`, and the agent knows
nobody is there to answer questions. (PRs
[amd#8326](amd#8326),
[amd#7808](amd#7808),
[amd#8385](amd#8385),
[amd#8451](amd#8451))
- **Large tool results pass by handle** — a tool given an `output_…`
handle gets the full result without it entering the prompt. (PR
[amd#8121](amd#8121))

## Bug Fixes

- **A missing command-line program becomes a step to install it**, not a
dead end. (PR [amd#8251](amd#8251))
- **A reply that stalls partway is requested again.** (PR
[amd#8446](amd#8446))
- **A chat fails at once when the chosen model server is down**, instead
of waiting. (PR [amd#8436](amd#8436))
- **A failed turn stays marked failed in history.** (PR
[amd#8335](amd#8335))
- **A document is never reported attached when nothing was written.**
(PR [amd#8388](amd#8388))
- **Attached file names keep their spaces and non-Latin scripts.** (PR
[amd#8461](amd#8461))
- **The agent can read images GAIA generated.** (PR
[amd#8478](amd#8478))
- **A bare JSON answer ends the turn.** (PR
[amd#8462](amd#8462))
- **A reply that was all thinking is told to act**, and the next one
thinks less. (PRs [amd#8430](amd#8430),
[amd#8448](amd#8448))
- **A file shown whole with `cat` counts as read back.** (PR
[amd#8458](amd#8458))
- **`run_python` says when long output was cut**, and a script missing a
module is pointed at the system Python. (PRs
[amd#8450](amd#8450),
[amd#8426](amd#8426))
- **Time limits are respected** — the model is told the limit, a
command's timeout never outlasts it, and no test run is requested after
it. (PRs [amd#8429](amd#8429),
[amd#8424](amd#8424),
[amd#8452](amd#8452))
- **`gaia -p` streams its model calls**, so a long reply is not lost.
(PR [amd#8427](amd#8427))
- **Model SDKs load on first use**, and context checkpoints are limited.
(PR [amd#8459](amd#8459))
- **A shell result sent to the model leaves out what it already knows.**
(PR [amd#8428](amd#8428))
- **Outlook availability is no longer guessed** when a meeting's time
can't be read. (PR [amd#8267](amd#8267))
- **No local chat download is planned while chat runs on a cloud
model.** (PR [amd#8086](amd#8086))
- **Setup shows the same model size and name as Settings.** (PR
[amd#8431](amd#8431))
- **A reply cut short by a crash isn't continued.** (PR
[amd#8391](amd#8391))
- **An MCP connector shows Connected only after a check has started
it.** (PR [amd#8434](amd#8434))
- **The document library's install hint matches this build.** (PR
[amd#8327](amd#8327))
- **A document overlap of 0 repeats nothing between chunks.** (PR
[amd#8382](amd#8382))
- **Documents in Russian, Greek, Polish and other languages are split
into sentences**, so their chunks overlap like English ones instead of
being cut every 2,000 characters. (PR
[amd#8499](amd#8499))
- **Documents added while the model server was down are indexed once it
is back**, and show "Waiting", not "Failed". (PR
[amd#8353](amd#8353))
- **Setup retries and resumes a dropped assistant download** instead of
failing. (PR [amd#8490](amd#8490))
- **A failed model download stays reported after Settings closes**,
until you dismiss it. (PR
[amd#8468](amd#8468))
- **Impossible input gets a 4xx error, not a 500.** (PR
[amd#8291](amd#8291))
- **Agent UI layout** — popovers stay on screen in right-to-left layouts
at phone width, the Mac window buttons clear the folded sidebar, and
closing the resource strip says how to bring it back. (PRs
[amd#8455](amd#8455),
[amd#8476](amd#8476),
[amd#8432](amd#8432))
- **The "GAIA doesn't run this model server" line is translated in
Arabic.** (PR [amd#8435](amd#8435))
- **A release candidate names its own pre-release as the agent's
source.** (PR [amd#8433](amd#8433))

## Known Issues

- **Installed builds: `gaia -p` refuses `--time-limit`,
`--disallowed-tools`, `--no-web` and `--no-skills`**, because there the
agent runs through GAIA's background service — run without them, or from
a developer install that includes the agent package. Tracked in
[amd#8495](amd#8495).
- **NPU PCs: chat on the NPU profile returns an empty reply** — use the
GPU/CPU profile for now. Tracked in
[amd#6008](amd#6008).
- **Fedora 44: setup cannot reach any HTTPS site**, so it can neither
connect a cloud model nor download one — tracked in
[amd#7226](amd#7226).
- **Long sessions on Windows: Lemonade's bundled llama-server leaks
handles on every request** — restart the model server from time to time.
Tracked in [amd#8312](amd#8312).
- **Coding: editing a config, data or `SKILL.md` file does not mark an
earlier "tests pass" as stale** — re-run the tests after such an edit.
Tracked in [amd#8213](amd#8213).
- **Your own model server, stopped: the connection banner says it is
"not installed"** — start your server again. Tracked in
[amd#8313](amd#8313).
- **Summarizing a 1,000+ page document can time out** — ask about
sections or page ranges instead. Tracked in
[amd#8218](amd#8218).

## Contributors

Thanks to the community members who contributed to this release:

- [@tylerbea](https://github.com/tylerbea) — several accounts per
connector, the browser pane, `/skill-name` in chat, and Mac window
layout (PRs [amd#8331](amd#8331),
[amd#8332](amd#8332),
[amd#8333](amd#8333),
[amd#5973](amd#5973),
[amd#8483](amd#8483),
[amd#8476](amd#8476))
- [@akshat-lakhera](https://github.com/akshat-lakhera) — `gaia trust`
and the Gmail sign-in callback port (PRs
[amd#8480](amd#8480),
[amd#8474](amd#8474))
- [@rapuckett](https://github.com/rapuckett) — failed-turn history,
honest document attachment, right-to-left popovers, and test and tooling
fixes (PRs [amd#8335](amd#8335),
[amd#8388](amd#8388),
[amd#8455](amd#8455),
[amd#8453](amd#8453),
[amd#8454](amd#8454),
[amd#8471](amd#8471))
- [@eshitakundu](https://github.com/eshitakundu) — passing tool results
by handle, and measuring what MCP servers cost an agent (PRs
[amd#8121](amd#8121),
[amd#8294](amd#8294))
- [@bniladridas](https://github.com/bniladridas) — bare JSON answers,
attachment names, failed-download reporting, and installer and test CI
fixes (PRs [amd#8462](amd#8462),
[amd#8461](amd#8461),
[amd#8468](amd#8468),
[amd#8482](amd#8482),
[amd#8466](amd#8466),
[amd#8465](amd#8465),
[amd#8467](amd#8467),
[amd#8464](amd#8464),
[amd#8402](amd#8402))
- [@huong8373tt-beep](https://github.com/huong8373tt-beep) — optional
Lemonade reranking for document search (PR
[amd#6136](amd#6136))
- [@0z5a](https://github.com/0z5a) — sentence splitting for non-ASCII
languages (PR [amd#8499](amd#8499))

## Full Changelog

**87 commits** since v0.26.0. The PR links above are the changelog.

Full Changelog:
[v0.26.0...v0.27.0](amd/gaia@v0.26.0...v0.27.0)
kovtcharov-amd added a commit that referenced this pull request Nov 19, 2026
…oad one (#8537)

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

- **The written list carries its evidence.** With `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.
- **A broad list is questioned.** A list holding more than a third of a
known population is reported in `entity_list_warning`, first among the
warnings. It names the two arguments that tighten it: `entity_max_share`
and `entity_min_level`. Ids that occur only in anomaly lines get a
`share_note` instead.
- **`next_step` says to deliver or filter the file**, not to recompute
the list by hand. The same rule is in the tool description.
- **Undecodable characters are counted.** Each file's coverage row
carries `undecodable_chars`, `undecodable_lines` and 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_tasks` and `gaia_data`. No current scenario
runs log-triage directly.

## Tests

`tests/unit/test_log_triage_tool.py` and
`hub/agents/gaia/python/tests/test_log_triage_skill_tool.py` cover the
list file, the warning and its thresholds, the share note and the decode
counts.

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents documentation Documentation changes enhancement New feature or request sidecar Agent sidecar contract / harness skill Claude Code skill files (.claude/skills/) tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants