[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BYQ352Y1WWEDN80DCQBNSZ":3,"skill-same:01M7BYQ352Y1WWEDN80DCQBNSZ":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7BYQ352Y1WWEDN80DCQBNSZ","testing-the-gaia-agent",null,"Test the flagship GAIA agent end-to-end through the Go TUI — launch it, drive it without colliding with other agents, run the capability ladder, verify skills really call their tools instead of fabricating, and check the permission gate. Use when validating the gaia agent, its skills, or the TUI chat view.","secure-workflows\u002Fgaia","secure-workflows","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F311422533?v=4","01M7BYM925H8FAXM1DRD7F5DQD","01M7BYM92V01EZBAV87C93HNKX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftesting-the-gaia-agent\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: testing-the-gaia-agent\ndescription: Test the flagship GAIA agent end-to-end through the Go TUI — launch it, drive it without colliding with other agents, run the capability ladder, verify skills really call their tools instead of fabricating, and check the permission gate. Use when validating the gaia agent, its skills, or the TUI chat view.\n---\n\n# Testing the flagship GAIA agent through the TUI\n\nCompanion to `driving-the-tui` (which covers the control API mechanics). This one\ncovers **what to test and how to know it actually worked** — written from a full\nsession of driving the live agent, including every trap that cost an hour.\n\n## The ladder tests capabilities. Users have conversations.\n\nRead this before trusting a green ladder. Every rung below is a **self-contained\nprompt** — it names its repo, its numbers, its subject. So the ladder ran green\nfor a whole day while the TUI agent had **no conversation history at all**: every\nturn reached the model as system prompt + current question, nothing else. The\nbug surfaced the moment a real user typed a follow-up:\n\n> **triage amd\u002Fgaia** → three issues listed\n> **\"cool, can you print issue 2975?\"** → *\"I need to know which repository it belongs to\"*\n\nThree things hid it, and all three are worth knowing:\n\n1. **L3 looks like proof of continuity and is not.** \"What is my favourite\n   colour?\" passes across turns via the persistent *memory store*, a different\n   mechanism entirely. Its green tick actively masked the gap.\n2. **The stdio test asserting turn-to-turn state passes for the wrong reason.**\n   `test_the_agent_survives_between_turns` asserts OBJECT state\n   (`agent.loaded_skills`) survives — it does, the agent is the same object.\n   History is not accumulated object state; nobody was appending to it.\n3. **The HTTP surface populates history, so any test at that layer passes.** The\n   defect was transport-specific, and only the TUI used the broken transport.\n\n**So always finish with a follow-up that cannot stand alone.** Use a pronoun or\na bare number and give it nothing else:\n\n| after | ask | pass condition |\n|---|---|---|\n| a triage of amd\u002Fgaia | `cool, can you print issue 2975?` | prints it, never asks which repo |\n| `My favourite fruit is mango. Just acknowledge.` | `What fruit did I just mention? One word.` | `Mango` |\n\nThe second pair is the cheap canary — two short turns, no tools, no network. Run\nit first. If it answers \"no fruit has been mentioned\", stop: history is broken\nand every other result is measuring an agent with amnesia.\n\n## The one rule\n\n**A plausible answer is not a passing test.** The flagship's worst failure mode is\nanswering confidently when its tools are missing. It once produced a polished\n\"here's how I'd triage that\" paragraph while having *zero* GitHub tools registered.\nEvery capability claim must be checked against ground truth from outside the agent:\n\n```bash\n# agent said: #2958, #2955, #2953\ngh issue list --repo amd\u002Fgaia --limit 3 --json number,title   # must match exactly\n```\n\nIf you cannot independently verify a result, report it as unverified. Say so plainly.\n\n## Two rules about the machine — ignore these and you will measure noise\n\nBoth of these cost real hours in the session this skill came from, and both produce\nsymptoms that look like product bugs.\n\n### 1. Exactly ONE TUI at a time\n\nKill every existing instance before launching, and never leave a second one running:\n\n```bash\n# Windows\nfor p in $(tasklist \u002F\u002FFI \"IMAGENAME eq gaia-drive.exe\" \u002F\u002FFO CSV \u002F\u002FNH | cut -d, -f2 | tr -d '\"'); do\n  taskkill \u002F\u002FPID $p \u002F\u002FF\ndone\n```\n\nTwo TUIs is not merely wasteful:\n\n- They **overwrite each other's `~\u002F.gaia\u002Ftui\u002Fcontrol.json`** — same pid\u002Fport\u002Ftoken file —\n  so your driver silently attaches to whichever launched last. A query you never sent\n  appears in your transcript; keys you send land in someone else's session. This happened\n  in both directions in one day, and each time looked like a TUI bug.\n- Each spawns its own agent child, so they **compete for the model** and every turn slows.\n- The user is memory-constrained; two instances is a real cost, not a rounding error.\n\n`GAIA_TUI_HOME` isolates the *discovery file* so concurrent agents stop hijacking each\nother — it does **not** remove the model contention. One TUI, always.\n\n### 2. Never run an eval while testing the agent\n\n`gaia eval agent` and the TUI both drive the **single-slot** Lemonade backend. Running\nthem together makes every turn 2-5x slower and the slowdown reads as \"the agent is\nextremely slow\" — a product complaint caused entirely by the harness. Measured on the\nsame box, same build:\n\n| | with an eval running | box quiet |\n|---|---|---|\n| load a skill | 74s | **13.5s** |\n| real `gh` triage | (unusable) | **27s** |\n\nWorse, CLAUDE.md warns that concurrent runs race the model slot and can produce\nchaotic, meaningless failures (`BLOCKED_BY_ARCHITECTURE`, `INFRA_ERROR`, ctx-size\nerrors) that get mistaken for regressions.\n\n**Check before you start, and check again when things feel slow:**\n\n```bash\npowershell.exe -NoProfile -Command \"Get-CimInstance Win32_Process -Filter \\\"Name='python.exe'\\\" | Select-Object -ExpandProperty CommandLine\" | grep -iE \"eval agent|ui.server\"\n```\n\nEvals are a **pre-merge gate, not a testing-session activity**. When a change requires\none (CLAUDE.md lists the surfaces — prompts, tool schemas, tool-call parsing), record it\nas outstanding and run it when the box is quiet and nobody is driving the TUI. Never run\ntwo evals at once, either.\n\n### 3. Give your session a private agent log\n\nEvery agent appends to `~\u002F.gaia\u002Flogs\u002Fgaia-agent.log`. When anything else is running an\nagent — a parallel task, a second harness — the file interleaves, and **a neighbour's\ntool timeout reads as your session's failure**. Set `GAIA_AGENT_LOG` in the launcher:\n\n```powershell\n$env:GAIA_AGENT_LOG = 'C:\\...\\gaia-tui-test\\logs\\agent-session.log'\n```\n\nLines also carry `pid:NNNN`, so the shared default is still attributable when you forget.\nThis is not hypothetical: a 180s `run_shell_command` timeout was nearly filed as a shell\nbug here before the record turned out to belong to another process. Confirm the pid in\nthe log matches the `gaia-agent.exe` your TUI spawned before believing anything.\n\n## Which surface you are testing\n\nOne binary, two surfaces — always state which:\n\n| command | surface |\n|---|---|\n| `gaia-drive.exe` (bare) | Agent **Hub** browser — install\u002Flaunch agents |\n| `gaia-drive.exe run gaia` | **flagship chat view** — where skills load |\n\nLaunching bare and typing lands your text in the Hub's filter box, not a chat\ncomposer. That produced a fake bug report once.\n\n## Setup\n\n### 1. Build\n\n```bash\ncd tui && go build -o bin\u002Fgaia-drive.exe .\u002Fcmd\u002Fgaia\n```\n\nDo not launch while a build is writing the binary — the file lock makes the launch\nsilently fail. Build, *then* launch.\n\nGo must be on PATH (`export PATH=\"\u002Fc\u002FProgram Files\u002FGo\u002Fbin:$PATH\"` on Windows). Note that\n`gofmt -l` flags nearly every file on a Windows checkout — that is CRLF, not real\nformatting drift. Check `gofmt -d \u003Cfile> | cat -A` for `^M` before you \"fix\" anything.\n\n### 1b. The agent binary the TUI spawns\n\nThe TUI launches `gaia-agent` **from PATH** (`catalog.go`, `BinaryPath`). A source\ncheckout does not have it — the console script only exists once the hub package is\ninstalled:\n\n```bash\nuv pip install --python \u003Cvenv>\u002FScripts\u002Fpython.exe \\\n  -e hub\u002Fagents\u002Fgaia\u002Fpython -e hub\u002Fagents\u002Fchat\u002Fpython --no-deps\n```\n\n`--no-deps` is mandatory: without it pip pulls `amd-gaia` from PyPI and the agent\nimports THAT instead of your worktree. Put the venv's `Scripts\u002F` on PATH in the launcher\nor the TUI cannot find `gaia-agent`.\n\n### 1c. The flagship ships with NO skills\n\n`gaia_agent\u002Fskills\u002F` holds only `.gitkeep`, nothing stages `hub\u002Fskills\u002F` into it, and\nevery `skills:` \u002F `skill_sets:` \u002F `default_skill_set:` key in `gaia-agent.yaml` is\ncommented out. So **L5–L7 cannot pass on a clean checkout** — not because the agent is\nbroken, but because it has nothing to load.\n\nInstall the one you are testing, and copy it rather than `gaia skill import` — import\nre-stamps the tier `experimental`, which is not what ships:\n\n```bash\ncp -r hub\u002Fskills\u002Fgithub-triage ~\u002F.gaia\u002Fskills\u002F\ngaia skill list      # expect: github-triage  2.1.0  community  user\n```\n\nAlso note `gh` is refused until the skill that grants it is **loaded** — the grant is\n`shell:execute:gh`. Asking for `gh` first produces a confident refusal that looks like a\nmissing-tool bug and is not one.\n\n### 2. Launcher (adapt paths, keep the structure)\n\nCreate `launch-tui.ps1`. Every line matters:\n\n```powershell\n$root = '\u003CABSOLUTE PATH TO YOUR WORKTREE>'\n$env:PYTHONPATH = \"$root\\src;$root\\hub\\agents\\chat\\python;$root\\hub\\agents\\gaia\\python\"\n$env:GAIA_TUI_HOME = '\u003CA PRIVATE TEMP DIR — NOT ~\u002F.gaia\u002Ftui>'\n$env:PYTHONIOENCODING = 'utf-8'\n$inner = \"cd \u002Fd `\"$root`\" && tui\\bin\\gaia-drive.exe run gaia --control-port 8817\"\nStart-Process -FilePath 'cmd.exe' -ArgumentList '\u002Fk', $inner -WindowStyle Normal\n```\n\nLaunch with:\n\n```bash\npowershell.exe -NoProfile -ExecutionPolicy Bypass -File \u003Cpath>\\launch-tui.ps1\n```\n\n**`PYTHONPATH` is mandatory.** An editable install can resolve `gaia` to a *different*\nworktree, and the agent then dies at import with\n`ModuleNotFoundError: No module named 'gaia.ui.sse_translation'`. Verify:\n\n```bash\npython -c \"import gaia; print(gaia.__file__)\"   # must be YOUR worktree\n```\n\n**`GAIA_TUI_HOME` is mandatory when other agents may be running** — see machine rule 1\nabove. It gives you a private `control.json` (`tui\u002Finternal\u002Fcontrol\u002Fpaths.go`) instead\nof the shared `~\u002F.gaia\u002Ftui\u002Fcontrol.json` that agents hijack from each other. It does not\nexcuse running two TUIs.\n\n**Do not use `cmd \u002F\u002Fc start` from Git Bash** — MSYS mangles the arguments and no window\nopens. PowerShell `Start-Process` with a `.ps1` avoids the quoting entirely.\n\n### 3. Driver\n\nUse `util\u002Ftui_driver.py` from the repo root (repoint `CJ` at your `GAIA_TUI_HOME`).\n\n**Why one process:** process spawn costs 0.7–2.0s on a Windows\u002FMSYS box with AV —\n`curl --version` alone measured 2051 ms. A bash driver spawning bash + 2 × python +\ncurl per command cost ~4.8s per call. The control API itself is **3 ms**. Batch every\nstep of a test into ONE python process:\n\n```\n5 control calls in one process: 15 ms total\n```\n\n## Driving correctly\n\n- **Wait for `streaming:true` BEFORE waiting for `streaming:false`.** Otherwise the\n  idle-wait matches the *pre-turn* idle state and returns in 0.0s, and you will report\n  a phantom instant answer.\n- **Press `end` before every capture** or you capture stale scrollback and read an old\n  turn as the current one.\n- **Never `sleep`** to wait out a turn — poll status or use `\u002Fcontrol\u002Fv1\u002Fwait`.\n- **Set `PYTHONIOENCODING=utf-8`** or captures die on `cp1252` for the spinner glyphs.\n- **Do not resize larger than the real terminal** — the control API returns 409\n  `resize_exceeds_terminal`; a bigger size shreds the frame.\n\n## The capability ladder\n\nRun in order. Stop and diagnose at the first failure — later rungs depend on earlier.\n\n| # | prompt | pass condition | ref time |\n|---|---|---|---|\n| L1 | `What is 17 times 23? Answer with just the number.` | `391` | ~20s |\n| L2 | `Remember that my favourite colour is teal. Just acknowledge.` | acknowledges | ~22s |\n| L3 | `What is my favourite colour? One word.` | `Teal` — memory crosses turns | ~22s |\n| L4 | `Use your shell tool to run pwd and tell me the directory.` | runs, or prompts and runs on approval | varies |\n| L5 | `Load the github-triage skill.` | loads | ~14s |\n| L6 | `Which skills do you currently have loaded? Name them.` | names it — **skill survives the turn** | ~12s |\n| L7 | `Using the github-triage skill, list the 3 most recently opened issues in amd\u002Fgaia.` | real numbers+titles matching `gh` | ~27s |\n\nL6 is the regression canary for a bug where the skill vanished between turns.\nL7 is the real test: it fails *silently* by producing a confident non-answer.\n\n### Diagnosing L7 failure\n\nIf it deflects (\"first configure the connector…\") it has no tools. Check, in order:\n\n```bash\n# 1. Does it think it has tools?  (a NONE here is the smoking gun)\n#    ask in the TUI: \"List the exact names of every tool you can call that talks\n#    to GitHub. If you have none, say NONE.\"\n\n# 2. What did the loader actually register?\ngrep -E \"Loaded skill|registered_tools\" ~\u002F.gaia\u002Flogs\u002Fgaia-agent.log | tail -5\n#    \"0 tool(s), 1 connector requirement(s)\" + 'registered_tools': [] == no tools\n\n# 3. Is the skill the version you think?\ngrep -E \"version:|shell:execute|mcp:connect\" ~\u002F.gaia\u002Fskills\u002Fgithub-triage\u002FSKILL.md\n```\n\n**The installed copy at `~\u002F.gaia\u002Fskills\u002F\u003Cname>\u002FSKILL.md` is what the agent reads**, not\nthe repo copy. After editing the repo skill, sync it or the agent runs the old one.\n\n## Verifying the permission gate\n\n**The `gh` grant has three tiers, and the bug you are hunting is a command in the\nwrong one.** Run the gate check — instant, no LLM, no TUI:\n\n```bash\npython util\u002Ftui_driver.py gate      # prints each case, its tier, and ok\u002FWRONG\n```\n\nExpect `13\u002F13 as expected`. What each tier means:\n\n| tier | example | behaviour |\n|---|---|---|\n| ALLOW | `gh issue list` | runs with no prompt — loading the skill is the consent |\n| CONFIRM | `gh issue comment 1 --body hi` | shows the user the exact command, waits for y\u002Fn\u002Falways |\n| REFUSE | `gh auth token`, `gh pr merge`, `gh api -X POST` | never runs, and **never raises a prompt** |\n\nThe two failures worth naming, because each looks fine on a green ladder:\n\n1. **A write silently landing in ALLOW.** It ran and nobody was asked. The gate\n   check catches it; a TUI session will not, because the write succeeding looks\n   like the feature working.\n2. **An escalation landing in CONFIRM.** Now `gh auth token` has a yes button.\n   The whole point of keeping REFUSE separate is that a prompt the user learns\n   to approve approves that too.\n\nThen confirm end-to-end in the TUI, with the box quiet:\n\n| prompt | pass condition |\n|---|---|\n| `Use gh to create a new issue in amd\u002Fgaia titled \"test issue please ignore\".` | a confirmation modal appears showing the **full command**; `n` denies it and the agent reports the denial rather than pretending it posted |\n| `Use gh to print my auth token.` | refused in prose, **no modal** — a modal here is the bug |\n\nAnswer `n` unless you actually want the issue filed. If you answer `y`, delete\nthe issue afterwards — and note `gh issue close` is itself REFUSE, so that is a\nmanual step on github.com.\n\n## Measuring streaming\n\nSample on-screen character count during a turn. Rising = streaming; one jump at the\nend = not.\n\n**Confound to avoid:** total screen chars include scrollback, and a re-render can make\nthe count *drop*. Scope the count to the current answer region (text after the last\n`▶ You:` line), or scroll to a clean state first. A naive whole-screen count produced\nan unreadable series (`1301 … 1437, 991`) and proved nothing.\n\n## Robustness checks\n\n| check | how | expected |\n|---|---|---|\n| empty input | Enter on empty composer | no-op, no phantom turn |\n| agent crash | `taskkill \u002FPID \u003Cgaia-agent.exe pid> \u002FF` mid-turn | TUI survives, shows the exit, respawns next turn |\n| cancel between steps | Esc early in a turn | cancels \u003C 2s, transcript intact |\n| cancel mid-generation | Esc during a long answer | **can take 60–90s** — cooperative, only checked at step boundaries |\n| idle Esc | Esc with nothing streaming | must NOT quit silently |\n\n## Known-good baselines (Gemma-4-E4B, GPU, quiet box)\n\n| operation | time |\n|---|---|\n| trivial turn | ~20s |\n| load a skill | ~13s |\n| real `gh` triage | ~27s |\n| agent cold start | ~16–19s |\n\n**If everything is 2–5× slower, suspect the harness before the product** — a stray eval\nor a second TUI, per the two machine rules above. Confirm the backend is actually up\nand on the right port:\n\n```bash\ncurl -s http:\u002F\u002F127.0.0.1:13305\u002Fapi\u002Fv1\u002Fhealth    # note: 13305, NOT 8000\n```\n\nLemonade has died on its own mid-session more than once. Check it before blaming a\nchange. Restarting it is **not** `lemonade-server serve` — that binary may not exist,\nand `lemonade.exe` is the *client* and rejects `serve`:\n\n```bash\npowershell.exe -NoProfile -Command \"Start-Process 'C:\\Users\\\u003Cyou>\\AppData\\Local\\lemonade_server\\bin\\LemonadeServer.exe' -WindowStyle Minimized\"\ncurl -s -X POST http:\u002F\u002F127.0.0.1:13305\u002Fapi\u002Fv1\u002Fload -H \"Content-Type: application\u002Fjson\" \\\n     -d '{\"model_name\":\"Gemma-4-E4B-it-GGUF\"}'      # pre-warm, or turn 1 pays ~3.5 min\n```\n\nA cold first turn is **~240s** (ttft ~228s) while both the LLM and the embedding model\nload; warm turns are ~6s. Pre-warm before timing anything, or the first number is a\nmodel load and you will report it as agent latency.\n\n## When a shell command hangs for exactly 180s\n\nTwo real bugs produced this, both fixed — but the diagnostic pattern generalises to any\ntool the agent shells out to.\n\n1. **Check for orphans.** `Get-CimInstance Win32_Process -Filter \"Name='gh.exe'\"`. A\n   live child whose parent is gone means `subprocess.run` killed the `cmd.exe` at its\n   inner timeout, then blocked forever in a second `communicate()` on pipes the\n   grandchild still holds. The 180s you see is the OUTER tool timeout.\n2. **Compare against the same command from a shell.** 0.07s outside vs a hang inside\n   means the environment the agent spawns into, not the command.\n3. **Suspect stdin first.** `capture_output` redirects stdout\u002Fstderr and leaves stdin\n   inherited — the agent's stdin is the TUI's pipe, open and never written. Anything\n   that reads or probes it waits on input that cannot arrive.\n4. **Then suspect the decode.** Bare `text=True` decodes with the OS locale codec\n   (cp1252 on Windows) *inside subprocess's reader thread*. One unmappable byte kills\n   that thread and `run()` returns **returncode 0 with empty stdout** — a success with\n   the output silently discarded. `gh issue list` on amd\u002Fgaia hits it, because issue\n   #2962's title contains \"⚠️\".\n\nBoth failures lie in the same direction: the agent reports a confident, wrong\nexplanation (\"a networking bottleneck\", \"no issues found\") rather than an error. Always\ndiff the agent's answer against `gh` directly.\n\n## Re-run the ladder after every merge — a merge can kill Enter\n\nMerging four feature branches took the ladder from 7\u002F7 to **0\u002F7**, and nothing\nanywhere reported an error. Every rung just timed out at 20s, because Enter had\nstopped submitting: one branch added a heuristic treating an Enter within 50ms of\nthe last keystroke as a pasted line break, and the control API delivers a line\nand its Enter back to back.\n\nTwo lessons, both cheap to act on:\n\n- **The ladder is the merge gate, not just the feature gate.** `go test .\u002F...`\n  passed the whole time — the broken behaviour was covered by a test asserting\n  the *new* intent. Only driving the real TUI caught it.\n- **A timing heuristic on input will find your harness.** Anything of the form\n  \"too fast to be a person\" is also true of the control API, and of a fast\n  typist. Treat a change that infers intent from keystroke timing as a red flag.\n\nThe signature to recognise: `tui_driver.py ladder` returns rungs whose captured\noutput is the *startup banner* rather than an answer, each taking exactly the\nidle-wait timeout. That means no turn ever started — look at input handling, not\nat the agent.\n\n## Watch out for a launcher that steals focus\n\n`Start-Process -WindowStyle Normal` puts the new window in front, so keystrokes\nthe user is typing elsewhere land in the TUI. That produced turns arriving as\n`▶ You: life Load the xlsx skill` and `▶ You: tCan you reliably…` — fragments of\nthe user's own typing, which read convincingly as an input bug in the product.\n\nIt reproduced 2 of 4 launches and then 0 of 3. If you see junk prepended to a\nturn, check whether a human was typing before you write it up. A phantom bug\nfiled against the product costs more than the hour spent disproving it.\n\n## Reporting\n\nPer [CLAUDE.md → How You Communicate](..\u002F..\u002F..\u002FCLAUDE.md#how-you-communicate): open with\nwhether it works, in one plain sentence, then captures and detail beneath.\n\nSpecific to this skill:\n\n- **Paste real captured text, never paraphrase.** A paraphrased frame hides the bug.\n- **State every rung you did not reach.** An unstated gap reads as a pass.\n- **Verify before attributing a bug to your change.** The tree often has other agents'\n  uncommitted work — `git status` \u002F `git diff` first. A \"broken build\" once turned out\n  to be a stale test cache; a suspected regression turned out to be a rendering-only\n  diff.\n- **Correct yourself out loud.** A wrong bug report costs more than a missing one.\n","# Testing the flagship GAIA agent through the TUI\n\nCompanion to `driving-the-tui` (which covers the control API mechanics). This one\ncovers **what to test and how to know it actually worked** — written from a full\nsession of driving the live agent, including every trap that cost an hour.\n\n## The ladder tests capabilities. Users have conversations.\n\nRead this before trusting a green ladder. Every rung below is a **self-contained\nprompt** — it names its repo, its numbers, its subject. So the ladder ran green\nfor a whole day while the TUI agent had **no conversation history at all**: every\nturn reached the model as system prompt + current question, nothing else. The\nbug surfaced the moment a real user typed a follow-up:\n\n> **triage amd\u002Fgaia** → three issues listed\n> **\"cool, can you print issue 2975?\"** → *\"I need to know which repository it belongs to\"*\n\nThree things hid it, and all three are worth knowing:\n\n1. **L3 looks like proof of continuity and is not.** \"What is my favourite\n   colour?\" passes across turns via the persistent *memory store*, a different\n   mechanism entirely. Its green tick actively masked the gap.\n2. **The stdio test asserting turn-to-turn state passes for the wrong reason.**\n   `test_the_agent_survives_between_turns` asserts OBJECT state\n   (`agent.loaded_skills`) survives — it does, the agent is the same object.\n   History is not accumulated object state; nobody was appending to it.\n3. **The HTTP surface populates history, so any test at that layer passes.** The\n   defect was transport-specific, and only the TUI used the broken transport.\n\n**So always finish with a follow-up that cannot stand alone.** Use a pronoun or\na bare number and give it nothing else:\n\n| after | ask | pass condition |\n|---|---|---|\n| a triage of amd\u002Fgaia | `cool, can you print issue 2975?` | prints it, never asks which repo |\n| `My favourite fruit is mango. Just acknowledge.` | `What fruit did I just mention? One word.` | `Mango` |\n\nThe second pair is the cheap canary — two short turns, no tools, no network. Run\nit first. If it answers \"no fruit has been mentioned\", stop: history is broken\nand every other result is measuring an agent with amnesia.\n\n## The one rule\n\n**A plausible answer is not a passing test.** The flagship's worst failure mode is\nanswering confidently when its tools are missing. It once produced a polished\n\"here's how I'd triage that\" paragraph while having *zero* GitHub tools registered.\nEvery capability claim must be checked against ground truth from outside the agent:\n\n```bash\n# agent said: #2958, #2955, #2953\ngh issue list --repo amd\u002Fgaia --limit 3 --json number,title   # must match exactly\n```\n\nIf you cannot independently verify a result, report it as unverified. Say so plainly.\n\n## Two rules about the machine — ignore these and you will measure noise\n\nBoth of these cost real hours in the session this skill came from, and both produce\nsymptoms that look like product bugs.\n\n### 1. Exactly ONE TUI at a time\n\nKill every existing instance before launching, and never leave a second one running:\n\n```bash\n# Windows\nfor p in $(tasklist \u002F\u002FFI \"IMAGENAME eq gaia-drive.exe\" \u002F\u002FFO CSV \u002F\u002FNH | cut -d, -f2 | tr -d '\"'); do\n  taskkill \u002F\u002FPID $p \u002F\u002FF\ndone\n```\n\nTwo TUIs is not merely wasteful:\n\n- They **overwrite each other's `~\u002F.gaia\u002Ftui\u002Fcontrol.json`** — same pid\u002Fport\u002Ftoken file —\n  so your driver silently attaches to whichever launched last. A query you never sent\n  appears in your transcript; keys you send land in someone else's session. This happened\n  in both directions in one day, and each time looked like a TUI bug.\n- Each spawns its own agent child, so they **compete for the model** and every turn slows.\n- The user is memory-constrained; two instances is a real cost, not a rounding error.\n\n`GAIA_TUI_HOME` isolates the *discovery file* so concurrent agents stop hijacking each\nother — it does **not** remove the model contention. One TUI, always.\n\n### 2. Never run an eval while testing the agent\n\n`gaia eval agent` and the TUI both drive the **single-slot** Lemonade backend. Running\nthem together makes every turn 2-5x slower and the slowdown reads as \"the agent is\nextremely slow\" — a product complaint caused entirely by the harness. Measured on the\nsame box, same build:\n\n| | with an eval running | box quiet |\n|---|---|---|\n| load a skill | 74s | **13.5s** |\n| real `gh` triage | (unusable) | **27s** |\n\nWorse, CLAUDE.md warns that concurrent runs race the model slot and can produce\nchaotic, meaningless failures (`BLOCKED_BY_ARCHITECTURE`, `INFRA_ERROR`, ctx-size\nerrors) that get mistaken for regressions.\n\n**Check before you start, and check again when things feel slow:**\n\n```bash\npowershell.exe -NoProfile -Command \"Get-CimInstance Win32_Process -Filter \\\"Name='python.exe'\\\" | Select-Object -ExpandProperty CommandLine\" | grep -iE \"eval agent|ui.server\"\n```\n\nEvals are a **pre-merge gate, not a testing-session activity**. When a change requires\none (CLAUDE.md lists the surfaces — prompts, tool schemas, tool-call parsing), record it\nas outstanding and run it when the box is quiet and nobody is driving the TUI. Never run\ntwo evals at once, either.\n\n### 3. Give your session a private agent log\n\nEvery agent appends to `~\u002F.gaia\u002Flogs\u002Fgaia-agent.log`. When anything else is running an\nagent — a parallel task, a second harness — the file interleaves, and **a neighbour's\ntool timeout reads as your session's failure**. Set `GAIA_AGENT_LOG` in the launcher:\n\n```powershell\n$env:GAIA_AGENT_LOG = 'C:\\...\\gaia-tui-test\\logs\\agent-session.log'\n```\n\nLines also carry `pid:NNNN`, so the shared default is still attributable when you forget.\nThis is not hypothetical: a 180s `run_shell_command` timeout was nearly filed as a shell\nbug here before the record turned out to belong to another process. Confirm the pid in\nthe log matches the `gaia-agent.exe` your TUI spawned before believing anything.\n\n## Which surface you are testing\n\nOne binary, two surfaces — always state which:\n\n| command | surface |\n|---|---|\n| `gaia-drive.exe` (bare) | Agent **Hub** browser — install\u002Flaunch agents |\n| `gaia-drive.exe run gaia` | **flagship chat view** — where skills load |\n\nLaunching bare and typing lands your text in the Hub's filter box, not a chat\ncomposer. That produced a fake bug report once.\n\n## Setup\n\n### 1. Build\n\n```bash\ncd tui && go build -o bin\u002Fgaia-drive.exe .\u002Fcmd\u002Fgaia\n```\n\nDo not launch while a build is writing the binary — the file lock makes the launch\nsilently fail. Build, *then* launch.\n\nGo must be on PATH (`export PATH=\"\u002Fc\u002FProgram Files\u002FGo\u002Fbin:$PATH\"` on Windows). Note that\n`gofmt -l` flags nearly every file on a Windows checkout — that is CRLF, not real\nformatting drift. Check `gofmt -d \u003Cfile> | cat -A` for `^M` before you \"fix\" anything.\n\n### 1b. The agent binary the TUI spawns\n\nThe TUI launches `gaia-agent` **from PATH** (`catalog.go`, `BinaryPath`). A source\ncheckout does not have it — the console script only exists once the hub package is\ninstalled:\n\n```bash\nuv pip install --python \u003Cvenv>\u002FScripts\u002Fpython.exe \\\n  -e hub\u002Fagents\u002Fgaia\u002Fpython -e hub\u002Fagents\u002Fchat\u002Fpython --no-deps\n```\n\n`--no-deps` is mandatory: without it pip pulls `amd-gaia` from PyPI and the agent\nimports THAT instead of your worktree. Put the venv's `Scripts\u002F` on PATH in the launcher\nor the TUI cannot find `gaia-agent`.\n\n### 1c. The flagship ships with NO skills\n\n`gaia_agent\u002Fskills\u002F` holds only `.gitkeep`, nothing stages `hub\u002Fskills\u002F` into it, and\nevery `skills:` \u002F `skill_sets:` \u002F `default_skill_set:` key in `gaia-agent.yaml` is\ncommented out. So **L5–L7 cannot pass on a clean checkout** — not because the agent is\nbroken, but because it has nothing to load.\n\nInstall the one you are testing, and copy it rather than `gaia skill import` — import\nre-stamps the tier `experimental`, which is not what ships:\n\n```bash\ncp -r hub\u002Fskills\u002Fgithub-triage ~\u002F.gaia\u002Fskills\u002F\ngaia skill list      # expect: github-triage  2.1.0  community  user\n```\n\nAlso note `gh` is refused until the skill that grants it is **loaded** — the grant is\n`shell:execute:gh`. Asking for `gh` first produces a confident refusal that looks like a\nmissing-tool bug and is not one.\n\n### 2. Launcher (adapt paths, keep the structure)\n\nCreate `launch-tui.ps1`. Every line matters:\n\n```powershell\n$root = '\u003CABSOLUTE PATH TO YOUR WORKTREE>'\n$env:PYTHONPATH = \"$root\\src;$root\\hub\\agents\\chat\\python;$root\\hub\\agents\\gaia\\python\"\n$env:GAIA_TUI_HOME = '\u003CA PRIVATE TEMP DIR — NOT ~\u002F.gaia\u002Ftui>'\n$env:PYTHONIOENCODING = 'utf-8'\n$inner = \"cd \u002Fd `\"$root`\" && tui\\bin\\gaia-drive.exe run gaia --control-port 8817\"\nStart-Process -FilePath 'cmd.exe' -ArgumentList '\u002Fk', $inner -WindowStyle Normal\n```\n\nLaunch with:\n\n```bash\npowershell.exe -NoProfile -ExecutionPolicy Bypass -File \u003Cpath>\\launch-tui.ps1\n```\n\n**`PYTHONPATH` is mandatory.** An editable install can resolve `gaia` to a *different*\nworktree, and the agent then dies at import with\n`ModuleNotFoundError: No module named 'gaia.ui.sse_translation'`. Verify:\n\n```bash\npython -c \"import gaia; print(gaia.__file__)\"   # must be YOUR worktree\n```\n\n**`GAIA_TUI_HOME` is mandatory when other agents may be running** — see machine rule 1\nabove. It gives you a private `control.json` (`tui\u002Finternal\u002Fcontrol\u002Fpaths.go`) instead\nof the shared `~\u002F.gaia\u002Ftui\u002Fcontrol.json` that agents hijack from each other. It does not\nexcuse running two TUIs.\n\n**Do not use `cmd \u002F\u002Fc start` from Git Bash** — MSYS mangles the arguments and no window\nopens. PowerShell `Start-Process` with a `.ps1` avoids the quoting entirely.\n\n### 3. Driver\n\nUse `util\u002Ftui_driver.py` from the repo root (repoint `CJ` at your `GAIA_TUI_HOME`).\n\n**Why one process:** process spawn costs 0.7–2.0s on a Windows\u002FMSYS box with AV —\n`curl --version` alone measured 2051 ms. A bash driver spawning bash + 2 × python +\ncurl per command cost ~4.8s per call. The control API itself is **3 ms**. Batch every\nstep of a test into ONE python process:\n\n```\n5 control calls in one process: 15 ms total\n```\n\n## Driving correctly\n\n- **Wait for `streaming:true` BEFORE waiting for `streaming:false`.** Otherwise the\n  idle-wait matches the *pre-turn* idle state and returns in 0.0s, and you will report\n  a phantom instant answer.\n- **Press `end` before every capture** or you capture stale scrollback and read an old\n  turn as the current one.\n- **Never `sleep`** to wait out a turn — poll status or use `\u002Fcontrol\u002Fv1\u002Fwait`.\n- **Set `PYTHONIOENCODING=utf-8`** or captures die on `cp1252` for the spinner glyphs.\n- **Do not resize larger than the real terminal** — the control API returns 409\n  `resize_exceeds_terminal`; a bigger size shreds the frame.\n\n## The capability ladder\n\nRun in order. Stop and diagnose at the first failure — later rungs depend on earlier.\n\n| # | prompt | pass condition | ref time |\n|---|---|---|---|\n| L1 | `What is 17 times 23? Answer with just the number.` | `391` | ~20s |\n| L2 | `Remember that my favourite colour is teal. Just acknowledge.` | acknowledges | ~22s |\n| L3 | `What is my favourite colour? One word.` | `Teal` — memory crosses turns | ~22s |\n| L4 | `Use your shell tool to run pwd and tell me the directory.` | runs, or prompts and runs on approval | varies |\n| L5 | `Load the github-triage skill.` | loads | ~14s |\n| L6 | `Which skills do you currently have loaded? Name them.` | names it — **skill survives the turn** | ~12s |\n| L7 | `Using the github-triage skill, list the 3 most recently opened issues in amd\u002Fgaia.` | real numbers+titles matching `gh` | ~27s |\n\nL6 is the regression canary for a bug where the skill vanished between turns.\nL7 is the real test: it fails *silently* by producing a confident non-answer.\n\n### Diagnosing L7 failure\n\nIf it deflects (\"first configure the connector…\") it has no tools. Check, in order:\n\n```bash\n# 1. Does it think it has tools?  (a NONE here is the smoking gun)\n#    ask in the TUI: \"List the exact names of every tool you can call that talks\n#    to GitHub. If you have none, say NONE.\"\n\n# 2. What did the loader actually register?\ngrep -E \"Loaded skill|registered_tools\" ~\u002F.gaia\u002Flogs\u002Fgaia-agent.log | tail -5\n#    \"0 tool(s), 1 connector requirement(s)\" + 'registered_tools': [] == no tools\n\n# 3. Is the skill the version you think?\ngrep -E \"version:|shell:execute|mcp:connect\" ~\u002F.gaia\u002Fskills\u002Fgithub-triage\u002FSKILL.md\n```\n\n**The installed copy at `~\u002F.gaia\u002Fskills\u002F\u003Cname>\u002FSKILL.md` is what the agent reads**, not\nthe repo copy. After editing the repo skill, sync it or the agent runs the old one.\n\n## Verifying the permission gate\n\n**The `gh` grant has three tiers, and the bug you are hunting is a command in the\nwrong one.** Run the gate check — instant, no LLM, no TUI:\n\n```bash\npython util\u002Ftui_driver.py gate      # prints each case, its tier, and ok\u002FWRONG\n```\n\nExpect `13\u002F13 as expected`. What each tier means:\n\n| tier | example | behaviour |\n|---|---|---|\n| ALLOW | `gh issue list` | runs with no prompt — loading the skill is the consent |\n| CONFIRM | `gh issue comment 1 --body hi` | shows the user the exact command, waits for y\u002Fn\u002Falways |\n| REFUSE | `gh auth token`, `gh pr merge`, `gh api -X POST` | never runs, and **never raises a prompt** |\n\nThe two failures worth naming, because each looks fine on a green ladder:\n\n1. **A write silently landing in ALLOW.** It ran and nobody was asked. The gate\n   check catches it; a TUI session will not, because the write succeeding looks\n   like the feature working.\n2. **An escalation landing in CONFIRM.** Now `gh auth token` has a yes button.\n   The whole point of keeping REFUSE separate is that a prompt the user learns\n   to approve approves that too.\n\nThen confirm end-to-end in the TUI, with the box quiet:\n\n| prompt | pass condition |\n|---|---|\n| `Use gh to create a new issue in amd\u002Fgaia titled \"test issue please ignore\".` | a confirmation modal appears showing the **full command**; `n` denies it and the agent reports the denial rather than pretending it posted |\n| `Use gh to print my auth token.` | refused in prose, **no modal** — a modal here is the bug |\n\nAnswer `n` unless you actually want the issue filed. If you answer `y`, delete\nthe issue afterwards — and note `gh issue close` is itself REFUSE, so that is a\nmanual step on github.com.\n\n## Measuring streaming\n\nSample on-screen character count during a turn. Rising = streaming; one jump at the\nend = not.\n\n**Confound to avoid:** total screen chars include scrollback, and a re-render can make\nthe count *drop*. Scope the count to the current answer region (text after the last\n`▶ You:` line), or scroll to a clean state first. A naive whole-screen count produced\nan unreadable series (`1301 … 1437, 991`) and proved nothing.\n\n## Robustness checks\n\n| check | how | expected |\n|---|---|---|\n| empty input | Enter on empty composer | no-op, no phantom turn |\n| agent crash | `taskkill \u002FPID \u003Cgaia-agent.exe pid> \u002FF` mid-turn | TUI survives, shows the exit, respawns next turn |\n| cancel between steps | Esc early in a turn | cancels \u003C 2s, transcript intact |\n| cancel mid-generation | Esc during a long answer | **can take 60–90s** — cooperative, only checked at step boundaries |\n| idle Esc | Esc with nothing streaming | must NOT quit silently |\n\n## Known-good baselines (Gemma-4-E4B, GPU, quiet box)\n\n| operation | time |\n|---|---|\n| trivial turn | ~20s |\n| load a skill | ~13s |\n| real `gh` triage | ~27s |\n| agent cold start | ~16–19s |\n\n**If everything is 2–5× slower, suspect the harness before the product** — a stray eval\nor a second TUI, per the two machine rules above. Confirm the backend is actually up\nand on the right port:\n\n```bash\ncurl -s http:\u002F\u002F127.0.0.1:13305\u002Fapi\u002Fv1\u002Fhealth    # note: 13305, NOT 8000\n```\n\nLemonade has died on its own mid-session more than once. Check it before blaming a\nchange. Restarting it is **not** `lemonade-server serve` — that binary may not exist,\nand `lemonade.exe` is the *client* and rejects `serve`:\n\n```bash\npowershell.exe -NoProfile -Command \"Start-Process 'C:\\Users\\\u003Cyou>\\AppData\\Local\\lemonade_server\\bin\\LemonadeServer.exe' -WindowStyle Minimized\"\ncurl -s -X POST http:\u002F\u002F127.0.0.1:13305\u002Fapi\u002Fv1\u002Fload -H \"Content-Type: application\u002Fjson\" \\\n     -d '{\"model_name\":\"Gemma-4-E4B-it-GGUF\"}'      # pre-warm, or turn 1 pays ~3.5 min\n```\n\nA cold first turn is **~240s** (ttft ~228s) while both the LLM and the embedding model\nload; warm turns are ~6s. Pre-warm before timing anything, or the first number is a\nmodel load and you will report it as agent latency.\n\n## When a shell command hangs for exactly 180s\n\nTwo real bugs produced this, both fixed — but the diagnostic pattern generalises to any\ntool the agent shells out to.\n\n1. **Check for orphans.** `Get-CimInstance Win32_Process -Filter \"Name='gh.exe'\"`. A\n   live child whose parent is gone means `subprocess.run` killed the `cmd.exe` at its\n   inner timeout, then blocked forever in a second `communicate()` on pipes the\n   grandchild still holds. The 180s you see is the OUTER tool timeout.\n2. **Compare against the same command from a shell.** 0.07s outside vs a hang inside\n   means the environment the agent spawns into, not the command.\n3. **Suspect stdin first.** `capture_output` redirects stdout\u002Fstderr and leaves stdin\n   inherited — the agent's stdin is the TUI's pipe, open and never written. Anything\n   that reads or probes it waits on input that cannot arrive.\n4. **Then suspect the decode.** Bare `text=True` decodes with the OS locale codec\n   (cp1252 on Windows) *inside subprocess's reader thread*. One unmappable byte kills\n   that thread and `run()` returns **returncode 0 with empty stdout** — a success with\n   the output silently discarded. `gh issue list` on amd\u002Fgaia hits it, because issue\n   #2962's title contains \"⚠️\".\n\nBoth failures lie in the same direction: the agent reports a confident, wrong\nexplanation (\"a networking bottleneck\", \"no issues found\") rather than an error. Always\ndiff the agent's answer against `gh` directly.\n\n## Re-run the ladder after every merge — a merge can kill Enter\n\nMerging four feature branches took the ladder from 7\u002F7 to **0\u002F7**, and nothing\nanywhere reported an error. Every rung just timed out at 20s, because Enter had\nstopped submitting: one branch added a heuristic treating an Enter within 50ms of\nthe last keystroke as a pasted line break, and the control API delivers a line\nand its Enter back to back.\n\nTwo lessons, both cheap to act on:\n\n- **The ladder is the merge gate, not just the feature gate.** `go test .\u002F...`\n  passed the whole time — the broken behaviour was covered by a test asserting\n  the *new* intent. Only driving the real TUI caught it.\n- **A timing heuristic on input will find your harness.** Anything of the form\n  \"too fast to be a person\" is also true of the control API, and of a fast\n  typist. Treat a change that infers intent from keystroke timing as a red flag.\n\nThe signature to recognise: `tui_driver.py ladder` returns rungs whose captured\noutput is the *startup banner* rather than an answer, each taking exactly the\nidle-wait timeout. That means no turn ever started — look at input handling, not\nat the agent.\n\n## Watch out for a launcher that steals focus\n\n`Start-Process -WindowStyle Normal` puts the new window in front, so keystrokes\nthe user is typing elsewhere land in the TUI. That produced turns arriving as\n`▶ You: life Load the xlsx skill` and `▶ You: tCan you reliably…` — fragments of\nthe user's own typing, which read convincingly as an input bug in the product.\n\nIt reproduced 2 of 4 launches and then 0 of 3. If you see junk prepended to a\nturn, check whether a human was typing before you write it up. A phantom bug\nfiled against the product costs more than the hour spent disproving it.\n\n## Reporting\n\nPer [CLAUDE.md → How You Communicate](..\u002F..\u002F..\u002FCLAUDE.md#how-you-communicate): open with\nwhether it works, in one plain sentence, then captures and detail beneath.\n\nSpecific to this skill:\n\n- **Paste real captured text, never paraphrase.** A paraphrased frame hides the bug.\n- **State every rung you did not reach.** An unstated gap reads as a pass.\n- **Verify before attributing a bug to your change.** The tree often has other agents'\n  uncommitted work — `git status` \u002F `git diff` first. A \"broken build\" once turned out\n  to be a stale test cache; a suspected regression turned out to be a rendering-only\n  diff.\n- **Correct yourself out loud.** A wrong bug report costs more than a missing one.\n",{"name":5,"description":7},"main","11039b64e036dca33313350b4cd1d6c2a791eb15",".claude\u002Fskills\u002Ftesting-the-gaia-agent","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia","https:\u002F\u002Fgithub.com\u002Fsecure-workflows","2026-10-26 10:48:34",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add secure-workflows\u002Fgaia --skill testing-the-gaia-agent",{"tool":35,"command":36},"bunx","bunx skills add secure-workflows\u002Fgaia --skill testing-the-gaia-agent",{"tool":38,"command":39},"pnpm","pnpm dlx skills add secure-workflows\u002Fgaia --skill testing-the-gaia-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftesting-the-gaia-agent\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7BYXGPPQJGVVD0DPS2WK3FS","web-search","Search the web via the Brave Search API. Use when the user asks about current events or external facts.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fweb-search\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7BYXDF2TM5JPMEQKMMHW0VJ","triage-support-ticket","Triage an inbound support ticket end to end. Use when the user pastes a support ticket or asks to triage one.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Ftriage-support-ticket\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7BYXAHWNBMJ8Y1Q51EZ53K7","tool-mismatch","Declares a tool its tools.py never registers. Used to prove validation fails loudly with no partial load.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Ftool-mismatch\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7BYX6CZ63AM6HB90PPNXKF7","report-archive","Archive a generated report to the user's reports folder and register it with the team's report index. Use when the user asks to file, archive, or publish a finished report.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Freport-archive\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7BYX4PM4HGNZ0QBZ54BTG1N","local-capability","Writes files on the local workspace. Used to prove Phase 1 refuses local-capability permissions.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Flocal-capability\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7BYX1KVPKHHZ5Z3R3BB0QQA","incident-review","Run an incident postmortem. Stands in for a Claude Code skill library imported read-only from .claude\u002Fskills\u002F.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fincident-review\u002FSKILL.md",[],[]]