Skip to content

feat(email): code-derived capability matrix + CI drift guard for tool surfaces - #2044

Merged
itomek merged 12 commits into
mainfrom
tmi/2013-email-capability-matrix
Jul 13, 2026
Merged

itomek merged 12 commits into
mainfrom
tmi/2013-email-capability-matrix

Conversation

@itomek

@itomek itomek commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Closes #2013

Why this matters

Before: the email agent's four capability surfaces (52 internal @tool functions, 16 functional REST verbs, 4 MCP tools, 6 eval suites) had no single source of truth — every count was hand-typed across the manifest and docs, and nothing caught drift (the manifest's tools_count had already gone stale once, 6 → 52). After: a generator derives the whole picture from code into a committed CAPABILITY_MATRIX.md, and CI fails if any count drifts — tools_count is now reconciled three ways (manifest == registration == AST-derived) at both test time and generation time.

Note for reviewers: the issue body was written against a stale baseline — tools_count is already 52 (fixed in v0.4.0), and the current enforce flags are per #2038 (perf enforcing + quality's acceptance gate). This PR ships the drift guard the issue actually needs and presents the corrected picture; it deliberately does not re-fix numbers that are already right.

Decisions documented in the matrix (not just in this PR):

  • MCP scope is intentional, not accidental: MCP exists so a host LLM can use the email agent as a tool — 4 task-level verbs, explicitly not a replica of the REST API.
  • tools_count keeps its meaning (internal agent-loop tools, 52) with the definition carried as a comment in gaia-agent.yaml and guarded by test.
  • Every one of the 20 exposed ops (16 REST + 4 MCP) is annotated with its eval suite or explicitly marked "no quality eval (contract-tested only)".
  • Follow-up plan per eval suite, including Wire the followups email eval into CI (report script + workflow step) #2040 (filed alongside this PR) for the followups suite, which is the only one with no CI wiring at all.

Mid-flight proof the guard works: #2038 landed on main during this work and flipped two enforce flags — the drift test went red on rebase exactly as designed, and one regeneration commit (09cd976) absorbed it with zero prose edits.

No eval run required: this change reads tool registration and fixtures; it modifies no prompt, tool docstring, registration, or model-selection surface.

Test plan

  • pytest hub/agents/python/email/tests/test_capability_matrix.py -v — 11 passed
  • pytest hub/agents/python/email/tests/ -q — 329 passed (full email suite, post-rebase)
  • python util/lint.py --all — exit 0
  • Mutation proof (guard is non-vacuous): set tools_count: 53 → tests red + --check exit 1; revert → green
  • Reviewer: python hub/agents/python/email/packaging/capability_matrix.py --check on the branch → exit 0

Evidence (CLI)

Drift check green on the aligned tree, and failing loud on a perturbed manifest:

$ python hub/agents/python/email/packaging/capability_matrix.py --check
Capability matrix up to date: .../hub/agents/python/email/CAPABILITY_MATRIX.md   (exit 0)

$ sed -i '' 's/tools_count: 52/tools_count: 53/' hub/agents/python/email/gaia-agent.yaml
$ python hub/agents/python/email/packaging/capability_matrix.py --check
ValueError: tools_count sources disagree: gaia-agent.yaml=53, __init__.py build_registration()=52, AST-derived=52   (exit 1)
🔍 More detail
  • Derived REST counts cross-checked against the already-CI-guarded OpenAPI export: build_spec() operations: 19 / derived rest_in_contract_count: 19 / derived rest_functional_count: 16 / MATCH.
  • Pytest mutation run with tools_count: 53: test_tools_count_matches_derived fails with assert 53 == 52, both guard tests fail; revert → 11 passed.
  • The AST counter handles both @tool and @tool(...) forms (the call-form gap was caught in review and is now covered by the synthetic-file test).
  • Generator lives in packaging/ (not inside gaia_agent_email/) so the frozen sidecar binary does not ship it — freeze.py blanket-collects the package.

@itomek itomek added ready_for_ci Run CI workflows on draft PR without requesting review agent eval Evaluation framework changes labels Jul 13, 2026
@github-actions github-actions Bot added the agent::email Email agent changes label Jul 13, 2026
@itomek itomek self-assigned this Jul 13, 2026
@itomek
itomek marked this pull request as ready for review July 13, 2026 19:55
@itomek
itomek requested a review from kovtcharov-amd as a code owner July 13, 2026 19:55
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve ✅

