Repository navigation
docs(core): read the agent card version as the card's own (#211) - #255
Merged
juancguerrerodev merged 7 commits intoDec 6, 2026
Merged
juancguerrerodev merged 7 commits into
juancguerrerodev merged 7 commits into
Conversation
4 tasks
10 of 16 tasks
Contributor
|
Ready to merge once the pull request template is filled in, including the "I read and ran everything" box (details on #234). 🦀 |
juancguerrerodev
force-pushed
the
fix/agent-card-version-211
branch
from
December 6, 2026 07:57
041ed8c to
f0003ca
Compare
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.
For #211, the #133 box only. The other boxes in #211 stay open.
The comment on
AGENT_CARD_VERSIONcalled it the "A2A 1.0 schema version". In A2A 1.0,AgentCard.versionis "Theversion of the agent"; the protocol version lives in
AgentInterface.protocolVersion, a binding field. The commentnow 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
namepath (name: bot.name, throughquoteSafeandneutralize) had no hostile case like the role one has, so a new test mirrors the role case: a bot name with linebreaks, untrusted markers, quotes and a direction override, repeated past the cap, must come out at most
MAX_BOT_NAME_CHARScharacters, single line, without quotes, untrusted markers or the override, and still startwith 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
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
Checklist
acceptedproposal.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode 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.packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes.Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
New dependencies and network calls
None. No new dependency and no new network call.
AI agents
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.