dziennik_ustaw: per-row ELI address and act date (v2#107)
Adds a per-row ELI address and act date to dziennik_ustaw (slayerlabs/polish-dynaword-v2#107, decision 3A of 2026-10-19).
What changes
- New
data/dziennik_ustaw/dziennik_ustaw.attribution.jsonl(LFS): one line per Parquet row, same order. Fields:id,eli(e.g.DU/1990/541),source_url(ELI API),match(titleorposition),published,created,created_from,text_sha1. dziennik_ustaw.parquet: onlycreatedchanges, from the registry range1918-01-01, 2025-12-31to the act's own date (1925-04-29 to 2024-12-30). No other column and no row changes.- New
src/build_dziennik_ustaw_attribution.py: rebuilds the sidecar andcreatedfrom the shard and the ELI year lists of Dziennik Ustaw 1990-2025 (read 2026-10-19, pinned by SHA-256). No act text was fetched. - Card,
src/sources.py(provenance,createdrange) and the contract test updated.
Linking. 35,442 rows: 34,089 by title, 1,353 by position between title-linked rows (exact gap counts; the builder raises on any uneven gap, out-of-order or overlapping chunk). The lists hold 35,444 acts with an HTML text; 2 have no row (DU/2005/1538, DU/2008/59). Every row is a distinct Dziennik Ustaw act, so no Monitor Polski text is in the source. Position-linked rows checked against the act: date and first word agree on 1,303, first word only 35, date only 13, neither 2; the 15 weak ones were read and are correct.
Dates. created is a majority vote of the heading date, the date in the ELI title and the ELI announcementDate, with dates after publication dropped. Two or more sources agree on 35,299 rows; heading alone on 141 (nearly all international agreements); published on 1 (DU/2024/1647). published is null on 404 rows.
Not in this PR. The art. 4 label decided on #107 (excluded from copyright under Art. 4 of the Polish Copyright Act (normative acts and official documents), SPDX LicenseRef-Polish-Copyright-Act-Art4) goes in the #60 rebuild. The text download date is unknown; only the list read date is recorded.
Tests. Full suite: 1,417 passed, 9 skipped, 0 failed. 33 new unit and shipped-file tests, plus a rebuild test that runs with DU_ELI_LISTS set (passes locally).
🤖 Generated with Claude Code
refs/pr/162 ref