This adds a code-derived capability matrix for the email agent plus a CI drift guard, so the four capability surfaces (52 internal tools, 16 REST verbs, 4 MCP tools, 6 eval suites) can no longer silently disagree with the manifest and docs. The design is sound: everything is introspected from source (AST for tools/MCP, the already-tested build_spec() for REST, fixture globs for evals), rendered deterministically, and diffed byte-for-byte in CI. tools_count is reconciled three ways and fails loudly on drift — no silent fallbacks.

I verified the factual claims against the checked-out tree: the four eval report scripts referenced by the wired map all exist in packaging/ (and eval_followup_report.py is genuinely absent, matching wired=False), all six gate fixtures are present, and the reused export_openapi.build_spec() / build_registration().tools_count=52 APIs exist as claimed. Only two optional nits below; nothing blocking.

🔍 Technical details

🟢 Minor / nits

1. MCP extractor only matches def, not async def (packaging/capability_matrix.py:452)
_derive_mcp_tool_names walks for ast.FunctionDef only, while count_tools_in_source correctly handles both FunctionDef and AsyncFunctionDef. get_mcp_tool_definitions is sync today (mcp_server.py:254), so this is correct now — but if it's ever made async the MCP count silently becomes 0 and the drift guard reports a confusing count-change rather than the real 4. One-line hardening for symmetry with the tool counter:

        if (
            isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef))
            and node.name == "get_mcp_tool_definitions"
        ):

2. (optional) No npm CHANGELOG entry. hub/agents/npm/agent-email/README.md now references the new matrix; a one-line CHANGELOG.md note for that package would keep the doc-surface bundle complete per the repo's "update every bundled doc" convention. Purely a doc link, so low priority — mentioning for completeness, not as a blocker.

Strengths

  • Non-vacuous guard, proven by test. test_ast_counter_reacts_to_source_change feeds a synthetic file (including the @tool(atomic=True) call-form) to prove the AST counter reacts to source rather than echoing a constant, and test_tools_count_guard_rejects_*_drift exercise both manifest and AST drift. The mutation proof in the PR body (tools_count: 53 → red) confirms it end-to-end.
  • Fails loudly at every layer. reconcile_tools_count names the disagreeing values; missing tools_count: lines and the unresolvable gaia_agent_email import both raise rather than degrade — fully aligned with the no-silent-fallbacks rule.
  • Reuses existing contracts instead of re-deriving them (build_spec() for REST, the documented packaging/ → repo-root hop chain from gen_scorecard.py), and keeps the generator out of the frozen sidecar by living in packaging/.
  • Determinism handled deliberately — pinned \n/utf-8 and sorted enumerations avoid cross-platform freshness flakes in the byte-identical check.

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Can you make sure this new markdown is added to the agent hub website similar to README, SCORECARD, etc. for the agent?

kovtcharov-amd
kovtcharov-amd previously approved these changes Jul 13, 2026
Tomasz Iniewicz added 9 commits July 13, 2026 16:37
Fixed red-state TDD contract for the planned packaging/capability_matrix.py
generator: asserts the committed CAPABILITY_MATRIX.md never drifts, tools_count
(52) stays consistent across gaia-agent.yaml/__init__.py/AST derivation, all 20
exposed ops (16 REST + 4 MCP) carry an eval-suite annotation or the
no-quality-eval sentinel, the MCP scope decision is pinned, and every eval
suite has a non-trivial follow-up plan with followups pinned as CI-unwired.

The module under test does not exist yet, so this file currently fails at
collection (FileNotFoundError loading packaging/capability_matrix.py) -- that
is the expected starting state.
Adds packaging/capability_matrix.py: AST-derives the internal @tool count
(52, per-mixin breakdown), reuses export_openapi.build_spec() for the REST
surface (16 functional / 19 in contract), statically parses mcp_server.py
for the 4 MCP tool names, and reads the 6 eval-gate fixture files for
enforce/acceptance/wired state. Declares the curated OP_EVAL_COVERAGE,
MCP_SCOPE_DECISION, and EVAL_FOLLOWUP_PLAN constants, plus a
reconcile_tools_count guard that fails loud (naming the mismatch) if the
manifest, registration, and AST-derived tools_count ever disagree.

