internal/agenthub/testdata/trust/README.md

Shared trust and transport test data

These language-neutral vectors are shared by Hub identity, records, invitation, pairing, storage, gateway and application tests. Keys, roots, nonces and TLS secrets are deterministic public test material, never production credentials.

FilesTest owners
identity.json, endpoint-certificates.jsonidentity
records.json, record-semantics.json, record-state.json, records-manifest.jsonrecords
pairing.jsonpairingwire, directory
invitation.json, tls-exporters.jsoninvitation, invitationwire
storage/store, clienttransport
gateway.json, gateway-list.txt, gateway-state.jsongateway
configuration.yamlconfig
application.json, application-state.jsonapplication, endpoint

Typed private-control literals and their transport tests live in pkg/ezhubapi, with the corpus in testdata/control.json. check-config-control.rb and reproduce-control.rb use that corpus directly.

Checking and maintenance

From the repository root, run just test-agenthub-fixtures for independent Ruby checks. Normal Go package tests consume the checked-in vectors. The Ruby checkers do not import production codecs or their generators.

The subdirectories containing main.go are explicit fixture generators, not packages in the default Go aggregate. Each generator supports -check to compare its output without rewriting fixtures, for example:

sh
1go run ./internal/agenthub/testdata/trust/pairing -check

Ruby reproduce-*.rb generators support --check. Regeneration is a deliberate maintenance operation; ordinary tests must not derive their expected bytes from the codec being tested. Preserve independently known literals when moving or simplifying a test.

The identity vectors bind the checked-in EFF wordlist digest. See the identity reference for the implemented presentation rules. Runtime TLS, persistence and joined shutdown coverage belongs to package tests, not these static vectors.