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.
| Files | Test owners |
|---|---|
identity.json, endpoint-certificates.json | identity |
records.json, record-semantics.json, record-state.json, records-manifest.json | records |
pairing.json | pairingwire, directory |
invitation.json, tls-exporters.json | invitation, invitationwire |
storage/ | store, clienttransport |
gateway.json, gateway-list.txt, gateway-state.json | gateway |
configuration.yaml | config |
application.json, application-state.json | application, 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:
| 1 | go 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.