dziennik_ustaw: per-row ELI address and act date (v2#107)

#162
by ppuzio - opened
Commit history is no longer available for this pull request.
Fabryka AI org

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 (title or position), published, created, created_from, text_sha1.
  • dziennik_ustaw.parquet: only created changes, from the registry range 1918-01-01, 2025-12-31 to 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 and created from 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, created range) 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

ppuzio changed pull request status to open
ppuzio changed pull request status to merged
ppuzio deleted the refs/pr/162 ref

Sign up or log in to comment