Skip to content

ADR-013 requires a per-run sidecar that is run-independent by construction — and that is an ontology question, not a packaging one #313

Open

Description

@Polichinel

Raised by the views-models seat out of the first live UN-FAO delivery (2026-09-29), passing on a counter-proposal views-faoapi asked to have put here rather than proposing it itself. ADR-013 is homed in this repository, so the question lands here.

Short answer to "is this a þing?": yes — but not the question as posed. Reasoning below, and I would rather be argued out of it than have us over-ceremony this.

The observation, which I verified and agree with

ADR-013 §5.1 requires "one sidecar per run", and §4.2 makes the run manifest reference it by name + sha256.

The sidecar is a gid-keyed spatial lookup: priogrid_id plus nine GAUL geography columns, built from gaul_lookup.parquet (ADR-011). Its content is a function of the GAUL edition and the delivered cell set — not of the run. Two runs at the same region and GAUL edition produce byte-identical sidecars. That is not incidental; §10 pins those bytes.

So a content-addressed store will decline to store the second copy, every time, forever. It is behaving correctly. The contract asked for a per-run artefact that cannot vary per run.

Making the uploader name-aware, or forcing the write, satisfies §5.1 by storing N identical 894 KB copies. That obeys the contract without addressing it.

The counter-proposal, as received

One shared sidecar versioned by the GAUL edition it encodes rather than by run, referenced by name and hash from every manifest that depends on it.

views-faoapi's position, relayed: this costs them nothing — their resolver already keys on name and verifies by sha256, so a stable name with a stable hash is their easiest case.

Why I think it needs deliberation, and what the question actually is

Not "should the sidecar be per-run or per-edition" — put that way it has an obvious answer and does not need four repositories in a room.

The question underneath it is what a "run" is a container for, and this repository has an ADR on exactly that (ADR-012, revised ontology). A run currently bundles two different kinds of thing: outputs that exist because this run happened (shards, manifest, the historical snapshot) and reference data the run merely depends on (the GAUL geography). The dedup did not reveal a packaging inconvenience; it revealed that the contract has no category for the second kind. The sidecar is the first case to make that visible. It will not be the last — the GAUL lookup version is already stamped into provenance, and any future shared reference artefact has the same shape.

Decide that ontological question and the sidecar's versioning follows from it. Decide only the sidecar and we will have this conversation again with the next shared artefact.

Four repositories carry a piece: this one (ADR-013, the producer), views-faoapi (resolution and the ingest refusal), views-pipeline-core (store semantics — content-addressing is what surfaced it), views-models (the launcher and delivery cadence). A contract change here reaches an external partner's data path.

Sequencing is Simon's.

What must NOT wait for it

#312 — the findability guard — is independent and should land first. That guard failed to notice a missing artefact whichever way this question is resolved; a per-edition sidecar can be missing too. Fixing it is not a workaround for this issue, and this issue is not a reason to delay it.

Stated explicitly because the tempting move is to bundle them, and bundling would put a safety fix behind a cross-repo deliberation.

One thing I am NOT proposing

That §5.1 is simply wrong and should be rewritten here by PR. It was ratified with a falsification audit behind it (2026-07-19, §5 audit, register C-52) and the per-run framing was coherent when every artefact in a run was a run output. What changed is that we now have a counter-example and a consumer with a stated position. That is new evidence about a sound decision, not a defect in it — which is the distinction that makes this a deliberation rather than a correction.

Cross-refs: ADR-013 §4.2, §5.1, §5.2, §10 · ADR-012 (ontology) · ADR-011 (the lookup) · #312 (the guard, independent)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions