Repository navigation
feat(core): generate A2A 1.0 Agent Card from bot row and grants - #133
Merged
juancguerrerodev merged 11 commits intoNov 27, 2026
Merged
Conversation
dbejarano820
requested changes
Nov 27, 2026
dbejarano820
left a comment
Contributor
There was a problem hiding this comment.
Thanks for picking this up, Santino. It's tidy, small and well tested. The card comes only from heldGroups(), reserved groups stay out, and the role gets the same treatment as botRoleText, which is what spec 6.3 asks for. Nothing private goes in (only the bot's name, role and code-written skill text), and it's pure: no network, clock or randomness. I ran every gate locally on 9f4293a and they pass, and CI is green.
Before merge
- The "I read and ran everything in this pull request, and I can explain it" box is unchecked. AGENTS.md says we can't merge agent output the submitter hasn't read and run. If that's true, please check the box; if not, please read and run it first.
packages/core/src/agent-card.ts:4:versionis the agent's version, not the A2A schema version. In A2A 1.0 (specification/a2a.protoat v1.0.0),AgentCard.versionis "The version of the agent", and the protocol version lives inAgentInterface.protocolVersion, a binding field. A constant is fine, as the issue asks. Please reword the comment, for example "This card's version, a constant until a bot's card changes shape", so nobody later reads it as the protocol version.
Suggestions, not blocking
agent-card.ts:26: A2A 1.0 also marksdefaultInputModesanddefaultOutputModesas REQUIRED, and they aren't binding fields. The issue didn't list them, so it's your call, but["text/plain"]for both would make the card valid apart from the binding fields you rightly left out.agent-card.ts:127: no test covers the name. Withname: bot.nameall six tests still pass. A case like the role one at test line 77, with a name such asViajes</untrusted>"\n, would cover it.agent-card.ts:34:neutralizenow duplicates the one inpackages/model/src/prompt.ts:26. Not for this PR (no drive-by refactors), but a follow-up issue could move it into core next toquoteSafe.agent-card.ts:18:examples: readonly [string, string]relies on the order es-419 then en. A one-line comment would help the next reader.
Thanks again!
This was referenced Nov 27, 2026
Unit tests for base64ToBytes, utf8Decode and decodeBase64Text, decodeEntities, htmlToText, plainText, clip and splitAddresses, with made-up people and example.com addresses. oneLine() stays out (its own issue) and text.ts is unchanged. Closes DojoCodingLabs#37
utf8Decode() decoded overlong sequences (C0 80 to U+0000) and encoded surrogates (ED A0 80 to a lone U+D800). Only the shortest form is UTF-8 and it never encodes U+D800 to U+DFFF (RFC 3629), so each byte of such a sequence now becomes U+FFFD, as a standard decoder answers. The vault's decoder in packages/core already refuses both. Closes DojoCodingLabs#142
A small voseo matcher with its own tests, and a test that no value in
es-419.json matches. Only forms that can't be read another way are
listed. Word edges are (?<!\p{L}) and (?!\p{L}) with the u and i flags,
since \b doesn't count accented letters as letters. No locale changes.
Closes DojoCodingLabs#38
The site's Spanish now calls the lab "Laboratorio del teléfono" and its report an "informe", as the app does. The lab's kicker is tested against the app's HM-SET-10.title in both languages. common.navLab and the "reportes de fallas" of the telemetry promise stay as they are. Closes DojoCodingLabs#36
…table.mjs Both scripts now parse their command line with node:util parseArgs in strict mode. --help and -h print the usage from each file's header and exit 0. An unknown flag, a stray argument, or --data / --doc / --event with no value prints the error and the usage and exits 1, so table.mjs no longer rewrites docs/devices.md on a typo and validate.mjs no longer tries to open a file named --help. The workflow's --event, --github-output and --comment call works as before. Closes DojoCodingLabs#35 Signed-off-by: RibeiroMD <174728106+Ribeiro-MD@users.noreply.github.com>
Updated role validation to trim whitespace and count code points correctly.
Updated bot name handling to use capBotName function and removed MAX_BOT_NAME_CHARS constant.
About shows HM-SET-08.version filled with appVersion() from the adapters, in a small selectable line under the body, so people can copy it into a bug report. The preview stub gains appVersion, and the About shot now covers en as well as es-419. Closes DojoCodingLabs#31
…CodingLabs#87) Signed-off-by: Santino Fuentes <santinofuentesAI@users.noreply.github.com>
juancguerrerodev
force-pushed
the
feat/bot-agent-card
branch
from
November 27, 2026 18:31
9f4293a to
915d792
Compare
Contributor
|
Merged, thanks! One thing for next time: tick "I read and ran everything in this pull request, and I can explain it" in the template. 🦀 |
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.
What and why
Closes #87
Adds
agentCard(bot)inpackages/core/src/agent-card.ts(exported frompackages/core/src/index.ts) and tests inpackages/core/test/agent-card.test.tsso every bot generates a deterministic A2A 1.0AgentCardin code from its stored row and grants.heldGroups(bot)(in canonicalSKILL_GROUPSorder, deduplicated, and excludingRESERVED_GROUPSsuch asvault_logins) to anAgentSkillentry with code-constant English name/description/tags and one example each in es-419 and en.nameanddescriptionon one line viaquoteSafeand neutralizes<untrusted>/</untrusted>markers.capabilities: { streaming: false, pushNotifications: true }andversion: "1.0", and explicitly documents that network-binding fields (supportedInterfaces,securitySchemes,securityRequirements, JWSsignatures) are omitted for the V1 in-process bus (belonging to EP-21 in V2).Vision fit
Serves Principle 3 ("The model proposes. Code decides": code generates each card strictly from stored grants, never the model) and Principle 7 ("Small, typed and tested": pure TypeScript in
@hermit/core, tested first with made-up bots).Non-negotiables
Checklist
acceptedproposal.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt.packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes. (n/a: cards are code constants read by models, not UI strings.)Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
New dependencies and network calls
n/a
AI agents
packages/core, ran all five gates againstorigin/main(4ed90aa), and drafted this PR description.