feat(demo): add Agent-to-Agent binding walkthrough - #14
Merged
Conversation
thinksyncs
force-pushed
the
feat/a2a-demo
branch
from
July 31, 2026 21:13
a05b8ac to
cc53b41
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a runnable Agent-to-Agent (A→B) localhost demo showcasing the project’s secure binding flow (mTLS 1.3 + TLS exporter + request-context binding) and several fail-closed rejection scenarios, alongside a Makefile target and README docs to make the walkthrough easy to run.
Changes:
- Documented a new
make demo-a2awalkthrough inREADME.md. - Added a
demo-a2aMakefile target to run the new example. - Introduced
examples/a2ademo implementation plus a smoke test validating expected outputs.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Documents the new Agent-to-Agent demo entrypoint and what it demonstrates. |
| Makefile | Adds demo-a2a phony target to run the example with the selected Go toolchain. |
| examples/a2a/main.go | Implements the end-to-end localhost mTLS demo with grant + session binding verification and replay checks. |
| examples/a2a/main_test.go | Adds a test that runs the demo and asserts expected scenario outputs are present. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+319
to
+325
| func (d *demoRuntime) dial() (*agentConnection, error) { | ||
| conn, err := tls.Dial("tcp", d.address, d.clientTLS.Clone()) | ||
| if err != nil { | ||
| return nil, fmt.Errorf("Agent A connect to Agent B: %w", err) | ||
| } | ||
| return &agentConnection{conn: conn, reader: bufio.NewReader(conn)}, nil | ||
| } |
Comment on lines
+258
to
+260
| fmt.Fprintln(out) | ||
| fmt.Fprintf(out, "summary: %d/%d expected decisions observed\n", completed, completed) | ||
| fmt.Fprintln(out, "ephemeral certificates and signing keys were not written to disk") |
thinksyncs
force-pushed
the
feat/a2a-demo
branch
from
July 31, 2026 21:16
cc53b41 to
7defc5f
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.
Summary
Changes
go run ./examples/a2a.Testing
go run ./examples/a2ago test -race -count=1 ./examples/a2ago vet ./examples/a2ago test -count=1 ./...make product-security-gateNotes