Skip to content

Fill missing source_id/package_id so publish-raw covers every manifest - #149

Open
MaxGhenis wants to merge 1 commit into
mainfrom
fill-manifest-source-package-ids
Open

Fill missing source_id/package_id so publish-raw covers every manifest#149
MaxGhenis wants to merge 1 commit into
mainfrom
fill-manifest-source-package-ids

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

What

Nineteen db/data manifests predated the source/package id split — they carried the package slug in source_id and had no package_id, so chronicle publish-raw skipped them with "Manifest missing package_id/source_id" scan errors. Both ids are now filled, derived from each manifest's existing content-addressed R2 keys (path convention for cms_nhe/historical_service_source, which had no storage yet), so republishing reproduces the historical keys exactly.

One deliberate correction: ssa/ssi_table_7b1_2024's artifact had been uploaded under ssa-annual-statistical-supplement-2025's package path; it now lives at its own ssa-ssi-table-7b1-2024 key.

Verification

Ran publish-raw per directory over all 19 (with #148's tooling fixes): 21/21 artifacts uploaded, 0 failures, 0 scan errors to the PolicyEngine account's ledger-raw. Storage keys: 17 byte-identical to the committed ones, 1 corrected (7b1), 3 first-time entries (including two extracted_targets label entries that only became publishable with #148's label-year fix). Spot round-trip (sfpd Belgian pension caseload) sha256-verified.

Companion to #148, which pins the Cloudflare account and fixes the publish tooling.

🤖 Generated with Claude Code

Nineteen manifests predated the split of source_id (publisher) from
package_id (package slug): they carried the package slug in source_id and
no package_id, so chronicle publish-raw skipped them entirely.

- Derive both ids from each manifest's existing content-addressed R2 keys
  (path convention for cms_nhe/historical_service_source, which had none),
  so republishing reproduces the historical keys byte-for-byte.
- ssa/ssi_table_7b1_2024: correct its package path — the artifact had been
  uploaded under ssa-annual-statistical-supplement-2025's key.
- First-time storage for three entries that publish-raw previously could
  not handle, including two extracted_targets label entries.

All 21 artifacts are published to the PolicyEngine account's ledger-raw
bucket (17 keys unchanged, 1 corrected, 3 new).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant