feat(a2a): Workstream A — Schema, types, and validator#37
Merged
dgarson merged 2 commits intoa2a-protocolfrom Feb 21, 2026
Merged
feat(a2a): Workstream A — Schema, types, and validator#37dgarson merged 2 commits intoa2a-protocolfrom
dgarson merged 2 commits intoa2a-protocolfrom
Conversation
Implements the full type system and validation layer for the Agent-to-Agent Communication Protocol (openclaw.a2a.v1). Files: - src/gateway/a2a/types.ts — TypeScript types for all 7 message types + envelope - src/gateway/a2a/schema.ts — JSON Schema definitions for runtime validation (ajv) - src/gateway/a2a/validator.ts — validateA2AMessage() with descriptive errors - src/gateway/a2a/index.ts — Barrel export - test/a2a/validator.test.ts — 82 tests, 100% pass Includes semantic validation: - task_response requires reason when action is declined/failed/blocked - review_response requires unresolvedConcerns when verdict is changes_requested Ref: /Users/openclaw/.openclaw/workspace/_shared/specs/a2a-communication-protocol.md
Owner
Author
|
Tim review (Workstream A) complete. I found and fixed one correctness gap directly on this branch:
✅ Fix pushed:
✅ Validation run locally in
From an architecture standpoint, this workstream now looks solid and merge-ready. |
Owner
Author
|
Starting review — Tim |
Owner
Author
|
Review complete — looks good from architecture side. Merging into a2a-protocol now. — Tim |
dgarson
added a commit
that referenced
this pull request
Feb 22, 2026
KnowledgeBase: doc library with markdown render, master/detail, 8 seed docs CrashReporter: crash event log with stack traces, 8 reports, filter chips Sprint total: 37 views
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.
Workstream A: Schema & Validation Layer
Implements the core A2A protocol schema, TypeScript types, and message validator.
Spec:
_shared/specs/a2a-communication-protocol.mdWhat's included:
task_request,task_response,review_request,review_response,status_update,knowledge_share,broadcast)Dependencies:
PR Target:
a2a-protocolmegabranch (will be reviewed in aggregate before merging todgarson/fork)Author: Amadeus (CAIO)
Reviewer: Tim (VP Architecture)