Skip to content

docs(descriptions): lead a computed card only where its steps keep stored values - #136

Open
jm-rivera wants to merge 2 commits into
devfrom
docs/computed-lead-stored-core
Open

jm-rivera wants to merge 2 commits into
devfrom
docs/computed-lead-stored-core

Conversation

@jm-rivera

@jm-rivera jm-rivera commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

A computed dataset card states a lead only where its steps keep stored values: one retrieve of a held version followed only by filter, select, or a per-period rank with a limit and no aggregation.

Changes

  • python/descriptions README, the card schema's lead description, CHANGELOG and the components manifest digest state the rule.

Testing: validate_registry.py --baseline origin/dev, validate_client_contract.py and the spec-kit package tests pass.

@jm-rivera
jm-rivera force-pushed the docs/computed-lead-stored-core branch from df73dff to 9603ac6 Compare December 5, 2026 15:00
@jm-rivera jm-rivera changed the title feat: register the computed-lead rule, the stated_choice_not_applied warning and entity_readings feat: register the computed-lead rule and the stated_choice_not_applied warning Dec 5, 2026
@jm-rivera
jm-rivera force-pushed the docs/computed-lead-stored-core branch from 9603ac6 to d21686e Compare December 5, 2026 16:41
@jm-rivera
jm-rivera force-pushed the docs/computed-lead-stored-core branch from d21686e to 6bfa3ee Compare December 5, 2026 18:05
@jm-rivera jm-rivera changed the title feat: register the computed-lead rule and the stated_choice_not_applied warning docs(descriptions): lead a computed card only where its steps keep stored values Dec 5, 2026
…ored values

A card drawn from a computed version has a subject only when its steps
keep stored values: one `retrieve` of a held `spec_` version, with no
`summed`, no grouping and no `reporters_summed`, followed only by
`select`, `filter`, or a per-period `rank` with no `aggregation`. The
subject is the label of the one variable its drawn series hold, else
the retrieved version's measure; any other step, an input not held,
several drawn variables or a missing measure leave the lead `null` with
`lead` in `gaps`. Where the steps cut rows, the lead states no count
of series reporting the latest period, and several series reporting it
give no lead. A currency noun after the number 1 reads in the singular.

The `description.schema.json` `lead` description says the same, and the
components catalogue carries its new digest.
@jm-rivera
jm-rivera force-pushed the docs/computed-lead-stored-core branch from 6bfa3ee to e8d4f5a Compare December 5, 2026 21:10

This branch has not been deployed

No deployments
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