Repository navigation
feat(skills): SKILL.md loader, validator, discovery + gaia skill CLI core - #2669
Merged
Merged
Conversation
…core Nothing in GAIA could read a SKILL.md before this. Agents gain capability only by shipping new Python, so a user who wants a new one has no path short of forking the agent — and the 800K+ skills already published to community registries were unreachable. Now a folder with a SKILL.md drops into ~/.gaia/skills/ and any agent can load it at runtime, and an existing Claude Code library under .claude/skills/ works unchanged. Phase 1 of #1019, deliberately scoped to keep a sandbox out of it: a skill may add instructions and reach connector-backed services, and a skill declaring a local-capability permission (filesystem/shell/database/desktop/env) is refused with an actionable error rather than loaded without enforcement. - gaia.skills.format: frontmatter + body -> Skill; round-trip is identity; unknown top-level keys and foreign metadata.<vendor> namespaces survive a write. compatibility/allowed-tools parse but are ignored — never a permission mechanism. - gaia.skills.manager: three v1 roots (agent-bundled -> ~/.gaia/skills -> read-only .claude/skills), first-wins precedence with the shadowed copy kept visible, progressive disclosure, FileWatcher hot-reload. - gaia.skills.loader: tools register under <skill>/<tool>; a manifest that contradicts tools.py fails loudly and restores the registry byte-for-byte. - gaia.skills.permissions: network/mcp resolve to the existing ConnectorRequirement — no second grant ledger. - Agent.load_skill/unload_skill, and gaia skill list|info|create|import|export. Closes #888
…s too The refusal only ran in Agent.load_skill, so a caller reaching for the lower-level register_skill_tools could hand a skill executable reach without passing the permission gate. Move it to the function that actually registers tools so the invariant holds at every entry point.
Five downstream issues build directly on load_skill / skill_manager / loaded_skills; the return types were inferred, not declared.
The unload test only checked the global registry. Assert on every surface the model can see — the instance snapshot and the rendered tool block — and add a reload-after-unload case so a poisoned module cache would fail. Also pin the lazily-built manager's user root at tmp_path so no test can resolve the real ~/.gaia/skills.
This was referenced Jul 30, 2026
itomek
approved these changes
Jul 30, 2026
kovtcharov-amd
approved these changes
Jul 30, 2026
kovtcharov-amd
approved these changes
Jul 31, 2026
kovtcharov
added a commit
that referenced
this pull request
Jul 31, 2026
Rebasing onto main put #2669's shipped Phase 1 next to this PR's marketplace, and both docs still carried claims neither is true of any more -- most visibly a Retractions warning listing 'gaia skill install|remove|search|publish' as greenfield, and a spec Note stating flatly that tier ceilings are not enforced. Resolved semantically rather than hunk-by-hunk, since these files merge textually clean while contradicting themselves. The load/install distinction is the one that mattered: ceilings are enforced at install, but a skill placed in a discovery root by hand never passes through install, so load_skill still gates on domain alone -- stating it as 'enforced' without that qualifier would have been a new false claim replacing the old one.
kovtcharov
added a commit
that referenced
this pull request
Jul 31, 2026
… split The rebase onto #2669 and #2628 left two things that merge textually clean and are still wrong. `envelope_budget_tokens` gained a `ctx_size` first parameter on main while this branch was adding `extra_fixed_tokens`. Every call that passed the skill cost positionally now meant "shrink the context window to 2074 tokens" — the budget came out 0 and the condenser starved the envelope entirely. All callers pass by keyword; the two parameters now coexist explicitly. `#2628` split Microsoft into `microsoft` (personal) and `microsoft_work`, so reading the account kind from `microsoft` alone would go blind the moment #2629 wires the work connector. The lookup now walks both in registry order. Docs follow the same split: the automatic `work` path is not reachable through this agent until #2629 lands, so the guide, README, and SPEC now say to pin the set rather than implying it resolves itself. skill-format's current-state table gained the symbols this PR ships — it claimed to list what exists and omitted `skills/sets.py`, `SKILL_MANIFEST`, `load_skill_set`, and `SkillSetError`.
pull Bot
pushed a commit
to bhardwajRahul/gaia
that referenced
this pull request
Jul 31, 2026
…ure (amd#2684) Two different frozen dataclasses were both named `Skill` and both reachable from `gaia.agents.base`: the synthesis pipeline's four-field LLM-output schema and the on-disk agentskills.io file contract landing in `src/gaia/skills/` (amd#2669). The split is a deliberate security boundary — the model may only derive `name`/`when_to_use`/`body`/`tools_required`, never `license`, `version`, or a security tier — so both classes stay; the synthesis one becomes `DistilledProcedure`, matching its own docstring and the `procedures` corpus it feeds. Anyone importing both no longer needs an alias, and nobody can pass the wrong one. Also adds the test `to_skill_md`'s docstring has been asserting all along: the rendered document is now round-tripped through the real `gaia.skills.format` parser + validator instead of a hand-rolled YAML check. Verified against amd#2669's branch — **it validates, no drift** (`tools_required` is a first-class `metadata.gaia` field there). The test skips until amd#2669 merges. Part of amd#2671. ## Test plan - [ ] `python -m pytest tests/unit/test_skill_synthesis.py tests/unit/test_memory_mixin.py tests/unit/test_chat_dynamic_tools.py -q` — 310+ pass, the round-trip test skips while `gaia.skills` is unmerged - [ ] After amd#2669 merges, rebase and confirm `test_renders_a_document_the_format_validator_accepts` runs and passes rather than skipping - [ ] `python -m pytest tests/unit/ -q` — no new failures vs. `origin/main` (verified: identical failure set, all pre-existing environment issues) - [ ] `python util/lint.py --all` clean - [ ] `grep -rn '\bSkill\b' src/gaia/agents/base/` returns only prose section headers, no class references
pull Bot
pushed a commit
to bhardwajRahul/gaia
that referenced
this pull request
Aug 6, 2026
amd#2695) The email agent behaved identically whether you pointed it at a personal mailbox or a work one, so its guidance had to be vague enough for both and was sharp for neither — and there was no way for *any* agent to carry more than one interchangeable capability set. It now bundles six Agent Skills and turns on one set per launch: a personal mailbox gets triage, newsletter digests, and travel itineraries; a work mailbox gets triage, meeting scheduling, action-item extraction, and escalation routing. The mailbox kind comes from the Microsoft account type recorded at connect (previously nothing anywhere recorded it), `--skill-set` pins a set explicitly, and a Gmail-only mailbox — which carries no equivalent signal — resolves the declared default rather than being assumed personal. The framework half is generic: any agent gets `skill_sets:` in its manifest and a selector hook; email is the reference consumer. **Stacked on amd#2669** (the Phase 1 skills runtime). Base retargets to `main` when that merges; needs a rebase onto `main` before merge either way. **One regression found and fixed by measuring, not reasoning.** Loading the personal set pushed a 12-message triage request to 16,602 tokens against the pinned 16,384-token window and the run died with `context_length_exceeded` — the bulk-triage condenser sized its result envelope against a fixed prompt cost that predated skills, so the skill bodies were charged twice. The envelope budget now subtracts the measured cost of whatever set is loaded, and the six bodies are trimmed to about half their original length. The same run completes at 16,106 tokens. An agent with no skills loaded gets a byte-identical budget to before. ## `skill_sets` grammar ```yaml skills: # always on, whichever set is active - mailbox-hygiene - name: incident-review # mapping form version: ">=0.1.0" # recorded, not resolved (until amd#2467) required: false # missing => logged and skipped skill_sets: # exactly ONE is active per launch personal: [inbox-triage, newsletter-digest, travel-itinerary] work: [inbox-triage, meeting-scheduling, action-item-extraction] default_skill_set: personal # required when skill_sets is non-empty ``` Resolution: explicit `--skill-set` / `skill_set=` -> the agent's `select_skill_set()` hook -> `default_skill_set`. An undeclared name raises `SkillSetError` naming the valid sets, from either the flag or the hook — it never falls back. Sets overlap (`inbox-triage` is in both, deliberately); a set may not re-declare an always-on skill. ## Test plan - [ ] `python -m pytest tests/unit/test_skill_sets.py tests/unit/connectors/test_account_type.py -q` — 63 tests: manifest parse, resolution from all four sources, unknown-set-fails-loud, only-the-selected-set-registers, `tid` -> account type for both branches via synthetic id_tokens, cold-start from `tmp_path`-scoped roots. - [ ] `python -m pytest hub/agents/email/python/tests/ -q` — 1062 pass, including the new `test_skill_sets_2466.py` (27) covering Gmail-resolves-to-default, the envelope-budget accounting, a cap on per-set prompt cost, and that the freeze stages the skills + manifest as data. - [ ] `python -m pytest tests/unit/ -q` — 2216 pass (one pre-existing PATH-only failure in `test_cli_smoke.py::test_gaia_binary_on_path`, passes with the venv `bin` on `PATH`). - [ ] `python util/lint.py --all` — all 10 checks pass. - [ ] `gaia-agent-email serve --skill-set work` starts and pins the set; `--skill-set buisness` exits naming `personal, work`. - [ ] Verify the eval on a box where the triage harness completes — see below. ## Eval status — read before merging `gaia eval benchmark` (the email triage harness, which drives `EmailTriageAgent.process_query`) reproduced and then cleared the context overflow above: 15,837 input tokens with skills disabled, 16,602 → **overflow** with skills before the budget fix, 16,106 → clean after it. That is the signal the eval was needed for, and it is what drove the fix. It did **not** produce a comparable triage-accuracy scorecard. On this machine both arms — with and without skills — end with `no triage results found in agent conversation`: Gemma-4-E4B returns its tool-choice reasoning as prose instead of emitting the call, and the local daemon broker rotates ports mid-run. Both failures reproduce identically with skills disabled, so neither is caused by this change, but it means the accuracy comparison against `tests/fixtures/email/baseline_accuracy.json` (category accuracy 0.796, tolerance 5pp) still needs a run on hardware where the harness completes. Please gate the merge on that rather than on my token-count evidence alone. Closes amd#2466 --- ## Review round An adversarial review pass found seven real defects, all fixed in `3dc9d0d0` with tests. Two were install-breaking and worth calling out: - **A pip-installed wheel could not construct the agent at all.** `package-data` globs cannot reach outside their own package, so `gaia-agent.yaml` — which lives at the package root because the hub publisher reads it there — was absent from the wheel, and the runtime raised `ManifestError` on every construction. A `build_py` hook now stages it into the package on every install path, from the single authored file (no committed second copy to drift). Verified against a real built wheel: `gaia_agent_email/gaia-agent.yaml` plus all six `SKILL.md` files are present. - **A failed mid-session set switch corrupted the agent.** Stale skills were unloaded *before* the new set loaded, so one missing skill left the agent reporting set A while carrying part of set B — with the difference untracked and therefore unloadable for the life of the instance. The switch is now all-or-nothing. Also fixed: an explicit `skill_set` was silently discarded on an agent declaring no sets (contradicting this PR's own spec text); `import_forwarded_connection` erased a recorded Microsoft `account_type`, dropping a work mailbox to the personal set; the skill cost credited back to the triage envelope used a prose estimator that under-counts real Markdown ~2×, handing the envelope budget the prompt was already using; a bare `work:` key under `skill_sets` parsed into a set that loads nothing; and `GAIA_EMAIL_SKILL_SET` was never validated, so a typo started a healthy-looking sidecar whose every session then failed. ### One pre-existing bug found, deliberately not fixed here At ~300 messages the bulk-triage result envelope is **~10,127 tokens against a 6,144 budget** — the `grouped` verdict map alone is ~9,924 tokens and `condense_triage_result` never trims it. This is **independent of this PR**: the number is identical with zero skill cost. It only bites above the shipped `DEFAULT_INBOX_SCAN_CEILING` (100), i.e. when `GAIA_EMAIL_TRIAGE_MAX_MESSAGES` is lifted — which the eval harness does. Worth its own issue; the new budget test is scoped to the shipped ceiling so it doesn't paper over it. --------- Co-authored-by: Ovtcharov <[email protected]>
kovtcharov-amd
pushed a commit
that referenced
this pull request
Aug 12, 2026
…guards (#2697) GAIA could parse and validate a `SKILL.md` after #2669, but there was nothing to actually look at — a new user running `gaia skill list` saw an empty table and a format spec. This ships ten worked skills under `skills/starter/` that install, inspect, and fork today, covering web research, RAG, scratchpad SQL, memory, a connector-bridged MCP permission, and a skill that contributes its own `@tool`. Each one is a template to copy rather than a feature to use, which is the point: the pack argues GAIA does whatever you can describe, not ten fixed things. **Four of the ten skills proposed in #893 are deliberately not here.** They describe capabilities GAIA does not have yet, and a skill that parses but cannot run is worse than a missing one: | Proposed | Blocker | |---|---| | `morning-brief` | `gaia schedule add --skill` is rejected at add time; no Gmail/Calendar/Weather connector in the catalog; TTS is not an agent tool; the Telegram adapter has no voice-note path. `daily-brief` ships the composition half. | | `voice-research` | Telegram handles photos and documents but not voice; TTS is CLI-only (`gaia talk`). | | `trading-alert` | No finance connector, and no historical price source to compute RSI from. | | `email-triage` | There is no `gmail` connector id — Gmail is a *scope* of the `google` OAuth connector. Email triage already ships as a full agent (`gaia email`); `github-triage` covers the same connector-bridged primitive. | Three more (`source-watch`, `price-watch`, `check-in`) ship rescoped to on-demand, because the scheduler cannot run skills — each says so in its own body rather than only in the guide. Scheduling is the single largest unblock. The guide carries the same table so the docs never promise more than the runtime delivers, and credits Nous Research / Hermes for the starter-pack model and agentskills.io for the format. Based on #2669 (`claudia/task-7afdc4b3`), not `main` — retarget once that merges. Separately filed #2687 for a pre-existing IPv6 bug in `WebClient` found while validating the web-facing skills; left out of this PR to keep it scope-clean. ## Test plan - [ ] `python -m pytest tests/unit/test_starter_skills.py -q` — 120 passed, 9 skipped. Iterates `skills/starter/` so a new skill is covered without a new test. - [ ] Every skill parses, validates, round-trips byte-identical, and declares only `network:*` / `mcp:connect:<id>` — `mcp:connect` resolved against the **live** connector catalog, so it cannot name a connector a user can't configure. - [ ] Every `tools_required` name is checked against tools the real mixin registrars produce (the Phase 1 loader does not check this, so a typo would otherwise ship silently). - [ ] Argument semantics are checked too, not just tool names: memory `category=` literals against `VALID_CATEGORIES`, and scratchpad SQL for the mandatory `scratch_` prefix. Both guards were confirmed to fail on the bugs they catch. - [ ] Real CLI, cold state, `HOME`/`GAIA_CONFIG_DIR` redirected into `tmp_path`: `gaia skill import skills/starter/<name>` → `gaia skill list --json` → `gaia skill info <name> --json` for all ten. - [ ] Forkability: copy `source-watch`, rename the directory + `name`, import — verified end to end. A fork that forgets to rename fails loudly. - [ ] `rss-digest/fetch_rss` run against real Atom (`github.com/amd/gaia/releases.atom`) and RSS 2.0 (`hnrss.org/frontpage`) feeds; refuses DTD-bearing feeds, loopback addresses, and unrecognized dialects instead of returning an empty digest. - [ ] `python util/lint.py --all` clean. Closes #893 --------- Co-authored-by: Ovtcharov <[email protected]>
kovtcharov-amd
pushed a commit
that referenced
this pull request
Aug 12, 2026
…ty tiers (#2692) Before this, a skill could be written but not shared: there was no way to publish one, and no way to get someone else's. Every agent that wanted a capability had to ship it itself, so the ecosystem started cold. Now `gaia skill publish ./my-skill/` puts a signed skill in the Agent Hub and `gaia skill install web-research@^1.2` pulls it into `~/.gaia/skills/` — checksum-verified, signature-verified, and lock-tracked — where **any** agent picks it up by declaring it in `gaia-agent.yaml`, including a user-authored agent GAIA doesn't ship. The security model is the point, not a wrapper around it. A skill's front matter states the tier it *wants*; its signature decides the tier it *gets*. Install computes `min(claimed, attested)`, so "no unsigned skill installs as `verified`" holds by construction rather than by a rule someone has to remember — and the trust store ships **empty with no bundled AMD key**, so out of the box nothing reaches `verified`. That is an honest floor instead of a placeholder that would make the top tier look anchored when nothing anchors it. Likewise a `verified` stamp is never treated as though a sandbox were policing the skill at run time: v1 has none, so a skill declaring a local capability (`filesystem`, `shell`, `database`, `desktop`, `env`) is refused at **every** tier. Scope B, C, and D of #2467. Scope A (the hub Worker catalog lane) shipped in #2668. ### Threads a reviewer should evaluate separately - **Publish is gated on the #2468 audit, and fails loudly without it.** The audit *engine* is #2468's and is not reimplemented here; this calls it. When it is absent and no `--audit-report` is supplied, publish **stops** — because the hub gates `community`/`verified` on that report, so a synthetic ALLOW would launder an unscanned skill straight past the gate designed to stop it. - **Any-agent consumption is a base-`Agent` hook, not per-agent glue.** Every subclass resolves its manifest's `skills:` block at construction, so portability isn't opt-in. The acceptance test uses a **non-bundled** agent written to disk and imported by path — otherwise portability would be asserted, not proven. - **`skill_sets:` is deliberately untouched.** #2466 owns that grammar; it expands into the same `SkillRequirement` values and resolves through the same path, so there is one resolver and one place enforcing conflicts. - **`cryptography` becomes a core dependency.** Signature verification is a security boundary — a build that cannot verify a signature would have to refuse every signed skill or skip the check, and neither is acceptable in a base install. ### Stacking #2669 (the Phase 1 loader this consumes) has merged, and this branch is rebased onto `main` — the diff is now only this PR's own 11 commits. One duplicate remains on purpose: `src/gaia/hub/catalog.py` is taken verbatim from #2668 for its `skill_entries` reader, because this PR cannot import a symbol that isn't on `main` yet. It merges away as a no-op once #2668 lands. Merge order is **#2668 → #2695 → #2692 → #2693**. ## Test plan - [ ] `python -m pytest tests/unit/test_skills_marketplace.py tests/unit/test_skills_install.py tests/unit/test_skills_consume.py -q` — 178 tests, all `tmp_path`-scoped; no test touches the real `~/.gaia/skills`, trust store, or catalog cache. - [ ] `python -m pytest tests/unit/test_skills_cli.py tests/unit/test_skills_format.py tests/unit/test_skills_manager.py tests/unit/test_hub_catalog.py tests/unit/test_hub_manifest.py -q` — no regression in the Phase 1 or hub surfaces. - [ ] Confirm the acceptance criteria are each covered by a named test: publish uploads a signed bundle + catalog entry (`test_publish_uploads_a_signed_bundle_and_lands_a_catalog_entry`), install lands and lock-tracks (`test_install_lands_the_skill_and_records_the_lock`), unsigned cannot be `verified` (`test_a_self_consistent_verified_claim_without_a_trusted_signature_is_downgraded`), `--allow-experimental` required (`test_experimental_requires_allow_experimental`), per-tier ceiling (`test_permission_ceiling_per_tier`, `test_ceiling_is_applied_to_the_effective_tier_not_the_claim`), non-bundled agent resolves `name@version` (`test_a_non_bundled_agent_resolves_an_installed_skill_by_name_at_version`). - [ ] Check the publish tests assert the **shape** of the multipart body — parts present, full `SKILL.md` including front matter, four-key audit JSON, single-path-segment artifact filename — rather than that a mock was called. - [ ] Drive the real CLI end-to-end against a local `file://` hub (no mocks): ```bash export GAIA_CONFIG_DIR=/tmp/skill-e2e/home GAIA_HUB_URL=file:///tmp/skill-e2e/hub gaia skill keygen gaia skill trust add /tmp/skill-e2e/home/skills/keys/publisher.pub --role publisher gaia skill publish ./my-skill/ --audit-report ./audit.json --dry-run gaia skill search "" # lists the skills lane gaia skill install my-skill@^1.0 gaia skill info my-skill # tier read back from disk cat "$GAIA_CONFIG_DIR/skills/skill-lock.json" gaia skill trust remove <key-id> && gaia skill install my-skill --force # ^ must now refuse with exit 4, and only install with --allow-experimental, # reporting the tier reduction gaia skill remove my-skill ``` - [ ] Verify publish refuses with no audit engine and no `--audit-report`: the error must name `gaia.skills.audit`, issue #2468, and `--audit-report`. - [ ] `python util/lint.py --all` clean; `pylint src/gaia/skills/` reports nothing. Closes #2467 --------- Co-authored-by: Ovtcharov <[email protected]>
kovtcharov-amd
pushed a commit
that referenced
this pull request
Aug 12, 2026
…mat (#2693) Skill authors on OpenClaw/ClawHub and Hermes had no path onto GAIA short of rewriting each `SKILL.md` by hand, which meant GAIA's catalog started empty while a large body of compatible skills sat one format away. `gaia skill migrate --from openclaw|hermes|auto` reads the foreign `metadata.<vendor>` namespace and writes a `metadata.gaia` block, so an existing library moves over largely untouched — point it at one skill or a whole ClawHub checkout. Every migrated skill lands at the `experimental` tier via the same trust reset `gaia skill import` uses, and a skill that needs a local capability GAIA cannot yet enforce is refused with the reason rather than quietly stripped of the permission to make the migration look like it worked. Validated against **26 real published ClawHub skills** (commit-pinned, licenses and digests recorded in `tests/fixtures/openclaw_skills/PROVENANCE.md`): 13 migrate cleanly, 13 are correctly refused — 10 because they shell out, 3 because they ship no frontmatter at all. **The dashboard half of #692 is deferred to #701, deliberately.** There is no skills surface in the Agent UI today — no `/api/skills` router, no panel, not even the word "skill" anywhere in `src/gaia/ui/` — and no in-flight branch adding one. Building visual import here would mean building Phase 3's surface to hang it off, and a user would import a skill into a UI that cannot list it. The migrator is UI-ready instead: `MigrationOutcome.to_dict()` is JSON-serializable and `--json` emits the full report, so the panel wires to `gaia.skills.migrate` rather than reimplementing the mapping. The plan doc's Phase 3 section now records that. Two bugs surfaced only by the real corpus, both silent-loss paths that a docs-driven implementation would have shipped: - A skill putting its OpenClaw fields directly under `metadata` (or at the top level, with no namespace key) migrated with **zero permissions** — so `1password` shelling out to `op` was refused when namespaced and silently accepted when not. Same upstream skill, opposite verdicts, the unsafe one passing. - `metadata.openclaw: "a string"` had its value dropped while the report claimed the namespace was "absent or empty". Stacked on #2669 (Phase 1) — base retargets to `main` when that merges. Closes #692 ## Test plan - [ ] `python -m pytest tests/unit/test_skills_migrate.py -q` — 64 tests: round-trip through `parse_skill_file`, vendor fields surviving under `metadata.<vendor>`, `experimental` stamped over a claimed `verified`/`community`, local-capability sources reported unmigratable rather than downgraded, and the Hermes path through the same command. - [ ] `python -m pytest tests/unit/test_skills_format.py tests/unit/test_skills_cli.py -q` — Phase 1 unaffected by the shared `reset_security_tier()` / `split_frontmatter()` extraction. - [ ] Every one of the 26 real fixtures is asserted to reach a defined verdict (parametrized), and two guard tests keep the corpus honest: ≥10 real skills present with provenance, and both verdicts still exercised. - [ ] Cold-state CLI run — nothing touches a real `~/.gaia/skills`: ```bash export GAIA_CONFIG_DIR=$(mktemp -d) gaia skill migrate tests/fixtures/openclaw_skills --from openclaw --dry-run gaia skill migrate tests/fixtures/openclaw_skills --from openclaw # exit 4: 13 refused gaia skill info linear # security tier: experimental ``` - [ ] `python util/lint.py --all` --------- Co-authored-by: Ovtcharov <[email protected]>
kovtcharov-amd
pushed a commit
that referenced
this pull request
Aug 12, 2026
…lls (#2702) **Skills are contributed by pull request, so this PR's CI check is now the contributor path itself.** Publishing was never open — the Hub authenticates against `PUBLISH_TOKENS`, a maintainer-held wrangler secret (`workers/agent-hub/src/auth.ts`), the same curation model agents already use (`publish_agents.yml` is tag-driven, with a manual approval gate). The **Skill Audit (deterministic gate)** check is therefore built to stop a merge: `BLOCK` and unparseable fail outright with no override, `REVIEW` fails until a maintainer applies `skill-audit-reviewed`, `ALLOW` passes. Contributions land in `skills/community/<name>/`, a sibling lane to #2697's `skills/starter/`. Sign-off unblocks the merge only — the verdict on record stays `REVIEW`, publishing still refuses it, and **merging is not a tier promotion**. The tier stays owned by the audit verdict plus signing, which is where the skills route deliberately diverges from the agent route (where review sets the trust level). Nothing inspected a skill before it reached users. A skill is a `SKILL.md` instruction body that gets injected into an agent's context plus optional `tools.py` that gets registered into its tool registry, so an unaudited publish path is the single biggest risk in the whole skills feature — a competing hub was flooded with 1,184 malicious skills (#647). Now every skill passes an automated gate that scans both its code and its body, emits an `ALLOW`/`REVIEW`/`BLOCK` verdict, and decides which security tier it is allowed to claim; authors run the same engine locally with `gaia skill audit ./skill/` before publishing rather than discovering a rejection. This also closes the body-injection open question that both `agent-skills` and `skill-format` had been carrying. Two things worth a reviewer's attention, because they are the parts most easily got wrong: - **The tier claim is enforced, not recorded.** The report lists the tiers its findings actually cleared, and the hub rejects a skill claiming more. `verified` never appears in that list — an automated scan cannot grant the top tier, so a spotless skill claiming it earns `REVIEW` pending the human audit. The report is also bound to the skill, version, and manifest bytes, so an ALLOW earned as `experimental` for v1.0.0 cannot be replayed to publish v1.1.0 as `verified`. - **The gate proves consistency, not trustworthiness — and says so.** The report is a publisher-supplied form part with no attestation, so the binding checks close replay and accident but not forgery. A recorded verdict is therefore stamped `attestation: "publisher-asserted"`, and the docs state plainly that this means self-consistent, never "AMD vouches for this". Making a verdict unforgeable needs signing (#1710) or the Worker running the audit itself. Analyzer design is deliberately split: intrinsically dangerous constructs become findings, while every permission-domain touch is recorded as a plain fact for the permission-truth diff. That is why a skill declaring `network:read` and calling `requests.get` earns nothing at all — a gate that cries wolf gets ignored, and then it protects nothing. > [!IMPORTANT] > **Stacked on two unmerged PRs.** This branch contains #2669 (skills loader) and #2668 (hub skills catalog lane) and must merge after both. Review `src/gaia/skills/audit/`, the `audit` additions to `src/gaia/skills/cli.py`, my additions to `workers/agent-hub/src/audit.ts`, and `.github/workflows/skill_audit.yml`. The four Worker binding checks live here rather than in #2668 at that author's request, since the digest is a byte-for-byte Python↔TypeScript contract that one author should write both sides of with shared vectors. > > The `REVIEW` quarantine lane is **out of scope** and split to #2675 by agreement — `REVIEW` currently refuses the publish, which is the honest option until a lane with maintainer sign-off exists. > [!NOTE] > **To make the gate effective, add `Skill Audit (deterministic gate)` to branch protection as a required check on `main`.** The workflow deliberately carries no `paths:` filter so it reports on every PR — a required check that never runs sits pending forever and would make every non-skill PR unmergeable. It no-ops in ~15s when no skill changed. Creating the `skill-audit-reviewed` label is the other one-time setup step; labels need repo write access, so sign-off is maintainer-only and auditable by construction. ## Test plan - [ ] `python -m pytest tests/unit/test_skills_audit_*.py -q` — 291 tests: analyzers, tier gating, verdict/report shape, CLI exit codes, cross-language digest vectors - [ ] `python -m pytest tests/unit/test_skills_audit_no_false_positives.py -q` — asserts every checked-in `.claude/skills/` skill audits to **zero** findings and clears the community tier. This is the anti-noise guard; it found two real false positives (a bare `GITHUB_TOKEN` mention read as a credential request, and `NEVER dump the environment` read as a directive rather than the security instruction it is) - [ ] `cd workers/agent-hub && npm run test && npm run typecheck` — 164 tests, including 18 that move one binding at a time and assert the publish is refused **and nothing was written to R2** - [ ] Cross-language digest agreement: `tests/unit/test_skills_audit_digest_vectors.py` and `workers/agent-hub/test/audit-digest-vectors.test.ts` assert against the same `tests/fixtures/skill_audit_digest/vectors.json` - [ ] End-to-end on a hostile skill — write a `SKILL.md` that reads `~/.aws/credentials`, hides a directive in an HTML comment, and ships a `tools.py` doing `subprocess.run(..., shell=True)` and `requests.post(url, json=dict(os.environ))`, then `gaia skill audit ./that-skill/`. Expect `BLOCK`, exit 6, and findings naming `file:line` for each - [ ] Negative: `gaia skill audit` on a clean skill → `ALLOW`, exit 0, "No findings." - [ ] `gaia skill audit ./skill/ --tier community` on a skill that only clears `experimental` → exit 5 and a `tier.not_cleared` finding naming `community` - [ ] Snippets are withheld: run the audit on a skill referencing `~/.ssh/id_rsa` and confirm the path appears nowhere in stdout without `--show-snippets` - [ ] `python -m pytest tests/unit/test_skill_audit_workflow_contract.py -q` — 17 assertions locking the gate's load-bearing settings (no paths filter, REVIEW held not warned, sign-off cannot override BLOCK/unparseable, snippets never requested by a CI invocation). Verified to bite: reintroducing a paths filter, softening REVIEW, or letting sign-off override BLOCK each fail it - [ ] Enforce-logic matrix — extract the `Enforce verdict` script and run all 8 verdict × label combinations; ALLOW passes, BLOCK/unparseable fail with or without the label, REVIEW fails unsigned and passes signed - [ ] `python util/lint.py --all` green; `python -m pytest tests/unit/ -q` (8800 pass locally; the 38 failures on my machine are missing `pip`/`cvss`, PATH, and blocked-network — all outside the files this PR touches) Closes #2468 --------- Co-authored-by: Ovtcharov <[email protected]>
pull Bot
pushed a commit
to bhardwajRahul/gaia
that referenced
this pull request
Aug 13, 2026
# GAIA v0.23.0 Release Notes GAIA v0.23.0 makes the agents easier to get, safer to run, and easier to extend. You can now browse, install, and run agents straight from the terminal with `gaia hub`, and add new capabilities to an agent as signed, auditable skills. Under the surface it's a security release: the local API and MCP bridge no longer expose themselves to the network by default, the confirmation prompt that pauses an agent before it sends mail, writes a file, or runs a command now works from the terminal and over the local API and MCP — not just inside the graphical app — and an agent can no longer quietly reach into your `~/.gaia` config or slip crafted SQL into the database agent. Connecting a Microsoft account is now an explicit Personal-or-Work/School choice with a zero-setup sign-in. **Why upgrade:** - **Get agents from the terminal** — `gaia hub` browses, installs (behind a trust prompt for unverified agents), runs, and removes agents without leaving the shell. - **Every agent asks before it acts** — the confirmation gate for sending mail, writing files, and running commands now works in the terminal, over the local API, and across MCP tools, not only in the Agent UI. - **Safer by default** — the MCP bridge binds to localhost, the local API refuses credentialed cross-origin requests from arbitrary sites, MCP servers launch without a shell, and an agent can't write into `~/.gaia` or reach the database with crafted SQL. - **Build and share skills safely** — `gaia skill` makes skills first-class: create, import, sign with trust tiers, and audit them before sharing. They're opt-in — you add the ones you want. - **Connect a Microsoft account without a secret** — Personal and Work/School are now separate connectors with device-code sign-in and no client secret required. <Note> **The email agent is beta and CLI-first this release.** It runs locally and never sends, forwards, or deletes without your confirmation — that safety gate is verified. This cycle was mostly robustness and correctness: sturdier Outlook and calendar handling, honest reporting when a scan is truncated, and a long list of fixes (see Bug Fixes). It's still early — a full inbox triage can currently time out on larger mailboxes, and autonomy is experimental and not yet wired up in the packaged sidecar. Treat its output as a draft to review, and please report what you run into. </Note> ## Breaking Changes ### `GAIA_MICROSOFT_TENANT` is gone The Microsoft connector was split into two explicit connectors — Personal and Work/School — each with its own hard-coded tenant, so the `GAIA_MICROSOFT_TENANT` environment variable no longer does anything and has been removed (PR [amd#2729](amd#2729)). If you set it to work around the old single-connector tenant guessing, drop it and pick the connector that matches your account instead (see *Microsoft accounts* below). ## What's New ### Install and run agents from the terminal — `gaia hub` Getting an agent used to mean the graphical app or a manual pip install. Now the hub is in your shell: `gaia hub list` shows the catalog, `gaia hub install <agent> --trust` installs one (the `--trust` is required for an unverified agent — it will not install silently), and `gaia hub uninstall <agent>` removes it. The install → run → uninstall round-trip works end to end against the live catalog, with the trust prompt actually enforced (PRs [amd#2484](amd#2484), [amd#2530](amd#2530), [amd#2708](amd#2708)). Try it: `gaia hub list`. ### Every agent asks before it acts — beyond the Agent UI The confirmation prompt that pauses an agent before a consequential action — sending or deleting mail, writing a file, running a shell command — used to work only inside the Agent UI; from a terminal, the local API, or an MCP tool call those actions could run unprompted. This release closes those paths: the gate now fires from a plain terminal, through the `gaia api` server, and across MCP tool calls, classifying a tool as read-only or mutating and failing closed when unsure. The agent stops and asks before the action, declining leaves nothing changed, and setting `GAIA_AUTO_APPROVE_TOOLS=1` in your environment is the explicit way to opt out (PRs [amd#2475](amd#2475), [amd#2544](amd#2544), [amd#2846](amd#2846), [amd#2854](amd#2854)). ### Safer by default — a security-focused release Several local exposures are closed this release. The MCP bridge binds to `127.0.0.1` by default instead of every interface, so it isn't reachable from other machines on your network unless you pass a bind-all host, and it can now require an `--auth-token` that is actually enforced rather than ignored. The local API server no longer echoes an arbitrary origin back with credentials allowed — a cross-origin request from a site that isn't allow-listed is refused. MCP servers are launched without going through a shell, so a server name can't smuggle shell metacharacters; an agent can no longer write into your `~/.gaia` configuration; and SQL supplied by the model is blocked from reaching the database agent's statements rather than being executed (PRs [amd#2246](amd#2246), [amd#2238](amd#2238), [amd#2344](amd#2344), [amd#2844](amd#2844), [amd#2847](amd#2847), [amd#2860](amd#2860)). ### Build and share skills — `gaia skill` A skill gives an agent a new capability from a folder with a manifest — no new Python, no forking the agent. `gaia skill create <name>` scaffolds one, `gaia skill import` adds a skill so an agent can discover it, and `gaia skill list` / `info` show what's installed and the permissions each one declares. Sharing is guarded: skills carry signatures with trust tiers — an unsigned or untrusted skill is capped at the lowest tier, and tampering is caught by checksum — a pre-publish audit rejects a skill that attempts prompt injection or `shell=True`/`eval`, and `gaia skill migrate` converts skills authored in other formats. Skills are opt-in: no agent loads them automatically yet, so you add the ones you want (PRs [amd#2669](amd#2669), [amd#2692](amd#2692), [amd#2702](amd#2702), [amd#2693](amd#2693)). Try it: `gaia skill list`. ### Microsoft accounts: Personal and Work/School, no secret required Connecting a Microsoft account is now two clear choices instead of one connector guessing your tenant. `gaia connectors list` shows Microsoft as two distinct connectors — Personal and Work/School — each with a zero-setup device-code sign-in (a code and a URL to visit) and no client secret required for a public app registration (PRs [amd#2718](amd#2718), [amd#2364](amd#2364)). ### Lemonade Server 11.5.0 This release runs against Lemonade Server 11.5.0 — the version installed by `gaia init` and pinned across CI and the installer. ## Bug Fixes A selection of the user-visible fixes this release — the full list is in the changelog below. - **Triage now paginates large inboxes and reports truncation honestly** (PR [amd#2646](amd#2646)) — no more silently dropping mail past a hidden limit. - **Thread messages come back sorted and numbered** (PR [amd#2570](amd#2570)) — "reply to 3" hits the message shown at position 3, not raw backend order. - **The inbox pre-scan stops reporting a guess as a verdict** (PR [amd#2587](amd#2587)) — an uncertain classification is surfaced as uncertain. - **An email conversation survives its turns** (PR [amd#2837](amd#2837)) — a follow-up question keeps the session context instead of starting over. - **A bare reconnect no longer guts a mailbox** (PR [amd#2733](amd#2733)) — reconnecting an account keeps its existing grants instead of wiping them. - **Restore from Trash anytime** (PR [amd#2542](amd#2542)) — undo an archive/trash without a narrow time window; the dead permanent-delete path was removed. - **A low-priority sender no longer forces a promotional label** (PR [amd#2774](amd#2774)) — sender priority stops overriding the actual content classification. - **The agent survives an OpenMP double-init** (PR [amd#2508](amd#2508)) — a mid-conversation native-library clash no longer kills the run. - **Large tool results are truncated to valid JSON** (PR [amd#2645](amd#2645)) — an oversized result no longer produces unparseable output. - **A missing model surfaces as a real 404** (PR [amd#2245](amd#2245)) — the builder names the missing model instead of a generic placeholder. - **GPU is detected on all platforms and default_device is honoured** (PR [amd#2244](amd#2244)). - **A sidecar that is alive but has stopped serving is now detected** (PR [amd#2707](amd#2707)) — a wedged agent process is caught instead of hanging. - **The model-slot lease is held across inference, not just the load** (PR [amd#2394](amd#2394)) — a second agent can't evict the model mid-generation. - **A browser that never launched is surfaced** (PR [amd#2507](amd#2507)) — a failed OAuth browser open reports an actionable error instead of hanging. - **Stop actually aborts in-flight streaming** (PR [amd#2166](amd#2166)) — the Agent UI Stop button ends generation immediately. ## Full Changelog **331 commits** since v0.22.0: <details> <summary>Expand full changelog (331 commits)</summary> - `96ce0d1e` — feat(email): recognize the third mailbox connector — Gmail, Outlook personal, Microsoft work (amd#2896) - `88ecc18e` — fix(email): scoped 'anything suspicious?' query no longer dumps the full triage report (amd#2910) - `1c75ccee` — fix(skills): reject version pins GAIA cannot read instead of matching them (amd#2928) - `29a5c364` — docs(plans): assess readiness for the generic gaia-agent (amd#2926) - `e3b28653` — fix(tui): stop cancel-then-resend from racing the daemon's session lock (amd#2912) - `b38f5e60` — fix(tui): anchor TTFT on first inference token, use real token counts (amd#2911) - `779d7b00` — fix(email): reply/draft/send actions no longer report failure after they already succeeded (amd#2908) - `f8d4610c` — ci(eval): queue eval runs instead of cancelling the pending one (amd#2921) - `611b1928` — feat(hub,skills): pre-publish security audit gate for marketplace skills (amd#2702) - `c83047b9` — feat(skills): gaia skill migrate — OpenClaw/Hermes skills to GAIA format (amd#2693) - `ca17067a` — test(skills,hub): cover the signing and lane checks amd#2668/amd#2692 shipped untested (amd#2907) - `a951567a` — fix(eval): drop the judge temperature pin the model now rejects (amd#2905) - `236f8a58` — feat(skills): gaia skill publish/install with signature-backed security tiers (amd#2692) - `d26b15da` — ci(eval): trigger the Gemma eval on the PR diff, not the push (amd#2897) - `be15258a` — fix(cpp): normalize CRLF so Windows-authored skills parse identically (amd#2906) - `84415b06` — feat(cpp): text extraction and chunking (amd#2822) - `6352f264` — fix(database): make the SQL read-only authorizer disarm on Python 3.10 (amd#2904) - `4709a728` — feat(hub,skills): publish and serve skills as a first-class hub catalog lane (amd#2668) - `245cb72e` — fix(api): refuse approval-gated tools instead of auto-approving them (amd#2854) - `e803103a` — fix(mcp): enforce --auth-token on the MCP bridge instead of ignoring it (amd#2844) - `a6dc1fa3` — fix(ci): run the Gemma-4-E4B agent eval in PowerShell on its Windows pool (amd#2773) - `75b61f4f` — feat(cpp): SKILL.md format parser and validation (amd#2824) - `b89c6414` — feat(cpp): gaia::HttpClient — a general HTTP client abstraction (amd#2809) - `5e6b1d43` — fix(security): launch MCP servers without a shell, protect ~/.gaia from agent writes (amd#2847) - `768be2e2` — feat(skills): ship a ten-skill starter pack with a guide and honesty guards (amd#2697) - `340bf2c2` — feat(cpp): interactive TUI — event loop, streaming render, modals (amd#2825) - `acaad161` — feat(cpp): native OpenAI tool calling and conversational response mode (amd#2821) - `23ae5d63` — feat(cpp): SQLite integration and gaia::Database (amd#2816) - `4f2a6686` — feat(cpp): gaia::VectorIndex — flat vector index with persistence (amd#2807) - `b1a7e8df` — fix(email): ship with Agent Skills off until the eval gate covers them (amd#2848) - `34c26577` — ci(webui): run the Agent UI Vitest job on Node 22 so the suite executes (amd#2898) - `20036474` — docs: escape MDX-breaking literals so Mintlify validation passes (amd#2903) - `07b0858e` — ci(tui): run on stacked PRs, add -race, lint, and a per-OS test matrix (amd#2696) - `e19d46be` — feat(cpp): harden the coding toolbelt — stale-write rejection, ignore-aware search, persistent shell (amd#2823) - `7621b223` — ci(claude): move every Claude workflow to Opus 5 and run the audits nightly (amd#2859) - `d086faa4` — fix(claude): correct the agent/skill prompts and make plain language the default (amd#2862) - `990d19ff` — fix(cpp): gate MCP tools behind user confirmation in the C++ SDK (amd#2851) - `878d473f` — fix(mcp): gate MCP write tools behind the user confirmation prompt (amd#2846) - `c2c68064` — fix(security): stop LLM-supplied SQL reaching DatabaseAgent statements (CWE-89) (amd#2860) - `e936d3d9` — docs(release): rebuild v0.23.0 notes to hardware-verified features only - `be03c7c8` — fix(init): stop reporting success gaia init did not deliver (amd#2889) - `75804a15` — docs(dev): require --extra-index-url for every uv pip install on Linux (amd#2878) - `4a24d663` — ci(email): run the triage eval on PRs that touch the email agent (amd#2849) - `c3d9ec11` — fix(code): route orchestrated tool calls through the confirmation gate (amd#2853) - `c59e5d8a` — fix(hub): stop the terminal hub publishing against a core that cannot serve it (amd#2712) - `04f18294` — chore(deps-dev): bump the agent-ui-dependencies group in /src/gaia/apps/webui with 6 updates (amd#2750) - `ce4fcbf3` — fix(web): bracket pinned IPv6 addresses in URLs (amd#2739) - `e7e93287` — fix(installer): install the terminal hub on macOS and Windows (amd#2708) - `3cda9f77` — feat(cpp): MCP server registry — resolve server ids from mcp.json (amd#2820) - `c09764da` — fix(ci): validate the STX CMake cache instead of trusting bin/cmake.exe (amd#2818) - `616014d7` — docs(plans): scope C++ framework parity for domain-specific agents (amd#2806) - `f6433039` — ci(security): audit allowlist soundness + add PSIRT/CVSS triage skill (amd#2752) - `5c9f2b60` — chore(deps): bump the github-actions group with 2 updates (amd#2751) - `c103f6cd` — feat(discovery): real macOS and Linux branches for day-zero scanners (amd#1956) (amd#2747) - `e7e362e1` — chore(deps-dev): update mcp requirement from \<2.0,>=1.1.0 to >=1.1.0,\<3.0 in the python-dependencies group (amd#2749) - `ca9e5461` — chore(deps): bump the root-npm-dependencies group with 2 updates (amd#2748) - `f62ca240` — fix(website): unbreak the Railway deploy, red since July 31 (amd#2855) - `88d130ec` — feat(email): render the triage list from the scan, not from the model (amd#2858) - `bf9eb183` — ci(windows): pin ffmpeg version to drop the gyan.dev dependency (amd#2852) - `c531ca69` — fix(email): a conversation now survives its turns — session_id on /query (amd#2837) - `bcde95ee` — fix(email-agent): stop meeting/invite answers from inventing what tools never said (amd#2833) - `162274a5` — fix(tui): 'triage my inbox' draws its card under the question again (amd#2845) - `bbf69fd6` — feat(email,skills): bundled skills + account-keyed skill-set selection (amd#2695) - `abed9f1c` — fix(security): close find -exec / write side-doors in shell command whitelist (CWE-184) (amd#2740) - `0d1258a1` — fix(email-agent): get_thread renders a table card instead of relying on model prose (amd#2788) - `300163dd` — fix(email-agent): search_messages defaults to metadata-only, fixing context overflow on counting questions (amd#2782) - `cc331b78` — fix(email): low-priority-sender match no longer forces PROMOTIONAL (amd#2774) - `68736511` — fix(email): meeting proposal in a confidently-classified message no longer vanishes from needs_you (amd#2779) - `e135b8ef` — fix(ci): post PR reviews from the workflow instead of hoping the model does (amd#2719) - `efd3812b` — feat(email/tui): resolve "reply to 1" to the message the card actually shows (amd#2761) - `ed70db73` — fix(email-agent): search_messages states an exact, stable message count (amd#2760) - `42fdfdcd` — fix(email/tui): one triage card that tells you what to do, not what was classified (amd#2757) - `3803aa06` — fix(email): stop leaking classifier internals into triage card rationale (amd#2754) - `2c11ac0b` — fix(tui): sanitize agent error text (amd#2753) - `9bf0042a` — docs(tui): rewrite the terminal hub README for newcomers (amd#2717) - `1cdd9746` — docs(skills): implementation spec for Agent Skills v2 adaptive skills (amd#2685) - `50a5b862` — fix(website): pin the deploy toolchain so CI and production build alike (amd#2691) - `500cdac6` — fix(mcp): cap the mcp dependency below 2.0 (amd#2694) - `3686e069` — docs(guides): document the terminal hub, and how to actually get it (amd#2698) - `99508ec5` — docs(plans): preserve the TUI packaging design and binary-distribution plan (amd#2699) - `21c02f69` — fix(hub): mark the email agent verified so first install is not refused (amd#2703) - `8d07ee3d` — docs(website): correct every deployment instruction in the README (amd#2689) - `dff8f1b2` — refactor(memory): rename synthesis Skill dataclass to DistilledProcedure (amd#2684) - `d2832fd5` — # feat(email): opt-in on-device SLM classifiers for phishing and triage category (amd#2568) - `a02f2f0c` — fix(connectors,email): a bare reconnect no longer guts a mailbox (amd#2733) - `bc0d4632` — fix(website): reach the hero terminal, marquee, and code blocks by keyboard (amd#2706) - `82635362` — fix(website-router): track apex Worker, fail loudly on origin errors (amd#2688) - `5d269094` — feat(skills): SKILL.md loader, validator, discovery + gaia skill CLI core (amd#2669) - `0ae019c8` — fix(daemon): detect a sidecar that is alive but has stopped serving (amd#2707) - `4551ec5b` — fix(website): stop offering Intel Macs a DMG they cannot run (amd#2701) - `bc8a7e29` — docs(spec): Gatekeeper blocks the browser download, not curl | sh (amd#2732) - `0d170869` — fix(website): make the hub agent rows readable in both themes (amd#2711) - `d5ae430d` — fix(tui): a consequential readiness check now holds the screen (amd#2731) - `d6bd047f` — fix(email): stop Gmail 429-ing every scan — chunk at 25 and retry the rate limit (amd#2727) - `93216bc0` — chore(connectors): remove GAIA_MICROSOFT_TENANT — dead since the connector split (amd#2729) - `e3a6958a` — fix(tui): show a failed tool's own error instead of an "Invalid card" box (amd#2726) - `6efc520b` — fix(email-agent): surface connector errors from autonomy runs instead of a bare HTTP 500 (amd#2640) - `f0543406` — feat(connectors): split Microsoft into Personal + Work/School connectors (amd#2718) - `b8a97cbb` — fix(connectors): stop requiring a client secret from secretless public PKCE clients (amd#2630) - `70e4eb12` — fix(website): stop a published agent rendering twice on the hub page (amd#2690) - `282e30e0` — fix(tui): name the binary the user actually invoked, and fix the setup hint (amd#2700) - `d95866ff` — fix(installer): repair the Lemonade download URLs and add macOS support (amd#2704) - `3bc0b612` — fix(hub): stop components publishing against a core that cannot serve them (amd#2705) - `c068166d` — Email Triage draft/proposal SDK (amd#2551) - `cb90bab3` — fix(email): priority senders never force urgent; informational tail auditable (amd#2658) - `ab41b115` — fix(email): stop the assistant from narrating what the turn's tools don't support (amd#2659) - `7a93bfbe` — fix(email-agent): propagate the autonomy kill switch to the scheduler (amd#2657) - `4de65cff` — fix(email-agent): require the conflict tool for conflict verdicts (amd#2656) - `84404a6e` — perf(email): metadata-first scan + read-mail pre-scan coverage (amd#2661) - `733822e2` — fix(tui): restore the attention card on direct chat --agent launches (amd#2655) - `d4d5a7cc` — fix(mcp): cap the mcp dependency below 2.0 - `1d867eed` — fix(email): strip infrastructure banners from bodies before the prompt (amd#2650) - `22d8b2d4` — fix(email-agent): kill a running autonomy cycle and keep partial reports (amd#2652) - `a4f4b39b` — fix(email): paginate the triage scan and report truncation honestly (amd#2646) - `7adc4882` — fix(tui): dedup attention rows and stop the card interrupting turns (amd#2648) - `24e8d5ab` — fix(email): thread summaries keep the newest message's open asks (amd#2644) - `c3ef3796` — fix(agents): truncate large tool results to valid JSON (amd#2645) - `d633b387` — docs(connectors): document which Google scopes to declare in the Console (amd#2612) - `4ad367a9` — fix(connectors): derive --grant-agent scopes from the agent's own declaration (amd#2610) - `f7d5d7d9` — chore(deps): bump the root-npm-dependencies group across 1 directory with 3 updates (amd#2503) - `c84d9a79` — fix(tui): make the terminal hub readable on a light terminal background (amd#2611) - `bcffbc8d` — feat(email): recover the attention view and waiting-on-you detector onto main (amd#2604) - `b63a9f0d` — feat(email): guided Outlook mailbox setup — walk, verify, and answer questions in chat (amd#2598) - `e0d5014c` — fix(daemon): dev-mode start-agent refuses a checkout mismatch instead of silently serving a stale build (amd#2592) - `29dc0f9f` — feat(email): find meeting proposals during the inbox scan (amd#2589) - `22b0fa04` — fix(email): pre-scan stops reporting a guess as a verdict (amd#2587) - `c211e870` — fix(daemon): start the daemon clock so scheduled work can fire (amd#2586) - `358fd6e1` — fix(email-agent): add preference removal tools and a truthful read-back (amd#2520) (amd#2541) - `d01b9d43` — fix(email): don't cancel a retrying agent for a recoverable tool error (amd#2572) - `7fdcd6b2` — fix(email): surface degraded memory state and diagnose the real cause (amd#2577) - `1c42d842` — fix(email): autonomy /run refuses while off; add gaia email autonomy CLI (amd#2578) - `25b6cacd` — fix(email): draft_reply/draft_forward compose the body, don't ask for it (amd#2576) - `a050c64d` — fix(email): briefing carries a structured breakdown, not one sentence (amd#2575) - `8da002f0` — fix(email): resolve relative snooze/schedule times agent-side (amd#2574) - `ee4af04b` — fix(email): get_thread returns messages sorted and numbered, not raw backend order (amd#2570) - `9269a306` — fix(email): give list_inbox/search_messages a combined envelope budget (amd#2546) - `c4495a0f` — fix(agents): dispatch Python-call-style embedded tool syntax (amd#2573) - `f6103a03` — feat(email-agent): broaden autonomy candidates, add undo surface and per-message decisions (amd#2545) - `d975853c` — fix(email): normalize calendar time bounds to RFC 3339 before Google (amd#2579) - `fdf665f0` — feat(website): redesign landing, Agent Hub, and agent detail pages (amd#2566) - `000ab88e` — fix(ui): reject null bytes in upload-path; unrot 8 stale UI/journey tests (amd#2565) - `0d6ca966` — feat(tui): tool-confirmation modal for destructive/external actions (amd#2544) - `4131420a` — fix(agent): recover from context overflow on NPU/FastFlowLM (amd#2543) - `35062526` — fix(email): restore from Trash anytime, drop dead permanent_delete (amd#2542) - `2a1767e0` — chore(release): bump the hub component manifests to 0.23.0 - `b5d5bf54` — feat(hub): publish the terminal hub and Agent UI as R2 hub packages (amd#2530) - `014cbcbc` — fix(email): catch the contract guards up to schema 2.6, and de-race the heartbeat test (amd#2549) - `9f70be13` — fix(ui): serve the Lemonade start hint instead of hardcoding a dead command (amd#2510) - `26127e80` — feat(release): publish the terminal hub binary and install it (amd#2522) - `59374508` — fix(tui): unbreak build_tui on main — allowlist the bare-host remedy (amd#2548) - `1b189215` — fix(daemon): unbreak Unit Tests on main — remedy docstring names an unparseable command (amd#2534) - `9bdd7eb3` — docs(release): name the Lemonade version v0.23.0 actually ships (amd#2509) - `21d40c33` — fix(llm): detect Lemonade on macOS; stop printing commands that don't work (amd#2497) - `e272fbae` — fix(tui): keep a valid hub selection when switching tabs (amd#2482) - `1d0454b6` — fix(tui): prove the mailbox is usable before the gate clears a launch (amd#2494) - `ee54b779` — feat(email): agent-led mailbox onboarding — the agent sets up its own access (amd#2496) - `cc73e244` — fix(tui): stop the hub offering agents it cannot run or launch (amd#2492) - `5b378ebe` — fix(tests): make unit suite hermetic by blocking real network connections (amd#2500) - `238fe9ac` — feat(tui): install, run and uninstall agents from the TUI (amd#2484) - `ce730876` — feat(tui): draw tool_result render cards, starting with the inbox pre-scan (amd#2485) - `7fdd43ea` — chore(deps-dev): bump electron from 43.1.1 to 43.2.0 in /src/gaia/apps/jira/webui in the jira-app-dependencies group (amd#2501) - `c940fd0a` — chore(deps-dev): bump electron from 43.1.1 to 43.2.0 in /src/gaia/apps/example/webui in the example-app-dependencies group (amd#2502) - `7f569605` — feat(daemon): install, uninstall and catalog hub agents from the daemon (amd#2477) - `61ac101c` — docs(plans): design the TUI user journey around the email agent (amd#2480) - `fd66ba95` — fix(email): fail loudly on a dead worker and reconcile the package docs (amd#2479) - `1340b3b7` — fix(agents): actually ask before running confirmation-gated tools (amd#2475) - `5f283e10` — feat(tui): control API + MCP server for driving the live TUI (amd#2478) - `12016d5d` — feat(tui): stream agents over the daemon HTTP/SSE relay (amd#2476) - `554ef27c` — chore(deps): bump electron from 43.1.1 to 43.2.0 in /hub/agents/emr/python/gaia_agent_emr/dashboard/electron in the emr-dashboard-dependencies group (amd#2504) - `4822e2ed` — chore(deps-dev): bump the agent-ui-dependencies group in /src/gaia/apps/webui with 6 updates (amd#2505) - `3fc0d2e1` — chore(deps): bump the github-actions group with 4 updates (amd#2506) - `47c2d1b2` — fix(connectors): surface a browser that never launched (amd#2507) - `1763606f` — fix(agents): stop the OpenMP double-init from killing the agent mid-conversation (amd#2508) - `56215070` — fix(hub): carry requirements.min_lemonade_version through the manifest parser (amd#2493) - `02cf9984` — fix(mcp): keep console logs off stdout in stdio transports (amd#2473) - `d6c02c2f` — chore(deps): bump Lemonade Server to v11.5.0 (amd#2424) - `2898f1b5` — fix(agents): don't dedup errored mutation retries (amd#2464 batch dead-end) (amd#2465) - `867bc677` — fix(email): recall last archive batch so undo reaches across turns (amd#2458) - `9073ec20` — fix(email): strip LLM quoting from ARCHIVE_MESSAGE_BATCH ids (amd#2457) - `529d11b1` — ci(review): allow fork-PR checkout under pull_request_target (checkout@v7) (amd#2461) - `524d3282` — fix(email-agent): make undo window configurable for chat-speed bulk ops (amd#2449) - `61dc3a1f` — fix(email-agent): surface actionable Lemonade-down copy in gaia email -q (amd#2453) - `d78115a9` — fix(memory): guard against self-supersede hiding recalled preferences (amd#2452) - `6bf96e56` — fix(email-agent): isolate per-provider failures in read fan-out (amd#2451) - `acd20400` — fix(agents): reject unexpected tool kwargs with a structured error (amd#2450) - `f99ccaea` — fix(daemon): drop --reload from dev-mode email sidecar spawn (macOS) (amd#2442) - `c2337178` — fix(email-agent): verify archive left inbox + fix same-day search miss (amd#2438) - `3f6af0ff` — fix(email): don't misclassify timeouts as Lemonade-down (amd#2139 follow-up) (amd#2454) - `9386e1b1` — fix(email-agent): resolve draft/reply target from sender or topic (amd#2403) (amd#2437) - `229e61da` — fix(email-agent): never auto-archive IMPORTANT / security-sender mail (amd#2426) (amd#2435) - `e6ac57f9` — fix(email-agent): persist preferences to state.db so they survive without the embedder (amd#2427) (amd#2434) - `4301c897` — fix(agent-email): actionable copy for Lemonade-down /query errors (amd#2432) - `1bb2cccd` — fix(daemon/email-agent): dev-mode sidecar 'Empty module name' on macOS (bad PYTHON_KEYRING_BACKEND) (amd#2443) - `7a44bfd5` — fix(email): bulk-archive undo survives the whole run via a per-turn batch handle (amd#2439) - `5101b853` — fix(daemon): re-forward OAuth tokens on expiry so sidecars self-recover (amd#2436) - `55010368` — fix(email-agent): applying an existing label fails with 'Invalid label' (T14) (amd#2433) - `ce83feb9` — fix(email-agent/ui): de-jargon the send confirmation surface (amd#2407) - `4bb196fb` — fix(connectors): name consumers-tenant migration on personal-account app rejection (amd#2391) - `6b29a4d6` — fix(email-agent): construct with zero connectors instead of 502 (amd#2423) - `f3af7bff` — fix(agent-ui): treat ctx_size=0 as unknown, not a too-small window (amd#2402) - `f22b0f4a` — fix(ci): run evidence stage via direct claude CLI, not the GitHub-coupled action (amd#2430) - `60334202` — fix(email-agent): add live mailbox connection-status tool (amd#2405) - `4c370b23` — fix(ui): surface actionable sidecar HTTP errors instead of generic crash card (amd#2422) - `7fc559af` — test(ci): evidence lane exercises UI-backed routes + spot-regresses adjacent ops (amd#2421) - `9be31036` — security(ci): harden the evidence stage against env dumps / credential flows (amd#2417) - `0f709733` — fix(daemon): validate custody rag/query 'k' to a bounded positive int (amd#2390) - `ca50bf8a` — ci(review): broaden evidence gate + require a verdict-linked evidence section (amd#2415) - `59c736df` — ci(review): fold gaia-testing evidence into the PR review comment (Phase 1: CLI/API/MCP) (amd#2414) - `1a233d94` — test(connectors): fix main red — amd#2408 install test vs amd#2410 trust gate (amd#2412) - `78de5bfd` — fix(electron): resume periodic update checks after a no-feed start (amd#2389) - `a20c04b4` — fix(agent-ui): left-align installed-agent hub cards on home screen (amd#2398) - `236ba233` — fix(connectors): register hub-installed sidecar agents so email grant works on fresh install (amd#2411) - `b343f396` — fix(security): harden install trust gate and analyze_data_file sandbox (amd#2410) - `765cb544` — fix(daemon): hold the model-slot lease across inference, not just the load (amd#2394) - `27be002e` — fix(onboarding): neutral NPU wording in first-run Hardware check (amd#2399) - `c86a46e5` — docs(release): note email is Linux + API/CLI only this release (Windows amd#1648) - `e658cb15` — docs(testing): bind real-world evidence contract to the changed surface (amd#2376) - `feb00155` — docs(email): correct earn-trust claim — positive-outcome accrual not yet wired (amd#2392) - `7aee219a` — fix(email): commit autonomy dedup INSERT so it survives headless teardown (amd#2393) - `6b6a8dab` — fix(daemon): map NotGrantedError to 403 in forward_all route (amd#2395) - `5b2e6be8` — docs(release): keep only verified user-facing features in What's New - `e11740e7` — docs(release): fix Agent UI heading — drop 'update' (auto-update was trimmed) - `a011e33d` — docs(release): trim v0.23.0 notes to features verified working - `ce5ddd84` — docs(release): correct v0.23.0 notes to match verified behavior - `c62a3e27` — Release v0.23.0 - `5f624706` — fix(hub): importable CLI wheel agents + chat distribution via gaia init (amd#2373) - `3ad39e60` — fix(sidecar): actionable user-mode binary error (amd#2347) (amd#2357) - `bfc0f5b8` — fix(lemonade): recognize grouped amd_gpu/nvidia_gpu device keys in validation (amd#2368) - `0553c8b0` — feat(email): full autonomy — earn-trust engine, learning loop, scheduled driver (amd#2363) - `0284300b` — feat(connectors): support work/school Outlook + zero-setup device-code sign-in (amd#2364) - `1aaba5cc` — feat(lint): require security suppressions to be reviewed in an allowlist (amd#2343) - `19b1a4c5` — test(daemon): de-flake sidecar stop test on the pid-liveness check (amd#2349) - `174e9d0c` — refactor(chat): extract ProfileSpec, honest manifest, lazy RAG — one class → separable profiles (amd#2323) (amd#2362) - `57f970b0` — chore(audit): drop the security dimension from the weekly audit (amd#2348) - `23181040` — feat(security): proactive Claude security-audit workflow + CVSS/SARIF tooling (amd#2346) - `d605caec` — fix(security): enforce --allowed-paths sandbox on file read tools (amd#2344) - `1c8a91c9` — fix(security): remove pre-existing bandit HIGH findings and enable the HIGH gate (amd#2350) - `4b5c16b7` — ci(labeler): add tui/daemon/sidecar auto-label rules (amd#2356) - `a905b057` — chore(deps): bump the github-actions group with 2 updates (amd#2341) - `b3f793af` — fix(routing): default unknown language to TypeScript, not a process kill (amd#2337) - `48286dbd` — fix(init): stop Rich eating bracketed tokens in gaia init output (amd#2340) - `638a7643` — docs(skills): add porting-agent-to-hub — the legacy-agent port flow (amd#2338) - `d2c00b55` — fix(hub): harden agent-archive extraction against path traversal (amd#2342) - `a4417656` — fix(ci): repair the startup-failing GAIA CLI aggregate workflow (amd#2307) - `0835a250` — fix(ci): make the weekly eval and runner heartbeat monitor actually run (amd#2306) - `977c158f` — fix(cli): add --layout hub to gaia agent init for the agent-first hub tree (amd#2295) - `558a73e6` — chore(deps): bump the github-actions group with 3 updates (amd#2294) - `f8bff000` — chore(deps-dev): bump electron from 43.1.0 to 43.1.1 in the root-npm-dependencies group (amd#2292) - `fb179e32` — ci(eval): gate the Gemma-4-E4B consolidation on agent evals (amd#2283) - `6b2aa2db` — chore(deps-dev): bump electron from 43.1.0 to 43.1.1 in /src/gaia/apps/jira/webui in the jira-app-dependencies group (amd#2291) - `5837bdac` — chore(deps-dev): bump electron from 43.1.0 to 43.1.1 in /src/gaia/apps/example/webui in the example-app-dependencies group (amd#2290) - `3ce4f790` — test(agents): stub live Lemonade probe in context-overflow tests (amd#2288) - `1886a92f` — chore(deps): bump electron from 43.1.0 to 43.1.1 in /hub/agents/emr/python/gaia_agent_emr/dashboard/electron in the emr-dashboard-dependencies group (amd#2289) - `0a308449` — feat(agents): consolidate every agent onto Gemma-4-E4B at one context size (amd#2284) - `4392e06a` — chore(deps-dev): bump the agent-ui-dependencies group in /src/gaia/apps/webui with 3 updates (amd#2293) - `d9b11ec7` — refactor(hub): agent-first layout — hub/agents/\<id>/\<lang> (amd#2060) - `5f15b333` — feat(daemon): broker-wire the remaining direct model-load surfaces (amd#2286) - `3affe149` — fix(ui): detect GPU from real Lemonade payload shapes (amd#2285) - `4f888b78` — fix(hub): report file-based custom agents' real health, not always 'error' (amd#2277) - `36c29873` — fix(cli): detect GPU on all platforms and honour default_device (amd#2244) - `6c6f8a34` — test(audit): coverage for schedule CLI, perf-vis, VLM extraction, PDF gen/export; fix silent table-row loss (amd#2259) - `2425afe8` — fix(builder): surface model-not-found (404) instead of a generic placeholder (amd#2245) - `3a0eebe7` — ci(hub): wire nine hub package test suites into CI; fix .cjs docs-link guard gap (amd#2258) - `3e82ca61` — docs(connectors): correct the client_id_hash claim in the OAuth runbook (amd#2264) - `9f7dca84` — fix(ci): fix Lemonade startup and bash-on-PATH in the doc walkthrough (amd#2281) - `53f4b529` — fix(daemon): owner-only DACL for the Windows launch secret (amd#2250) (amd#2282) - `ee8825fa` — fix(security): require allowed_dir in compute_file_hash (amd#2280) - `46fb7687` — spec(factory): define the dogfooding loop — Claudia as live validation runtime (amd#2234) - `1a679f02` — feat(ui): always-available OAuth client field in Settings (amd#2104 interim) (amd#2265) - `45c796b1` — test(jira): unit tests for JiraAgent HTTP boundary and config discovery (amd#1991) (amd#2263) - `bed702eb` — feat(ci): execution-based weekly doc walkthrough (amd#2278) - `f8f309e6` — fix(ui): stop silently accepting unimplemented agent_mode 'autonomous' (amd#2257) - `3b0938ed` — fix(ci): weekly audit cross-links the prior parent instead of auto-closing it (amd#2254) - `78306480` — test(audit): risk-bearing coverage — jira, trust-gate, flag-precedence, amd#1655 boundaries (amd#2253) - `1aa39ca2` — fix(observability): real system-metrics polling + real rollbackAction (amd#2251) - `384b3ca8` — fix(security): bind MCP bridge to loopback, not all interfaces (amd#2246) - `037f4370` — fix(cli): implement/gate stubbed api-status, eval flags, schedule --skill (amd#2247) - `2b6ed53e` — fix(security): rate-limit exposed routes, harden JS ReDoS/XSS/cleartext-logging (amd#2237) - `6c6b3baf` — fix(packaging): stop the amd-gaia[agents] extra from downgrading the core wheel (amd#2262) - `8744a51a` — fix(security): validate user-influenced file paths (py/path-injection) (amd#2252) - `c921fa7b` — feat(email): quality + robustness batch (amd#2110/amd#2113/amd#2114/amd#2115/amd#2116) (amd#2192) - `b9391ec2` — fix(security): parameterize SQL, redact sensitive logs, harden ReDoS regexes (amd#2239) - `09e0bac4` — fix(security): stop leaking stack traces at API boundaries + least-privilege workflow permissions (amd#2236) - `3df5a3db` — fix(security): tighten API CORS — no wildcard origin with credentials (amd#2238) - `a3db04ef` — feat(connectors): OAuth forward-out to sidecars (V2-14) (amd#2203) - `e0886cbf` — refactor(daemon): reconcile the clocks into one daemon-owned scheduler (V2-15) (amd#2199) - `15459153` — feat(daemon): /host/v1 custody API v1 with per-agent scoping (V2-12) (amd#2197) - `e226d584` — feat(webui): group session sidebar by agent + session-state polish (amd#2193) - `6e48cb22` — feat(daemon): host-owned model-slot broker serializes loads (V2-11) (amd#2194) - `c42bb354` — fix(website): correct hub install command and clarify agent availability (amd#2207) - `2f18de85` — fix(tests): align email CLI dispatch test with amd#2191 thin-client contract (amd#2209) - `a2ad4eff` — fix(tests): repair stale gaia.ui.email_sidecar.manager import after amd#2144 (amd#2208) - `2b89643c` — fix(webui): repair broken main — AgentHubView imported deleted AgentHubGrid (amd#2206) - `68773d46` — test(eval): sidecar eval harness + distributed-seams suite (V2-19) (amd#2202) - `d7cffc72` — feat(agent-ui): first-run onboarding wizard — hardware pre-flight, in-app model download, connect-on-install (amd#2204) - `5bc7d325` — feat(electron): in-app install, R2 auto-update feed, gaia:// deep links (amd#2196) - `eb6b34bf` — feat(daemon): one-time versioned migration of ~/.gaia state (V2-13) (amd#2200) - `73b8f98c` — refactor(api): remove the last in-process email mount; relay via daemon (amd#2176) (amd#2205) - `e4ea0e33` — feat(connectors): grant the mailbox to the email agent in the same connect flow (amd#2195) - `2bf405db` — feat(webui): in-app Hub page with catalog lanes + install trust gate (amd#2201) - `459efba9` — feat(api): relay /v1/\<agent>/query through the daemon (V2-17) (amd#2198) - `ada5b95a` — feat(cli): gaia email attaches to the daemon — thin client (V2-8) (amd#2191) - `a49d257d` — fix(webui): reachable Agent Hub + installed-agent discovery and per-session picker (amd#2190) - `7c98b51a` — docs(connectors): rewrite the Google client-ID walkthrough for the current console (amd#2189) - `a94a8126` — feat(daemon): deliver sidecar launch secret via 0600 file, not bare env (amd#2149) (amd#2186) - `5601e2a5` — feat(daemon): streaming SSE reverse-proxy for agent routes (amd#2150) (amd#2188) - `1465bc73` — feat(agents): proactive lifecycle hooks with approval-gated proposals (amd#1484) (amd#2187) - `2c4ff395` — test(chat): mirror the amd-gaia floor guard from amd#2169; harden version parsing (amd#2184) - `2271278c` — fix(llm): make swallowed model-load failures loud in _ensure_model_loaded (amd#2185) - `2e0294f9` — feat(hub): add multi-component type discriminator to the manifest (amd#1716) (amd#2183) - `b78b71d1` — test(chat): guard the amd-gaia dependency floor against amd#2112 regression (amd#2174) - `33caec54` — refactor(ui): extract _best_effort_cancel helper for the relay cancel paths (amd#2173) - `ba58e31a` — feat(email): fast dev-iteration loop for the email agent SDK (amd#2083) - `f79c4177` — fix(webui): pin explicitly-set session titles — stop auto-retitle churn (amd#2165) (amd#2171) - `ae741690` — fix(email): error on an explicitly-targeted unconnected mailbox instead of substituting (amd#2164) (amd#2172) - `4dafa091` — fix(email): normalize date operators in search_messages (amd#2161) (amd#2170) - `dd2fa328` — fix(email): raise amd-gaia floor to match get_embedding_model_for_device (amd#2112) (amd#2169) - `011b6e3c` — fix(email): default calendar list to a forward window when range args are absent (amd#2162) (amd#2168) - `ed7d2969` — fix(ui): propagate cancel to the email sidecar on relay timeout/crash (amd#2158) (amd#2167) - `d8daf66d` — fix(agent): abort in-flight streaming generation on Agent-UI Stop (amd#2166) - `c907f6c4` — feat(memory): adaptive, review-gated onboarding conversation (amd#1955) (amd#2143) - `def5e979` — fix(ui): stop blaming Lemonade for cancelled/empty chat turns (amd#2141) - `553cb541` — fix(email): consolidate Agent UI pre-scan across every connected mailbox (amd#2129) - `5446af2c` — fix(agent-email): drop $orderby from Outlook get_thread to avoid Graph InefficientFilter (amd#2140) - `8ba66f4d` — fix(email): REST triage honors the LLM's is_spam verdict (amd#2125) - `aa44c2c8` — refactor(daemon): daemon-supervised agent sidecars (V2-6) (amd#2144) - `ac3cc4cd` — fix(eval): fail the briefing eval loudly on a zero-case/zero-judged run (amd#2123) - `c9566b19` — chore(deps): bump Lemonade Server to v11.0.0 (amd#2130) - `47c1142a` — feat(ui): route email chat through the sidecar /v1/email/query loop (V2-10) (amd#2136) - `b340427d` — docs(skill): correct the release skill against what v0.22.0 actually did (amd#2133) - `9f1ece0f` — feat(webui): render→component map + generic render primitives (V2-9) (amd#2131) </details> Full Changelog: [v0.22.0...v0.23.0](amd/gaia@v0.22.0...v0.23.0) --- ## How these notes were verified Every **What's New** entry was exercised on real hardware, not inferred from green CI. Re-verified end to end after merging current `main` (334 commits since v0.22.0), because the delta touched the MCP bridge, hub, skills, and connectors — the exact surfaces the notes assert. <details> <summary>Verification results, what broadened, and what was excluded</summary> **Re-verified against the current pin and kept:** `gaia hub` install/run/uninstall (trust gate enforced); the confirmation gate now covering terminal + `gaia api` + MCP tool calls (fail-closed classifier proven model-free — amd#2846/amd#2854); localhost binding + stricter CORS + enforced MCP `--auth-token` + shell-less MCP launch + `~/.gaia` write guard + CWE-89 SQL block (amd#2844/amd#2847/amd#2860, live probes); `gaia skill` create/import/list/info plus signed-tier + pre-publish-audit + migrate (amd#2692/amd#2702/amd#2693); the Microsoft connector split (two connectors, secretless PKCE — amd#2896's third connector is Gmail, so the wording is not stale). **Broadened this cycle:** the confirmation-gate claim (blocking gap amd#2846 merged) and the security section (four verified hardening items). The skills section is stated **opt-in** (amd#2848: no shipped agent loads skills by default). **Removed:** the onboarding / day-zero discovery headline — the scanner works on macOS, but the first-run onboarding flow it feeds is not ready to ship, so it is not claimed (the underlying commit amd#2747 remains in the changelog). **Excluded (not claimable):** a skills-by-default claim (false — amd#2848); the C++ SDK (real and CI-green but ships no user-facing artifact and predates this release); the prebuilt terminal-hub binary ("not yet distributed"). Claims that failed live verification remain filed as open bugs, not shipped: amd#2883, amd#2884, amd#2885, amd#2893, amd#2894. Email ships as a beta note whose only asserted behavior — never sending or deleting without confirmation — is verified. </details> ## Release checklist - [x] `util/validate_release_notes.py` passes - [x] `docs && npx mintlify validate` passes - [x] `src/gaia/version.py` → `0.23.0`; `LEMONADE_VERSION` → `11.5.0` - [x] webui `package.json` / `package-lock.json` → `0.23.0` - [x] Navbar label → `v0.23.0 · Lemonade 11.5.0` - [x] All 334 commits in range represented in the changelog - [x] Branch merged current with `main`; `setup.py` keeps `mcp<2.0` - [ ] Review from @kovtcharov-amd addressed --------- Co-authored-by: Kalin Ovtcharov <[email protected]> Co-authored-by: k <k@e>
pull Bot
pushed a commit
to bhardwajRahul/gaia
that referenced
this pull request
Aug 17, 2026
Release notes had grown into long blocks of prose with a marketing-toned paragraph on top. They now generate as short bullets grouped by section, with a word cap on the narrative part. Nothing informational is lost — every PR link, contributor credit, and changelog entry is preserved; the prose around them is cut. Two generators write `docs/releases/<tag>.mdx` and they had drifted apart. The `gaia-release` skill told the model GAIA's notes "read dry" and to make them "engaging"; the `release-notes` job in `claude.yml` asked for "comprehensive" notes with an `## Overview` paragraph and emoji headings. Fixing one alone would have been overwritten by the other on the next tag, so both now share one spec. Closes amd#2961 ## What it looks like now Regenerated from the last two releases — same facts, same PR numbers, new template. Narrative words (the capped part, excluding bug-fix/contributor/changelog lists): | Release | Published | Regenerated | Cap | |---|---|---|---| | v0.22.0 (minor) | 1705 | **538** | 600 | | v0.23.0 (minor) | 1119 | **280** | 600 | <details> <summary>Example 1 — v0.23.0 regenerated</summary> ```markdown --- title: "v0.23.0" description: "Install and run agents from the terminal, add capabilities as skills, and connect a Microsoft account without a secret." --- # GAIA v0.23.0 Release Notes Agents are now installable from the terminal, and the confirmation gate that pauses an agent before a consequential action works everywhere, not just in the Agent UI. ## Breaking Changes - **`GAIA_MICROSOFT_TENANT` is gone** — the Microsoft connector split into Personal and Work/School, each with its own tenant. Drop the variable and pick the matching connector. (PR [amd#2729](amd#2729)) ## What's New - **Install and run agents from the terminal** — `gaia hub list`, `gaia hub install <agent> --trust`, `gaia hub uninstall <agent>`. `--trust` is required for an unverified agent. (PRs [amd#2484](amd#2484), [amd#2530](amd#2530), [amd#2708](amd#2708)) - **Every agent asks before it acts** — the confirmation gate for sending mail, writing files, and running commands now fires from the terminal, the local API, and MCP tool calls, not only the Agent UI. Set `GAIA_AUTO_APPROVE_TOOLS=1` to opt out. (PRs [amd#2475](amd#2475), [amd#2544](amd#2544), [amd#2846](amd#2846), [amd#2854](amd#2854)) - **Safer by default** — the MCP bridge binds to localhost and enforces `--auth-token`; the local API refuses credentialed cross-origin requests from non-allow-listed sites; MCP servers launch without a shell; agents cannot write to `~/.gaia` or pass crafted SQL to the database agent. (PRs [amd#2246](amd#2246), [amd#2238](amd#2238), [amd#2344](amd#2344), [amd#2844](amd#2844), [amd#2847](amd#2847), [amd#2860](amd#2860)) - **Add capabilities as skills** — `gaia skill create|import|list|info` gives an agent a new capability from a folder and a manifest. Skills are signed with trust tiers, audited before publish, and opt-in. (PRs [amd#2669](amd#2669), [amd#2692](amd#2692), [amd#2702](amd#2702), [amd#2693](amd#2693)) - **Connect a Microsoft account without a secret** — Personal and Work/School are separate connectors with device-code sign-in. (PRs [amd#2718](amd#2718), [amd#2364](amd#2364)) - **Lemonade Server 11.5.0.** ## Bug Fixes - **Triage paginates large inboxes and reports truncation** (PR [amd#2646](amd#2646)) — mail past a hidden limit is no longer dropped without saying so. - **Thread messages come back sorted and numbered** (PR [amd#2570](amd#2570)) — "reply to 3" hits the message shown at position 3. - **The inbox pre-scan reports uncertainty as uncertainty** (PR [amd#2587](amd#2587)). - **An email conversation survives its turns** (PR [amd#2837](amd#2837)) — a follow-up keeps session context. - **A bare reconnect keeps existing grants** (PR [amd#2733](amd#2733)). - **Restore from Trash anytime** (PR [amd#2542](amd#2542)) — no time window on undo. - **Sender priority no longer overrides content classification** (PR [amd#2774](amd#2774)). - **The agent survives an OpenMP double-init** (PR [amd#2508](amd#2508)). - **Large tool results truncate to valid JSON** (PR [amd#2645](amd#2645)). - **A missing model surfaces as a real 404** (PR [amd#2245](amd#2245)). - **GPU is detected on all platforms and `default_device` is honoured** (PR [amd#2244](amd#2244)). - **A sidecar that is alive but not serving is detected** (PR [amd#2707](amd#2707)). - **The model-slot lease is held across inference** (PR [amd#2394](amd#2394)) — a second agent can't evict the model mid-generation. - **A browser that never launched is surfaced** (PR [amd#2507](amd#2507)). - **Stop aborts in-flight streaming** (PR [amd#2166](amd#2166)). ## Known Issues - **The email agent is beta and CLI-first** — treat its output as a draft to review. - **A full inbox triage can time out on larger mailboxes.** - **Email autonomy is experimental** and not wired up in the packaged sidecar. ## Contributors - [@handle](https://github.com/handle) — <contribution> (PR [#NNN](https://github.com/amd/gaia/pull/NNN)) <!-- generated from the commit log; v0.23.0's list is unchanged from the published notes --> ## Full Changelog **N commits** since v0.22.0: - `<sha>` — <subject> Full Changelog: [v0.22.0...v0.23.0](amd/gaia@v0.22.0...v0.23.0) ``` </details> <details> <summary>Example 2 — v0.22.0 regenerated (the largest recent release)</summary> ```markdown --- title: "v0.22.0" description: "The email agent tracks follow-ups and action items, drafts in your voice, and runs as its own process. Plus a cron scheduler and Word document support in RAG." --- # GAIA v0.22.0 Release Notes A large release built around the email agent, which now tracks what you're waiting on instead of forgetting it after triage. ## Breaking Changes - **Triage returns a reply scaffold, not an empty draft** — `POST /v1/email/triage` and `/triage/batch` now return a `DraftScaffold` without `body`. Code reading `result.draft.body` gets a missing key instead of `""`; use `POST /v1/email/draft` for composed prose. (PR [amd#1984](amd#1984)) - **RoutingAgent and DocumentQAAgent moved to standalone packages** — install `gaia-agent-routing` and `gaia-agent-docqa`. The old imports fail; there is no deprecation shim. (PR [amd#1455](amd#1455)) ## What's New - **An inbox agent that keeps track** — `gaia email` scans Sent folders across every connected mailbox and flags threads still waiting on a reply past a window you set (default 3 days). Detection only; it never nudges anyone for you. (PRs [amd#1922](amd#1922), [amd#1917](amd#1917), [amd#1919](amd#1919), [amd#1918](amd#1918)) - **Drafts in your own voice** — the agent derives greeting, sign-off, length, and formality from your Sent history and composes against that. Only the derived characteristics are stored, never old mail content. (PR [amd#1925](amd#1925)) - **Attachments work end to end** — triage surfaces each attachment's name, type, and size, and drafting and sending accept real attachments as Gmail multipart MIME or Outlook Graph attachments. (PRs [amd#1921](amd#1921), [amd#1883](amd#1883)) - **Email runs as its own process in the Agent UI (beta)** — install it from the Agent Hub panel and the UI talks to it over HTTP, instead of loading the email stack into the UI process. (PRs [amd#1884](amd#1884), [amd#1910](amd#1910), [amd#2100](amd#2100), [amd#2101](amd#2101), [amd#2105](amd#2105)) - **Run prompts on a cron from the terminal** — `gaia schedule add --name digest --cron "0 9 * * *" --prompt "summarize my inbox" --sink stdout`, then `gaia schedule daemon`. Schedules live in a hand-editable `~/.gaia/schedules.toml`; sinks are `stdout`, `file:<path>`, `notification`, or `telegram`. (PR [amd#1371](amd#1371)) - **Agents learn from work they repeat** — after enough successes on the same shape of goal, an agent distills the tool sequence into a reusable procedure and recalls it next time. Runs inside the existing memory pass; nothing to install. (PR [amd#1794](amd#1794)) - **Pick your model once** — `gaia config set default_model <id>` persists across `gaia chat`, `gaia llm`, and `gaia prompt`. An explicit `--model` still wins for a one-off. (PR [amd#1863](amd#1863)) - **RAG reads Word documents** — `.docx` files index like PDF and PPTX, including table cells, nested tables, content controls, hyperlinks, and textboxes, so filled-in form values get indexed. (PR [amd#1866](amd#1866)) - **A new default embedder** — the previous default cannot be loaded by current llama.cpp builds, which broke indexing, code search, and memory embedding on an up-to-date Lemonade. The default is now EmbeddingGemma 300M at the same 768 dimensions. (PRs [amd#1952](amd#1952), [amd#1761](amd#1761), [amd#1748](amd#1748)) - **The Agent Hub shows what an agent is worth** — an agent's page now carries its eval scorecard with a score badge and a code-derived capability matrix. (PRs [amd#1985](amd#1985), [amd#2020](amd#2020), [amd#2066](amd#2066)) - **Lemonade Server 10.10.0** — adds an audio-generation endpoint, lets Windows reuse system ROCm, and inhibits suspend during inference. Two upstream breaking changes are Linux-specific. (PR [amd#1969](amd#1969)) ## Bug Fixes - **`gaia init` said a working Lemonade wasn't installed** (PR [amd#1940](amd#1940)) — modern Lemonade (10.7+) dropped the `lemonade-server` CLI that GAIA probed for. - **Installing the email agent from the Hub failed on every platform** (PR [amd#2086](amd#2086)). - **Bulk triage broke on any real inbox** (PR [amd#2088](amd#2088)) — 60 emails overflowed the 16K context window; the result envelope is now condensed. - **RAG silently indexed nothing** (PR [amd#1979](amd#1979)) — a failed `sentence-transformers` import made every indexing call a no-op. - **Email bodies were truncated at 4,000 characters with no override** (PR [amd#2036](amd#2036)) — MFA codes and precise replies lost content past the cutoff. - **Long threads overflowed the model's context** (PR [amd#2076](amd#2076)). - **A disabled device was treated as usable** (PR [amd#2081](amd#2081)) — a device reporting `available: false`, such as an unpowered NPU, was misread as ready. - **A newly connected mailbox was skipped** (PR [amd#1808](amd#1808)) — mailboxes connected mid-session were not picked up. - **JSON with a `}` inside a string was dropped** (PR [amd#1824](amd#1824)). - **Outlook users were told to reconnect Google** (PR [amd#1757](amd#1757)) — `AGENT_NOT_GRANTED` named the wrong provider. - **The Agent UI hard-crashed on a recoverable GPU crash** (PR [amd#1799](amd#1799)) — it now falls back to software rendering. - **A user-edited memory could be silently downgraded and then wiped** (PR [amd#1958](amd#1958)). - **The builder agent ignored an agent name you had already given** (PR [amd#1981](amd#1981)). - **The landing and hub pages scrolled sideways on phones** (PR [amd#1959](amd#1959)). ## Known Issues - **Inbox pre-scan needs a single mailbox for now** — with both Gmail and Outlook connected, an Agent UI pre-scan errors. Disconnect one in Settings → Connectors; triage itself still spans every mailbox. ([amd#2127](amd#2127)) - **Spam detection under-flags over the REST API** — `/v1/email/triage` uses a narrow sender check rather than the model's reading. The agent's own inbox scanning is unaffected. ([amd#2124](amd#2124)) - **The email agent is beta** — treat its output as a draft to review. It never sends without your confirmation. ## Contributors - [@alexey-tyurin](https://github.com/alexey-tyurin) — skill auto-synthesis / procedural memory (PR [amd#1794](amd#1794)) - [@TravisHaa](https://github.com/TravisHaa) — the `gaia schedule` CLI and cron-based dispatch (PR [amd#1371](amd#1371)) - [@Rohithmatham12](https://github.com/Rohithmatham12) — refresh resolved email backends before multi-mailbox triage (PR [amd#1808](amd#1808)) - [@Osamaali313](https://github.com/Osamaali313) — fix `extract_json_from_text` dropping JSON containing `}` (PR [amd#1824](amd#1824)) - [@eeee2345](https://github.com/eeee2345) — offline model-endpoint guard-proxy integration guide (PR [amd#1809](amd#1809)) - [@somo9909](https://github.com/somo9909) — prerequisites section for the memory guide (PR [amd#1665](amd#1665)) ## Full Changelog **N commits** since v0.21.2: - `<sha>` — <subject> Full Changelog: [v0.21.2...v0.22.0](amd/gaia@v0.21.2...v0.22.0) ``` </details> <details> <summary>What changed in the templates</summary> - The narrative overview paragraph and the `**Why upgrade:**` block are gone — the latter restated `What's New` verbatim. - `What's New` entries are bullets, not `###` prose blocks. - Tone guidance is no longer restated in the skill; it points at CLAUDE.md § How You Communicate. - The skill's embedded example now shows the old prose block as **bad** and the bullet form as **good**. - Emoji removed from the CI prompt (it asked for 🚀 / 🎯 / 🐛 headings against the skill's own no-emoji rule). - Both generators now emit the same sections in the same order, so the file's shape no longer depends on which one ran. - The cap excludes `Bug Fixes` / `Known Issues` / `Contributors` / `Full Changelog`. Those are reference lists sized by how many fixes shipped — capping them would hide work. This was caught by regenerating v0.22.0, which overflowed a whole-file cap purely on its 14 bug-fix bullets. **Follow-up, not in this PR:** the cap lives in prompt text, so it is advisory. Making it a hard check in `util/validate_release_notes.py` would enforce it in CI. </details> ## Test plan - [ ] `python util/validate_release_notes.py <regenerated sample> --tag v0.23.0` exits 0 — passes unmodified, no validator changes in this PR - [ ] `awk '/^## (Bug Fixes|Known Issues|Contributors|Full Changelog)/{exit} {print}' <file> | wc -w` is under 350 (patch) / 600 (minor-major) - [ ] `.github/workflows/claude.yml` parses as valid YAML and its release-notes prompt contains no emoji - [ ] `.claude/skills/gaia-release/SKILL.md` is under 500 lines (498) - [ ] Both generators list the same sections in the same order
pull Bot
pushed a commit
to bhardwajRahul/gaia
that referenced
this pull request
Sep 8, 2026
… file (amd#3023) An installed skill is a starting point, and it never quite fits every machine or every workflow. Today the only way to close that gap is to hand-edit the shipped `SKILL.md` — which mutates a file the hub owns, and grows it every time. Doing exactly that to `github-triage` (written around a repository backlog, for a user who wanted their own inbox) took it from 4,103 to 6,078 bytes: **+54.5% prompt tokens on every turn, permanently**, with the unused repo-backlog procedure still sitting in the prompt beside the new inbox one. An agent can now record those corrections into **agent memory instead of the file**. Learned changes are *substitutive*: a correction replaces the text it fixes rather than being appended beneath it, and a later correction to the same section supersedes the earlier one. So ten lessons cost what one costs — and adapting a skill toward the workflow the user actually has usually makes it **smaller**. Measured on that same real example: the same three lessons cost **+117 tokens as deltas versus +482 hand-edited**. Everything is opt-in and reversible. A change is stored inert until approved, `gaia skill deltas` shows what was learned and why, and `--no-learned-skills` produces a byte-identical prompt. ## Maturity — please read before reviewing **Partially implemented. The mechanism is built, wired, and unit-tested end to end; the model has never actually called it in a live session.** | | state | |---|---| | Section anchoring, delta grammar, resolver, consent diff | works, tested | | `skill_deltas` table, schema v3 → v4 | works, tested | | Resolution wired into the real render path (`Agent.get_skills_system_prompt`) | works, tested | | `remember_skill_lesson` registered on `GaiaAgent` | works, tested | | `gaia skill deltas` list / diff / approve / revert / reset / drop-section | works, exercised against a temp DB | | **A live agent deciding on its own to call the tool** | **never observed** | | **The TUI approval prompt** | **not in this PR** — separate branch | | **`gaia eval agent` vs the committed baseline** | **not run** — see below | So a reviewer cannot watch an agent learn something by chatting to it. What they *can* do is run the suite below, which drives the real `Agent` renderers and the real store rather than a reimplementation. ## Test plan ```bash pytest tests/unit/test_adaptive_skills.py -v # 42 tests, no model, no network ``` The load-bearing one is **replace-not-append** — `test_replace_snippet_removes_the_broken_command_entirely` seeds a section containing command X, learns a correction to Y, and asserts the resolved skill contains Y and does **not** contain X anywhere. Both present is a failure, because leaving the wrong instruction in the prompt beside the right one is the whole failure mode this design exists to avoid. `test_replace_section_removes_the_old_section_body` asserts the same for a whole-section rewrite. The rest, by what they prove: - **No unbounded growth** — `test_n_corrections_to_one_section_stay_flat` (10 corrections, one live row, flat token count), `test_the_tool_supersedes_instead_of_stacking`, `test_same_lesson_twice_is_one_delta`. - **The shipped file is never written** — `test_the_authored_file_is_never_written` hashes it before and after. - **Consent** — `test_a_staged_delta_has_zero_effect`, `test_a_staged_delta_does_not_reach_the_composed_prompt`. - **Off-switch** — `test_off_switch_makes_the_composed_prompt_byte_identical` asserts hash equality against a no-overlay build, not eyeballs. - **Rebase safety** — `test_a_changed_section_is_flagged_not_silently_applied`: edit the anchored section in the base and the delta is flagged stale, never applied to text it was not approved against. - **Blast radius** — `test_a_broken_overlay_never_takes_the_skills_block_down` (a throwing resolver falls back to the authored body; `_get_mixin_prompts` swallows a raising fragment, so without this a bug here would silently delete every loaded skill's instructions), `test_a_delta_for_another_agent_scope_does_not_leak`, `test_frontmatter_is_structurally_out_of_reach`, `test_the_tool_cannot_delete_a_section`. - **End to end on this platform** — `test_the_broken_command_really_fails_on_this_platform` / `test_the_resolved_command_runs_clean_on_this_platform`. The POSIX-quoted `gh` command returns `The system cannot find the path specified` under `cmd.exe` *with `gh` installed*, which is what made the agent misdiagnose it as a missing binary; the corrected command pulled back out of the **resolved** skill returns rc=0. Regression check on everything this touches: ```bash pytest tests/unit/test_memory_store.py tests/unit/test_agent_lazy_skill_prompt.py \ tests/unit/test_skill_loader.py tests/unit/test_skill_sets.py \ tests/unit/test_skills_manager.py tests/unit/test_skill_synthesis.py \ tests/unit/test_skills_format.py tests/unit/test_dynamic_tool_filtering.py \ tests/unit/test_tool_loader_selection.py -q # 639 passed ``` A broad `pytest tests/unit/` sweep shows failures on this machine that reproduce identically on unmodified `main` (network-sandboxed tests, and `test_skills_cli.py` subprocesses with no `HOME`). None of them touch this change. The prompt-cost measurement, which contacts no model: ```bash PYTHONPATH="<wt>\src;<wt>\hub\agents\chat\python;<wt>\hub\agents\gaia\python" \ python .perf/overlay_prefill.py ``` ## Outstanding required gate **`gaia eval agent` against the committed baseline has NOT been run.** This change is LLM-affecting — it adds a tool schema and alters resident skill text — so CLAUDE.md requires it before merge. Lemonade is currently banned on the only machine available (it crashes the host), and a Claude run is not a valid substitute for a local-model scorecard. Flagging it rather than quietly skipping it. <details> <summary>🔍 Technical details</summary> **Spec drift corrected.** `docs/plans/adaptive-skills.mdx`'s *Current state* table was stale and is fixed here: it claimed `src/gaia/skills/` was absent from `main` and the loader unmerged on amd#2669. Both shipped — 20 modules, `SkillManager.discover/load`, `Agent.load_skill` at `agent.py:1338`, `get_skills_system_prompt` at `:1776`. It also missed `SkillLoader` (amd#2848), which already collapses an off-topic loaded skill to a menu line each turn — that is why an overlay is only resident when its skill is. **Naming.** The spec's proposed `tier` column collides with the shipped *security* ladder (`experimental / community / verified`, `skills/tiers.py:54`), where it would read as a trust tier in every log line. The column is `learn_tier`. **Correction 4 / decomposition gap B2 are overstated.** Both say the empirical promotion gate has no counter. True of `procedures` — `reconcile_and_store` always inserts with `skill_id=None`, so the only `UPDATE … success_count` is unreachable — but GAIA already ships the mechanism in the email agent's `TrustLedger` (`record_outcome`, `is_trusted(min_samples=5, threshold=0.85)`). The right move is to generalize that, not build a second one; a note to this effect is added to the plan. `skill_deltas` carries the counter columns ready to read it. v1 still gates activation on consent, not counters. **Grammar.** `replace_section` (shape adaptation), `replace_snippet` (a wrong command costs a ~20-token payload, not a whole section), `drop_section` (the only kind with negative cost). Deliberately no `insert_section` — adding is the growth vector, and growth was the failure being fixed. Removal is human-only via the CLI; the model may replace but never delete. **Anchoring.** Deterministic heading slugs plus a CRLF-normalized `sha256`, reusing `audit/findings.py:307 manifest_digest`'s convention rather than adding a third hashing scheme. `parse_sections` → `render_sections` is lossless (pinned by a test), since resolution rebuilds the body from those pieces. v1 *records* anchors and never *matches* them across a base update — a changed anchor is flagged, not re-pointed. Rebase, tier-2 payloads, decay, and auto-promotion are deferred. **Token method.** tiktoken `cl100k_base`, the proxy `src/gaia/eval/tool_cost.py` already pins, cross-checked against the shipped 4-chars/token estimator — they agree within 1% (3.97 vs 4.00) on the shipped skill corpus, so the cheap estimator is safe to enforce the budget with. `.perf/overlay_prefill.py` reuses the embedder stub from the prefill-cost harness so the two measurements are comparable; its `.gitignore` keeps measurement *output* out of git, since a composed prompt contains the user's memory store verbatim. **Measured, offline, on the real `GaiaAgent`:** skill body 885 → 607 tok (−31.4%); full system prompt 7,014 → 6,736 (−278, −3.96%); off-switch byte-identical. An append-only overlay of the same lesson would have been +144. The `remember_skill_lesson` schema costs 313 tok while registered (trimmed from 506), so a single adapted skill is roughly break-even and the win grows per skill adapted. No number here is a local-model latency or eval figure. **Two bugs found in this code by the tests, and fixed:** an empty `corrected_text` silently blanked a section (the model could have deleted the Rules — now refused), and `_namespaced_agent_id()` returns `None` on the flagship, so deltas had no scope; the store refused loudly rather than pooling one agent's learning into every other's, and `learned_skill_scope()` now supplies a never-null value. **Pre-existing defects noticed, not fixed here:** `_rebuild_proc_faiss_index` calls `search_skills` without `limit`, so the procedure index silently caps at 100 rows (`procedural_memory.py:70`); and two Go comments (`confirmation.go:443`, `client.go:85`) still describe "always" as granting the whole tool regardless of arguments, when the runtime is invocation-scoped and `session_approved_tools` no longer exists. </details> --------- Co-authored-by: Ovtcharov <[email protected]>
Closed
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nothing in GAIA could read a
SKILL.mdbefore this. An agent gained capability only by shipping new Python, so a user who wanted a new one had no path short of forking the agent — and the large library of skills already published for Claude Code and friends was unreachable. Now a folder with aSKILL.mddrops into~/.gaia/skills/and any agent loads it at runtime withagent.load_skill("name"), and an existing.claude/skills/library is discovered read-only with zero migration (this repo's own 11 skills load unchanged). This is Phase 1 of #1019 — the layer #2466, #2467, #2468, #893, and #692 are all blocked on.Scoped deliberately so no sandbox is needed to ship it: a skill may add instructions and reach connector-backed services, and one declaring a local-capability permission (
filesystem/shell/database/desktop/env) is refused with an actionable error rather than loaded without enforcement.network:*andmcp:connectresolve to the existingConnectorRequirement— no second grant ledger.Decisions taken where the specs were silent
mcp:connectmust be scoped to a catalog connector id (mcp:connect:mcp-tavily); a bare one fails loudly listing the available ids. Anetwork:*permission that names no catalog connector resolves against a reservednetworkpseudo-id — a declaration surface only, since Phase 1 does not enforce egress.<domain>:noneis inert in both directions: it grants nothing, so it neither refuses nor produces a requirement.tools_requirednames that aren't in the current agent's registry are logged, not fatal — the tool universe is assembled dynamically from mixins, so absence is scoping, not a manifest defect (the open question inskill-format.mdx)../.gaia/skills/and the registry-lock root are marked deferred in the spec, not deleted.src/gaia/schedule/runner.pyand thegaia schedule add --skillgate told users their problem was "blocked on feat(skills): Phase 1 runtime — SKILL.md loader, validator, discovery + gaia skill CLI core #888" — a claim this PR makes false on merge. Reworded to point at feat(skills): SKILL.md support — build, load, share agent skills via agentskills.io standard #1019, where wiring the scheduler to the skills runtime actually lives; that is why those files (and their two tests) are in the diff.skill-format.mdx's own example skills (rag-search,file-operations, migratedgit-status) declare local-capability permissions and are therefore refused today. The doc now marks which examples load rather than quietly rewriting their permissions.Test plan
python -m pytest tests/unit/test_skills_format.py tests/unit/test_skills_manager.py tests/unit/test_skills_cli.py -q— 150 tests, one per acceptance-criterion bulletparse → write → parseon every fixture, and byte-stability on a second writename+description) loads instruction-only atsecurity_tier: experimental; writing it back does not stamp ametadata.gaiablock into itload_skillregisters tools as<skill>/<tool>and injects the body — including when the skill's unqualified tool name collides with one the framework already registeredtools.py(missing tool, undeclared extra, parameter/requiredness/type mismatch, raising module) leaves_TOOL_REGISTRYbyte-identical — assert on the whole dict, not just the absent keyfilesystem:writeskill is refused viaAgent.load_skilland via the lower-levelregister_skill_toolsSkillManager.shadowed()and ingaia skill listGAIA_CONFIG_DIR:gaia skill create→list→info→export→importinto a second home, plus--jsonstdout parsing cleanly with logs on stderrpython -m pytest tests/unit/ -q— the 16 failures on this machine reproduce identically on an untouchedmaincheckout (macOS/private/varsandbox paths, network-dependent hub installer, missing faiss, venv-not-on-PATH)python util/lint.py --allcleanCloses #888