{
  "$schema": "https://universalpaper.org/research/schema/0/entry.schema.json",
  "format": "up-research/entry/0",
  "number": 9,
  "kind": "question",
  "slug": "positions-and-chain-ids",
  "title": "Should every engine call take a ChainId instead of a position?",
  "summary": "Yes, as well as a position. Since release 0.1.4, the engine calls that took a chain's position also take its ChainId, and give the same answer either way.",
  "status": "answered",
  "topics": [
    "engines",
    "queries"
  ],
  "language_change": "none",
  "built_on": [
    "simulate_eligibility",
    "simulate_amendment"
  ],
  "published": "2026-11-27",
  "updated": "2026-11-29",
  "parent": 1,
  "related": [
    18
  ],
  "answered_by": 18,
  "license": "CC-BY-4.0",
  "url": "https://universalpaper.org/research/positions-and-chain-ids/",
  "markdown": "https://universalpaper.org/research/positions-and-chain-ids.md",
  "json": "https://universalpaper.org/research/positions-and-chain-ids/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": {
    "question": "Should every engine call take a ChainId instead of a position?",
    "why": "Two parties rarely hold the same file. Each may hold the agreements in a different order, or hold only some of them. A position means something in one file. A ChainId means the same thing in all of them.",
    "known": [
      "Manifests and traces use ChainIds only.",
      "Until release 0.1.4, `simulate_amendment`, `simulate_price_conformity` and `simulate_termination` took a `chain` position, and `simulate_eligibility` took a `parent` position. A caller had to find the position of the chain a manifest names.",
      "Release 0.1.4, on November 28, 2026, made each of those parameters accept a ChainId as well, and `chain` on `render_text` too. Positions work as before.",
      "Answers are mixed. `simulate_eligibility` gives the ChainId beside the position. `simulate_price_conformity` and `simulate_termination` give the position only. `validate_bundle` lists both for every chain.",
      "The language already identifies every chain by its ChainId. The change was to the engine's interface only."
    ],
    "settle": "The engine calls accepting a ChainId wherever they accept a position. Release 0.1.4 did that, and Experiment 018 asked each call both ways and got the same answers. The language did not change."
  },
  "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": 18,
      "kind": "experiment",
      "title": "The same answer by ChainId and by position",
      "status": "concluded",
      "relation": "related",
      "url": "https://universalpaper.org/research/same-answer-by-chain-id/",
      "json": "https://universalpaper.org/research/same-answer-by-chain-id/entry.json"
    }
  ]
}
