Skip to content

docs(core): read the agent card version as the card's own (#211) - #255

Merged
juancguerrerodev merged 7 commits into
DojoCodingLabs:mainfrom
saurabhbhoir456:fix/agent-card-version-211
Dec 6, 2026
Merged

juancguerrerodev merged 7 commits into
DojoCodingLabs:mainfrom
saurabhbhoir456:fix/agent-card-version-211

Conversation

@saurabhbhoir456

@saurabhbhoir456 saurabhbhoir456 commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

For #211, the #133 box only. The other boxes in #211 stay open.

The comment on AGENT_CARD_VERSION called it the "A2A 1.0 schema version". In A2A 1.0, AgentCard.version is "The
version of the agent"; the protocol version lives in AgentInterface.protocolVersion, a binding field. The comment
now reads as the card's own version, and says the protocol version is not this one. Comment only: the value ("1.0")
and every place it is emitted are unchanged.

Also the optional test from the same review point. The name path (name: bot.name, through quoteSafe and
neutralize) had no hostile case like the role one has, so a new test mirrors the role case: a bot name with line
breaks, untrusted markers, quotes and a direction override, repeated past the cap, must come out at most
MAX_BOT_NAME_CHARS characters, single line, without quotes, untrusted markers or the override, and still start
with the name's own first word.

Mutation check: with the name passed through raw, only the new test fails (every other test still passes), which is
the hole the review point named.

How to check

pnpm --filter @hermit/core test test/agent-card.test.ts
pnpm --filter @hermit/core test
pnpm --filter @hermit/core typecheck

Pull request template

What and why

For #211 (its #133 box).

Rewords the AGENT_CARD_VERSION comment to the card's own version, and adds the optional name-path test.

Vision fit

Principle 3, the model proposes, code decides: the card is generated by code, and its version field now says what A2A defines it to say.

Non-negotiables

  • This keeps every non-negotiable in AGENTS.md as it is.
  • Or it changes one, and this is the accepted RFC: n/a

Checklist

  • It closes one issue, linked above, or it's a small fix (a typo, a broken link, a wrong comment). A feature has an accepted proposal.
  • I wrote the failing test first. It fails without this change and passes with it. The source change is a comment, so the new name test was mutation-checked instead: bypassing the name sanitizer fails only that test.
  • These pass: pnpm check:privacy, pnpm typecheck, pnpm lint, pnpm test and node scripts/guard/check.mjs --patterns scripts/guard/patterns.txt. Gate note: privacy and guard pass on this checkout today; the rest was run per package as listed under AI agents, not as one root gate on this Windows machine, where unrelated pre-existing failures appear in the site badges, the devices table and mobile source scans.
  • No new network call, telemetry, analytics, ads or crash reporting. (A new request in an app adapter is explained below, with its host, skill and risk.)
  • No new dependency, or the reason for each one is below.
  • Every UI string is in packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes.
  • Tests, fixtures and screenshots use made-up data only.

Model path

  • This doesn't touch the model path: packages/model, agent, skills or eval, the prompt, the router, tool descriptions, normalizers, examples or the model file.
  • It does. The eval numbers from before and after are below, run as docs/evals.md says. No held-out case was tuned on.

Screenshots

  • No UI change.
  • UI change. Each changed screen is below, in both themes and both languages, with made-up data.

New dependencies and network calls

None. No new dependency and no new network call.

AI agents

  • No AI agent wrote any part of this.
  • An AI agent helped. Which one, and what it did: Tinsel Alpha, an AI coding agent running in OpenCode, drafted the change and this description and ran the checks below, in a session directed by the author, who reviewed each step's report before it was pushed.
  • I read and ran everything in this pull request, and I can explain it.

What was run: pnpm --filter @hermit/core exec vitest run test/agent-card.test.ts (7/7); full @hermit/core test (794/794); typecheck; eslint.

@juancguerrerodev

Copy link
Copy Markdown
Contributor

Ready to merge once the pull request template is filled in, including the "I read and ran everything" box (details on #234). 🦀

@juancguerrerodev
juancguerrerodev force-pushed the fix/agent-card-version-211 branch from 041ed8c to f0003ca Compare December 6, 2026 07:57
@juancguerrerodev
juancguerrerodev merged commit f0003ca into DojoCodingLabs:main Dec 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants