{
  "$schema": "https://universalpaper.org/research/schema/0/entry.schema.json",
  "format": "up-research/entry/0",
  "number": 18,
  "kind": "experiment",
  "slug": "same-answer-by-chain-id",
  "title": "The same answer by ChainId and by position",
  "summary": "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.",
  "status": "concluded",
  "topics": [
    "engines",
    "queries",
    "membership"
  ],
  "language_change": "none",
  "built_on": [
    "simulate_eligibility",
    "simulate_price_conformity",
    "simulate_amendment",
    "simulate_termination",
    "render_text",
    "validate_bundle"
  ],
  "published": "2026-11-28",
  "updated": "2026-11-29",
  "parent": 1,
  "related": [
    9,
    3
  ],
  "outcome": "held",
  "license": "CC-BY-4.0",
  "reading_minutes": 4,
  "url": "https://universalpaper.org/research/same-answer-by-chain-id/",
  "markdown": "https://universalpaper.org/research/same-answer-by-chain-id.md",
  "json": "https://universalpaper.org/research/same-answer-by-chain-id/entry.json",
  "notice": "Research is not part of the Universal Paper language. It may grow, change, or be withdrawn. Agreements do not depend on it.",
  "detail": {
    "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.",
    "method": [
      "Took the public generative example bundle. `validate_bundle` lists its four chains, each with a position and a ChainId.",
      "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.",
      "Compared the two answers of each pair as whole values, and the two rendered texts character by character.",
      "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."
    ],
    "result": {
      "outcome": "held",
      "summary": "All six pairs of answers were the same. The three calls that should fail were refused, each with a reason."
    },
    "checks": [
      {
        "what": "simulate_eligibility, parent: position 0 and the ChainId of Master X",
        "by": "Hosted engine, release 0.1.4, asked both ways",
        "result": "equal"
      },
      {
        "what": "simulate_price_conformity, chain: position 2 and the ChainId of the participation",
        "by": "Hosted engine, release 0.1.4, asked both ways",
        "result": "equal"
      },
      {
        "what": "simulate_amendment, chain: position 0 and the ChainId of Master X",
        "by": "Hosted engine, release 0.1.4, asked both ways",
        "result": "equal"
      },
      {
        "what": "simulate_termination, chain: position 0 and the ChainId of Master X",
        "by": "Hosted engine, release 0.1.4, asked both ways",
        "result": "equal"
      },
      {
        "what": "render_text, chain: position 0 and the ChainId of Master X",
        "by": "Hosted engine, release 0.1.4, asked both ways",
        "result": "equal"
      },
      {
        "what": "render_text, chain: position 2 and the ChainId of the participation",
        "by": "Hosted engine, release 0.1.4, asked both ways",
        "result": "equal"
      }
    ],
    "limits": [
      "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": [
      {
        "label": "Local server",
        "command": "uvx universal-paper-mcp"
      }
    ],
    "files": [
      {
        "name": "manifest.json",
        "url": "https://universalpaper.org/research/query-test-vectors/manifest.json",
        "media_type": "application/json",
        "describes": "The example manifest: three named questions about one agreement, Master X.",
        "format": "up-research/query-manifest/0",
        "schema": "https://universalpaper.org/research/schema/0/query-manifest.schema.json",
        "fingerprint": "sha256:44bb1bb2ebbbd0bd3e05f9c3f7b539c5057b43d194f56a027d458167d3d293ae",
        "bytes": 2163,
        "license": "CC0-1.0",
        "simulated": true
      },
      {
        "name": "trace-eligibility.json",
        "url": "https://universalpaper.org/research/query-test-vectors/trace-eligibility.json",
        "media_type": "application/json",
        "describes": "One answer to: Is this member covered by this agreement at this time?",
        "format": "up-research/query-trace/0",
        "schema": "https://universalpaper.org/research/schema/0/query-trace.schema.json",
        "fingerprint": "sha256:0da4824fb755d7c1acb3a7b85c21a11a063db5666adac06ac333fd057e262e38",
        "bytes": 1208,
        "license": "CC0-1.0",
        "simulated": true
      },
      {
        "name": "trace-fee.json",
        "url": "https://universalpaper.org/research/query-test-vectors/trace-fee.json",
        "media_type": "application/json",
        "describes": "One answer to: What administrative fee is owed under this agreement at this time, and has it been paid?",
        "format": "up-research/query-trace/0",
        "schema": "https://universalpaper.org/research/schema/0/query-trace.schema.json",
        "fingerprint": "sha256:c398d0b7052d0c4ee706011a41363091198a66a3c2906ba1130ceb97d52326d0",
        "bytes": 1853,
        "license": "CC0-1.0",
        "simulated": true
      },
      {
        "name": "trace-amendment.json",
        "url": "https://universalpaper.org/research/query-test-vectors/trace-amendment.json",
        "media_type": "application/json",
        "describes": "One answer to: Would this fee rate be accepted if the aggregator's agent proposed it under its Mandate?",
        "format": "up-research/query-trace/0",
        "schema": "https://universalpaper.org/research/schema/0/query-trace.schema.json",
        "fingerprint": "sha256:5210769fdb99b09fe422cc202350117c5f77b369d1258a211029769558eee6df",
        "bytes": 1001,
        "license": "CC0-1.0",
        "simulated": true
      }
    ]
  },
  "refs": [
    {
      "number": 1,
      "kind": "note",
      "title": "Agreements as query surfaces",
      "status": "exploring",
      "relation": "parent",
      "url": "https://universalpaper.org/research/query-surfaces/",
      "json": "https://universalpaper.org/research/query-surfaces/entry.json"
    },
    {
      "number": 9,
      "kind": "question",
      "title": "Should every engine call take a ChainId instead of a position?",
      "status": "answered",
      "relation": "related",
      "url": "https://universalpaper.org/research/positions-and-chain-ids/",
      "json": "https://universalpaper.org/research/positions-and-chain-ids/entry.json"
    },
    {
      "number": 3,
      "kind": "reusable",
      "title": "A query manifest and three traces",
      "status": "exploring",
      "relation": "related",
      "url": "https://universalpaper.org/research/query-test-vectors/",
      "json": "https://universalpaper.org/research/query-test-vectors/entry.json"
    }
  ]
}