Markdown rendering and the CAPABILITY_MATRIX.md artifact land in the next
commit; this one is scoped to introspection + declared constants going
green against the test contract.
Checkpoint redirect: REST triage and triage/batch now map to the quality
suite in OP_EVAL_COVERAGE, matching their MCP twins (same EmailTriageService
code path, same eval coverage — the sentinel was wrong on the REST side).
The remaining REST/MCP pairs (draft/draft_reply -> drafting,
send/send_email -> sentinel) were already consistent.

The test contract's getattr hedges around reconcile_tools_count and the
AST-counter name-guessing indirection are replaced with direct references
now that the module API is settled — a rename breaks loudly instead of
silently reactivating a weaker fallback branch.

Follow-up plan text is corrected for issue state (#1266/#1949/#1950 are all
closed — cited as provenance, not pending work) and the followups tracking
issue promise is kept generic until the issue exists.
Generated by packaging/capability_matrix.py; the freshness test
(test_committed_capability_matrix_is_up_to_date) now byte-compares this
file against a fresh regeneration, so any surface change that is not
re-rendered fails CI with the one-line regenerate command. --check
verified to exit 0 on this tree.
#2013)

gaia-agent.yaml now carries the TOOLS_COUNT_DEFINITION comment directly above
tools_count, and a new test (orchestrator-authorized contract addition)
asserts the comment block contains a marker phrase sliced from the constant
itself — so the yaml comment, the matrix Definitions section, and the test
all trace to one string.

