Add group-consistent generation plugin - #86
Closed
andreatnvidia wants to merge 2 commits into
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
data-designer-group-consistentcolumn generator plugin. It selects one candidate record deterministically for each logical group and emits correlated output fields that remain stable across row order, batches, retries, and resumed runs with the same configuration.Why
Datasets often contain multiple rows for the same logical entity. Independent row generation can assign contradictory attributes to those rows. This plugin provides group-scoped consistency without shared mutable state or a persistent cache.
Usage
Demo: keep a synthetic contact consistent across related case events
Both
case-001rows receive the same first name, last name, and email even if they are processed in different batches. A differentrolecreates an independent selection namespace within the same case.How
role,seed, and an algorithm version using SHA-256.Validation
.venv/bin/ruff check ..venv/bin/ruff format --check ..venv/bin/pytest plugins/data-designer-group-consistent/tests/ -q- 10 passedmake test-plugin PLUGIN=data-designer-group-consistent- 10 passed in an isolated environment.venv/bin/ddp validate.venv/bin/ddp plugin-docs --check.venv/bin/ddp license-headers --check.venv/bin/ddp catalog checkddp package-index checkin the activated project environment.venv/bin/zensical build --clean --strictChecklist
config.py,impl.py,plugin.py) if adding a pluginassert_valid_plugin(plugin)passesmake test-plugin PLUGIN=<name>)uv pip install -e plugins/<plugin-dir>)make plugin-docs)make docs)catalog/plugins.jsonupdated only if preparing a first release (make catalog PLUGIN=<name>).github/CODEOWNERSregenerated if ownership changed (make codeowners)CODEOWNERSfile included (auto-created byddp new)make check-license-headers)