Repository navigation
docs: add layered architecture diagrams - #163
Open
kperry-godaddy wants to merge 4 commits into
Open
kperry-godaddy wants to merge 4 commits into
kperry-godaddy wants to merge 4 commits into
Conversation
Add a partner-facing system topology diagram of the ANS reference
implementation as an editable draw.io file with an SVG export, and
embed the SVG in the README's Architecture section in place of the
ASCII sketch.
The diagram groups components by trust boundary (agent owner, ANS
operator, verifiers/consumers), shows the three daemons with their
ports, routes, default adapters and stores, sets the dev-only tooling
apart, and numbers the edges to tell the register -> seal -> discover
-> verify lifecycle on one page. Labels are plain SVG text (no
foreignObject) so GitHub renders the SVG as-is; keep word wrap off
when editing in the draw.io GUI or the export regresses.
Re-export after editing the .drawio:
drawio -x -f svg --embed-diagram --embed-svg-fonts false --theme light --border 8 \
-o docs/architecture/reference-implementation.svg \
docs/architecture/reference-implementation.drawio
A raster copy for slides is one more command (-f png --scale 2); it is
not committed because it exceeds the repository's 500 KB added-file
limit.
Signed-off-by: kperry <kperry@godaddy.com>
kperry-godaddy
marked this pull request as ready for review
November 20, 2026 06:12
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The diagram misidentifies the leaf-hash input, which could cause inclusion-proof verification failures, and the README inaccurately claims exclusive verification dependencies.
2 open issues
What changed in this PR
Adds a partner-facing architecture diagram showing how ANS components work together, replacing the README’s ASCII sketch. This is a documentation-only change.
Changes:
- Maps trust boundaries, services, APIs, adapters, and storage.
- Illustrates the register → seal → discover → verify lifecycle and separates development tooling.
- Provides editable draw.io source and an SVG export embedded in the README.
| File | Description |
|---|---|
| README.md | Embeds the diagram and updates the architecture description. |
| docs/architecture/reference-implementation.svg | Provides the rendered topology and lifecycle diagram. |
| docs/architecture/reference-implementation.drawio | Provides the editable diagram source. |
Review effort: Balanced
The ingest label said the leaf is SHA-256(0x00 || event), which reads as the producer-event request body. The TL hashes the JCS-canonical signed envelope it builds around that body (event.Envelope.LeafBytes), and the receipt payload carries those same envelope bytes, so the label now distinguishes the body the RA posts from the envelope bytes the leaf and receipt are computed over. The README claimed ans-verify depends only on internal/tl/receipt. It also uses internal/lognote to verify checkpoints in the list subcommand and internal/domain to parse ANS names, so the sentence now names the receipt and checkpoint verification paths and states the real boundary: no dependency on the TL's storage or service layer. Signed-off-by: kperry <kperry@godaddy.com>
The one-page topology diagram showed every route, adapter and store at once and was too dense to read at README width. Replace it with eight diagrams meant to be read in order: - an overview of the components and who talks to whom - one diagram per component: Registration Authority, Transparency Log, ARD Discovery, Agent Trust Discovery, Verifier - two sequences: registering an agent, and finding and trusting one The diagrams describe roles rather than a deployment, so none of them names a storage engine, key store or adapter. ARD Discovery and Agent Trust Discovery are drawn as services that build on ANS public records without special access. A client can search either one for an agent, and Agent Trust Discovery adds trust scores. docs/architecture/README.md indexes the set and explains each diagram. The project README now embeds the overview and links to that index. All eight diagrams are pages of docs/architecture/architecture.drawio. The SVGs are per-page exports, and the index documents the export loop. Labels are exported as plain SVG text with no foreignObject, which GitHub does not render. Signed-off-by: kperry <kperry@godaddy.com>
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
Layered architecture diagrams for the README and
docs/architecture/.An earlier revision of this PR added one dense topology diagram. It showed every route, adapter and store at once and was hard to read at README width. This revision replaces it with eight diagrams meant to be read in order:
docs/architecture/README.mdindexes the set and explains each diagram. The project README embeds the overview in place of the ASCII sketch and links to that index.Notes for reviewers
agentnameservice/agent-trust-discovery.docs/architecture/ans-finder.md. The file itself is unchanged.docs/architecture/architecture.drawio. Each SVG is the export of one page, and the index documents the export loop. Labels are plain<text>nodes (noforeignObject), so GitHub renders them as-is. When editing in the draw.io GUI keep Word Wrap off, or the next export regresses toforeignObject.Assisted by Claude Code (Claude Fable 5.2)