Skip to content

Conformance vectors

A conformance vector is a file of inputs and expected outputs that more than one implementation reads. They are what “the same rows, the same ids, the same signature” means in practice: when the Java framework, the Go framework and an SDK all pass the same file, they agree. This page indexes them. If you implement a runner, a verifier or an outbox writer in another language, these are the files to pass.

For the framework (conformance/ in the framework repository) the Java implementation is the reference. Each Java module has a vector test that runs the Java code on every input and compares the result with the committed expected output; run with -Dconformance.update=true it writes the file instead. The Go and Rust tests only compare (Rust covers the core areas: tsid, config, locks, migrations, the outbox and object-store keys; Go covers nearly all). A Go or Rust mismatch therefore means that implementation is wrong, or the vector exposes a Java bug, which is fixed in Java first.

Two areas are not written by Java: the field-token fixtures are generated by the platform (go run ./tools/field-fixtures), and the push vectors were written by hand for the first Go build.

To add a vector: add the input to the file (or a new file with a Java test that fills it), run the Java module’s tests in update mode, review the diff, commit both, then make the other implementations pass.

  • JSON values are compared as parsed values: key order and whitespace are free, values exact. JSON carried inside a string (an event’s data, an audit row’s operationData) is parsed and compared the same way.
  • Text files under sql/ and lua/ are compared as exact bytes: they are the statements and scripts both implementations send to the server, with no trailing newline. OpenAPI documents under openapi/ are also compared as exact bytes.
  • Generated values are pinned: vectors use fixed clocks and fixed ids. Where a value cannot be pinned, the vector says how it is checked.
  • An allowed difference is recorded in the vector as "rust": {...} with a reason, so a difference is always deliberate and visible.
  • Vectors written since 2026-10-18 open with description (setup, input format, how to read each expect) and howToRun (what a runner in another language does with a case). Where Java’s wording of an error is not part of the contract it is recorded as messageJava and not compared.

All paths are under conformance/ in the framework repository.

