Skip to content

fix(tier3): return structured dataset generation outcomes - #21

Merged
chrisknvidia merged 2 commits into
mainfrom
naren/dataset-generation-outcomes
Aug 1, 2026
Merged

chrisknvidia merged 2 commits into
mainfrom
naren/dataset-generation-outcomes

Conversation

@rng1995

@rng1995 rng1995 commented Jul 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Returns truthful, structured outcomes from Tier 3 dataset generation instead of mutating global CLI arguments or collapsing preview, unchanged, and created states into an untyped exit.

Source and dependency

Changes

  • Adds public DatasetGenerationResult outcomes: created, preview, and unchanged.
  • Adds a public DatasetGenerationError for programmatic callers and clean Click errors for both CLI aliases.
  • Makes the generation entry point accept explicit arguments and removes process-global sys.argv mutation.
  • Preserves dry-run and no-change behavior without claiming a dataset was written.
  • Writes datasets atomically, preserves existing file permissions, and leaves an existing dataset intact if writing fails.
  • Exposes runtime-resolvable public type annotations for API and framework callers.

Public adaptations and exclusions

  • Includes only the in-process public service and CLI contract.
  • Excludes the internal API server, routes, schemas, deployment code, and private response models.
  • Adds no provider, credential, managed runtime, Milvus, telemetry, or internal documentation behavior.

Validation

  • Complete Python 3.13 suite with coverage: 2958 passed, 7 skipped, 3 deselected; overall coverage 81%.
  • Focused dataset/service suite: 48 passed.
  • Ruff, git diff --check, source plus wheel/sdist OSS-boundary scan, and strict Twine checks: passed.
  • Fresh Python 3.13 wheel install: public API/type-hint import, CLI create, dry-run preview, unchanged re-run, invalid-skill error, JSON validation, and stable output digest all passed.
  • Rollback, permission preservation, concurrency, both CLI aliases, option dependencies, simple/full output counts, and no sys.argv mutation are covered by automated tests.
  • No live provider or Harbor run was performed because this change is limited to local --no-llm dataset-generation plumbing.

Risk

  • Low-to-moderate and localized to dataset generation.
  • CLI success behavior remains compatible; failures are now one clean Click error instead of a raw exception.
  • Existing datasets are not rewritten for unchanged or preview outcomes, and forced writes are atomic.

@rng1995
rng1995 marked this pull request as ready for review July 27, 2026 21:28
@chrisknvidia
chrisknvidia force-pushed the naren/dataset-generation-outcomes branch from 7c5d7fc to 8d93427 Compare August 1, 2026 01:19
@chrisknvidia
chrisknvidia changed the base branch from naren/tier3-provider-preflight to main August 1, 2026 01:19
@chrisknvidia
chrisknvidia force-pushed the naren/dataset-generation-outcomes branch from 8d93427 to d518038 Compare August 1, 2026 01:21
@chrisknvidia
chrisknvidia force-pushed the naren/dataset-generation-outcomes branch from d518038 to 0d62c1a Compare August 1, 2026 01:48
@chrisknvidia
chrisknvidia merged commit 0f93290 into main Aug 1, 2026
11 checks passed
chrisknvidia pushed a commit that referenced this pull request Aug 1, 2026
* fix(tier3): return structured dataset outcomes

Signed-off-by: Narendran Raghavan <[email protected]>

* fix(tier3): harden dataset outcome API

---------

Signed-off-by: Narendran Raghavan <[email protected]>
chrisknvidia pushed a commit that referenced this pull request Aug 1, 2026
Includes the public benchmark metadata sanitization (#22), Tier 1 validation and CLI hardening (#18), and structured Tier 3 dataset generation outcomes (#21).

Signed-off-by: Narendran Raghavan <[email protected]>
@chrisknvidia
chrisknvidia deleted the naren/dataset-generation-outcomes branch August 1, 2026 03:01
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.

2 participants