ADR 0059: One intake for contributions of data
- Status: Accepted on 2026-11-30.
- Date: 2026-11-30
- SDD: 12; ADR 0033, 0034, 0044, 0057
- Prompted by: the owner's briefs to make the project ready for equipment makers and for grid actors: a contribution must take two minutes and no code, by email as easily as on GitHub, and nothing may be published, verified or claimed that should not be
Decision
One intake, two kinds. Every contribution of data, equipment (EQ-<year>-<n>) or grid requirements (GR-<year>-<n>), becomes one record in tools/intake.py, follows one lifecycle (RECEIVED → RIGHTS_REVIEW → DATA_EXTRACTION → MODEL_MAPPING → VALIDATION → CONTRIBUTOR_REVIEW → APPROVED → PUBLISHED, with NEEDS_INFORMATION, UNSUPPORTED, RIGHTS_PENDING, PRIVATE_CALIBRATION, REJECTED and WITHDRAWN_BEFORE_PUBLICATION), and gets one kind of report back. Three ways in (email, a GitHub form, a pull request) lead to the same record. No database: a directory of YAML, outside the repository.
Private by default. The staging directory is never inside the repository; the intake refuses one that is. Who sent a contribution is kept in a file of its own, apart from what may become public. Documents are stored by their SHA-256, never by a name from outside.
Six permissions, recorded separately: inspect, extract values, publish values, redistribute the document, use trademarks, commercial use. Approval needs publish values and commercial use granted and an attribution named; publication needs approval. The intake refuses both moves otherwise. A public equipment entry stays under CC BY 4.0, as the registry already requires (ADR 0034).
Untrusted documents. The kind of a document is read from its bytes. CSV, JSON and YAML tables are read; a PDF, a spreadsheet, an old Office file or a URL is accepted for a person to read and never parsed or run. Macros, external links, formula cells and text addressed to an automated reader are reported and never acted on. A value is never invented: a missing one stays missing; an unknown or ambiguous unit, a value without a page or table, and two documents that disagree wait for a person; a curve is never inferred from a rated point.
Read from the code where it can be. What each module reads, its faults and its fidelity (docs/reference/equipment-capabilities.md), and in which role each maker is named (equipment-directory.md: named as a data source, contributed data, reviewed) are generated by tools/onboarding_pages.py from the modules and the registry, and checked to be current. Which kind of equipment each module models is a list kept by hand in that file.
A gate before any invitation. tools/onboarding_readiness.py writes a machine-readable and a human readiness report, item by item, PASS, FAIL, BLOCKED or NOT_TESTED, PASS only on evidence in the repository. A track is PASS only when every mandatory item is. Nobody is invited before.
Not done here
The mailbox is not automated: acknowledgements, ids and reports are made by hand with the intake until an email integration is configured and tested. The intake in the project's mailbox was set up and tested by hand on 2026-11-30, and a private channel for confidential data (a restricted folder, its permissions checked) with a procedure for keeping and deleting (Confidential contributions) on the same day; both are recorded in docs/reference/onboarding-operations.yaml, from which the readiness report reads them. A non-disclosure agreement is agreed per case and signed by Luftfiber AS; there is no template yet. Outreach material is prepared under outreach/ and not sent.