Area and files Written by What it pins Compared by
tsid/tsid.json framework-core IdsConformanceTest TSID decoding, canonical encoding, prefixes, the millisecond layout Go, Rust
config/config.json framework-core ConfigConformanceTest Environment names, value parsing, whole scenarios (sources in order, every problem, collisions) Go, Rust
sql/locks/*.sql framework-locks-database LockConformanceTest The three lock statements, byte for byte Go, Rust
lua/locks/*.lua framework-locks-redis LockScriptConformanceTest The three lock scripts, byte for byte Go, Rust
migrations/*.json LockConformanceTest, OutboxConformanceTest, OrdersConformanceTest The fw_schema_history rows the migration runner writes for a migration set Go, Rust
sql/outbox/insert.sql framework-usecase OutboxConformanceTest The outbox INSERT (JDBC ? placeholders) Go, Rust, and the Go SDK (copy)
outbox/outbox.json OutboxConformanceTest The rows the outbox writer stores for events, dispatch jobs and audit entries (every column, the payload text) and the dispatch-job builder’s refusals Go, Rust, and the Go SDK (copy)
outbox/outbox-push.json the Go outbox conformance test The PUSH rows for the platform push gateway, with invalidPushes Go
receivers/context.json framework-flowcatalyst ReceiverContextConformanceTest The context a receiver hands its handler for a delivery Go
receivers/signature.json SignatureConformanceTest The receiver gate: per delivery accepted, or 401 UNAUTHENTICATED with a reason; the HMAC function alone Go
receivers/dispatch.json DispatchVectorConformanceTest POST /fc/dispatch for a handler outcome: status, FlowCatalyst-Outcome, body Go
receivers/scheduled-jobs.json ScheduledJobsVectorConformanceTest POST /fc/scheduled-jobs: validation, the 202, the overlap lock and the completion calls Go
flowcatalyst/job-targets.json JobTargetsConformanceTest The targetUrl the definition sync sends per scheduled job, and the start-up refusals Go
usecase/scenarios.json UseCaseScenariosConformanceTest Runner scenarios against PostgreSQL: phase trace, result kind and code, events, audits, rows Go
settings/client-settings.json, migrations/client-settings.json ClientSettingsConformanceTest Per-client settings: key rules, scripted reads and writes, the migration history row Go
ratelimit/gcra.json RateLimitConformanceTest GCRA decisions with a pinned clock, per-request policies, range checks Go
ratelimit/http.json RateLimitConformanceTest The rate-limit middleware: the 429 envelope, Retry-After and RateLimit-* headers, key resolvers Go
http/spa.json SpaConformanceTest The SPA fallback: routes, status, headers and body hash Go
auth/login-failure.json LoginFailureNavigationTest A sign-in that cannot start: a redirect for a browser navigation, or the JSON envelope Go
field/cases.json, field/jwks.json the platform’s tools/field-fixtures (copied) Field access tokens and DPoP proofs, valid and refused Go, Java
push/topics.json, tickets.json, wire.json, replay.json written by hand (not Java) Topics, types and data; EdDSA tickets with a published TEST key pair; the stream’s exact bytes; replay and reset with the client rule Go
i18n/cases.json framework-ui I18nConformanceTest The UI kit language mechanism: lookup, fallback, plurals (en, af, zu), locale resolution Go
admin/navigation.json framework-admin AdminConformanceTest GET /api/admin/navigation per held-permission set Go
admin/config.json AdminConfigConformanceTest GET /api/admin/config: settings with state, source and value; secrets never shown Go
admin/platform-reads.json, admin/activity.json, admin/users.json framework-flowcatalyst admin conformance tests The admin sections that read the platform: confined, filtered, sorted, cursor-paged answers, 404 for another application’s record, 502 PLATFORM_ERROR Go
objectstore/keys.json framework-objectstore tests Object-store key rules Go, Rust
openapi/*.json OpenApiConformanceTest, AuthOpenApiTest, the orders demo’s OpenAPI test OpenAPI documents compared as exact bytes: the fixture API covering every rule, the two session operations, a sample application Go
measure/*.json framework-measure MeasureConformanceTest Money, currency and units: decimal parsing and arithmetic, every rounding mode, money allocation, unit conversions, packaging, unit prices, one case per error code. The ISO 4217 and unit tables are shared byte for byte Go

The field/ files are the one place the platform feeds the framework: do not edit them in the framework; regenerate in the platform and copy, noting the source commit in field/README.md.

api/field-fixtures/cases.json and jwks.json are generated by the platform with go run ./tools/field-fixtures (access tokens RS256, proofs ES256). Each case gives accessToken, dpopProof, method, url, now and expect (valid, or the refusal reason such as missing_exp or alg_not_rs256). The verifier is configured with the file’s issuer and appCode and the keys in jwks.json, and each case is checked at its own now. The valid cases valid_unenrolled, valid_impersonated_supervisor, valid_impersonated_principal, valid_test and valid_linked carry a principal object that a verifier must expose. Two things differ from a running application, by design: the vectors carry the platform’s nonces, which an application cannot check, so the run switches the application-nonce check off; and the proof-age window is five minutes. Protocol: Field identity protocol.

Where What it pins
pkg/fcsdk/outbox/testdata/conformance/ in the platform repository (outbox.json, outbox-push.json, insert.sql, go-payloads.json) The Go SDK’s outbox rows, copied from the framework’s vectors; go-payloads.json pins the camelCase batch items the Go SDK writes
clients/rust-sdk/tests/fixtures/wire/ (event-full.json, event-minimal.json, dispatch-job-full.json, dispatch-job-minimal.json, audit-log-full.json, tsid-vectors.json, webhook-signatures.json) The Rust SDK’s wire shapes, TSID encoding and signature vectors
Webhook signatures Three vectors shared by every SDK verifier; see Delivery and webhook signatures
  1. Read the file’s description and howToRun.
  2. Run every case; compare per the rules above.
  3. A deliberate difference needs a recorded "rust": {...}-style entry with a reason, not a silent skip.
  4. When the vector and an old document disagree, the vector, and the code that wrote it, are the authority.