Skip to content

Add CPSC eFiling reference disclosures - #961

Open
ruba-ruba wants to merge 1 commit into
Shopify:mainfrom
ruba-ruba:mrybak/disclosures-add-cpsc-efiling
Open

Add CPSC eFiling reference disclosures#961
ruba-ruba wants to merge 1 commit into
Shopify:mainfrom
ruba-ruba:mrybak/disclosures-add-cpsc-efiling

Conversation

@ruba-ruba

Copy link
Copy Markdown
Contributor

TL;DR

Adds support for reference disclosures to the Disclosure model and introduces the two CPSC eFiling nodes that carry a metaobject_definition.

Why

CPSC eFiling (PGA) data isn't buyer-facing display copy — it's a structured reference set backed by a metaobject definition. The existing Disclosure model only modeled display-only leaves (title/content/display_preferences), so it couldn't represent this. Moving these nodes into the public taxonomy repo makes it the single source of truth for all disclosure data (no internal-only overlay).

What

  • Model: a leaf carrying a metaobject_definition is a "reference" disclosure (reference?). It's exempt from display-only leaf rules (title/content/display_preferences) but still requires jurisdictions + legal_citation + source. New validation ensures metaobject_definition is well-formed (a hash defining display_name_key, only on leaves).
  • Data: adds cpsc_efiling (grouping) + us-cpsc-efiling-pga_reference_set (reference leaf) to data/disclosures.yml, with jurisdictions [US], legal citation 16 CFR 1110, source CPSC eFiling URL, and a full metaobject_definition (fields: certifier_id, product_id, version_id).
  • Tests: model + integration coverage for reference disclosures.

Verification

  • test_unit and test_integration green (unit 433, integration 6, model 24).
  • RuboCop clean. Cue vet_schema unaffected (disclosures aren't covered by cue schemas).

Introduce "reference" disclosures — leaves that wire up a metaobject
definition rather than being displayed to buyers — and add the CPSC
eFiling grouping and PGA reference-set leaf. Reference leaves still carry
jurisdictions/legal_citation/source but omit display copy and
display_preferences.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ruba-ruba ruba-ruba self-assigned this Jul 17, 2026
@ruba-ruba
ruba-ruba marked this pull request as ready for review July 17, 2026 14:18
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