# The same answer by ChainId and by position

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

Research experiment 018 · Status: concluded · Run November 28, 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/same-answer-by-chain-id/
Record (JSON): https://universalpaper.org/research/same-answer-by-chain-id/entry.json

Six engine calls were each asked twice on release 0.1.4, once naming the chain by position and once by ChainId. Every pair of answers was the same.
## The claim

Since release 0.1.4, each engine call that took a chain's position gives the same answer whether the chain is named by its ChainId or by its position.

## Result: held

All six pairs of answers were the same. The three calls that should fail were refused, each with a reason.

## What was run

1. Took the public generative example bundle. `validate_bundle` lists its four chains, each with a position and a ChainId.
2. Asked six calls twice each on the hosted engine, which reported release 0.1.4. One time the chain was named by position, the other time by ChainId. Nothing else in the call changed.
3. Compared the two answers of each pair as whole values, and the two rendered texts character by character.
4. Asked three calls that should fail: a ChainId that is not in the bundle, a position past the end of the bundle, and a name that is neither.

## What matched

| What was compared | Computed by | Result |
|---|---|---|
| simulate_eligibility, parent: position 0 and the ChainId of Master X | Hosted engine, release 0.1.4, asked both ways | Equal |
| simulate_price_conformity, chain: position 2 and the ChainId of the participation | Hosted engine, release 0.1.4, asked both ways | Equal |
| simulate_amendment, chain: position 0 and the ChainId of Master X | Hosted engine, release 0.1.4, asked both ways | Equal |
| simulate_termination, chain: position 0 and the ChainId of Master X | Hosted engine, release 0.1.4, asked both ways | Equal |
| render_text, chain: position 0 and the ChainId of Master X | Hosted engine, release 0.1.4, asked both ways | Equal |
| render_text, chain: position 2 and the ChainId of the participation | Hosted engine, release 0.1.4, asked both ways | Equal |

- ChainId of Master X: `sha256:306149286ea760f5a855d1ea2ad9da8ed7a349a272d0d9ed0128c179c09fc3af`
- State fingerprint of Master X: `sha256:c198cefe6c519bf30af389a71fb0bc346f5fd3906865d1662941b47db3e31424`
- ChainId of the participation: `sha256:05abdba1a9767eb41cda54473f08571bf772c177079382567f14f1917c929059`
- State fingerprint of the participation: `sha256:a2089a7aab47d8fb55cbb29702f75a4a12a11636d5d7f11ee835f1525c268965`

## What this does not show

- The calls were run on the hosted engine only. The local server from the same release was not run for this experiment.
- One bundle. Two of its four chains were named.
- The answers do not all name a chain the same way. The eligibility answer gives the ChainId beside the position. The price and termination answers give the position only, such as `"chain": 2`.
- `simulate_events` and `check_event` name the chain inside each event. They were not part of this.

## Run it yourself

The MCP server is a convenience, not the source. The answer comes from the bytes, and a local engine must give the same answers.

- Local server: `uvx universal-paper-mcp`
- Files: https://universalpaper.org/research/query-test-vectors/

Kind: Experiment. Topics: Engines and conformance, Queries and discovery, Membership and eligibility. Built on: `simulate_eligibility`, `simulate_price_conformity`, `simulate_amendment`, `simulate_termination`, `render_text`, `validate_bundle`.
