Skip to content

D35c — An entity one record created can be used by the next

  • Status: Accepted — extends D22; clarifies D25a
  • Date: 2026-09-21
  • Origin: slice 8 build
  • Area: build

Decision

A Record may carry uses: {ref: provides-key}, binding a local $ref to the entity an earlier record in the same import created. A record is still its own atomic batch; this passes an id across, not a transaction.

D25a is clarified, not changed: one event per row of truth. A member's entry in a division list is a row of truth — it is the thing that says how that member voted — so it is a record and carries its own event. The division's own facts are a separate record, quoting the header of the same document. A division of eighty voters makes eighty-one events.

Why

D25a said "one division import = one official_record event cited by all 650 cast claims", to stop 500 rows becoming 3,000 events. Building it showed the rule cannot be taken literally without breaking a harder one.

The division lists give each member's name, party and seat. To store those, the event's quote must contain them — hard rule 6. But the quote for a single whole-division event can only be the division's header, which names nobody. One event for everything would mean storing eighty people's names against a quote that contains none of them: the engine would accept it, and it would be a lie on every one of those rows.

So each member's line is its own event, quoting its own object. That is the number D25a actually asked for — one per row, not one per value — and D31c had already settled that an API object is a row.

That leaves the mechanical problem this ADR names. Records are separate batches, so $division does not survive from one to the next, and a division cannot be referred to by name: "Closure motion" and "Motion to sit in private" are titles the Commons reuses many times a year, and matching on them would attach a vote to the wrong division. uses passes the real id across.