# A query manifest and three traces

> Research is not part of the Universal Paper language. It may grow, change, or be withdrawn. Agreements do not depend on it.

Research reusable 003 · Status: exploring · Published November 27, 2026 · No change to the language
Part of: Note 001, Agreements as query surfaces (https://universalpaper.org/research/query-surfaces/)

HTML: https://universalpaper.org/research/query-test-vectors/
Record (JSON): https://universalpaper.org/research/query-test-vectors/entry.json

The example manifest and its three traces as separate files, each with its fingerprint, for testing an engine or a fingerprint routine.
- **Simulated.** The parties are hypothetical, and no party signed the manifest.
- **Research formats.** The two formats are not part of the Universal Paper language and may change.
- **Free to reuse.** The files are CC0 1.0. No credit is required.

## The files

| File | What it is | Fingerprint |
|---|---|---|
| [manifest.json](https://universalpaper.org/research/query-test-vectors/manifest.json) | The example manifest: three named questions about one agreement, Master X. | `sha256:44bb1bb2ebbbd0bd3e05f9c3f7b539c5057b43d194f56a027d458167d3d293ae` |
| [trace-eligibility.json](https://universalpaper.org/research/query-test-vectors/trace-eligibility.json) | One answer to: Is this member covered by this agreement at this time? | `sha256:0da4824fb755d7c1acb3a7b85c21a11a063db5666adac06ac333fd057e262e38` |
| [trace-fee.json](https://universalpaper.org/research/query-test-vectors/trace-fee.json) | One answer to: What administrative fee is owed under this agreement at this time, and has it been paid? | `sha256:c398d0b7052d0c4ee706011a41363091198a66a3c2906ba1130ceb97d52326d0` |
| [trace-amendment.json](https://universalpaper.org/research/query-test-vectors/trace-amendment.json) | One answer to: Would this fee rate be accepted if the aggregator's agent proposed it under its Mandate? | `sha256:5210769fdb99b09fe422cc202350117c5f77b369d1258a211029769558eee6df` |

Each fingerprint is a content hash: canonical JSON (RFC 8785), then SHA-256. It is computed from the JSON value, so it does not change with spacing or line endings.

## How to use them

1. **Check your fingerprint code.** Canonicalize each file (RFC 8785), hash it with SHA-256, and compare with the fingerprint listed beside it.
2. **Check your engine.** Load the source bundle, run the call a trace names with the inputs it lists, trim the answer as the next item says, and compare your verdict and state fingerprints with the trace.
3. **Trim the answer.** A verdict keeps only part of the engine's answer. `simulate_eligibility`: keep `eligible`, and for each participation keep `chain` and `parent` as ChainIds, `status` and `tier`. `derive_state`: keep the obligations of the chain the manifest names (found by its ChainId in `validate_bundle`) whose `clause` is the one the question reads, each without its `chain` key. `simulate_amendment`: keep `accepted` and `change`, and keep `failed_checks` as `failed`, with only `rule` and `label` for each. The trace's `state` lists the ChainId and state fingerprint of the manifest's agreement, then of each participation the verdict names.
4. **Check a format.** Validate the manifest and the traces against the two schemas.

## The formats

- `up-research/query-manifest/0`: https://universalpaper.org/research/schema/0/query-manifest.schema.json
- `up-research/query-trace/0`: https://universalpaper.org/research/schema/0/query-trace.schema.json

## Source and license

Derived from the generative example bundle in the repository (https://github.com/Uppercentile/universal-paper/blob/main/examples/generative/bundle.json). The verdicts and state fingerprints are the values the hosted reference engine returned on November 27, 2026, asked about 2027-03-01T00:00:00Z.

Kind: Reusable. Topics: Queries and discovery, Fingerprints and state, Engines and conformance. Built on: `simulate_eligibility`, `derive_state`, `simulate_amendment`, `hash_object`.