SPEC.md and README.md gain one reference line each pointing at
CAPABILITY_MATRIX.md as the canonical cross-surface capability inventory.
The followups CI-wiring plan now cites its tracking issue (#2040), the
Definitions bullet no longer doubles the "tools_count" prefix, and the
committed matrix is regenerated in lockstep (--check exits 0).
…ration time

Review fixes for the capability matrix:

- count_tools_in_source only matched bare @tool decorators; the framework
  also supports the call form @tool(...) (used by other mixins in the
  codebase), so the first email mixin adopting @tool(atomic=True) would have
  been silently uncounted — a hole in the drift guard itself. Both forms now
  count, and the synthetic-source test gains a call-form case.
- reconcile_tools_count is now wired into derive_matrix() (manifest read via
  raw-text parse, registration literal via AST), so a tools_count mismatch
  fails the generator and --check loudly, not just the pytest run:
  "tools_count sources disagree: gaia-agent.yaml=53,
  __init__.py build_registration()=52, AST-derived=52".
- Dead test hedges removed (dict-vs-attr _field helper, followups entry
  isinstance branch) now the return type is settled; plan-referential inline
  comment trimmed to a one-line WHY; both files black/isort-formatted.

No rendered byte changes; --check exits 0 on the aligned tree.
Main just flipped the briefing/drafting judge gates to report mode (#2038),
which would have made the plan prose ("already an enforcing release gate")
contradict the live enforce state rendered in each suite's section header
the moment this branch rebased. The prose now describes what each gate
measures and what happens next, and leaves the enforce/wired flags to the
derived header — the same duplication this issue exists to eliminate.
Matrix regenerated; --check exits 0.
Rebasing onto main picked up #2038 (briefing/drafting judge gates flipped
to report mode), and the freshness test failed until the matrix was
regenerated — this is the drift guard doing its job: a fixture change
cannot silently leave the committed matrix stale. Only the derived
enforce flags changed; the state-agnostic plan prose needed no edit.
@itomek

itomek commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator Author

Good call — filed as a follow-up: #2050 tracks publishing CAPABILITY_MATRIX.md to the agent hub website exactly the way README/SCORECARD/EVALUATION ride the publish pipeline (publish_to_r2.py flag → release workflow → workers/agent-hub catalog field, with worker tests). Keeping it out of this PR keeps this diff to the generator + drift guard; the matrix file itself is already versioned here, so the hub work is purely pipeline plumbing.

@itomek
itomek enabled auto-merge July 13, 2026 20:40
…x doc

PR #2044 review nits: the MCP name extractor now matches both plain and
async def (symmetry with count_tools_in_source — an async migration of the
MCP server must not silently zero the derived count), guarded by a
synthetic-file test. The npm CHANGELOG's 0.4.0 Added section gains the
CAPABILITY_MATRIX.md entry (doc-only for the package, no wire change).
@itomek
itomek force-pushed the tmi/2013-email-capability-matrix branch from c0953ff to 8dc737c Compare July 13, 2026 20:42
@itomek

itomek commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator Author

Both review nits addressed in 8dc737c, plus the rebase:

  • async-def hardening: _derive_mcp_tool_names now matches FunctionDef and AsyncFunctionDef (symmetric with the tool counter), guarded by a new synthetic-file test (test_mcp_name_parser_handles_async_def).
  • npm CHANGELOG: entry added under 0.4.0 / Added noting the new doc surface (doc-only for that package, no wire change).
  • Conflict resolved: rebased onto current main; the gaia-agent.yaml comment now carries the tools_count definition and points at both drift guards — this PR's AST-based reconcile and refactor(email): dedupe envelope helpers, unify token path, guard tools_count #2035's live-registry test (complementary, both kept).

Post-rebase validation: 12/12 capability-matrix tests, 372 passed full email suite, lint exit 0, --check exit 0. Hub-website publishing of the matrix is tracked in #2050 per the review discussion.

@github-actions

Copy link
Copy Markdown
Contributor

🟡 The "20 exposed ops" count in the capability-matrix table header is hardcoded prose that the byte-compare CI guard cannot catch when the surface changes.

After a new REST endpoint or MCP tool is added: render_markdown still outputs the hardcoded string "20 exposed ops (16 REST functional + 4 MCP)", so both the committed doc and a fresh regeneration contain the same wrong number — the byte-compare passes, but the committed matrix header contradicts the "Surface totals" section (which correctly uses matrix.rest_functional_count and len(matrix.mcp_tools) dynamically). Users reading the matrix would see the two counts disagree.

The fix is one line: replace the hardcoded string at packaging/capability_matrix.py line 484 with a dynamic interpolation so it always matches the live surface data.

🔍 Technical details

packaging/capability_matrix.py:484:

# current — silently drifts
lines.append("20 exposed ops (16 REST functional + 4 MCP) and their eval coverage:")

# fix — live-derived, always consistent with Surface totals
total = matrix.rest_functional_count + len(matrix.mcp_tools)
lines.append(
    f"{total} exposed ops ({matrix.rest_functional_count} REST functional + "
    f"{len(matrix.mcp_tools)} MCP) and their eval coverage:"
)

The "Surface totals" section already uses matrix.rest_functional_count and len(matrix.mcp_tools) correctly (lines 499–503). The prose header for the table should use the same sources so both sections stay in sync automatically.

…alues

The "20 exposed ops (16 REST functional + 4 MCP)" header prose was a
literal inside the generator, so a surface change would regenerate a matrix
whose table and totals update but whose header still claims the old counts
— and the byte-compare drift test cannot catch a literal the generator
itself carries. The header now interpolates rest_functional_count and
len(mcp_tools), the same derived sources the Surface totals section uses.
Rendered bytes are unchanged today (--check exits 0 against the committed
artifact); the hand-written 8/4/2-route footnote stays static by design.
@itomek

itomek commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator Author

Header-count nit fixed in 9ee44d0 — the capability-matrix table header now interpolates rest_functional_count + len(mcp_tools) from the same derived sources the Surface totals section uses, so a future surface change can no longer regenerate a matrix with a stale header that the byte-compare can't see. Rendered bytes are unchanged today (verified: --check exit 0 against the committed artifact without regenerating). Swept the rest of render_markdown for the same class — no other render-time count literals; the remaining static mentions live in the curated definition/decision constants and the hand-written out-of-contract footnote, which are deliberate.

Also re-validated on top of the branch update that pulled in #2045: 12/12 matrix tests (including the hard-coded 16/19 REST anchors against a fresh build_spec()), full email suite 392 passed, --check exit 0 — the REST-coverage merge changed no exported surface, and the drift guard correctly stayed quiet.

@itomek
itomek disabled auto-merge July 13, 2026 20:54
@itomek
itomek enabled auto-merge July 13, 2026 20:54
@github-actions

Copy link
Copy Markdown
Contributor

🟡 The header interpolation fix (9ee44d0) introduced an untested inconsistency between the markdown header and the table body.

render_markdown now sets the header count from matrix.rest_functional_count + len(matrix.mcp_tools) (derived live from source), but the table rows still come from the hardcoded OP_EVAL_COVERAGE dict. If a REST verb or MCP tool is added to the source, the header will say N+1 exposed ops while the table still shows N rows — a self-contradicting generated artifact. No test currently asserts that the two sources of truth stay in sync.

The AC1 drift test catches a stale committed doc, but if someone regenerates after adding a REST endpoint, the freshly generated markdown itself has the inconsistency — so AC1 passes while the artifact is wrong. matrix.rest_op_names (populated by _derive_rest()) exists precisely to verify this, but nothing uses it in the tests.

Fix: add one assertion to test_capability_matrix.py:

🔍 Technical details

The gap lives between these two lines in render_markdown:

# header — derived from live source
exposed_ops = matrix.rest_functional_count + len(matrix.mcp_tools)
lines.append(f"{exposed_ops} exposed ops ...")

# table body — hardcoded OP_EVAL_COVERAGE, NOT matrix.rest_op_names
for op in sorted(OP_EVAL_COVERAGE):
    ...

Add to hub/agents/python/email/tests/test_capability_matrix.py:

def test_op_eval_coverage_matches_derived_ops(matrix):
    """The hardcoded OP_EVAL_COVERAGE and the live-derived REST+MCP ops must
    agree, or render_markdown() produces a header count that contradicts the
    table row count."""
    derived = set(matrix.rest_op_names) | matrix.mcp_tools
    declared = set(capability_matrix.OP_EVAL_COVERAGE)
    assert derived == declared, (
        f"missing from OP_EVAL_COVERAGE: {derived - declared}; "
        f"extra in OP_EVAL_COVERAGE: {declared - derived}"
    )

This closes the gap matrix.rest_op_names was computed for but never checked against.

@itomek
itomek added this pull request to the merge queue Jul 13, 2026
Merged via the queue into main with commit 6f6111f Jul 13, 2026
26 checks passed
@itomek
itomek deleted the tmi/2013-email-capability-matrix branch July 13, 2026 21:00
kovtcharov-amd pushed a commit that referenced this pull request Jul 13, 2026
The code-derived capability matrix records each eval gate's enforce flag; setting
the perf gate to enforce:false (this PR) made it stale (perf: enforce=True ->
False), which the #2044 drift guard (test_capability_matrix.py) correctly caught
and failed the Email Agent Unit Tests. Regenerated via
packaging/capability_matrix.py.
@itomek

itomek commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator Author

Heads-up from #2066 (hub publishing of this file): the leading <!-- Generated by packaging/capability_matrix.py -- do not edit by hand. --> marker renders as visible text on the hub page's Capabilities tab — the site's markdown sanitizer escapes HTML comments rather than stripping them. Screenshot: https://raw.githubusercontent.com/amd/gaia/evidence/2050-capability-matrix/capabilities-tab-viewport.png

Cheapest fix is in the generator: emit the do-not-edit marker as a plain line the renderer shows intentionally (e.g. an italic footer), or move it below the title. Worth folding into this PR since the generator ships here.

pull Bot pushed a commit to bhardwajRahul/gaia that referenced this pull request Jul 14, 2026
…md#2066)

Closes amd#2050

Before: the code-derived `CAPABILITY_MATRIX.md` (amd#2044) only lives in
the repo — hub visitors can't see the email agent's validated tool
surface without leaving the site. After: publishing a release uploads it
like the other catalog docs, the catalog serves it per version exactly
like `EVALUATION.md`, and the hub page renders it as a **Capabilities**
tab. The doc-tab rendering lives in this repo
(`website/src/pages/hub/[id].astro`), so the tab ships here too — no
external rendering boundary.

Mergeable ahead of amd#2044: the release workflow guards on file presence,
so releases cut before the matrix file lands simply publish without it
(never a silent default — a *passed-but-missing* flag still fails
loudly).

**⚠️ Deploy ordering:** the production Worker is deployed manually.
Deploy it before the next `agent-pkg-email-*` release, or the old Worker
silently ignores the new `capability_matrix` part (the same designed
degradation every prior doc-part addition had). Follow-up amd#2065 proposes
a response echo that closes this window for good, plus the doc-part
dedup.

Two deliberate deviations from pure pattern-mirroring, both
review-driven:
- `toIndexEntry`'s trailing string params became one options object — a
positional transposition typechecked silently and would have corrupted
scorecard fields for **every** catalog agent on rebuild.
- New `agent_hub_worker_ci.yml` — nothing in CI ran the worker suite
before; the tests guarding the shared catalog contract were local-only.

Known cosmetic: the matrix file's leading `<!-- Generated by … -->`
marker renders as visible text on the tab (the site's markdown sanitizer
escapes HTML comments). Content comes from amd#2044's generator — noted
there.

## Evidence (real-world, local Worker via `wrangler dev` + real CLI)

Rendered **Capabilities** tab, served from a real publish → catalog →
website round trip:

![Capabilities
tab](https://raw.githubusercontent.com/amd/gaia/evidence/2050-capability-matrix/capabilities-tab-viewport.png)

<details>
<summary>🔍 CLI + HTTP evidence (publish 201, catalog field,
byte-identical serve, error path, workflow-guard simulation)</summary>

Real publish with the real amd#2044 matrix content (5,889 bytes) — tested
by running the actual CLI against a local Worker (miniflare R2):

```
$ AGENT_HUB_PUBLISH_TOKEN=*** python hub/agents/python/email/packaging/publish_to_r2.py \
    --base-url http://127.0.0.1:8787 --manifest hub/agents/python/email/gaia-agent.yaml \
    --capability-matrix CAPABILITY_MATRIX.md --artifact email-agent-linux-x64=linux-x64
[publish] attaching capability matrix: .../CAPABILITY_MATRIX.md (5889 bytes)
[publish] email-agent-linux-x64 (4096 bytes, sha256=1a458efa2ae4…) -> [email protected]
[publish] OK 201 — stored, server sha256 verified. [email protected] now has 1 artifact(s).
```

Catalog index carries the field; the per-version doc GET is
byte-identical to the source:

```
$ curl -s http://127.0.0.1:8787/index.json | jq '…email.capability_matrix'
capability_matrix present: True | length: 5889
$ curl -s http://127.0.0.1:8787/agents/email/0.4.0/CAPABILITY_MATRIX.md | diff - CAPABILITY_MATRIX.md
HTTP 200, content-type text/markdown; charset=utf-8
BYTE-IDENTICAL ✓
```

Missing-file error convention (mirrors `--evaluation`):

```
$ python …/publish_to_r2.py … --capability-matrix /nope/CAPABILITY_MATRIX.md
error: --capability-matrix path not found: /nope/CAPABILITY_MATRIX.md. Pass the agent's CAPABILITY_MATRIX.md, or omit --capability-matrix to publish without one.
exit=1
```

Workflow-guard block simulated verbatim under the runner's bash (5.3,
`set -euo pipefail`), both branches — tested in a `bash:5` container:

```
--- CAPABILITY_MATRIX.md ABSENT (pre-amd#2044) ---
assembled: python publish_to_r2.py --artifact bins/email-agent-linux-x64
--- CAPABILITY_MATRIX.md PRESENT (post-amd#2044) ---
assembled: python publish_to_r2.py --capability-matrix hub/agents/python/email/CAPABILITY_MATRIX.md --artifact bins/email-agent-linux-x64
```

Full-page render:
[capabilities-tab-fullpage.png](https://raw.githubusercontent.com/amd/gaia/evidence/2050-capability-matrix/capabilities-tab-fullpage.png)

</details>

## Test plan

- [x] Worker suite: `cd workers/agent-hub && npm test` — 71/71 (was 70;
+1 cross-version test, 2 existing tests extended), `npm run typecheck`
clean
- [x] Website: `npx astro check` 0 errors, `npm test` 26/26
- [x] `publish_to_r2.py --help` shows `--capability-matrix`;
missing-file path exits 1 with the exact documented message
- [x] Real-world publish → catalog → website round trip (evidence above)
- [ ] Reviewer: after merge + manual Worker deploy, the next
`agent-pkg-email-*` release's catalog entry should carry
`capability_matrix` (needs amd#2044 merged for the file to exist)

---------

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

Labels

agent::email Email agent changes agent eval Evaluation framework changes ready_for_ci Run CI workflows on draft PR without requesting review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align email agent tool surfaces: MCP / REST / internal tools / evals are out of sync

3 participants