Skip to content

D38c — Two offices in one department are told apart by the source's own id

  • Status: Accepted — closes a slice-8 gap
  • Date: 2026-09-22
  • Origin: slice 11 build
  • Area: findings

Decision

position gains parliament_post_id as an external id and a discriminator, and organisation gains parliament_committee_id. The Members API numbers both, and the importer stores those numbers.

Why

Every MP import was asking a question it should not have had to ask:

  • 'Opposition Assistant Whip (Commons)' may already be 'Opposition Whip (Commons)' — slice 8, Karl Turner
  • 'Parliamentary Under-Secretary of State (DESNZ)' may already be 'Minister of State (DESNZ)' — slice 11, Michael Shanks, which is one person's promotion showing up as a suspected duplicate
  • 'Home Affairs Committee' may already be 'Scottish Affairs Committee'

All three pairs are near-identical by name and share a body, so no discriminator could separate them, and the resolver did the right thing with what it had: it proposed and waited. But it waited on every import, about offices that are plainly distinct, and a deferred subject takes its dated relations with it — Turner's spell as Opposition Assistant Whip was missing from his timeline entirely.

The API had the answer the whole time. Each post and each committee carries its own id, which slice 8's importer dropped as housekeeping. Storing it makes these exact matches when they are the same office and vetoes when they are not.

After the change, all three captured members — 4030, 4795, 4998 — import with no deferrals at all, and Turner gains the office he had been losing.

The wider lesson is the same one D37 drew about company numbers: when a source numbers its own records, that number is worth more than any comparison of the names, and dropping it because it looks like plumbing costs a question per import forever.